author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 19 Jul 2017 09:42:32 +0200 | |
branch | jv |
changeset 17619 | edb119820fcb |
parent 17278 | 765550e424bd |
child 18446 | 84498b441bc0 |
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 |
12335 | 3 |
All Rights Reserved |
1406 | 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 |
" |
|
2659 | 12 |
"{ Package: 'stx:libtool' }" |
13 |
||
15088 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
2003
b44e8c80ec07
refactored with Launcher into AbstractLauncherApplication
Claus Gittinger <cg@exept.de>
parents:
1998
diff
changeset
|
16 |
AbstractLauncherApplication subclass:#NewLauncher |
8789
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
17 |
instanceVariableNames:'isMainLauncher helpIsOn errorListCanvas infoLineTemplate' |
14822 | 18 |
classVariableNames:'UserAddedMenuItems UserAddedToolBarItems |
19 |
PreviousPackageDialogItems PreviousPackageDialogExtent' |
|
3915 | 20 |
poolDictionaries:'' |
21 |
category:'Interface-Smalltalk' |
|
1406 | 22 |
! |
23 |
||
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
24 |
Object subclass:#AddedToolInfo |
5628
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
25 |
instanceVariableNames:'item resourceProvider where positionSpec space before |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
26 |
menuWithNewItem originalLabel' |
3915 | 27 |
classVariableNames:'' |
28 |
poolDictionaries:'' |
|
29 |
privateIn:NewLauncher |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
30 |
! |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
31 |
|
1406 | 32 |
!NewLauncher class methodsFor:'documentation'! |
33 |
||
34 |
copyright |
|
35 |
" |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
36 |
COPYRIGHT (c) 1997-1998 by eXept Software AG |
12335 | 37 |
All Rights Reserved |
1406 | 38 |
|
39 |
This software is furnished under a license and may be used |
|
40 |
only in accordance with the terms of that license and with the |
|
41 |
inclusion of the above copyright notice. This software may not |
|
42 |
be provided or otherwise made available to, or used by, any |
|
43 |
other person. No title to or ownership of the software is |
|
44 |
hereby transferred. |
|
45 |
" |
|
46 |
||
47 |
||
48 |
! |
|
49 |
||
50 |
documentation |
|
51 |
" |
|
2011 | 52 |
The new launcher. |
12335 | 53 |
This one provides all of the Launchers functionality, |
2011 | 54 |
but has been written using the new GUI painter tools. |
55 |
(i.e. its menu and toolbar is defined by specs, which can be |
|
56 |
easily modified). |
|
57 |
Functionality which can be shared with the old launcher |
|
58 |
has been moved to a common superclass. |
|
59 |
||
60 |
If you want to write your own (application-)launcher, we recommend |
|
61 |
creating a subclass, and redefining the appropriate menu & menuToolBar |
|
62 |
methods there. |
|
1411 | 63 |
|
64 |
[start with:] |
|
12335 | 65 |
NewLauncher open |
1411 | 66 |
|
67 |
[see also:] |
|
12335 | 68 |
Launcher |
1411 | 69 |
|
70 |
[author:] |
|
12335 | 71 |
Thomas Zwick, eXept Software AG |
72 |
Claus Gittinger, eXept Software AG |
|
1406 | 73 |
" |
2011 | 74 |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
75 |
! |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
76 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
77 |
examples |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
78 |
" |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
79 |
reopening a standard launcher (without any added tools) |
12335 | 80 |
[exBegin] |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
81 |
NewLauncher removeAllUserAddedTools. |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
82 |
NewLauncher open. |
12335 | 83 |
[exEnd] |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
84 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
85 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
86 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
87 |
adding your own menu items (for user-applications) |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
88 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
89 |
an additional item in the tools menu: |
12335 | 90 |
[exBegin] |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
91 |
Transcript topView application |
12335 | 92 |
addMenuItem:(MenuItem new |
93 |
label: 'Foo'; |
|
94 |
value: [Transcript showCR:'foo invoked']; |
|
95 |
isButton: false; |
|
96 |
labelImage: nil; |
|
97 |
nameKey: #foo; |
|
98 |
activeHelpKey: #Foo) |
|
99 |
in:#menu |
|
100 |
position:#(before workspace) |
|
101 |
space:true |
|
102 |
[exEnd] |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
103 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
104 |
an additional item in the tools menu: |
12335 | 105 |
[exBegin] |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
106 |
Transcript topView application |
12335 | 107 |
addMenuItem:(MenuItem new |
108 |
label: 'Foo'; |
|
109 |
value: [Transcript showCR:'foo invoked']; |
|
110 |
isButton: false; |
|
111 |
labelImage: nil; |
|
112 |
activeHelpKey: #Foo) |
|
113 |
in:#menu |
|
114 |
position:#(after guiPainter) |
|
115 |
space:true |
|
116 |
[exEnd] |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
117 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
118 |
an additional item in one of the tools sub menus: |
12335 | 119 |
[exBegin] |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
120 |
Transcript topView application |
12335 | 121 |
addMenuItem:(MenuItem new |
122 |
label: 'Foo'; |
|
123 |
value: [Transcript showCR:'foo invoked']; |
|
124 |
isButton: false; |
|
125 |
labelImage: nil; |
|
126 |
activeHelpKey: #Foo) |
|
127 |
in:#menu |
|
128 |
position:#(after Workspace) |
|
129 |
space:true |
|
130 |
[exEnd] |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
131 |
" |
1406 | 132 |
! ! |
133 |
||
134 |
!NewLauncher class methodsFor:'accessing'! |
|
135 |
||
136 |
label |
|
137 |
||
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
138 |
^'ST/X Launcher' |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
139 |
|
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
140 |
|
1406 | 141 |
! ! |
142 |
||
143 |
!NewLauncher class methodsFor:'defaults'! |
|
144 |
||
8789
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
145 |
defaultInfoLineTemplate |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
146 |
"available values: |
12335 | 147 |
PACKAGE - the current packageID |
148 |
PACKAGEOREMPTY - the current packageID or empty if its __NoPackage__ |
|
149 |
IMAGE - the current snapshot image |
|
150 |
CVS - the CVS source repository or empty |
|
151 |
DB - the Store source repository DB or empty |
|
152 |
SVN_WORKING_COPY- the SVN working copy dir or empty |
|
153 |
NOREPOSITORY - the tring 'No Repository' empty |
|
154 |
NS - the default namespace, or empty (if Smalltalk) |
|
155 |
PROJECTDIR - the default fileOut directory or empty (if current) |
|
8789
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
156 |
" |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
157 |
|
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
158 |
(SVN::RepositoryManager notNil |
12335 | 159 |
and:[ SVN::RepositoryManager isLoaded |
8789
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
160 |
and:[ SVN::RepositoryManager enabled ]]) ifTrue:[ |
12335 | 161 |
^ '%(PACKAGEOREMPTY)%(IMAGE) %(CVS)%(DB)%(SVN_WORKING_COPY)' |
8789
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
162 |
]. |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
163 |
^ '%(PACKAGEOREMPTY)%(IMAGE)%(CVS)%(DB)%(NOREPOSITORY)%(NS)' |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
164 |
|
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
165 |
"/ ^ '%(PACKAGEOREMPTY)%(IMAGE)%(CVS)%(DB)%(NOREPOSITORY)%(NS)' |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
166 |
"/ ^ '%(PACKAGE)%(IMAGE)%(CVS)%(DB)%(NOREPOSITORY)%(NS)%(PROJECTDIR)' |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
167 |
|
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
168 |
"Modified: / 30-09-2008 / 12:45:49 / Jan Vrany <vranyj1@fel.cvut.cz>" |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
169 |
! |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
170 |
|
1836
5f36df45604f
added #windowIcon - which can be redefined in a subclass.
Claus Gittinger <cg@exept.de>
parents:
1819
diff
changeset
|
171 |
windowIcon |
5f36df45604f
added #windowIcon - which can be redefined in a subclass.
Claus Gittinger <cg@exept.de>
parents:
1819
diff
changeset
|
172 |
^ Icon stxIcon |
5f36df45604f
added #windowIcon - which can be redefined in a subclass.
Claus Gittinger <cg@exept.de>
parents:
1819
diff
changeset
|
173 |
|
5f36df45604f
added #windowIcon - which can be redefined in a subclass.
Claus Gittinger <cg@exept.de>
parents:
1819
diff
changeset
|
174 |
"Created: / 16.8.1998 / 13:11:58 / cg" |
5f36df45604f
added #windowIcon - which can be redefined in a subclass.
Claus Gittinger <cg@exept.de>
parents:
1819
diff
changeset
|
175 |
"Modified: / 17.8.1998 / 10:07:09 / cg" |
1406 | 176 |
! ! |
177 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
178 |
!NewLauncher class methodsFor:'help specs'! |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
179 |
|
3489 | 180 |
flyByHelpSpec |
181 |
<resource: #help> |
|
182 |
||
183 |
^super flyByHelpSpec addPairsFrom:#( |
|
184 |
||
185 |
#fileFileBrowser |
|
186 |
'FileBrowser' |
|
187 |
||
3808 | 188 |
#fileBrowserV2 |
13387 | 189 |
'New FileBrowser / Recently visited folders' |
3808 | 190 |
|
3489 | 191 |
#fileSaveImage |
192 |
'Save Image' |
|
193 |
||
194 |
#fileSaveImageAs |
|
195 |
'Save Image' |
|
196 |
||
197 |
#helpSTXOnlineDocumentation |
|
198 |
'Online Manual' |
|
199 |
||
200 |
#classesSystemBrowserOnClass |
|
201 |
'Browser history' |
|
202 |
||
203 |
#classesSystemBrowser |
|
3808 | 204 |
'SystemBrowser' |
3489 | 205 |
|
206 |
#newSystemBrowser |
|
12991 | 207 |
'New SystemBrowser / Recently visited classes' |
3489 | 208 |
|
209 |
#systemGarbageCollect |
|
13393 | 210 |
'GarbageCollect - force free space reclamation to be done now.\(Normally not needed, the system does this automatically for you)' |
3489 | 211 |
|
212 |
#systemGarbageCollectAndCompress |
|
13393 | 213 |
'GarbageCollect - force free space reclamation now and compress memory.\(Normally not needed, the system does this automatically for you)' |
3489 | 214 |
|
215 |
#toolsGUIPainter |
|
13393 | 216 |
'GUIPainter - a tool for interactive UI construction.\Normally opened via the browser by double clicking on an interface spec method' |
3489 | 217 |
|
218 |
#toolsImageEditor |
|
13393 | 219 |
'BitmapEditor - a tool to create/modify icons and bitmaps used in the UI.\Normally opened via the browser by double clicking on an image spec method' |
3489 | 220 |
|
221 |
#toolsMenuEditor |
|
13393 | 222 |
'MenuEditor - a tool for interactive UI-menu construction.\Normally opened via the browser by double clicking on a menu spec method' |
3489 | 223 |
|
224 |
#toolsChangesBrowser |
|
3493 | 225 |
'Changes Browser' |
3489 | 226 |
|
8423 | 227 |
toolsChangesBrowserOrNavigateToRecentChange |
13385 | 228 |
'Changes Browser / Uncommitted recent changes' |
8423 | 229 |
|
3489 | 230 |
#toolsMiscProjectsNewProject |
231 |
'New Project' |
|
232 |
||
233 |
#toolsNewChangesBrowser |
|
234 |
'ChangesBrowser (new GUI)' |
|
235 |
||
236 |
#toolsOldChangesBrowser |
|
237 |
'ChangesBrowser (old GUI)' |
|
238 |
||
239 |
#toolsWorkspace |
|
13393 | 240 |
'Workspace - a scratchpad for text and expression evaluator' |
3489 | 241 |
|
8318 | 242 |
#toolsMyWorkspace |
243 |
'Workspace on the "MyWorkspace.wsp" file' |
|
244 |
||
245 |
#toolsSystemWorkspace |
|
246 |
'The SystemWorkspace with Welcome Messages' |
|
247 |
||
8321 | 248 |
#toolsEvaluationWorkspace |
249 |
'A 3-pane EvaluationWorkspace - good for lectures and Smalltalk courses' |
|
8318 | 250 |
|
8297 | 251 |
#toolsInternationalLanguageTranslationEditor |
252 |
'National Language Translation Editor' |
|
3489 | 253 |
) |
13393 | 254 |
|
255 |
"Modified: / 28-08-2013 / 14:56:20 / cg" |
|
3489 | 256 |
! |
257 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
258 |
helpSpec |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
259 |
"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
|
260 |
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
|
261 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
262 |
"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
|
263 |
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
|
264 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
265 |
" |
13027 | 266 |
UIHelpTool openOnClass:NewLauncher |
1533
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 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
269 |
<resource: #help> |
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
270 |
|
5017 | 271 |
^ super helpSpec addPairsFrom:#( |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
272 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
273 |
#aboutLicenseConditions |
11730 | 274 |
'Show 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
|
275 |
|
14964 | 276 |
#breakPointBrowser |
277 |
'' |
|
278 |
||
2698
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
279 |
#chickenFun |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
280 |
'Watch your views' |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
281 |
|
5017 | 282 |
#classBrowserOnChangedClasses |
283 |
'Open a Browser on changed classes' |
|
284 |
||
8321 | 285 |
#classBrowserOnChangedMethod |
286 |
'Open a Browser on a that changed method' |
|
287 |
||
5017 | 288 |
#classBrowserOnChangedMethods |
289 |
'Open a Browser on changed methods' |
|
290 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
291 |
#classes |
11730 | 292 |
'Class functions' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
293 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
294 |
#classesClassBrowser |
11730 | 295 |
'Open a dialog 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
|
296 |
|
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
297 |
#classesClassBrowserOnChanges |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
298 |
'Open a Browser on changed classes' |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
299 |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
300 |
#classesClassHierarchyBrowser |
11730 | 301 |
'Open 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
|
302 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
303 |
#classesClassTreeBrowser |
11730 | 304 |
'Open a Class Tree View' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
305 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
306 |
#classesFullClassBrowser |
11730 | 307 |
'Open 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
|
308 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
309 |
#classesImplementors |
1616 | 310 |
'Find all methods which implement a particular message' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
311 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
312 |
#classesRemoveAllTracePoints |
11730 | 313 |
'Remove all trace- and break-points' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
314 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
315 |
#classesResourceMethods |
11730 | 316 |
'Open a dialog for searching resource methods' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
317 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
318 |
#classesSenders |
11730 | 319 |
'Find all methods which send a particular message' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
320 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
321 |
#classesShowTracePoints |
11730 | 322 |
'Browse mthods with a Trace- or Break-point' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
323 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
324 |
#classesSpecial |
11730 | 325 |
'Special class functions' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
326 |
|
5017 | 327 |
#classesSpecialReferencesToUnboundGlobals |
11730 | 328 |
'rbowse methods refering to unbound globals' |
5017 | 329 |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
330 |
#classesSpecialReferencesToUndeclared |
11730 | 331 |
'Browse methods refering to undeclared variables' |
4199
f9bc3cbc38f7
added browse refs to unbound globals.
Claus Gittinger <cg@exept.de>
parents:
4144
diff
changeset
|
332 |
|
8297 | 333 |
#classesStopIgnoringHalts |
11730 | 334 |
'Stop ignoring Halts in the debugger' |
8297 | 335 |
|
15532 | 336 |
#classesStringSearch |
337 |
'' |
|
338 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
339 |
#classesSystemBrowser |
11730 | 340 |
'Open a System Browser' |
1533
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 |
#classesSystemBrowserOnClass |
11730 | 343 |
'Open a System Browser on a previously visited class' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
344 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
345 |
#demos |
11730 | 346 |
'Demo programs' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
347 |
|
1759 | 348 |
#demos3D |
11730 | 349 |
'3D GL graphic demos' |
1759 | 350 |
|
351 |
#demos3DcubeSolid |
|
11730 | 352 |
'A rotating solid cube' |
1759 | 353 |
|
354 |
#demos3DcubeWire |
|
11730 | 355 |
'A rotating wireframe cube' |
1759 | 356 |
|
357 |
#demos3Ddoughnut |
|
11730 | 358 |
'A rotating wireframe doughnut' |
1759 | 359 |
|
360 |
#demos3Dlogo |
|
11730 | 361 |
'The ST/X logo' |
1759 | 362 |
|
363 |
#demos3Dplane |
|
11730 | 364 |
'A rotating plane' |
1759 | 365 |
|
366 |
#demos3Dplanet |
|
11730 | 367 |
'Two spheres - one rotating around the other' |
1759 | 368 |
|
369 |
#demos3Drubics |
|
11730 | 370 |
'A rubics cube - with interaction' |
1759 | 371 |
|
372 |
#demos3Dsphere |
|
11730 | 373 |
'A rotating wireframe sphere' |
1759 | 374 |
|
375 |
#demos3Dteapot |
|
11730 | 376 |
'A teopot' |
1759 | 377 |
|
378 |
#demos3Dtetra |
|
11730 | 379 |
'A rotating tetrahedron' |
1759 | 380 |
|
381 |
#demosAnimations |
|
11730 | 382 |
'Simple animation demos' |
1759 | 383 |
|
4594 | 384 |
#demosBabelFish |
385 |
'A Language Translator' |
|
386 |
||
1759 | 387 |
#demosCalculator |
11730 | 388 |
'Opens a calculator with decimal to hex conversion' |
1759 | 389 |
|
390 |
#demosCalendar |
|
11730 | 391 |
'Opens a GUI on the cal program (unix only)' |
1759 | 392 |
|
393 |
#demosClock |
|
11730 | 394 |
'Opens an analog clock application' |
1759 | 395 |
|
396 |
#demosCommander |
|
11730 | 397 |
'Opens a demo for the Commander class' |
1759 | 398 |
|
399 |
#demosDigitalClock |
|
400 |
'Opens a digital clock application' |
|
401 |
||
8951 | 402 |
#demosDrawingProtocol |
403 |
'Drawing protocol demo (for programmers)' |
|
404 |
||
1759 | 405 |
#demosFTP |
11730 | 406 |
'Opens a simple FTP interface demo' |
1759 | 407 |
|
408 |
#demosFractalPatterns |
|
11730 | 409 |
'Opens a view displaying fractal patterns' |
1759 | 410 |
|
411 |
#demosFractalPlants |
|
11730 | 412 |
'Opens a view displaying fractal plants (iterated function systems)' |
1759 | 413 |
|
1794 | 414 |
#demosGUI |
11730 | 415 |
'GUI builder demos' |
1794 | 416 |
|
417 |
#demosGUICalculator |
|
11730 | 418 |
'Calculator built using the GUI builder' |
1794 | 419 |
|
420 |
#demosGUIWidgets |
|
11730 | 421 |
'GUI widgets usage' |
1794 | 422 |
|
1759 | 423 |
#demosGames |
11730 | 424 |
'Games' |
1759 | 425 |
|
426 |
#demosGeometric |
|
11730 | 427 |
'Various demos displaying geometric designs' |
1759 | 428 |
|
429 |
#demosGlobe |
|
11730 | 430 |
'Opens a rotating globe animation demo' |
1759 | 431 |
|
432 |
#demosGoodies |
|
11730 | 433 |
'Goodies and Utilities' |
1759 | 434 |
|
1777 | 435 |
#demosGraphicEditors |
11730 | 436 |
'Graphic editing demos' |
1777 | 437 |
|
438 |
#demosGraphicEditorsDrawTool |
|
11730 | 439 |
'Object drawing demo' |
1777 | 440 |
|
441 |
#demosGraphicEditorsLogicTool |
|
11730 | 442 |
'Simulating Logic demo' |
1777 | 443 |
|
444 |
#demosGraphicEditorsPaintTool |
|
11730 | 445 |
'Painting demo' |
1777 | 446 |
|
2405 | 447 |
#demosLSystems |
11730 | 448 |
'Opens a view displaying fractal patterns using Lindenmayer Systems' |
2405 | 449 |
|
1759 | 450 |
#demosMail |
11730 | 451 |
'Opens a simple mail viewer demo' |
1759 | 452 |
|
453 |
#demosMandel |
|
11730 | 454 |
'Opens a view displaying the mandelbrot set' |
1759 | 455 |
|
456 |
#demosMoreFractalPatterns |
|
11730 | 457 |
'Opens a view with more fractal patterns' |
1759 | 458 |
|
459 |
#demosNews |
|
11730 | 460 |
'Opens a simple news reader demo' |
1759 | 461 |
|
8951 | 462 |
#demosOldStuff |
463 |
'Very old demos' |
|
464 |
||
1759 | 465 |
#demosPen |
11730 | 466 |
'Opens a demo for the Pen class' |
1759 | 467 |
|
2483 | 468 |
#demosRemoteLauncher |
11730 | 469 |
'Opens a launcher on a remote display' |
2462 | 470 |
|
1759 | 471 |
#demosTelnet |
11730 | 472 |
'Opens a Telnet terminal demo' |
1759 | 473 |
|
474 |
#demosWalkingMan |
|
11730 | 475 |
'Opens a walking man animation demo' |
1759 | 476 |
|
13027 | 477 |
#enableGlobalCoverageAnalysis |
478 |
'Enable coverage statistic gathering in all processes (global covarage analysis)' |
|
479 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
480 |
#fileApplicationBuilder |
11730 | 481 |
'Open an Application Builder for building stand alone ST/X-applications' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
482 |
|
5017 | 483 |
#fileBrowserV2 |
12085 | 484 |
'Open a FileBrowser to edit or load files and folders' |
5017 | 485 |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
486 |
#fileFileBrowser |
12085 | 487 |
'Open a FileBrowser to edit or load files and folders' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
488 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
489 |
#fileLibraryBuilder |
11730 | 490 |
'Open a Library Builder for building binary class libraries' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
491 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
492 |
#fileModules |
11730 | 493 |
'Show class libraries and other modules' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
494 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
495 |
#fileSaveImage |
12085 | 496 |
'Save the complete state of ST/X into the current snapshot file ("%1")' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
497 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
498 |
#fileSaveImageAs |
12041 | 499 |
'Save the complete state of ST/X into a snapshot file' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
500 |
|
13642 | 501 |
#fileSaveSessionChangesAs |
502 |
'Save changes made in this session as a patch file, which is automatically loaded when ST/X is started.' |
|
503 |
||
13027 | 504 |
#findClassAndBrowse |
505 |
'Find and browse a class by name' |
|
506 |
||
507 |
#flyByWindowInformation |
|
508 |
'Show flyby info about the window under the pointer. Easy access to View, Application and Model' |
|
509 |
||
2483 | 510 |
#gamesPingPong |
11730 | 511 |
'Play classic PingPong against the computer' |
2483 | 512 |
|
513 |
#gamesPingPong2 |
|
11730 | 514 |
'Play classic PingPong against a friend' |
2483 | 515 |
|
2502 | 516 |
#gamesReversi |
517 |
'The game of reversi (an embedded Java applet)' |
|
518 |
||
1759 | 519 |
#gamesTetris |
11730 | 520 |
'The tetris game - written in Smalltalk' |
1759 | 521 |
|
522 |
#gamesTicTacToe |
|
11730 | 523 |
'Play TicTacToe against the computer' |
1759 | 524 |
|
525 |
#gamesTicTacToe2 |
|
11730 | 526 |
'Play TicTacToe against a friend' |
1759 | 527 |
|
1864 | 528 |
#helpActiveHelp |
11730 | 529 |
'Toggle display of active help texts in browsers' |
1864 | 530 |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
531 |
#helpClassDocumentation |
11730 | 532 |
'Show the smalltalk class documentation' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
533 |
|
8400 | 534 |
#helpCredits |
11730 | 535 |
'Say thanks to some friends' |
8400 | 536 |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
537 |
#helpIndex |
11730 | 538 |
'Show the index of the online documentation' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
539 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
540 |
#helpPrintDocumentation |
11730 | 541 |
'Print various parts of the ST/X documentation' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
542 |
|
8951 | 543 |
#helpProgrammersGuide |
11730 | 544 |
'Show the programmer''s guide' |
8951 | 545 |
|
8400 | 546 |
#helpRFC |
11730 | 547 |
'Show an RFC by number' |
8400 | 548 |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
549 |
#helpSTXOnlineDocumentation |
11730 | 550 |
'Show the ST/X online documentation' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
551 |
|
8297 | 552 |
#helpShowTipOfTheDay |
11730 | 553 |
'Show a tip-of-the-day' |
8297 | 554 |
|
8951 | 555 |
#helpSmalltalkTutorial |
11730 | 556 |
'Show the Smalltalk Language Tutorial' |
8951 | 557 |
|
8400 | 558 |
#helpToolsDocumentation |
11730 | 559 |
'Show the tool documentation' |
8400 | 560 |
|
561 |
#helpTutorial |
|
11730 | 562 |
'Show the ST/X Tutorial' |
8400 | 563 |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
564 |
#helpWhatsNew |
11730 | 565 |
'Show the latest news about the ST/X documentation' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
566 |
|
8400 | 567 |
#helpWhatsNewInSTX |
11730 | 568 |
'Show the latest news about ST/X' |
8400 | 569 |
|
2994 | 570 |
#newSystemBrowser |
12041 | 571 |
'Open a System Browser or revisit a class' |
2994 | 572 |
|
10890 | 573 |
#openTestRunner |
12085 | 574 |
'Open the SUnit test runner for executing unit tests' |
10890 | 575 |
|
2462 | 576 |
#settingsCommunications |
11730 | 577 |
'Change communication settings' |
2462 | 578 |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
579 |
#settingsCompilation |
11730 | 580 |
'Change compiler settings' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
581 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
582 |
#settingsFonts |
11730 | 583 |
'Change of the font defaults' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
584 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
585 |
#settingsKeyboardMappings |
11730 | 586 |
'Show the keyboard mappings' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
587 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
588 |
#settingsLanguage |
11730 | 589 |
'Change the national language' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
590 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
591 |
#settingsLoadSettings |
11730 | 592 |
'Restore the settings from a file' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
593 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
594 |
#settingsMessages |
11730 | 595 |
'Change the settings for info- / error-messagess' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
596 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
597 |
#settingsMisc |
11730 | 598 |
'Misc other settings' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
599 |
|
2994 | 600 |
#settingsMouse |
601 |
'Configure the mouse' |
|
602 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
603 |
#settingsObjectMemory |
11730 | 604 |
'Change the object memory settings' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
605 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
606 |
#settingsPrinter |
11730 | 607 |
'Change the printer setup' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
608 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
609 |
#settingsSaveSettings |
11730 | 610 |
'Save the current settings to a file' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
611 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
612 |
#settingsScreen |
11730 | 613 |
'Change the display screen settings' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
614 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
615 |
#settingsSourceAndDebugger |
11730 | 616 |
'Change the settings of the source code management' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
617 |
|
2462 | 618 |
#settingsTools |
11730 | 619 |
'Change tool settings' |
2462 | 620 |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
621 |
#settingsViewStyle |
11730 | 622 |
'Change the current view style' |
1544 | 623 |
|
5017 | 624 |
#startChangeSetBrowser |
625 |
'Open a Browser on recent changes (the ChangeSet)' |
|
626 |
||
14964 | 627 |
#startSQLScratchpad |
628 |
'SQLScratchpad - a scratchpad for SQL statement execution (ODBC or SQLite)' |
|
629 |
||
14953 | 630 |
#startSQLWorkspace |
631 |
'SQLWorkspace - a workspace for SQL statement execution' |
|
632 |
||
1544 | 633 |
#system |
11730 | 634 |
'System tools' |
1544 | 635 |
|
636 |
#systemEventTrace |
|
11730 | 637 |
'Select a view to toggle the event trace for it' |
1544 | 638 |
|
639 |
#systemEventView |
|
11730 | 640 |
'Open a view and trace its window events on the console' |
1544 | 641 |
|
642 |
#systemGarbageCollect |
|
11730 | 643 |
'Reclaim unused memory' |
1544 | 644 |
|
645 |
#systemGarbageCollectAndCompress |
|
11730 | 646 |
'Reclaim unused memory and minimize the amount of used memory' |
1544 | 647 |
|
648 |
#systemInterruptLatency |
|
11730 | 649 |
'Open an Interrupt Latency Monitor displaying methods which block interrupts for longer than a given time goal' |
1544 | 650 |
|
651 |
#systemMemory |
|
11730 | 652 |
'Display object memory statistics' |
1544 | 653 |
|
654 |
#systemMemoryUsage |
|
11730 | 655 |
'Display object memory usage by class' |
1544 | 656 |
|
657 |
#systemProcesses |
|
11730 | 658 |
'Open a Process Monitor displaying ST/X processes' |
1544 | 659 |
|
7959 | 660 |
#systemReloadResources |
661 |
'Reload Language Resources (National language strings)' |
|
662 |
||
1544 | 663 |
#systemSemaphores |
11730 | 664 |
'Open a Semaphore Monitor displaying ST/X semaphores' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
665 |
|
7959 | 666 |
#systemSettings |
667 |
'Open a Settings Dialog' |
|
668 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
669 |
#tools |
11730 | 670 |
'Tools' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
671 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
672 |
#toolsChangesBrowser |
11730 | 673 |
'Open a Changes Browser' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
674 |
|
8423 | 675 |
#toolsChangesBrowserOrNavigateToRecentChange |
11730 | 676 |
'Open a Changes Browser or navigate to a recent change' |
8423 | 677 |
|
8951 | 678 |
#toolsEvaluationWorkspace |
679 |
'A 3-pane EvaluationWorkspace - good for lectures and Smalltalk courses' |
|
680 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
681 |
#toolsGUIPainter |
11730 | 682 |
'Open a GUI Painter for graphical user interface construction' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
683 |
|
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
684 |
#toolsImageEditor |
12085 | 685 |
'Open a Bitmap Image Editor for editing small images for toolbars and buttons' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
686 |
|
8951 | 687 |
#toolsInternationalLanguageTranslationEditor |
688 |
'Open the National Language Translation Editor' |
|
689 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
690 |
#toolsMenuEditor |
12085 | 691 |
'Open a Menu Editor for building menus and toolbars' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
692 |
|
1544 | 693 |
#toolsMisc |
11730 | 694 |
'Misc Tools' |
1544 | 695 |
|
2112
68e5920dc07a
moved startChangesBrowser to AbstractLauncher.
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
696 |
#toolsMiscNewChangesBrowser |
11730 | 697 |
'Open a ChangesBrowser (new GUI)' |
2112
68e5920dc07a
moved startChangesBrowser to AbstractLauncher.
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
698 |
|
1544 | 699 |
#toolsMiscNewLauncher |
11730 | 700 |
'(Re-)open a Launcher (new GUI)' |
2112
68e5920dc07a
moved startChangesBrowser to AbstractLauncher.
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
701 |
|
68e5920dc07a
moved startChangesBrowser to AbstractLauncher.
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
702 |
#toolsMiscOldChangesBrowser |
11730 | 703 |
'Open a ChangesBrowser (old GUI)' |
1544 | 704 |
|
705 |
#toolsMiscOldLauncher |
|
11730 | 706 |
'Open an OldLauncher' |
1544 | 707 |
|
708 |
#toolsMiscProjects |
|
11730 | 709 |
'Project functions' |
1544 | 710 |
|
711 |
#toolsMiscProjectsNewProject |
|
11730 | 712 |
'Create a new project' |
1544 | 713 |
|
714 |
#toolsMiscProjectsSelectProject |
|
11730 | 715 |
'Select an existing project and reopen its windows' |
1544 | 716 |
|
8951 | 717 |
#toolsMyWorkspace |
718 |
'Workspace on the "MyWorkspace.wsp" file' |
|
719 |
||
1924
9b404092b317
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
720 |
#toolsNewChangesBrowser |
11730 | 721 |
'Open the new changes browser' |
1924
9b404092b317
care for new/old changesBrowser setting.
Claus Gittinger <cg@exept.de>
parents:
1922
diff
changeset
|
722 |
|
8951 | 723 |
#toolsOOM |
11730 | 724 |
'Open the Object Oriented Metrics (OOM) tool' |
8951 | 725 |
|
1759 | 726 |
#toolsOldChangesBrowser |
11730 | 727 |
'Open the old changes browser' |
1759 | 728 |
|
1544 | 729 |
#toolsProjects |
11730 | 730 |
'Open the project tool' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
731 |
|
5017 | 732 |
#toolsSUnit |
12085 | 733 |
'Open the SUnit test runner for executing unit tests' |
5017 | 734 |
|
735 |
#toolsSmaCC |
|
11730 | 736 |
'Open the SmaCC parser generator Tool' |
5017 | 737 |
|
8951 | 738 |
#toolsSystemWorkspace |
10889 | 739 |
'The SystemWorkspace with welcome messages' |
8951 | 740 |
|
1759 | 741 |
#toolsTerminal |
742 |
'Open a terminal view (aka xterm)' |
|
743 |
||
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
744 |
#toolsWorkspace |
12085 | 745 |
'Open a Workspace for evaluating Smalltalk expressions.\The first click opens the customizable MyWorkspace' |
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
746 |
|
1544 | 747 |
#windows |
11730 | 748 |
'Window functions' |
1544 | 749 |
|
750 |
#windowsDeiconifyAll |
|
11730 | 751 |
'Restore all minimized ST/X windows' |
1544 | 752 |
|
2994 | 753 |
#windowsFindAndDestroy |
11730 | 754 |
'Select an ST/X window by name and destroy it' |
2765 | 755 |
|
2758 | 756 |
#windowsFindAndMigrate |
11730 | 757 |
'Select an ST/X window by name and move it to another display' |
2758 | 758 |
|
759 |
#windowsFindAndMigrateBack |
|
11730 | 760 |
'Select an ST/X window by name and move it (back) to this screen' |
2758 | 761 |
|
1544 | 762 |
#windowsFindAndRaise |
11730 | 763 |
'Select an ST/X window by name and raise it' |
1544 | 764 |
|
765 |
#windowsGrapScreen |
|
11730 | 766 |
'Grab the whole screen and save it to a bitmap-file' |
1544 | 767 |
|
768 |
#windowsGrapScreenArea |
|
11730 | 769 |
'Grab an area of the screen and save it to a bitmap-file' |
1544 | 770 |
|
2582 | 771 |
#windowsGrapWidget |
11730 | 772 |
'Grab a single widget and save it to a bitmap-file' |
2462 | 773 |
|
774 |
#windowsGrapWindow |
|
11730 | 775 |
'Grab a window and save it to a bitmap-file' |
1544 | 776 |
|
777 |
#windowsIconifyAll |
|
11730 | 778 |
'Minimize all ST/X windows to icons' |
1544 | 779 |
|
2994 | 780 |
#windowsMigrateAllWindows |
11730 | 781 |
'Migrate all ST/X windows to some other display' |
2994 | 782 |
|
2462 | 783 |
#windowsRedrawAll |
11730 | 784 |
'Redraw all ST/X windows' |
2462 | 785 |
|
1544 | 786 |
#windowsSelectAndDestroy |
11730 | 787 |
'Select a window and destroy it' |
1544 | 788 |
|
789 |
#windowsSelectAndInspect |
|
11730 | 790 |
'Select an ST/X window and open an Inspector on it' |
2758 | 791 |
|
792 |
#windowsSelectAndMigrate |
|
11730 | 793 |
'Select an ST/X window and move it to another display' |
1544 | 794 |
|
795 |
#windowsViewTree |
|
11730 | 796 |
'Select an ST/X window and display its widget hierarchy' |
1544 | 797 |
|
2994 | 798 |
#windowsViewTreeAllScreens |
11730 | 799 |
'Display the widget hierarchies of all ST/X windows (on all displays)' |
2994 | 800 |
|
1544 | 801 |
#windowsViewTreeAllViews |
11730 | 802 |
'Display the widget hierarchies of all ST/X windows (on this display)' |
2758 | 803 |
|
1533
d4b9776714f6
help texts + class history + new settings' stuff removed (no time to complete it)
tz
parents:
1532
diff
changeset
|
804 |
) |
1794 | 805 |
! ! |
806 |
||
1406 | 807 |
!NewLauncher class methodsFor:'interface specs'! |
808 |
||
809 |
windowSpec |
|
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
810 |
^ self windowSpec_old. |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
811 |
"/ ^ self windowSpec_new. |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
812 |
! |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
813 |
|
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
814 |
windowSpec_new |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
815 |
"This resource specification was automatically generated |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
816 |
by the UIPainter of ST/X." |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
817 |
|
14034
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
818 |
|
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
819 |
"Do not manually edit this!! If it is corrupted, |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
820 |
the UIPainter may not be able to read the specification." |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
821 |
|
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
822 |
" |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
823 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpec_new |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
824 |
NewLauncher new openInterface:#windowSpec_new |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
825 |
" |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
826 |
|
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
827 |
<resource: #canvas> |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
828 |
|
12335 | 829 |
^ |
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
830 |
#(FullSpec |
14034
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
831 |
name: #'windowSpec_new' |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
832 |
window: |
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
833 |
(WindowSpec |
14034
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
834 |
label: 'ST/X Launcher' |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
835 |
name: 'ST/X Launcher' |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
836 |
min: (Point 374 44) |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
837 |
bounds: (Rectangle 0 0 374 202) |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
838 |
menu: menu |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
839 |
icon: windowIcon |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
840 |
) |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
841 |
component: |
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
842 |
(SpecCollection |
14034
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
843 |
collection: ( |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
844 |
(MenuPanelSpec |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
845 |
name: 'menuToolbarView' |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
846 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 40 0) |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
847 |
menu: menuToolbar |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
848 |
) |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
849 |
(NoteBookViewSpec |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
850 |
name: 'NoteBook1' |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
851 |
layout: (LayoutFrame 0 0.0 40 0.0 0 1.0 -26 1.0) |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
852 |
level: 0 |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
853 |
model: selectedTabHolder |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
854 |
menu: tabList |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
855 |
direction: bottom |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
856 |
useIndex: true |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
857 |
translateLabel: true |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
858 |
canvas: noteBookCanvasHolder |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
859 |
keepCanvasAlive: true |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
860 |
) |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
861 |
(UISubSpecification |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
862 |
name: 'infoBarSubSpec' |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
863 |
layout: (LayoutFrame 0 0.0 -26 1 -16 1.0 0 1.0) |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
864 |
majorKey: ToolApplicationModel |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
865 |
minorKey: windowSpecForInfoBarWithClock |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
866 |
keepSpaceForOSXResizeHandleH: true |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
867 |
) |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
868 |
) |
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
869 |
|
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
870 |
) |
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
871 |
) |
14034
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
872 |
|
96b0af8d70a6
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13931
diff
changeset
|
873 |
"Modified (format): / 24-02-2014 / 15:01:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
874 |
! |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
875 |
|
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
876 |
windowSpec_old |
1527 | 877 |
"This resource specification was automatically generated |
878 |
by the UIPainter of ST/X." |
|
879 |
||
880 |
"Do not manually edit this!! If it is corrupted, |
|
881 |
the UIPainter may not be able to read the specification." |
|
1406 | 882 |
|
883 |
" |
|
10845 | 884 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpec_old |
885 |
NewLauncher new openInterface:#windowSpec_old |
|
1406 | 886 |
" |
887 |
||
888 |
<resource: #canvas> |
|
889 |
||
13648 | 890 |
^ |
891 |
#(FullSpec |
|
892 |
name: #'windowSpec_old' |
|
893 |
window: |
|
894 |
(WindowSpec |
|
895 |
label: 'ST/X Launcher' |
|
896 |
name: 'ST/X Launcher' |
|
897 |
min: (Point 300 300) |
|
898 |
bounds: (Rectangle 0 0 540 300) |
|
899 |
menu: menu |
|
900 |
icon: windowIcon |
|
901 |
) |
|
902 |
component: |
|
903 |
(SpecCollection |
|
904 |
collection: ( |
|
905 |
(MenuPanelSpec |
|
906 |
name: 'menuToolbarView' |
|
907 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 40 0) |
|
908 |
menu: menuToolbar |
|
909 |
) |
|
910 |
(ViewSpec |
|
911 |
name: 'Box1' |
|
912 |
layout: (LayoutFrame 0 0.0 40 0.0 0 1.0 -26 1.0) |
|
913 |
component: |
|
914 |
(SpecCollection |
|
915 |
collection: ( |
|
916 |
(WorkspaceSpec |
|
917 |
name: 'transcriptView' |
|
918 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
15891 | 919 |
level: #'launcher.editorLevel' |
13648 | 920 |
hasHorizontalScrollBar: true |
921 |
hasVerticalScrollBar: true |
|
922 |
miniScrollerHorizontal: true |
|
923 |
hasKeyboardFocusInitially: false |
|
924 |
) |
|
925 |
) |
|
926 |
||
927 |
) |
|
928 |
) |
|
929 |
(UISubSpecification |
|
930 |
name: 'infoBarSubSpec' |
|
931 |
layout: (LayoutFrame 0 0.0 -26 1 -16 1.0 0 1.0) |
|
15891 | 932 |
level: #'infobar.level' |
13648 | 933 |
majorKey: ToolApplicationModel |
934 |
minorKey: windowSpecForInfoBarWithClock |
|
935 |
keepSpaceForOSXResizeHandleH: true |
|
936 |
) |
|
937 |
) |
|
938 |
||
939 |
) |
|
940 |
) |
|
3036 | 941 |
! |
942 |
||
943 |
windowSpec_pda |
|
944 |
"This resource specification was automatically generated |
|
945 |
by the UIPainter of ST/X." |
|
946 |
||
947 |
"Do not manually edit this!! If it is corrupted, |
|
948 |
the UIPainter may not be able to read the specification." |
|
949 |
||
950 |
" |
|
951 |
UIPainter new openOnClass:NewLauncher andSelector:#windowSpec_pda |
|
952 |
NewLauncher new openInterface:#windowSpec_pda |
|
953 |
" |
|
954 |
||
955 |
<resource: #canvas> |
|
956 |
||
12335 | 957 |
^ |
5467 | 958 |
#(FullSpec |
12335 | 959 |
name: #'windowSpec_pda' |
960 |
window: |
|
5467 | 961 |
(WindowSpec |
12335 | 962 |
label: 'Launcher' |
963 |
name: 'Launcher' |
|
964 |
min: (Point 100 20) |
|
965 |
max: (Point 240 300) |
|
966 |
bounds: (Rectangle 13 23 197 224) |
|
967 |
menu: #'menu_pda' |
|
968 |
icon: windowIcon |
|
969 |
) |
|
970 |
component: |
|
5467 | 971 |
(SpecCollection |
12335 | 972 |
collection: ( |
973 |
(MenuPanelSpec |
|
974 |
name: 'menuToolbarView' |
|
975 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 38 0) |
|
976 |
menu: #'menuToolbar_pda' |
|
977 |
) |
|
978 |
(WorkspaceSpec |
|
979 |
name: 'transcriptView' |
|
980 |
layout: (LayoutFrame 0 0.0 40 0.0 0 1.0 -26 1.0) |
|
981 |
hasHorizontalScrollBar: true |
|
982 |
hasVerticalScrollBar: true |
|
983 |
miniScrollerHorizontal: true |
|
984 |
miniScrollerVertical: false |
|
985 |
) |
|
986 |
(UISubSpecification |
|
987 |
name: 'infoBarSubSpec' |
|
988 |
layout: (LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
989 |
majorKey: ToolApplicationModel |
|
990 |
minorKey: windowSpecForInfoBarWithClock |
|
991 |
) |
|
992 |
) |
|
993 |
||
994 |
) |
|
3036 | 995 |
) |
1406 | 996 |
! ! |
997 |
||
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
998 |
!NewLauncher class methodsFor:'menu configuration'! |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
999 |
|
5628
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
1000 |
addMenuItem:newItem from:anApplicationWhichProvidesResourcesOrNil in:where position:positionSpecOrNilArg space:space |
2734 | 1001 |
|positionSpecOrNil itemNameOrNil before launcherApp| |
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1002 |
|
13774 | 1003 |
(Transcript isView |
1004 |
and:[(launcherApp := Transcript application) isKindOf:self]) ifTrue:[ |
|
13679 | 1005 |
"/ add to instance |
1006 |
launcherApp addMenuItem:newItem from:anApplicationWhichProvidesResourcesOrNil in:where position:positionSpecOrNilArg space:space. |
|
1007 |
^ self |
|
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1008 |
]. |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1009 |
|
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1010 |
positionSpecOrNil := positionSpecOrNilArg. |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1011 |
positionSpecOrNil isArray ifTrue:[ |
13679 | 1012 |
positionSpecOrNil size > 1 ifTrue:[ |
1013 |
itemNameOrNil := positionSpecOrNil at:2. |
|
1014 |
]. |
|
1015 |
positionSpecOrNil := positionSpecOrNil at:1. |
|
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1016 |
]. |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1017 |
before := (positionSpecOrNil == #first) or:[positionSpecOrNil == #before]. |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1018 |
|
13774 | 1019 |
(where isNil or: [where = #toolbar]) ifTrue:[ |
13679 | 1020 |
UserAddedToolBarItems isNil ifTrue: [UserAddedToolBarItems := Dictionary new]. |
1021 |
(UserAddedToolBarItems contains:[:info | info item nameKey = newItem nameKey]) |
|
1022 |
ifTrue:[ |
|
1023 |
'NewLauncher class: menu item already present:' infoPrint. newItem nameKey infoPrintCR. |
|
1024 |
] |
|
1025 |
ifFalse:[ |
|
1026 |
UserAddedToolBarItems |
|
1027 |
at:newItem put:(AddedToolInfo new |
|
1028 |
item:newItem; |
|
1029 |
resourceProvider:anApplicationWhichProvidesResourcesOrNil; |
|
1030 |
where:where; |
|
1031 |
positionSpec:positionSpecOrNilArg; |
|
1032 |
space:space; |
|
1033 |
before:before; |
|
1034 |
menuWithNewItem:nil; |
|
1035 |
yourself) |
|
1036 |
] |
|
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1037 |
]. |
13774 | 1038 |
(where isNil or:[where startsWith:#menu]) ifTrue:[ |
13679 | 1039 |
UserAddedMenuItems isNil ifTrue: [UserAddedMenuItems := Dictionary new]. |
1040 |
(UserAddedMenuItems contains:[:info | info item nameKey = newItem nameKey]) |
|
1041 |
ifTrue:[ |
|
1042 |
Transcript show:'NewLauncher class: menu item already present:'; showCR:newItem nameKey. |
|
1043 |
] |
|
1044 |
ifFalse:[ |
|
1045 |
UserAddedMenuItems |
|
1046 |
at:newItem put:(AddedToolInfo new |
|
1047 |
item:newItem; |
|
1048 |
resourceProvider:anApplicationWhichProvidesResourcesOrNil; |
|
1049 |
where:where; |
|
1050 |
positionSpec:positionSpecOrNilArg; |
|
1051 |
space:space; |
|
1052 |
before:before; |
|
1053 |
menuWithNewItem:nil; |
|
1054 |
yourself) |
|
1055 |
] |
|
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1056 |
] |
10114
c02904895717
changed: #addMenuItem:from:in:position:space:
Claus Gittinger <cg@exept.de>
parents:
10032
diff
changeset
|
1057 |
|
10561
dc889bcb09da
changed: #addMenuItem:from:in:position:space:
Claus Gittinger <cg@exept.de>
parents:
10517
diff
changeset
|
1058 |
"Modified: / 09-08-2011 / 22:39:44 / cg" |
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1059 |
! |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1060 |
|
5628
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
1061 |
addMenuItem:newItem in:where position:positionSpecOrNilArg space:space |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
1062 |
^ self |
12335 | 1063 |
addMenuItem:newItem |
1064 |
from:nil |
|
1065 |
in:where |
|
1066 |
position:positionSpecOrNilArg |
|
1067 |
space:space |
|
5628
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
1068 |
! |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
1069 |
|
13271 | 1070 |
addToolMenuEntryNamed:aString action:aBlock |
1071 |
|menuItem| |
|
1072 |
||
1073 |
menuItem := MenuItem new |
|
1074 |
value: aBlock; |
|
1075 |
isButton: false; |
|
1076 |
translateLabel: true; |
|
1077 |
label:aString icon:nil; |
|
1078 |
nameKey: aString; |
|
1079 |
activeHelpKey: aString; |
|
1080 |
submenuChannel: nil; |
|
1081 |
showBusyCursorWhilePerforming:true. |
|
1082 |
||
1083 |
self |
|
1084 |
addMenuItem:menuItem |
|
1085 |
from:self |
|
1086 |
in:'menu.tools' |
|
1087 |
position:#(before workspace) |
|
1088 |
space:true. |
|
1089 |
||
1090 |
" |
|
1091 |
NewLauncher addToolMenuEntryNamed:'My Workspace' action:[Workspace open] |
|
1092 |
NewLauncher addToolMenuEntryNamed:'Bla' action:[self halt] |
|
1093 |
" |
|
1094 |
! |
|
1095 |
||
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1096 |
removeAllUserAddedTools |
3751 | 1097 |
UserAddedToolBarItems := nil. |
1098 |
UserAddedMenuItems := nil. |
|
3932 | 1099 |
|
1100 |
" |
|
1101 |
self removeAllUserAddedTools |
|
1102 |
" |
|
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1103 |
! |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1104 |
|
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1105 |
removeUserTool:toolNameOrMenuItem |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1106 |
"removes a menu item labeled toolName |
12335 | 1107 |
This can be invoked by a classes #deinitialize method, |
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1108 |
to remove its item from the toolbar or menu. |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1109 |
" |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1110 |
|
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1111 |
self removeUserTool:toolNameOrMenuItem from:UserAddedToolBarItems. |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1112 |
self removeUserTool:toolNameOrMenuItem from:UserAddedMenuItems. |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1113 |
|
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1114 |
" |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1115 |
Transcript topView application |
12335 | 1116 |
removeUserTool:'Bar' |
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1117 |
" |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1118 |
" |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1119 |
Transcript topView application |
12335 | 1120 |
removeUserTool:'Foo' |
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1121 |
" |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1122 |
|
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1123 |
|
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1124 |
! |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1125 |
|
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1126 |
removeUserTool:toolNameOrMenuItem from:addedToolsCollection |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1127 |
"removes a menu item labeled toolName |
12335 | 1128 |
This can be invoked by a classes #deinitialize method, |
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1129 |
to remove its item from the toolbar or menu. |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1130 |
" |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1131 |
|
3626 | 1132 |
|info space menuIndex whichMenu before menuItemToRemove| |
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1133 |
|
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1134 |
addedToolsCollection size == 0 ifTrue: [^nil]. |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1135 |
|
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1136 |
[true] whileTrue:[ |
12335 | 1137 |
(toolNameOrMenuItem isString or:[toolNameOrMenuItem isSymbol]) ifTrue:[ |
1138 |
info := addedToolsCollection detect:[:eachInfo | |eachItem| |
|
1139 |
eachItem := eachInfo item. |
|
1140 |
(eachItem nameKey notNil and:[ toolNameOrMenuItem = eachItem nameKey]) |
|
1141 |
or:[ (eachItem activeHelpKey notNil and:[ toolNameOrMenuItem = eachItem activeHelpKey]) |
|
1142 |
or:[ (eachItem label notNil and:[ toolNameOrMenuItem = eachItem label])]] |
|
1143 |
] |
|
1144 |
ifNone:nil. |
|
1145 |
] ifFalse:[ |
|
1146 |
info := addedToolsCollection detect:[:eachInfo | |eachItem| eachItem := eachInfo item. (eachItem == toolNameOrMenuItem)] ifNone:nil. |
|
1147 |
]. |
|
1148 |
info isNil ifTrue:[^ self]. |
|
1149 |
||
1150 |
space := info space. |
|
1151 |
whichMenu := info menuWithNewItem. |
|
1152 |
menuItemToRemove := info item. |
|
1153 |
before := info before. |
|
1154 |
||
1155 |
whichMenu notNil ifTrue:[ |
|
1156 |
menuIndex := whichMenu findFirst:[:item | |
|
1157 |
(item nameKey notNil and:[item nameKey == menuItemToRemove nameKey]) |
|
1158 |
or:[ (item activeHelpKey notNil and:[item activeHelpKey == menuItemToRemove activeHelpKey]) |
|
1159 |
or:[ (item label notNil and:[item label = menuItemToRemove label]) ]] |
|
1160 |
]. |
|
1161 |
menuIndex ~~ 0 ifTrue:[ |
|
1162 |
whichMenu remove: menuIndex. |
|
1163 |
space ifTrue: [ |
|
1164 |
whichMenu remove:(menuIndex - (before ifTrue:0 ifFalse:1)) |
|
1165 |
]. |
|
1166 |
]. |
|
1167 |
]. |
|
1168 |
addedToolsCollection removeKey:menuItemToRemove. |
|
1169 |
^ self |
|
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1170 |
]. |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1171 |
|
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1172 |
|
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1173 |
" |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1174 |
Transcript topView application |
12335 | 1175 |
removeUserTool:'Bar' |
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1176 |
" |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1177 |
" |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1178 |
Transcript topView application |
12335 | 1179 |
removeUserTool:'Foo' |
2722
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1180 |
" |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1181 |
! ! |
8c77412ea421
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2721
diff
changeset
|
1182 |
|
1441 | 1183 |
!NewLauncher class methodsFor:'menu specs'! |
1184 |
||
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1185 |
aboutMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1186 |
"This resource specification was automatically generated |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1187 |
by the MenuEditor of ST/X." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1188 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1189 |
"Do not manually edit this!! If it is corrupted, |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1190 |
the MenuEditor may not be able to read the specification." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1191 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1192 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1193 |
MenuEditor new openOnClass:NewLauncher andSelector:#aboutMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1194 |
(Menu new fromLiteralArrayEncoding:(NewLauncher aboutMenu)) startUp |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1195 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1196 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1197 |
<resource: #menu> |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1198 |
|
12335 | 1199 |
^ |
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1200 |
#(#Menu |
12335 | 1201 |
#( |
1202 |
#(#MenuItem |
|
1203 |
#label: 'About Smalltalk/X...' |
|
1204 |
#translateLabel: true |
|
1205 |
#value: #openAbout |
|
1206 |
#activeHelpKey: #aboutSTX |
|
1207 |
) |
|
1208 |
#(#MenuItem |
|
1209 |
#label: '-' |
|
1210 |
) |
|
1211 |
#(#MenuItem |
|
1212 |
#label: 'Licence Conditions' |
|
1213 |
#translateLabel: true |
|
1214 |
#value: #openLicenseConditions |
|
1215 |
#activeHelpKey: #aboutLicenseConditions |
|
1216 |
) |
|
1217 |
) |
|
1218 |
nil |
|
1219 |
nil |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1220 |
) |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1221 |
! |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1222 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1223 |
classesMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1224 |
"This resource specification was automatically generated |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1225 |
by the MenuEditor of ST/X." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1226 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1227 |
"Do not manually edit this!! If it is corrupted, |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1228 |
the MenuEditor may not be able to read the specification." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1229 |
|
10847
aae16bffdd78
added: #enableGlobalCoverageAnalysis
Claus Gittinger <cg@exept.de>
parents:
10845
diff
changeset
|
1230 |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1231 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1232 |
MenuEditor new openOnClass:NewLauncher andSelector:#classesMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1233 |
(Menu new fromLiteralArrayEncoding:(NewLauncher classesMenu)) startUp |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1234 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1235 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1236 |
<resource: #menu> |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1237 |
|
13027 | 1238 |
^ |
7453 | 1239 |
#(Menu |
13027 | 1240 |
( |
1241 |
(MenuItem |
|
1242 |
activeHelpKey: classesSystemBrowser |
|
1243 |
label: 'System Browser' |
|
1244 |
itemValue: openApplication: |
|
1245 |
nameKey: systemBrowser |
|
1246 |
submenuChannel: menuClassHistory |
|
1247 |
labelImage: (ResourceRetriever ToolbarIconLibrary startSystemBrowserIcon 'System Browser') |
|
1248 |
argument: 'Tools::NewSystemBrowser' |
|
1249 |
showBusyCursorWhilePerforming: true |
|
1250 |
) |
|
1251 |
(MenuItem |
|
15532 | 1252 |
label: '-' |
1253 |
) |
|
1254 |
(MenuItem |
|
13027 | 1255 |
activeHelpKey: findClassAndBrowse |
1256 |
label: 'Find Class...' |
|
1257 |
itemValue: findClassAndBrowse |
|
14518 | 1258 |
nameKey: findClassAndBrowse |
13027 | 1259 |
showBusyCursorWhilePerforming: true |
1260 |
) |
|
1261 |
(MenuItem |
|
15532 | 1262 |
activeHelpKey: classesImplementors |
1263 |
label: 'Implementors Of...' |
|
1264 |
itemValue: browseImplementors |
|
1265 |
showBusyCursorWhilePerforming: true |
|
1266 |
) |
|
1267 |
(MenuItem |
|
1268 |
activeHelpKey: classesSenders |
|
1269 |
label: 'Senders Of...' |
|
1270 |
itemValue: browseSenders |
|
1271 |
showBusyCursorWhilePerforming: true |
|
1272 |
) |
|
1273 |
(MenuItem |
|
1274 |
activeHelpKey: classesStringSearch |
|
1275 |
label: 'With String...' |
|
1276 |
itemValue: browseMethodsWithString |
|
1277 |
isVisible: false |
|
1278 |
showBusyCursorWhilePerforming: true |
|
1279 |
) |
|
1280 |
(MenuItem |
|
1281 |
activeHelpKey: classesResourceMethods |
|
1282 |
label: 'Find Resource Methods...' |
|
1283 |
itemValue: browseResources |
|
1284 |
) |
|
1285 |
(MenuItem |
|
13027 | 1286 |
label: '-' |
1287 |
) |
|
1288 |
(MenuItem |
|
1289 |
activeHelpKey: startChangeSetBrowser |
|
1290 |
label: 'Recent Changes' |
|
1291 |
itemValue: startChangeSetBrowser |
|
1292 |
nameKey: startChangeSetBrowser |
|
1293 |
showBusyCursorWhilePerforming: true |
|
1294 |
) |
|
1295 |
(MenuItem |
|
1296 |
activeHelpKey: classesClassBrowserOnChanges |
|
1297 |
label: 'Changed Classes' |
|
1298 |
itemValue: startClassBrowserOnChanges |
|
1299 |
nameKey: classBrowserOnChanges |
|
1300 |
showBusyCursorWhilePerforming: true |
|
1301 |
) |
|
1302 |
(MenuItem |
|
1303 |
activeHelpKey: classBrowserOnChangedMethods |
|
1304 |
label: 'Changed Methods' |
|
1305 |
itemValue: startClassBrowserOnChangedMethods |
|
1306 |
nameKey: classBrowserOnChangedMethods |
|
1307 |
showBusyCursorWhilePerforming: true |
|
1308 |
) |
|
1309 |
(MenuItem |
|
1310 |
activeHelpKey: startSmallTeamChangeSetBrowser |
|
1311 |
label: 'Recent Changes on SmallTeam Host' |
|
1312 |
isVisible: smallTeamAvailable |
|
1313 |
submenuChannel: startBrowserOnSmallTeamChangesMenu |
|
1314 |
showBusyCursorWhilePerforming: true |
|
1315 |
) |
|
1316 |
(MenuItem |
|
1317 |
label: '-' |
|
1318 |
) |
|
1319 |
(MenuItem |
|
1320 |
label: 'Special Browsers' |
|
1321 |
submenuChannel: classesSpecialBrowserMenu |
|
1322 |
) |
|
1323 |
(MenuItem |
|
1324 |
activeHelpKey: classesClassTreeBrowser |
|
1325 |
label: 'Class Tree' |
|
1326 |
itemValue: openApplication: |
|
1327 |
argument: 'ClassTreeGraphView' |
|
1328 |
showBusyCursorWhilePerforming: true |
|
1329 |
) |
|
1330 |
(MenuItem |
|
1331 |
label: '-' |
|
1332 |
) |
|
1333 |
(MenuItem |
|
13931 | 1334 |
label: 'Method Finder (Semantic Search)' |
13027 | 1335 |
itemValue: openMethodFinder |
15532 | 1336 |
labelImage: (ResourceRetriever ToolbarIconLibrary methodFinder24x24Icon 'Method Finder (Semantic Search)') |
13027 | 1337 |
) |
1338 |
(MenuItem |
|
1339 |
label: '-' |
|
1340 |
) |
|
1341 |
(MenuItem |
|
1342 |
activeHelpKey: classesSpecial |
|
1343 |
label: 'Special' |
|
1344 |
nameKey: special |
|
1345 |
submenu: |
|
1346 |
(Menu |
|
1347 |
( |
|
1348 |
(MenuItem |
|
1349 |
activeHelpKey: classesSpecialReferencesToUnboundGlobals |
|
1350 |
label: 'References to Unbound Globals' |
|
1351 |
itemValue: browseUnboundGlobals |
|
1352 |
) |
|
1353 |
(MenuItem |
|
1354 |
activeHelpKey: classesSpecialReferencesToUndeclared |
|
1355 |
label: 'References to Undeclared' |
|
1356 |
itemValue: browseUndeclared |
|
1357 |
) |
|
1358 |
(MenuItem |
|
1359 |
activeHelpKey: classesSpecialReferencesToUndeclared |
|
1360 |
label: 'Clear Undeclared Variables' |
|
1361 |
itemValue: clearUndeclaredVariables |
|
1362 |
) |
|
1363 |
) |
|
1364 |
nil |
|
1365 |
nil |
|
1366 |
) |
|
1367 |
) |
|
1368 |
) |
|
1369 |
nil |
|
1370 |
nil |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1371 |
) |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1372 |
! |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1373 |
|
9329
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1374 |
classesSpecialBrowserMenu |
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1375 |
"This resource specification was automatically generated |
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1376 |
by the MenuEditor of ST/X." |
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1377 |
|
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1378 |
"Do not manually edit this!! If it is corrupted, |
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1379 |
the MenuEditor may not be able to read the specification." |
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1380 |
|
11493 | 1381 |
|
9329
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1382 |
" |
11493 | 1383 |
MenuEditor new openOnClass:NewLauncher andSelector:#classesSpecialBrowserMenu |
1384 |
(Menu new fromLiteralArrayEncoding:(NewLauncher classesSpecialBrowserMenu)) startUp |
|
9329
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1385 |
" |
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1386 |
|
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1387 |
<resource: #menu> |
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1388 |
|
12335 | 1389 |
^ |
9329
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1390 |
#(Menu |
12335 | 1391 |
( |
1392 |
(MenuItem |
|
1393 |
activeHelpKey: classesClassBrowser |
|
1394 |
label: 'Class Browser On...' |
|
1395 |
itemValue: startClassBrowser |
|
1396 |
nameKey: classBrowserOn |
|
1397 |
translateLabel: true |
|
1398 |
showBusyCursorWhilePerforming: true |
|
1399 |
) |
|
1400 |
(MenuItem |
|
1401 |
activeHelpKey: classesFullClassBrowser |
|
1402 |
label: 'Full Class Browser On...' |
|
1403 |
itemValue: startFullClassBrowser |
|
1404 |
translateLabel: true |
|
1405 |
showBusyCursorWhilePerforming: true |
|
1406 |
) |
|
1407 |
(MenuItem |
|
1408 |
activeHelpKey: classesClassHierarchyBrowser |
|
1409 |
label: 'Class Hierarchy Browser On...' |
|
1410 |
itemValue: startClassHierarchyBrowser |
|
1411 |
translateLabel: true |
|
1412 |
showBusyCursorWhilePerforming: true |
|
1413 |
) |
|
1414 |
(MenuItem |
|
1415 |
label: '-' |
|
1416 |
) |
|
1417 |
(MenuItem |
|
1418 |
label: 'Snapshot Image Browser...' |
|
1419 |
itemValue: startSnapshotImageBrowser |
|
1420 |
translateLabel: true |
|
1421 |
showBusyCursorWhilePerforming: true |
|
1422 |
) |
|
1423 |
(MenuItem |
|
1424 |
enabled: remoteImageBrowserAvailable |
|
1425 |
label: 'Remote Image Browser...' |
|
1426 |
itemValue: startRemoteImageBrowser |
|
1427 |
translateLabel: true |
|
1428 |
showBusyCursorWhilePerforming: true |
|
1429 |
) |
|
1430 |
) |
|
1431 |
nil |
|
1432 |
nil |
|
11493 | 1433 |
) |
9329
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1434 |
! |
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
1435 |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1436 |
demosMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1437 |
"This resource specification was automatically generated |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1438 |
by the MenuEditor of ST/X." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1439 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1440 |
"Do not manually edit this!! If it is corrupted, |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1441 |
the MenuEditor may not be able to read the specification." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1442 |
|
10959 | 1443 |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1444 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1445 |
MenuEditor new openOnClass:NewLauncher andSelector:#demosMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1446 |
(Menu new fromLiteralArrayEncoding:(NewLauncher demosMenu)) startUp |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1447 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1448 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1449 |
<resource: #menu> |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1450 |
|
12335 | 1451 |
^ |
8383 | 1452 |
#(Menu |
12335 | 1453 |
( |
1454 |
(MenuItem |
|
1455 |
activeHelpKey: demosGoodies |
|
1456 |
label: 'Goodies' |
|
1457 |
translateLabel: true |
|
1458 |
submenu: |
|
1459 |
(Menu |
|
1460 |
( |
|
1461 |
(MenuItem |
|
1462 |
activeHelpKey: demosClock |
|
1463 |
label: 'Clock' |
|
1464 |
itemValue: openDemo: |
|
1465 |
translateLabel: true |
|
1466 |
argument: 'Clock' |
|
1467 |
) |
|
1468 |
(MenuItem |
|
1469 |
activeHelpKey: demosDigitalClock |
|
1470 |
label: 'Digital Clock' |
|
1471 |
itemValue: openDemo: |
|
1472 |
translateLabel: true |
|
1473 |
argument: 'DigitalClockView' |
|
1474 |
) |
|
1475 |
(MenuItem |
|
1476 |
activeHelpKey: demosDigitalClock |
|
1477 |
label: 'QlockTwoWatch' |
|
1478 |
itemValue: openDemo: |
|
1479 |
translateLabel: true |
|
1480 |
argument: 'QlockTwoWatch' |
|
1481 |
) |
|
1482 |
(MenuItem |
|
1483 |
activeHelpKey: demosBabelFish |
|
1484 |
label: 'BabelFish' |
|
1485 |
itemValue: openDemo: |
|
1486 |
translateLabel: true |
|
1487 |
argument: 'SOAP::TranslationServiceApplication' |
|
1488 |
) |
|
1489 |
) |
|
1490 |
nil |
|
1491 |
nil |
|
1492 |
) |
|
1493 |
) |
|
1494 |
(MenuItem |
|
1495 |
activeHelpKey: demosGames |
|
1496 |
label: 'Games' |
|
1497 |
translateLabel: true |
|
1498 |
submenu: |
|
1499 |
(Menu |
|
1500 |
( |
|
1501 |
(MenuItem |
|
1502 |
activeHelpKey: gamesTetris |
|
1503 |
label: 'Blocks (Tetris look alike)' |
|
1504 |
itemValue: openDemo: |
|
1505 |
translateLabel: true |
|
1506 |
argument: 'Games::Tetris' |
|
1507 |
) |
|
1508 |
(MenuItem |
|
1509 |
activeHelpKey: gamesTicTacToe |
|
1510 |
label: 'Tic Tac Toe' |
|
1511 |
itemValue: openDemo: |
|
1512 |
translateLabel: true |
|
1513 |
argument: 'Games::TicTacToeGame' |
|
1514 |
) |
|
1515 |
(MenuItem |
|
1516 |
activeHelpKey: gamesTicTacToe2 |
|
1517 |
label: 'Tic Tac Toe (2 Players)' |
|
1518 |
itemValue: startTicTacToe2 |
|
1519 |
translateLabel: true |
|
1520 |
) |
|
1521 |
(MenuItem |
|
1522 |
activeHelpKey: gamesPingPong |
|
1523 |
label: 'PingPong' |
|
1524 |
itemValue: openDemo: |
|
1525 |
translateLabel: true |
|
1526 |
argument: 'Games::PingPongGame' |
|
1527 |
) |
|
1528 |
(MenuItem |
|
1529 |
activeHelpKey: gamesPingPong2 |
|
1530 |
label: 'PingPong - (2 Players)' |
|
1531 |
itemValue: startPingPong2 |
|
1532 |
translateLabel: true |
|
1533 |
) |
|
1534 |
(MenuItem |
|
1535 |
activeHelpKey: gamesReversi |
|
1536 |
label: 'Reversi (Java)' |
|
1537 |
itemValue: startReversi |
|
1538 |
translateLabel: true |
|
1539 |
) |
|
1540 |
(MenuItem |
|
1541 |
label: 'Towers of Hanoi (Prolog)' |
|
1542 |
itemValue: openDemo: |
|
1543 |
translateLabel: true |
|
1544 |
argument: 'Prolog::TowersOfHanoiApplication' |
|
1545 |
) |
|
1546 |
(MenuItem |
|
1547 |
label: 'MasterMind (Prolog)' |
|
1548 |
itemValue: openDemo: |
|
1549 |
translateLabel: true |
|
1550 |
argument: 'Prolog::MasterMind' |
|
1551 |
) |
|
1552 |
) |
|
1553 |
nil |
|
1554 |
nil |
|
1555 |
) |
|
1556 |
) |
|
1557 |
(MenuItem |
|
1558 |
activeHelpKey: demosGeometric |
|
1559 |
label: 'Geometric Designs' |
|
1560 |
translateLabel: true |
|
1561 |
submenu: |
|
1562 |
(Menu |
|
1563 |
( |
|
1564 |
(MenuItem |
|
1565 |
activeHelpKey: demosPen |
|
1566 |
label: 'Pen Demo' |
|
1567 |
itemValue: openDemo: |
|
1568 |
translateLabel: true |
|
1569 |
argument: 'PenDemo' |
|
1570 |
) |
|
1571 |
(MenuItem |
|
1572 |
activeHelpKey: demosCommander |
|
1573 |
label: 'Commander Demo' |
|
1574 |
itemValue: openDemo: |
|
1575 |
translateLabel: true |
|
1576 |
argument: 'CommanderDemo' |
|
1577 |
) |
|
1578 |
(MenuItem |
|
1579 |
label: '-' |
|
1580 |
) |
|
1581 |
(MenuItem |
|
1582 |
activeHelpKey: demosMandel |
|
1583 |
label: 'Mandel' |
|
1584 |
itemValue: openMandelbrotDemo |
|
1585 |
translateLabel: true |
|
1586 |
) |
|
1587 |
(MenuItem |
|
1588 |
activeHelpKey: demosFractalPlants |
|
1589 |
label: 'Fractal Plants Demo' |
|
1590 |
itemValue: openDemo: |
|
1591 |
translateLabel: true |
|
1592 |
argument: 'FractalPlantsDemo' |
|
1593 |
) |
|
1594 |
(MenuItem |
|
1595 |
activeHelpKey: demosFractalPatterns |
|
1596 |
label: 'Fractal Patterns Demo' |
|
1597 |
itemValue: openDemo: |
|
1598 |
translateLabel: true |
|
1599 |
argument: 'FractalPatternsDemo' |
|
1600 |
) |
|
1601 |
(MenuItem |
|
1602 |
activeHelpKey: demosLSystems |
|
1603 |
label: 'Lindenmayer Patterns Demo' |
|
1604 |
itemValue: openDemo: |
|
1605 |
translateLabel: true |
|
1606 |
argument: 'LSystemsDemo' |
|
1607 |
) |
|
1608 |
(MenuItem |
|
1609 |
activeHelpKey: demosMoreFractalPatterns |
|
1610 |
label: 'More Fractal Patterns Demo' |
|
1611 |
itemValue: openDemo: |
|
1612 |
translateLabel: true |
|
1613 |
argument: 'ArmchairUniverseDemo' |
|
1614 |
) |
|
1615 |
(MenuItem |
|
1616 |
label: '-' |
|
1617 |
) |
|
1618 |
(MenuItem |
|
1619 |
label: 'Jan''s FractalApplication' |
|
1620 |
itemValue: openDemo: |
|
1621 |
translateLabel: true |
|
1622 |
argument: 'Demos::FractalApplication' |
|
1623 |
) |
|
1624 |
(MenuItem |
|
1625 |
label: 'Jan''s Superformula' |
|
1626 |
itemValue: openDemo: |
|
1627 |
translateLabel: true |
|
1628 |
argument: 'Demos::SuperFormulaApplication' |
|
1629 |
) |
|
1630 |
) |
|
1631 |
nil |
|
1632 |
nil |
|
1633 |
) |
|
1634 |
) |
|
1635 |
(MenuItem |
|
1636 |
activeHelpKey: demosAnimations |
|
1637 |
label: 'Simple Animations' |
|
1638 |
translateLabel: true |
|
1639 |
submenu: |
|
1640 |
(Menu |
|
1641 |
( |
|
1642 |
(MenuItem |
|
1643 |
activeHelpKey: demosWalkingMan |
|
1644 |
label: 'Walking Man' |
|
1645 |
itemValue: openDemo: |
|
1646 |
translateLabel: true |
|
1647 |
argument: 'Animation' |
|
1648 |
) |
|
1649 |
(MenuItem |
|
1650 |
activeHelpKey: demosWalkingMan |
|
1651 |
label: 'Walking Girl' |
|
1652 |
itemValue: openDemo: |
|
1653 |
translateLabel: true |
|
1654 |
argument: 'WalkingGirl' |
|
1655 |
) |
|
1656 |
(MenuItem |
|
1657 |
activeHelpKey: demosGlobe |
|
1658 |
label: 'Globe Demo' |
|
1659 |
itemValue: openDemo: |
|
1660 |
translateLabel: true |
|
1661 |
argument: 'GlobeDemo' |
|
1662 |
) |
|
1663 |
(MenuItem |
|
1664 |
activeHelpKey: chickenFun |
|
1665 |
label: 'Chicken Fun' |
|
1666 |
itemValue: startStopDemo: |
|
1667 |
translateLabel: true |
|
1668 |
indication: chickenFunIsRunning |
|
1669 |
argument: 'ChickenFun' |
|
1670 |
) |
|
1671 |
(MenuItem |
|
1672 |
activeHelpKey: chickenFun |
|
1673 |
label: 'Chicks Eyes' |
|
1674 |
itemValue: openDemo: |
|
1675 |
translateLabel: true |
|
1676 |
argument: 'ChickenEyes' |
|
1677 |
) |
|
1678 |
) |
|
1679 |
nil |
|
1680 |
nil |
|
1681 |
) |
|
1682 |
) |
|
1683 |
(MenuItem |
|
1684 |
activeHelpKey: demos3D |
|
1685 |
label: '3D GL Graphics' |
|
1686 |
translateLabel: true |
|
1687 |
isVisible: displaySupportsGLDrawing |
|
1688 |
submenu: |
|
1689 |
(Menu |
|
1690 |
( |
|
1691 |
(MenuItem |
|
1692 |
activeHelpKey: demos3Dplane |
|
1693 |
label: 'Plane' |
|
1694 |
itemValue: openDemo: |
|
1695 |
translateLabel: true |
|
1696 |
argument: 'GLPlaneDemoView2' |
|
1697 |
) |
|
1698 |
(MenuItem |
|
1699 |
activeHelpKey: demos3Dtetra |
|
1700 |
label: 'Tetra' |
|
1701 |
itemValue: openDemo: |
|
1702 |
translateLabel: true |
|
1703 |
argument: 'GLTetraDemoView' |
|
1704 |
) |
|
1705 |
(MenuItem |
|
1706 |
activeHelpKey: demos3DcubeWire |
|
1707 |
label: 'Cube (Wireframe)' |
|
1708 |
itemValue: openDemo: |
|
1709 |
translateLabel: true |
|
1710 |
argument: 'GLWireCubeDemoView' |
|
1711 |
) |
|
1712 |
(MenuItem |
|
1713 |
activeHelpKey: demos3DcubeSolid |
|
1714 |
label: 'Cube (Solid)' |
|
1715 |
itemValue: openDemo: |
|
1716 |
translateLabel: true |
|
1717 |
argument: 'GLCubeDemoView' |
|
1718 |
) |
|
1719 |
(MenuItem |
|
1720 |
activeHelpKey: demos3Dsphere |
|
1721 |
label: 'Sphere (Wireframe)' |
|
1722 |
itemValue: openDemo: |
|
1723 |
translateLabel: true |
|
1724 |
argument: 'GLWireSphereDemoView' |
|
1725 |
) |
|
1726 |
(MenuItem |
|
1727 |
activeHelpKey: demos3Ddoughnut |
|
1728 |
label: 'Doughnut (Wireframe)' |
|
1729 |
itemValue: openDemo: |
|
1730 |
translateLabel: true |
|
1731 |
argument: 'GLDoughnutDemoView' |
|
1732 |
) |
|
1733 |
(MenuItem |
|
1734 |
activeHelpKey: demos3Dplanet |
|
1735 |
label: 'Planet' |
|
1736 |
itemValue: openDemo: |
|
1737 |
translateLabel: true |
|
1738 |
argument: 'GLPlanetDemoView' |
|
1739 |
) |
|
1740 |
(MenuItem |
|
1741 |
activeHelpKey: demos3Dteapot |
|
1742 |
label: 'Teapot' |
|
1743 |
itemValue: openDemo: |
|
1744 |
translateLabel: true |
|
1745 |
argument: 'GLTeapotDemo' |
|
1746 |
) |
|
1747 |
(MenuItem |
|
1748 |
activeHelpKey: demos3Dlogo |
|
1749 |
label: 'Logo' |
|
1750 |
itemValue: openDemo: |
|
1751 |
translateLabel: true |
|
1752 |
argument: 'Logo3DView1' |
|
1753 |
) |
|
1754 |
(MenuItem |
|
1755 |
activeHelpKey: demosCommander |
|
1756 |
label: 'Rubics Cube' |
|
1757 |
itemValue: openDemo: |
|
1758 |
translateLabel: true |
|
1759 |
argument: 'RubicsCubeView' |
|
1760 |
) |
|
1761 |
(MenuItem |
|
1762 |
label: 'X/Y Graph' |
|
1763 |
itemValue: openDemo: |
|
1764 |
translateLabel: true |
|
1765 |
argument: 'GLXYGraph' |
|
1766 |
) |
|
1767 |
(MenuItem |
|
1768 |
label: 'X/Y Graph Widget' |
|
1769 |
itemValue: openDemo: |
|
1770 |
translateLabel: true |
|
1771 |
argument: 'CodingExamples_GUI::GLXYGraph3DDemo' |
|
1772 |
) |
|
1773 |
(MenuItem |
|
1774 |
label: 'X/Y Graph Animated' |
|
1775 |
itemValue: openDemo: |
|
1776 |
translateLabel: true |
|
1777 |
argument: 'CodingExamples_GUI::AnimatedGLXYGraph3DDemo' |
|
1778 |
) |
|
1779 |
(MenuItem |
|
1780 |
label: '-' |
|
1781 |
) |
|
1782 |
(MenuItem |
|
1783 |
label: 'Cube (Light)' |
|
1784 |
itemValue: openDemo: |
|
1785 |
translateLabel: true |
|
1786 |
argument: 'GLCubeDemoView2' |
|
1787 |
) |
|
1788 |
(MenuItem |
|
1789 |
label: 'Cube (Light and Texture)' |
|
1790 |
itemValue: openDemo: |
|
1791 |
translateLabel: true |
|
1792 |
argument: 'GLBrickCubeDemoView' |
|
1793 |
) |
|
1794 |
(MenuItem |
|
1795 |
label: 'Sphere (Light)' |
|
1796 |
itemValue: openDemo: |
|
1797 |
translateLabel: true |
|
1798 |
argument: 'GLSphereDemoView2' |
|
1799 |
) |
|
1800 |
(MenuItem |
|
1801 |
label: 'Colored Octahedron' |
|
1802 |
itemValue: openDemo: |
|
1803 |
translateLabel: true |
|
1804 |
argument: 'GLOctaHedronDemoView' |
|
1805 |
) |
|
1806 |
) |
|
1807 |
nil |
|
1808 |
nil |
|
1809 |
) |
|
1810 |
) |
|
1811 |
(MenuItem |
|
1812 |
activeHelpKey: demosGraphicEditors |
|
1813 |
label: 'Graphic Editors' |
|
1814 |
translateLabel: true |
|
1815 |
submenu: |
|
1816 |
(Menu |
|
1817 |
( |
|
1818 |
(MenuItem |
|
1819 |
activeHelpKey: demosGraphicEditorsDrawTool |
|
1820 |
label: 'Draw Tool' |
|
1821 |
itemValue: openDemo: |
|
1822 |
translateLabel: true |
|
1823 |
argument: 'DrawTool' |
|
1824 |
) |
|
1825 |
(MenuItem |
|
1826 |
activeHelpKey: demosGraphicEditorsLogicTool |
|
1827 |
label: 'Logic Tool' |
|
1828 |
itemValue: openDemo: |
|
1829 |
translateLabel: true |
|
1830 |
argument: 'LogicTool' |
|
1831 |
) |
|
1832 |
(MenuItem |
|
1833 |
activeHelpKey: demosGraphicEditorsPaintTool |
|
1834 |
label: 'Paint Demo' |
|
1835 |
itemValue: openDemo: |
|
1836 |
translateLabel: true |
|
1837 |
argument: 'ColorDrawDemo3' |
|
1838 |
) |
|
1839 |
) |
|
1840 |
nil |
|
1841 |
nil |
|
1842 |
) |
|
1843 |
) |
|
1844 |
(MenuItem |
|
1845 |
activeHelpKey: demosGUI |
|
1846 |
label: 'GUI' |
|
1847 |
translateLabel: true |
|
1848 |
submenu: |
|
1849 |
(Menu |
|
1850 |
( |
|
1851 |
(MenuItem |
|
1852 |
activeHelpKey: demosGUIWidgets |
|
1853 |
label: 'Widget Gallery' |
|
1854 |
itemValue: openDemo: |
|
1855 |
translateLabel: true |
|
1856 |
argument: 'CodingExamples_GUI::GUIDemo' |
|
1857 |
) |
|
1858 |
(MenuItem |
|
1859 |
activeHelpKey: demosDrawingProtocol |
|
1860 |
label: 'Drawing Protocol Demo' |
|
1861 |
itemValue: openDemo: |
|
1862 |
translateLabel: true |
|
1863 |
argument: 'CodingExamples_GUI::DrawingProtocolDemonstration' |
|
1864 |
) |
|
1865 |
(MenuItem |
|
1866 |
label: '-' |
|
1867 |
) |
|
1868 |
(MenuItem |
|
1869 |
activeHelpKey: demosGUICalculator |
|
1870 |
label: 'Calculator (simple)' |
|
1871 |
itemValue: openDemo: |
|
1872 |
translateLabel: true |
|
1873 |
argument: 'CodingExamples_GUI::GUIDemoCalculator' |
|
1874 |
) |
|
1875 |
(MenuItem |
|
1876 |
activeHelpKey: demosGUICalculator |
|
1877 |
label: 'Calculator (nice)' |
|
1878 |
itemValue: openDemo: |
|
1879 |
translateLabel: true |
|
1880 |
argument: 'CodingExamples_GUI::GUIDemoFoxCalculatorClone' |
|
1881 |
) |
|
1882 |
) |
|
1883 |
nil |
|
1884 |
nil |
|
1885 |
) |
|
1886 |
) |
|
1887 |
(MenuItem |
|
1888 |
activeHelpKey: demosOldStuff |
|
1889 |
label: 'Old Stuff' |
|
1890 |
translateLabel: true |
|
1891 |
submenu: |
|
1892 |
(Menu |
|
1893 |
( |
|
1894 |
(MenuItem |
|
1895 |
activeHelpKey: demosCalendar |
|
1896 |
label: 'Calendar' |
|
1897 |
itemValue: openDemo: |
|
1898 |
translateLabel: true |
|
1899 |
argument: 'Calendar' |
|
1900 |
) |
|
1901 |
(MenuItem |
|
1902 |
activeHelpKey: demosCalculator |
|
1903 |
label: 'Calculator' |
|
1904 |
itemValue: openDemo: |
|
1905 |
translateLabel: true |
|
1906 |
argument: 'CalculatorView' |
|
1907 |
) |
|
1908 |
(MenuItem |
|
1909 |
label: '-' |
|
1910 |
) |
|
1911 |
(MenuItem |
|
1912 |
activeHelpKey: demosMail |
|
1913 |
label: 'Mail Tool' |
|
1914 |
itemValue: openDemo: |
|
1915 |
translateLabel: true |
|
1916 |
argument: 'MailView' |
|
1917 |
) |
|
1918 |
(MenuItem |
|
1919 |
activeHelpKey: demosNews |
|
1920 |
label: 'News Tool' |
|
1921 |
itemValue: openDemo: |
|
1922 |
translateLabel: true |
|
1923 |
argument: 'NewsView' |
|
1924 |
) |
|
1925 |
(MenuItem |
|
1926 |
activeHelpKey: demosFTP |
|
1927 |
label: 'FTP Tool' |
|
1928 |
itemValue: openDemo: |
|
1929 |
translateLabel: true |
|
1930 |
argument: 'FTPTool' |
|
1931 |
) |
|
1932 |
(MenuItem |
|
1933 |
activeHelpKey: demosTelnet |
|
1934 |
label: 'Telnet Tool' |
|
1935 |
itemValue: openDemo: |
|
1936 |
translateLabel: true |
|
1937 |
argument: 'TelnetTool' |
|
1938 |
) |
|
1939 |
) |
|
1940 |
nil |
|
1941 |
nil |
|
1942 |
) |
|
1943 |
) |
|
1944 |
) |
|
1945 |
nil |
|
1946 |
nil |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1947 |
) |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1948 |
! |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1949 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1950 |
fileMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1951 |
"This resource specification was automatically generated |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1952 |
by the MenuEditor of ST/X." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1953 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1954 |
"Do not manually edit this!! If it is corrupted, |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1955 |
the MenuEditor may not be able to read the specification." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1956 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1957 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1958 |
MenuEditor new openOnClass:NewLauncher andSelector:#fileMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1959 |
(Menu new fromLiteralArrayEncoding:(NewLauncher fileMenu)) startUp |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1960 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1961 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1962 |
<resource: #menu> |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
1963 |
|
13279 | 1964 |
^ |
9072 | 1965 |
#(Menu |
13279 | 1966 |
( |
1967 |
(MenuItem |
|
1968 |
activeHelpKey: fileFileBrowser |
|
1969 |
label: 'File Browser' |
|
1970 |
itemValue: openFileBrowser |
|
1971 |
nameKey: fileBrowser |
|
13828 | 1972 |
translateLabel: true |
13279 | 1973 |
labelImage: (ResourceRetriever ToolbarIconLibrary startFileBrowserIcon 'File Browser') |
1974 |
) |
|
1975 |
(MenuItem |
|
1976 |
label: '-' |
|
1977 |
) |
|
1978 |
(MenuItem |
|
14822 | 1979 |
activeHelpKey: fileLoadPackage |
1980 |
enabled: enableDangerousMenuItemsInRemoteLauncher |
|
1981 |
label: 'Load Package...' |
|
1982 |
itemValue: fileLoadPackage |
|
1983 |
nameKey: fileLoadPackage |
|
1984 |
translateLabel: true |
|
1985 |
) |
|
1986 |
(MenuItem |
|
1987 |
label: '-' |
|
1988 |
) |
|
1989 |
(MenuItem |
|
13279 | 1990 |
activeHelpKey: fileSaveImage |
1991 |
enabled: enableDangerousMenuItemsInRemoteLauncher |
|
1992 |
label: 'Save Image' |
|
1993 |
itemValue: saveImage |
|
1994 |
nameKey: saveImage |
|
13828 | 1995 |
translateLabel: true |
13279 | 1996 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveImageIcon 'Save Image') |
1997 |
) |
|
1998 |
(MenuItem |
|
1999 |
activeHelpKey: fileSaveImageAs |
|
2000 |
enabled: enableDangerousMenuItemsInRemoteLauncher |
|
2001 |
label: 'Save Image As...' |
|
2002 |
itemValue: saveImageAs |
|
2003 |
nameKey: saveImageAs |
|
13828 | 2004 |
translateLabel: true |
13279 | 2005 |
) |
2006 |
(MenuItem |
|
13642 | 2007 |
activeHelpKey: fileSaveSessionChangesAs |
2008 |
enabled: enableDangerousMenuItemsInRemoteLauncher |
|
2009 |
label: 'Save Session Changes As...' |
|
2010 |
itemValue: saveSessionChangesAs |
|
2011 |
nameKey: saveImageAs |
|
2012 |
) |
|
2013 |
(MenuItem |
|
2014 |
label: '-' |
|
2015 |
) |
|
2016 |
(MenuItem |
|
13279 | 2017 |
activeHelpKey: fileExit |
2018 |
enabled: enableDangerousMenuItemsInRemoteLauncher |
|
2019 |
label: 'Exit Smalltalk...' |
|
2020 |
itemValue: exit |
|
2021 |
nameKey: exitSmalltalk |
|
13828 | 2022 |
translateLabel: true |
13279 | 2023 |
isVisible: isMainLauncherHolder |
2024 |
) |
|
2025 |
(MenuItem |
|
2026 |
activeHelpKey: fileClose |
|
2027 |
label: 'Close...' |
|
2028 |
itemValue: closeRequest |
|
13828 | 2029 |
translateLabel: true |
13279 | 2030 |
isVisible: isNotMainLauncherHolder |
2031 |
) |
|
2032 |
) |
|
2033 |
nil |
|
2034 |
nil |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2035 |
) |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2036 |
! |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2037 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2038 |
helpMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2039 |
"This resource specification was automatically generated |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2040 |
by the MenuEditor of ST/X." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2041 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2042 |
"Do not manually edit this!! If it is corrupted, |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2043 |
the MenuEditor may not be able to read the specification." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2044 |
|
11470 | 2045 |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2046 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2047 |
MenuEditor new openOnClass:NewLauncher andSelector:#helpMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2048 |
(Menu new fromLiteralArrayEncoding:(NewLauncher helpMenu)) startUp |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2049 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2050 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2051 |
<resource: #menu> |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2052 |
|
16977 | 2053 |
^ |
8400 | 2054 |
#(Menu |
15386 | 2055 |
( |
2056 |
(MenuItem |
|
2057 |
activeHelpKey: helpWhatsNewInSTX |
|
2058 |
label: 'Launcher Documentation' |
|
2059 |
itemValue: startLauncherDocumentation |
|
2060 |
) |
|
2061 |
(MenuItem |
|
2062 |
activeHelpKey: helpToolsDocumentation |
|
2063 |
label: 'Tool Documentation' |
|
2064 |
itemValue: startToolsDocumentation |
|
2065 |
) |
|
2066 |
(MenuItem |
|
2067 |
activeHelpKey: helpWhatsNewInSTX |
|
2068 |
label: 'What''s New in ST/X' |
|
2069 |
itemValue: startWhatsNewSTX |
|
2070 |
) |
|
2071 |
(MenuItem |
|
2072 |
activeHelpKey: helpWhatsNew |
|
2073 |
label: 'What''s New in the Documentation' |
|
2074 |
itemValue: startWhatsNewDocumentation |
|
2075 |
) |
|
2076 |
(MenuItem |
|
2077 |
label: '-' |
|
2078 |
) |
|
2079 |
(MenuItem |
|
2080 |
activeHelpKey: helpSTXOnlineDocumentation |
|
2081 |
label: 'ST/X Online Documentation' |
|
2082 |
itemValue: startDocumentationTool |
|
2083 |
labelImage: (ResourceRetriever ToolbarIconLibrary helpIcon2 'ST/X Online Documentation') |
|
2084 |
) |
|
2085 |
(MenuItem |
|
16977 | 2086 |
activeHelpKey: helpIndex |
2087 |
label: 'Keyword Index' |
|
2088 |
itemValue: startDocumentationIndex |
|
2089 |
) |
|
2090 |
(MenuItem |
|
15386 | 2091 |
activeHelpKey: helpTutorial |
2092 |
label: 'Smalltalk/X Tutorial' |
|
2093 |
itemValue: startTutorial |
|
2094 |
) |
|
2095 |
(MenuItem |
|
2096 |
activeHelpKey: helpSmalltalkTutorial |
|
2097 |
label: 'Smalltalk Language Tutorial' |
|
2098 |
itemValue: startSmalltalkTutorial |
|
2099 |
) |
|
2100 |
(MenuItem |
|
2101 |
activeHelpKey: helpProgrammersGuide |
|
2102 |
label: 'Programmer''s Guide' |
|
2103 |
itemValue: startProgrammersGuide |
|
2104 |
) |
|
2105 |
(MenuItem |
|
2106 |
activeHelpKey: helpClassDocumentation |
|
2107 |
label: 'Class Documentation' |
|
2108 |
itemValue: startClassDocumentation |
|
2109 |
) |
|
2110 |
(MenuItem |
|
2111 |
label: 'Web-Documents' |
|
2112 |
isVisible: webDocumentsItemShownInHelpMenu |
|
16977 | 2113 |
submenu: |
15386 | 2114 |
(Menu |
2115 |
( |
|
2116 |
(MenuItem |
|
2117 |
activeHelpKey: helpRFC |
|
2118 |
label: 'RFCs...' |
|
2119 |
itemValue: showRFC |
|
2120 |
) |
|
2121 |
(MenuItem |
|
2122 |
activeHelpKey: helpPortInfo |
|
2123 |
label: 'TCP/UDP Ports...' |
|
2124 |
itemValue: showPortInfo |
|
2125 |
) |
|
2126 |
) |
|
2127 |
nil |
|
2128 |
nil |
|
2129 |
) |
|
2130 |
) |
|
2131 |
(MenuItem |
|
2132 |
label: '-' |
|
2133 |
) |
|
2134 |
(MenuItem |
|
2135 |
activeHelpKey: helpPrintDocumentation |
|
2136 |
label: 'Print Documentation...' |
|
2137 |
itemValue: showBookPrintDocument |
|
2138 |
) |
|
2139 |
(MenuItem |
|
2140 |
label: '-' |
|
2141 |
) |
|
2142 |
(MenuItem |
|
2143 |
activeHelpKey: helpShowTipOfTheDay |
|
2144 |
label: 'Tip of the Day' |
|
2145 |
itemValue: showTipOfTheDay |
|
2146 |
) |
|
2147 |
(MenuItem |
|
2148 |
activeHelpKey: helpActiveHelp |
|
2149 |
label: 'Tooltips (FlyBy Help)' |
|
2150 |
itemValue: toggleFlyByHelp: |
|
2151 |
indication: activeHelp |
|
2152 |
) |
|
2153 |
(MenuItem |
|
2154 |
activeHelpKey: helpShowHelp |
|
2155 |
label: 'Show Help Texts' |
|
2156 |
isVisible: false |
|
2157 |
indication: showingHelp: |
|
2158 |
) |
|
2159 |
(MenuItem |
|
2160 |
label: '-' |
|
2161 |
) |
|
2162 |
(MenuItem |
|
2163 |
activeHelpKey: helpCredits |
|
2164 |
label: 'Credits' |
|
2165 |
itemValue: showCredits |
|
2166 |
) |
|
2167 |
) |
|
2168 |
nil |
|
2169 |
nil |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2170 |
) |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2171 |
! |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2172 |
|
1441 | 2173 |
menu |
1515 | 2174 |
"This resource specification was automatically generated |
2175 |
by the MenuEditor of ST/X." |
|
2176 |
||
2177 |
"Do not manually edit this!! If it is corrupted, |
|
2178 |
the MenuEditor may not be able to read the specification." |
|
1441 | 2179 |
|
2180 |
" |
|
2181 |
MenuEditor new openOnClass:NewLauncher andSelector:#menu |
|
2182 |
(Menu new fromLiteralArrayEncoding:(NewLauncher menu)) startUp |
|
2183 |
" |
|
2184 |
||
2185 |
<resource: #menu> |
|
2186 |
||
13828 | 2187 |
^ |
5407 | 2188 |
#(Menu |
13271 | 2189 |
( |
2190 |
(MenuItem |
|
2191 |
label: 'About' |
|
2192 |
nameKey: about |
|
13828 | 2193 |
translateLabel: true |
13271 | 2194 |
submenuChannel: aboutMenu |
2195 |
labelImage: (ResourceRetriever nil menuIcon) |
|
2196 |
) |
|
2197 |
(MenuItem |
|
2198 |
label: 'File' |
|
2199 |
nameKey: file |
|
13828 | 2200 |
translateLabel: true |
13271 | 2201 |
submenuChannel: fileMenu |
2202 |
) |
|
2203 |
(MenuItem |
|
2204 |
label: 'Classes' |
|
2205 |
nameKey: classes |
|
13828 | 2206 |
translateLabel: true |
13271 | 2207 |
submenuChannel: classesMenu |
2208 |
) |
|
2209 |
(MenuItem |
|
2210 |
label: 'Tools' |
|
2211 |
nameKey: tools |
|
13828 | 2212 |
translateLabel: true |
13271 | 2213 |
submenuChannel: toolsMenu |
2214 |
) |
|
2215 |
(MenuItem |
|
2216 |
label: 'System' |
|
2217 |
nameKey: system |
|
13828 | 2218 |
translateLabel: true |
13271 | 2219 |
submenuChannel: systemMenu |
2220 |
) |
|
2221 |
(MenuItem |
|
2222 |
label: 'Settings' |
|
2223 |
nameKey: settings |
|
13828 | 2224 |
translateLabel: true |
13271 | 2225 |
isVisible: useOldSettingsApplication |
2226 |
submenuChannel: settingsMenu |
|
2227 |
) |
|
2228 |
(MenuItem |
|
2229 |
label: 'Windows' |
|
2230 |
nameKey: windows |
|
13828 | 2231 |
translateLabel: true |
13271 | 2232 |
submenuChannel: windowsMenu |
2233 |
) |
|
2234 |
(MenuItem |
|
2235 |
label: 'Demos' |
|
2236 |
nameKey: demos |
|
13828 | 2237 |
translateLabel: true |
13271 | 2238 |
submenuChannel: demosMenu |
2239 |
) |
|
2240 |
(MenuItem |
|
2241 |
label: 'MENU_Help' |
|
2242 |
nameKey: help |
|
13828 | 2243 |
translateLabel: true |
13271 | 2244 |
startGroup: conditionalRight |
2245 |
submenuChannel: helpMenu |
|
2246 |
) |
|
2247 |
) |
|
2248 |
nil |
|
2249 |
nil |
|
1441 | 2250 |
) |
2251 |
! |
|
2252 |
||
8291 | 2253 |
menuOpenWorkspaceTypes |
2254 |
"This resource specification was automatically generated |
|
2255 |
by the MenuEditor of ST/X." |
|
2256 |
||
2257 |
"Do not manually edit this!! If it is corrupted, |
|
2258 |
the MenuEditor may not be able to read the specification." |
|
2259 |
||
2260 |
" |
|
2261 |
MenuEditor new openOnClass:NewLauncher andSelector:#systemMenu |
|
2262 |
(Menu new fromLiteralArrayEncoding:(NewLauncher systemMenu)) startUp |
|
2263 |
" |
|
2264 |
||
2265 |
<resource: #menu> |
|
2266 |
||
12335 | 2267 |
^ |
8291 | 2268 |
#(Menu |
15235 | 2269 |
( |
2270 |
(MenuItem |
|
2271 |
activeHelpKey: toolsWorkspace |
|
2272 |
label: 'Normal' |
|
2273 |
itemValue: openRegularWorkspace |
|
2274 |
translateLabel: true |
|
2275 |
) |
|
2276 |
(MenuItem |
|
2277 |
activeHelpKey: toolsMyWorkspace |
|
2278 |
label: 'My Workspace' |
|
2279 |
itemValue: openMyWorkspace |
|
2280 |
translateLabel: true |
|
2281 |
) |
|
2282 |
(MenuItem |
|
2283 |
activeHelpKey: toolsSystemWorkspace |
|
2284 |
label: 'System Workspace' |
|
2285 |
itemValue: openSystemWorkspace |
|
2286 |
translateLabel: true |
|
2287 |
) |
|
2288 |
(MenuItem |
|
2289 |
activeHelpKey: toolsEvaluationWorkspace |
|
2290 |
label: 'Evaluation Workspace' |
|
2291 |
itemValue: openEvaluationWorkspace |
|
2292 |
translateLabel: true |
|
2293 |
) |
|
2294 |
) |
|
2295 |
nil |
|
2296 |
nil |
|
8291 | 2297 |
) |
2298 |
! |
|
2299 |
||
1441 | 2300 |
menuToolbar |
1527 | 2301 |
"This resource specification was automatically generated |
2302 |
by the MenuEditor of ST/X." |
|
2303 |
||
2304 |
"Do not manually edit this!! If it is corrupted, |
|
2305 |
the MenuEditor may not be able to read the specification." |
|
1441 | 2306 |
|
16930 | 2307 |
|
1441 | 2308 |
" |
2309 |
MenuEditor new openOnClass:NewLauncher andSelector:#menuToolbar |
|
2310 |
(Menu new fromLiteralArrayEncoding:(NewLauncher menuToolbar)) startUp |
|
2311 |
" |
|
2312 |
||
2313 |
<resource: #menu> |
|
2314 |
||
16930 | 2315 |
^ |
6328 | 2316 |
#(Menu |
16930 | 2317 |
( |
2318 |
(MenuItem |
|
2319 |
activeHelpKey: fileSaveImage |
|
2320 |
enabled: enableDangerousMenuItemsInRemoteLauncher |
|
2321 |
label: 'save image' |
|
2322 |
itemValue: saveImage |
|
2323 |
nameKey: saveImage |
|
2324 |
isButton: true |
|
2325 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveImageIcon) |
|
2326 |
) |
|
2327 |
(MenuItem |
|
2328 |
activeHelpKey: fileFileBrowser |
|
2329 |
label: 'open file browser' |
|
2330 |
itemValue: openFileBrowser |
|
2331 |
nameKey: fileBrowser |
|
2332 |
isButton: true |
|
2333 |
isVisible: fileBrowserItemVisible |
|
2334 |
submenuChannel: menuFileHistory |
|
2335 |
labelImage: (ResourceRetriever ToolbarIconLibrary startFileBrowserIcon) |
|
2336 |
) |
|
2337 |
(MenuItem |
|
2338 |
label: '-' |
|
2339 |
) |
|
2340 |
(MenuItem |
|
2341 |
activeHelpKey: toolsWorkspace |
|
2342 |
label: 'open workspace' |
|
2343 |
itemValue: openWorkspace |
|
2344 |
nameKey: workspace |
|
2345 |
isButton: true |
|
2346 |
submenuChannel: menuOpenWorkspaceTypes |
|
2347 |
labelImage: (ResourceRetriever ToolbarIconLibrary startWorkspaceIcon) |
|
2348 |
) |
|
2349 |
(MenuItem |
|
2350 |
activeHelpKey: newSystemBrowser |
|
2351 |
label: 'open system browser' |
|
2352 |
itemValue: openApplication: |
|
2353 |
nameKey: systemBrowser |
|
2354 |
isButton: true |
|
2355 |
submenuChannel: menuClassHistory |
|
2356 |
labelImage: (ResourceRetriever ToolbarIconLibrary startNewSystemBrowserIcon) |
|
2357 |
argument: 'Tools::NewSystemBrowser' |
|
2358 |
) |
|
2359 |
(MenuItem |
|
2360 |
activeHelpKey: classesSystemBrowserOnClass |
|
2361 |
label: 'System Browser On Class' |
|
2362 |
isButton: true |
|
2363 |
isVisible: false |
|
2364 |
submenuChannel: menuClassHistory |
|
2365 |
labelImage: (ResourceRetriever ToolbarIconLibrary startSystemBrowserOnHistoryClassIcon) |
|
2366 |
) |
|
2367 |
(MenuItem |
|
2368 |
activeHelpKey: toolsChangesBrowserOrNavigateToRecentChange |
|
2369 |
label: 'open changes browser' |
|
2370 |
itemValue: startChangesBrowser |
|
2371 |
nameKey: changesBrowser |
|
2372 |
isButton: true |
|
2373 |
submenuChannel: menuChangeHistory |
|
2374 |
labelImage: (ResourceRetriever ToolbarIconLibrary startChangesBrowserIcon) |
|
2375 |
) |
|
2376 |
(MenuItem |
|
2377 |
label: '-' |
|
2378 |
) |
|
2379 |
(MenuItem |
|
2380 |
activeHelpKey: toolsGUIPainter |
|
2381 |
label: 'open GUI Builder' |
|
2382 |
itemValue: openApplication: |
|
2383 |
nameKey: guiBuilder |
|
2384 |
isButton: true |
|
2385 |
labelImage: (ResourceRetriever ToolbarIconLibrary startUIPainterIcon) |
|
2386 |
argument: 'UIPainter' |
|
2387 |
) |
|
2388 |
(MenuItem |
|
2389 |
activeHelpKey: toolsMenuEditor |
|
2390 |
label: 'open menu editor' |
|
2391 |
itemValue: openApplication: |
|
2392 |
nameKey: menuEditor |
|
2393 |
isButton: true |
|
2394 |
labelImage: (ResourceRetriever ToolbarIconLibrary startMenuEditorIcon) |
|
2395 |
argument: 'MenuEditor' |
|
2396 |
) |
|
2397 |
(MenuItem |
|
2398 |
activeHelpKey: toolsImageEditor |
|
2399 |
label: 'open image editor' |
|
2400 |
itemValue: openApplication: |
|
2401 |
nameKey: imageEditor |
|
2402 |
isButton: true |
|
2403 |
labelImage: (ResourceRetriever ToolbarIconLibrary startImageEditorIcon) |
|
2404 |
argument: 'ImageEditor' |
|
2405 |
) |
|
2406 |
(MenuItem |
|
2407 |
label: '' |
|
2408 |
) |
|
2409 |
(MenuItem |
|
2410 |
activeHelpKey: systemGarbageCollectAndCompress |
|
2411 |
label: 'garbage collect and compress' |
|
2412 |
itemValue: compressingGarbageCollect |
|
2413 |
nameKey: garbageCollect |
|
2414 |
isButton: true |
|
2415 |
isVisible: false |
|
2416 |
labelImage: (ResourceRetriever ToolbarIconLibrary garbageCollectIcon) |
|
2417 |
) |
|
2418 |
(MenuItem |
|
2419 |
activeHelpKey: helpSTXOnlineDocumentation |
|
2420 |
label: 'help' |
|
2421 |
itemValue: startDocumentationTool |
|
2422 |
nameKey: help |
|
2423 |
isButton: true |
|
2424 |
startGroup: right |
|
2425 |
labelImage: (ResourceRetriever XPToolbarIconLibrary stxHelpIcon) |
|
2426 |
) |
|
2427 |
) |
|
2428 |
nil |
|
2429 |
nil |
|
1441 | 2430 |
) |
2197 | 2431 |
! |
2432 |
||
3036 | 2433 |
menuToolbar_pda |
2434 |
"This resource specification was automatically generated |
|
2435 |
by the MenuEditor of ST/X." |
|
2436 |
||
2437 |
"Do not manually edit this!! If it is corrupted, |
|
2438 |
the MenuEditor may not be able to read the specification." |
|
2439 |
||
2440 |
" |
|
2441 |
MenuEditor new openOnClass:NewLauncher andSelector:#menuToolbar_pda |
|
2442 |
(Menu new fromLiteralArrayEncoding:(NewLauncher menuToolbar_pda)) startUp |
|
2443 |
" |
|
2444 |
||
2445 |
<resource: #menu> |
|
2446 |
||
12335 | 2447 |
^ |
3036 | 2448 |
#(#Menu |
12335 | 2449 |
#( |
2450 |
#(#MenuItem |
|
2451 |
#label: 'open file browser' |
|
2452 |
#isButton: true |
|
2453 |
#nameKey: #fileBrowser |
|
2454 |
#value: #openFileBrowser |
|
2455 |
#activeHelpKey: #fileFileBrowser |
|
2456 |
#labelImage: #(#ResourceRetriever ToolbarIconLibrary #startFileBrowserIcon) |
|
2457 |
) |
|
2458 |
#(#MenuItem |
|
2459 |
#label: '' |
|
2460 |
) |
|
2461 |
#(#MenuItem |
|
2462 |
#label: 'open system browser' |
|
2463 |
#isButton: true |
|
2464 |
#nameKey: #systemBrowser |
|
2465 |
#value: #openApplication: |
|
2466 |
#activeHelpKey: #classesSystemBrowser |
|
2467 |
#argument: 'SystemBrowser' |
|
2468 |
#labelImage: #(#ResourceRetriever ToolbarIconLibrary #startSystemBrowserIcon) |
|
2469 |
#submenuChannel: #menuClassHistory |
|
2470 |
) |
|
2471 |
#(#MenuItem |
|
2472 |
#label: '' |
|
2473 |
) |
|
2474 |
#(#MenuItem |
|
2475 |
#label: 'help' |
|
2476 |
#translateLabel: true |
|
2477 |
#isButton: true |
|
2478 |
#nameKey: #help |
|
2479 |
#startGroup: #right |
|
2480 |
#value: #startDocumentationTool |
|
2481 |
#activeHelpKey: #helpSTXOnlineDocumentation |
|
2482 |
#labelImage: #(#ResourceRetriever ToolbarIconLibrary #helpIcon2) |
|
2483 |
) |
|
2484 |
) |
|
2485 |
nil |
|
2486 |
nil |
|
3036 | 2487 |
) |
7881 | 2488 |
|
2489 |
"Modified: / 05-11-2007 / 11:16:57 / cg" |
|
3036 | 2490 |
! |
2491 |
||
2492 |
menu_pda |
|
2493 |
"This resource specification was automatically generated |
|
2494 |
by the MenuEditor of ST/X." |
|
2495 |
||
2496 |
"Do not manually edit this!! If it is corrupted, |
|
2497 |
the MenuEditor may not be able to read the specification." |
|
2498 |
||
2499 |
" |
|
2500 |
MenuEditor new openOnClass:NewLauncher andSelector:#menu_pda |
|
2501 |
(Menu new fromLiteralArrayEncoding:(NewLauncher menu_pda)) startUp |
|
2502 |
" |
|
2503 |
||
2504 |
<resource: #menu> |
|
2505 |
||
12335 | 2506 |
^ |
3036 | 2507 |
#(#Menu |
12335 | 2508 |
#( |
2509 |
#(#MenuItem |
|
2510 |
#label: 'About' |
|
2511 |
#translateLabel: true |
|
2512 |
#nameKey: #about |
|
2513 |
#activeHelpKey: #settings |
|
2514 |
#labelImage: #(#ResourceRetriever nil #menuIcon) |
|
2515 |
#submenuChannel: #aboutMenu |
|
2516 |
#keepLinkedMenu: true |
|
2517 |
) |
|
2518 |
#(#MenuItem |
|
2519 |
#label: '&File' |
|
2520 |
#translateLabel: true |
|
2521 |
#nameKey: #file |
|
2522 |
#activeHelpKey: #settings |
|
2523 |
#submenuChannel: #fileMenu |
|
2524 |
#keepLinkedMenu: true |
|
2525 |
) |
|
2526 |
#(#MenuItem |
|
2527 |
#label: 'Apps' |
|
2528 |
#translateLabel: true |
|
2529 |
#submenu: |
|
2530 |
#(#Menu |
|
2531 |
#( |
|
2532 |
#(#MenuItem |
|
2533 |
#label: 'Classes' |
|
2534 |
#translateLabel: true |
|
2535 |
#nameKey: #classes |
|
2536 |
#activeHelpKey: #settings |
|
2537 |
#submenuChannel: #classesMenu |
|
2538 |
#keepLinkedMenu: true |
|
2539 |
) |
|
2540 |
#(#MenuItem |
|
2541 |
#label: 'Tools' |
|
2542 |
#translateLabel: true |
|
2543 |
#nameKey: #tools |
|
2544 |
#activeHelpKey: #settings |
|
2545 |
#submenuChannel: #toolsMenu |
|
2546 |
#keepLinkedMenu: true |
|
2547 |
) |
|
2548 |
#(#MenuItem |
|
2549 |
#label: 'System' |
|
2550 |
#translateLabel: true |
|
2551 |
#nameKey: #system |
|
2552 |
#activeHelpKey: #settings |
|
2553 |
#submenuChannel: #systemMenu |
|
2554 |
#keepLinkedMenu: true |
|
2555 |
) |
|
2556 |
#(#MenuItem |
|
2557 |
#label: 'Demos' |
|
2558 |
#translateLabel: true |
|
2559 |
#nameKey: #demos |
|
2560 |
#activeHelpKey: #settings |
|
2561 |
#submenuChannel: #demosMenu |
|
2562 |
#keepLinkedMenu: true |
|
2563 |
) |
|
2564 |
) |
|
2565 |
nil |
|
2566 |
nil |
|
2567 |
) |
|
2568 |
) |
|
2569 |
#(#MenuItem |
|
2570 |
#label: 'Windows' |
|
2571 |
#translateLabel: true |
|
2572 |
#nameKey: #windows |
|
2573 |
#activeHelpKey: #settings |
|
2574 |
#submenuChannel: #windowsMenu |
|
2575 |
#keepLinkedMenu: true |
|
2576 |
) |
|
2577 |
#(#MenuItem |
|
2578 |
#label: '&Help' |
|
2579 |
#translateLabel: true |
|
2580 |
#nameKey: #help |
|
2581 |
#startGroup: #right |
|
2582 |
#activeHelpKey: #settings |
|
2583 |
#submenuChannel: #helpMenu |
|
2584 |
#keepLinkedMenu: true |
|
2585 |
) |
|
2586 |
) |
|
2587 |
nil |
|
2588 |
nil |
|
3036 | 2589 |
) |
7316 | 2590 |
|
2591 |
"Modified: / 19-09-2006 / 20:48:22 / cg" |
|
3036 | 2592 |
! |
2593 |
||
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2594 |
systemMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2595 |
"This resource specification was automatically generated |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2596 |
by the MenuEditor of ST/X." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2597 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2598 |
"Do not manually edit this!! If it is corrupted, |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2599 |
the MenuEditor may not be able to read the specification." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2600 |
|
11290 | 2601 |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2602 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2603 |
MenuEditor new openOnClass:NewLauncher andSelector:#systemMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2604 |
(Menu new fromLiteralArrayEncoding:(NewLauncher systemMenu)) startUp |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2605 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2606 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2607 |
<resource: #menu> |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2608 |
|
13638 | 2609 |
^ |
6224 | 2610 |
#(Menu |
13638 | 2611 |
( |
2612 |
(MenuItem |
|
2613 |
activeHelpKey: systemMemory |
|
2614 |
label: 'Memory' |
|
2615 |
itemValue: openApplication: |
|
2616 |
argument: 'MemoryMonitor' |
|
2617 |
) |
|
2618 |
(MenuItem |
|
2619 |
activeHelpKey: systemMemoryUsage |
|
2620 |
label: 'Memory Usage' |
|
2621 |
itemValue: openApplication: |
|
2622 |
argument: 'MemoryUsageView' |
|
2623 |
) |
|
2624 |
(MenuItem |
|
2625 |
label: '-' |
|
2626 |
) |
|
2627 |
(MenuItem |
|
2628 |
activeHelpKey: systemProcesses |
|
2629 |
label: 'Processes' |
|
2630 |
itemValue: startProcessMonitor |
|
2631 |
) |
|
2632 |
(MenuItem |
|
2633 |
activeHelpKey: systemSemaphores |
|
2634 |
label: 'Semaphores' |
|
2635 |
itemValue: openApplication: |
|
2636 |
argument: 'SemaphoreMonitor' |
|
2637 |
) |
|
2638 |
(MenuItem |
|
17237 | 2639 |
activeHelpKey: systemExternalStreams |
2640 |
label: 'External Streams' |
|
2641 |
itemValue: openApplication: |
|
2642 |
argument: 'ExternalStreamMonitor' |
|
2643 |
) |
|
2644 |
(MenuItem |
|
13638 | 2645 |
activeHelpKey: fileModules |
2646 |
enabled: enableDangerousMenuItemsInRemoteLauncher |
|
2647 |
label: 'Modules...' |
|
2648 |
itemValue: objectModuleDialog |
|
2649 |
) |
|
2650 |
(MenuItem |
|
2651 |
label: '-' |
|
2652 |
) |
|
2653 |
(MenuItem |
|
2654 |
activeHelpKey: systemGarbageCollect |
|
2655 |
label: 'Collect Garbage' |
|
2656 |
itemValue: garbageCollect |
|
2657 |
labelImage: (ResourceRetriever nil garbageCollectIcon 'Collect Garbage') |
|
2658 |
) |
|
2659 |
(MenuItem |
|
2660 |
activeHelpKey: systemGarbageCollectAndCompress |
|
2661 |
label: 'Collect Garbage and Compress' |
|
2662 |
itemValue: compressingGarbageCollect |
|
2663 |
labelImage: (ResourceRetriever nil garbageCollectIcon 'Collect Garbage and Compress') |
|
2664 |
) |
|
2665 |
(MenuItem |
|
2666 |
label: '-' |
|
2667 |
) |
|
2668 |
(MenuItem |
|
2669 |
activeHelpKey: systemReloadResources |
|
2670 |
label: 'Reload Resources' |
|
2671 |
itemValue: flushCachedResources |
|
2672 |
labelImage: (ResourceRetriever nil garbageCollectIcon 'Reload Resources') |
|
2673 |
showBusyCursorWhilePerforming: true |
|
2674 |
) |
|
2675 |
(MenuItem |
|
2676 |
label: '-' |
|
2677 |
isVisible: useNewSettingsApplication |
|
2678 |
) |
|
2679 |
(MenuItem |
|
2680 |
activeHelpKey: systemSettings |
|
2681 |
label: 'Settings...' |
|
2682 |
itemValue: openSettings |
|
2683 |
isVisible: useNewSettingsApplication |
|
2684 |
labelImage: (ResourceRetriever ToolbarIconLibrary settings16x16Icon 'Settings...') |
|
2685 |
) |
|
2686 |
) |
|
2687 |
nil |
|
2688 |
nil |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2689 |
) |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2690 |
! |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2691 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2692 |
toolsMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2693 |
"This resource specification was automatically generated |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2694 |
by the MenuEditor of ST/X." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2695 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2696 |
"Do not manually edit this!! If it is corrupted, |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2697 |
the MenuEditor may not be able to read the specification." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2698 |
|
12041 | 2699 |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2700 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2701 |
MenuEditor new openOnClass:NewLauncher andSelector:#toolsMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2702 |
(Menu new fromLiteralArrayEncoding:(NewLauncher toolsMenu)) startUp |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2703 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2704 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2705 |
<resource: #menu> |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
2706 |
|
13050 | 2707 |
^ |
6420 | 2708 |
#(Menu |
13033 | 2709 |
( |
2710 |
(MenuItem |
|
2711 |
activeHelpKey: toolsOpenApplication |
|
2712 |
label: 'Open Application...' |
|
2713 |
itemValue: findApplicationAndOpen |
|
2714 |
nameKey: openApplication |
|
2715 |
) |
|
2716 |
(MenuItem |
|
13050 | 2717 |
label: 'Recently Opened' |
2718 |
submenuChannel: recentlyOpenedApplicationsMenu |
|
2719 |
) |
|
2720 |
(MenuItem |
|
13033 | 2721 |
label: '-' |
2722 |
) |
|
2723 |
(MenuItem |
|
2724 |
activeHelpKey: toolsWorkspace |
|
2725 |
label: 'Workspace' |
|
2726 |
itemValue: openWorkspace |
|
2727 |
nameKey: workspace |
|
2728 |
labelImage: (ResourceRetriever ToolbarIconLibrary startWorkspaceIcon 'Workspace') |
|
2729 |
) |
|
2730 |
(MenuItem |
|
2731 |
enabled: monticelloRepositoryAvailable |
|
2732 |
label: 'Monticello Repository Browser' |
|
2733 |
itemValue: startMonticelloRepositoryBrowser |
|
2734 |
showBusyCursorWhilePerforming: true |
|
2735 |
) |
|
2736 |
(MenuItem |
|
2737 |
label: 'Programming' |
|
2738 |
nameKey: programming |
|
13050 | 2739 |
submenu: |
13033 | 2740 |
(Menu |
2741 |
( |
|
2742 |
(MenuItem |
|
2743 |
activeHelpKey: toolsChangesBrowser |
|
2744 |
label: 'Change File Browser' |
|
2745 |
itemValue: startChangesBrowser |
|
2746 |
nameKey: changesBrowser |
|
2747 |
labelImage: (ResourceRetriever ToolbarIconLibrary startChangesBrowserIcon 'Change File Browser') |
|
2748 |
) |
|
2749 |
(MenuItem |
|
2750 |
activeHelpKey: toolsSUnit |
|
2751 |
label: 'SUnit Test Runner' |
|
2752 |
itemValue: startSUnitTestRunner |
|
2753 |
nameKey: startSUnitTestRunner |
|
13274 | 2754 |
isVisible: false |
13033 | 2755 |
labelImage: (ResourceRetriever NewLauncher startSUnitIcon 'SUnit Test Runner') |
2756 |
) |
|
2757 |
(MenuItem |
|
2758 |
activeHelpKey: toolsToDoList |
|
2759 |
label: 'Programmer''s ToDo List' |
|
2760 |
itemValue: startToDoListBrowser |
|
2761 |
nameKey: startToDoListBrowser |
|
2762 |
) |
|
2763 |
(MenuItem |
|
2764 |
activeHelpKey: toolsOOM |
|
2765 |
enabled: oomPackageLoaded |
|
2766 |
label: 'Code Metrics Browser' |
|
2767 |
itemValue: startOOMBrowser |
|
2768 |
nameKey: startOOMBrowser |
|
2769 |
) |
|
2770 |
(MenuItem |
|
2771 |
activeHelpKey: toolsSmaCC |
|
2772 |
enabled: smaccPackageLoaded |
|
2773 |
label: 'SmaCC ParserGenerator' |
|
2774 |
itemValue: startSmaCCParserGenerator |
|
2775 |
nameKey: startSmaCCParserGenerator |
|
2776 |
) |
|
2777 |
(MenuItem |
|
16853 | 2778 |
label: '-' |
2779 |
) |
|
2780 |
(MenuItem |
|
13033 | 2781 |
activeHelpKey: toolsInternationalLanguageTranslationEditor |
2782 |
label: 'International Language Translation Editor' |
|
2783 |
itemValue: startInternationalLanguageTranslationEditor |
|
2784 |
labelImage: (ResourceRetriever ToolbarIconLibrary languagesIcon 'International Language Translation Editor') |
|
2785 |
) |
|
16853 | 2786 |
(MenuItem |
2787 |
label: '-' |
|
2788 |
) |
|
2789 |
(MenuItem |
|
2790 |
activeHelpKey: startSQLWorkspace |
|
2791 |
label: 'SQL Workspace' |
|
2792 |
itemValue: startSQLWorkspace |
|
2793 |
isVisible: false |
|
2794 |
) |
|
2795 |
(MenuItem |
|
2796 |
activeHelpKey: startSQLScratchpad |
|
2797 |
label: 'SQL Scratchpad' |
|
2798 |
itemValue: startSQLScratchpad |
|
2799 |
) |
|
13033 | 2800 |
) |
2801 |
nil |
|
2802 |
nil |
|
2803 |
) |
|
2804 |
) |
|
2805 |
(MenuItem |
|
2806 |
activeHelpKey: classesDebugging |
|
2807 |
label: 'Debugging' |
|
2808 |
nameKey: debugging |
|
13050 | 2809 |
submenu: |
13033 | 2810 |
(Menu |
2811 |
( |
|
2812 |
(MenuItem |
|
2813 |
activeHelpKey: breakPointBrowser |
|
2814 |
label: 'Breakpoint Browser' |
|
2815 |
itemValue: openApplication: |
|
14964 | 2816 |
labelImage: (ResourceRetriever ToolbarIconLibrary openBreakpointBrowserIcon 'Breakpoint Browser') |
13033 | 2817 |
argument: 'Tools::BreakpointBrowser' |
2818 |
) |
|
2819 |
(MenuItem |
|
2820 |
label: '-' |
|
2821 |
) |
|
2822 |
(MenuItem |
|
2823 |
activeHelpKey: classesShowTracePoints |
|
15023 | 2824 |
label: 'Show All Break && Trace Points' |
13033 | 2825 |
itemValue: browseAllBreakAndTracePoints |
2826 |
) |
|
2827 |
(MenuItem |
|
2828 |
activeHelpKey: classesRemoveAllTracePoints |
|
15023 | 2829 |
label: 'Remove All Break && Trace Points' |
13033 | 2830 |
itemValue: removeAllBreakAndTracePoints |
2831 |
) |
|
2832 |
(MenuItem |
|
2833 |
activeHelpKey: classesStopIgnoringHalts |
|
14501 | 2834 |
enabled: debuggerHasIgnoredHaltsOrSmalltalkIsIgnoringHalts |
13033 | 2835 |
label: 'Stop Ignoring Halts/Breakpoints' |
2836 |
itemValue: stopIgnoringHalts |
|
2837 |
) |
|
2838 |
(MenuItem |
|
2839 |
label: '-' |
|
2840 |
) |
|
2841 |
(MenuItem |
|
2842 |
label: 'Halt when Text is Sent to Transcript...' |
|
2843 |
itemValue: openTranscriptDebugDialog |
|
2844 |
) |
|
2845 |
(MenuItem |
|
2846 |
label: 'Trace when Text is Sent to Transcript...' |
|
2847 |
itemValue: openTranscriptTraceDialog |
|
2848 |
) |
|
2849 |
(MenuItem |
|
13129 | 2850 |
label: 'Timestamp Transcript Messages' |
2851 |
itemValue: timestampTranscriptMessages: |
|
2852 |
indication: timestampTranscriptMessages |
|
2853 |
) |
|
16853 | 2854 |
(MenuItem |
2855 |
label: '-' |
|
2856 |
) |
|
2857 |
(MenuItem |
|
2858 |
activeHelpKey: systemInterruptLatency |
|
2859 |
label: 'Interrupt Latency' |
|
2860 |
itemValue: startLatencyMonitor |
|
2861 |
isVisible: false |
|
2862 |
) |
|
2863 |
(MenuItem |
|
2864 |
label: '-' |
|
2865 |
isVisible: false |
|
2866 |
) |
|
2867 |
(MenuItem |
|
2868 |
activeHelpKey: systemEventView |
|
2869 |
label: 'Event View' |
|
2870 |
itemValue: openApplication: |
|
2871 |
argument: 'EventMonitor' |
|
2872 |
) |
|
2873 |
(MenuItem |
|
2874 |
activeHelpKey: systemEventTrace |
|
2875 |
label: 'Event Trace' |
|
2876 |
itemValue: startStopEventTrace |
|
2877 |
) |
|
13129 | 2878 |
(MenuItem |
13033 | 2879 |
label: '-' |
2880 |
) |
|
2881 |
(MenuItem |
|
2882 |
activeHelpKey: enableGlobalCoverageAnalysis |
|
15193 | 2883 |
label: 'Clear all Coverage Info (Systemwide)' |
13033 | 2884 |
itemValue: clearAllCoverageInfo |
2885 |
) |
|
2886 |
(MenuItem |
|
2887 |
activeHelpKey: enableGlobalCoverageAnalysis |
|
15193 | 2888 |
label: 'Enable Coverage Analysis in all Processes' |
13033 | 2889 |
itemValue: enableGlobalCoverageAnalysis |
2890 |
) |
|
2891 |
) |
|
2892 |
nil |
|
2893 |
nil |
|
2894 |
) |
|
2895 |
) |
|
2896 |
(MenuItem |
|
2897 |
label: 'GUI' |
|
13050 | 2898 |
submenu: |
13033 | 2899 |
(Menu |
2900 |
( |
|
2901 |
(MenuItem |
|
2902 |
activeHelpKey: toolsGUIPainter |
|
2903 |
label: 'GUI Painter' |
|
2904 |
itemValue: openApplication: |
|
2905 |
nameKey: guiPainter |
|
2906 |
labelImage: (ResourceRetriever ToolbarIconLibrary startUIPainterIcon 'GUI Painter') |
|
2907 |
argument: 'UIPainter' |
|
2908 |
) |
|
2909 |
(MenuItem |
|
2910 |
activeHelpKey: toolsMenuEditor |
|
2911 |
label: 'Menu Editor' |
|
2912 |
itemValue: openApplication: |
|
2913 |
nameKey: menuEditor |
|
2914 |
labelImage: (ResourceRetriever ToolbarIconLibrary startMenuEditorIcon 'Menu Editor') |
|
2915 |
argument: 'MenuEditor' |
|
2916 |
) |
|
2917 |
(MenuItem |
|
2918 |
activeHelpKey: toolsImageEditor |
|
2919 |
label: 'Image Editor' |
|
2920 |
itemValue: openApplication: |
|
2921 |
nameKey: imageEditor |
|
2922 |
labelImage: (ResourceRetriever ToolbarIconLibrary startImageEditorIcon 'Image Editor') |
|
2923 |
argument: 'ImageEditor' |
|
2924 |
) |
|
2925 |
) |
|
2926 |
nil |
|
2927 |
nil |
|
2928 |
) |
|
2929 |
) |
|
2930 |
(MenuItem |
|
2931 |
label: '-' |
|
2932 |
) |
|
2933 |
(MenuItem |
|
2934 |
label: 'Bug Reporter' |
|
2935 |
itemValue: startBugMessages |
|
2936 |
nameKey: bugMessages |
|
2937 |
isVisible: bugReporterAvailable |
|
2938 |
labelImage: (ResourceRetriever NewLauncher bugReporterIcon 'Bug Reporter') |
|
2939 |
) |
|
2940 |
(MenuItem |
|
2941 |
activeHelpKey: fileApplicationBuilder |
|
2942 |
label: 'Application Packager (exe-Builder)' |
|
2943 |
itemValue: openApplication: |
|
2944 |
labelImage: (ResourceRetriever ToolbarIconLibrary projectBuilderIcon 'Application Packager (exe-Builder)') |
|
2945 |
argument: 'Tools::ProjectBuilderAssistantApplication' |
|
2946 |
) |
|
2947 |
(MenuItem |
|
2948 |
label: '-' |
|
2949 |
) |
|
2950 |
(MenuItem |
|
2951 |
activeHelpKey: toolsMisc |
|
2952 |
label: 'Misc' |
|
2953 |
nameKey: misc |
|
13050 | 2954 |
submenu: |
13033 | 2955 |
(Menu |
2956 |
( |
|
2957 |
(MenuItem |
|
2958 |
activeHelpKey: toolsMiscProjects |
|
2959 |
label: 'Projects' |
|
2960 |
isVisible: false |
|
13050 | 2961 |
submenu: |
13033 | 2962 |
(Menu |
2963 |
( |
|
2964 |
(MenuItem |
|
2965 |
activeHelpKey: toolsMiscProjectsNewProject |
|
2966 |
label: 'New Project' |
|
2967 |
itemValue: newProject |
|
2968 |
) |
|
2969 |
(MenuItem |
|
2970 |
label: '-' |
|
2971 |
) |
|
2972 |
(MenuItem |
|
2973 |
activeHelpKey: toolsMiscProjectsSelectProject |
|
2974 |
label: 'Select Project...' |
|
2975 |
itemValue: selectProject |
|
2976 |
) |
|
2977 |
) |
|
2978 |
nil |
|
2979 |
nil |
|
2980 |
) |
|
2981 |
) |
|
2982 |
(MenuItem |
|
2983 |
label: '-' |
|
2984 |
isVisible: false |
|
2985 |
) |
|
2986 |
(MenuItem |
|
2987 |
activeHelpKey: toolsMiscNewLauncher |
|
2988 |
label: 'Reopen Launcher' |
|
2989 |
itemValue: startNewLauncher |
|
2990 |
) |
|
2991 |
(MenuItem |
|
2992 |
activeHelpKey: demosRemoteLauncher |
|
2993 |
enabled: canOpenRemoteLauncher |
|
2994 |
label: 'Remote Launcher...' |
|
2995 |
itemValue: startRemoteLauncher |
|
2996 |
) |
|
2997 |
(MenuItem |
|
2998 |
activeHelpKey: demosPDALauncher |
|
2999 |
label: 'PDA Launcher...' |
|
3000 |
itemValue: startPDALauncher |
|
3001 |
isVisible: hasPDALauncher |
|
3002 |
) |
|
3003 |
(MenuItem |
|
3004 |
label: '-' |
|
3005 |
) |
|
3006 |
(MenuItem |
|
3007 |
activeHelpKey: toolsMiscNewChangesBrowser |
|
3008 |
label: 'New Changes Browser' |
|
3009 |
itemValue: startNewChangesBrowser |
|
3010 |
) |
|
3011 |
(MenuItem |
|
3012 |
activeHelpKey: toolsMiscOldChangesBrowser |
|
3013 |
label: 'Old Changes Browser' |
|
3014 |
itemValue: startOldChangesBrowser |
|
3015 |
) |
|
3016 |
(MenuItem |
|
3017 |
label: '-' |
|
3018 |
isVisible: canDoTerminal |
|
3019 |
) |
|
3020 |
(MenuItem |
|
3021 |
activeHelpKey: toolsTerminal |
|
3022 |
label: 'Terminal' |
|
3023 |
itemValue: openTerminal |
|
3024 |
isVisible: canDoTerminal |
|
3025 |
) |
|
3026 |
(MenuItem |
|
16853 | 3027 |
label: 'Text Diff' |
3028 |
itemValue: openTextDiffTool |
|
3029 |
) |
|
3030 |
(MenuItem |
|
13033 | 3031 |
label: '-' |
3032 |
isVisible: canDoTerminal |
|
3033 |
) |
|
3034 |
(MenuItem |
|
3035 |
label: 'Inspect Global Variables' |
|
3036 |
itemValue: inspectGlobalVariables |
|
3037 |
) |
|
3038 |
(MenuItem |
|
3039 |
label: 'Inspect Workspace Variables' |
|
3040 |
itemValue: inspectWorkspaceVariables |
|
3041 |
) |
|
3042 |
(MenuItem |
|
15194 | 3043 |
label: 'Remove all Workspace Variables' |
13033 | 3044 |
itemValue: removeAllWorkspaceVariables |
3045 |
) |
|
3046 |
) |
|
3047 |
nil |
|
3048 |
nil |
|
3049 |
) |
|
3050 |
) |
|
3051 |
) |
|
3052 |
nil |
|
3053 |
nil |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3054 |
) |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3055 |
! |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3056 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3057 |
windowsMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3058 |
"This resource specification was automatically generated |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3059 |
by the MenuEditor of ST/X." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3060 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3061 |
"Do not manually edit this!! If it is corrupted, |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3062 |
the MenuEditor may not be able to read the specification." |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3063 |
|
11486 | 3064 |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3065 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3066 |
MenuEditor new openOnClass:NewLauncher andSelector:#windowsMenu |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3067 |
(Menu new fromLiteralArrayEncoding:(NewLauncher windowsMenu)) startUp |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3068 |
" |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3069 |
|
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3070 |
<resource: #menu> |
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3071 |
|
12838 | 3072 |
^ |
7978 | 3073 |
#(Menu |
12838 | 3074 |
( |
3075 |
(MenuItem |
|
3076 |
label: 'Window' |
|
3077 |
submenuChannel: allWindowsMenu |
|
3078 |
) |
|
3079 |
(MenuItem |
|
3080 |
label: '-' |
|
3081 |
) |
|
3082 |
(MenuItem |
|
3083 |
activeHelpKey: windowsIconifyAll |
|
3084 |
label: 'Iconify All' |
|
3085 |
itemValue: iconifyAllWindows |
|
3086 |
) |
|
3087 |
(MenuItem |
|
3088 |
activeHelpKey: windowsDeiconifyAll |
|
3089 |
label: 'Deiconify All' |
|
3090 |
itemValue: deIconifyAllWindows |
|
3091 |
) |
|
3092 |
(MenuItem |
|
3093 |
activeHelpKey: windowsRedrawAll |
|
3094 |
label: 'Redraw All' |
|
3095 |
itemValue: redrawAllWindows |
|
3096 |
) |
|
3097 |
(MenuItem |
|
3098 |
label: 'Migrate' |
|
3099 |
submenu: |
|
3100 |
(Menu |
|
3101 |
( |
|
3102 |
(MenuItem |
|
15023 | 3103 |
label: 'Bring All Windows onto Screen' |
13653 | 3104 |
itemValue: bringAllWindowsOntoScreen |
3105 |
) |
|
3106 |
(MenuItem |
|
3107 |
label: '-' |
|
3108 |
) |
|
3109 |
(MenuItem |
|
12838 | 3110 |
activeHelpKey: windowsMigrateAllWindows |
3111 |
enabled: windowMigrationFunctionsAreShown |
|
3112 |
label: 'Migrate All To...' |
|
3113 |
itemValue: migrateAllWindows |
|
3114 |
) |
|
3115 |
(MenuItem |
|
3116 |
activeHelpKey: windowsSelectAndMigrate |
|
3117 |
enabled: windowMigrationFunctionsAreShown |
|
3118 |
label: 'Select and Migrate To...' |
|
3119 |
itemValue: viewMigrate |
|
3120 |
) |
|
3121 |
(MenuItem |
|
14573 | 3122 |
activeHelpKey: windowsSelectAndMigrate |
3123 |
enabled: windowMigrationFunctionsAreShown |
|
3124 |
label: 'Select and Shrink...' |
|
3125 |
itemValue: viewSelectAndShrink |
|
3126 |
) |
|
3127 |
(MenuItem |
|
12838 | 3128 |
activeHelpKey: windowsFindAndMigrate |
3129 |
enabled: windowMigrationFunctionsAreShown |
|
3130 |
label: 'Find by Name and Migrate To...' |
|
3131 |
itemValue: findAndMigrateWindow |
|
3132 |
) |
|
3133 |
(MenuItem |
|
3134 |
activeHelpKey: windowsFindAndMigrateBack |
|
3135 |
enabled: windowMigrationFunctionsAreShown |
|
3136 |
label: 'Find by Name and Migrate Back...' |
|
3137 |
itemValue: findAndMigrateWindowBack |
|
3138 |
) |
|
3139 |
) |
|
3140 |
nil |
|
3141 |
nil |
|
3142 |
) |
|
3143 |
) |
|
3144 |
(MenuItem |
|
3145 |
label: '-' |
|
3146 |
) |
|
3147 |
(MenuItem |
|
3148 |
activeHelpKey: windowsViewTree |
|
3149 |
label: 'Window Tree' |
|
3150 |
itemValue: startWindowTreeView |
|
3151 |
isVisible: windowTreeViewAvailable |
|
3152 |
) |
|
3153 |
(MenuItem |
|
3154 |
activeHelpKey: windowsViewTreeAllViews |
|
3155 |
label: 'Window Tree (All Windows)' |
|
3156 |
itemValue: openApplication: |
|
3157 |
isVisible: windowTreeViewAvailable |
|
3158 |
argument: 'WindowTreeView' |
|
3159 |
) |
|
3160 |
(MenuItem |
|
3161 |
activeHelpKey: windowsViewTreeAllScreens |
|
15023 | 3162 |
label: 'Window Tree (All Windows on All Screens)' |
12838 | 3163 |
itemValue: startWindowTreeViewForAll |
3164 |
isVisible: windowTreeViewAvailable |
|
3165 |
) |
|
3166 |
(MenuItem |
|
3167 |
activeHelpKey: flyByWindowInformation |
|
3168 |
label: 'FlyBy Window Information' |
|
3169 |
itemValue: showFlyByWindowInformation |
|
3170 |
labelImage: (ResourceRetriever ToolbarIconLibrary viewFlyByInfo22x22Icon 'FlyBy Window Information') |
|
3171 |
) |
|
3172 |
(MenuItem |
|
3173 |
label: '-' |
|
3174 |
) |
|
3175 |
(MenuItem |
|
13136 | 3176 |
activeHelpKey: windowsViewTree |
3177 |
label: 'Select and Inspect Hierarchy...' |
|
3178 |
itemValue: openWindowTreeInspector |
|
3179 |
labelImage: (ResourceRetriever ToolbarIconLibrary viewInspect22x22Icon 'Select and Inspect Hierarchy...') |
|
3180 |
) |
|
3181 |
(MenuItem |
|
12838 | 3182 |
activeHelpKey: windowsSelectAndInspect |
3183 |
label: 'Select and Inspect...' |
|
3184 |
itemValue: viewInspect |
|
3185 |
) |
|
3186 |
(MenuItem |
|
3187 |
activeHelpKey: windowsSelectAndInspect |
|
3188 |
label: 'Select and Browse...' |
|
3189 |
itemValue: viewBrowse |
|
3190 |
) |
|
3191 |
(MenuItem |
|
3192 |
activeHelpKey: windowsSelectAndDestroy |
|
3193 |
label: 'Select and Destroy...' |
|
3194 |
itemValue: viewDestroy |
|
3195 |
) |
|
3196 |
(MenuItem |
|
3197 |
label: '-' |
|
3198 |
) |
|
3199 |
(MenuItem |
|
3200 |
activeHelpKey: windowsFindAndRaise |
|
3201 |
enabled: enableDangerousMenuItemsInRemoteLauncher |
|
3202 |
label: 'Find by Name and Raise...' |
|
3203 |
itemValue: findAndRaiseWindow |
|
3204 |
) |
|
3205 |
(MenuItem |
|
3206 |
activeHelpKey: windowsFindAndDestroy |
|
3207 |
enabled: enableDangerousMenuItemsInRemoteLauncher |
|
3208 |
label: 'Find by Name and Destroy...' |
|
3209 |
itemValue: findAndDestroyWindow |
|
3210 |
) |
|
3211 |
(MenuItem |
|
3212 |
label: '-' |
|
3213 |
) |
|
3214 |
(MenuItem |
|
3215 |
activeHelpKey: windowsGrapWindow |
|
3216 |
label: 'Select and Grab Window...' |
|
3217 |
itemValue: viewHardcopy |
|
15365 | 3218 |
labelImage: (ResourceRetriever ToolbarIconLibrary snapshot24x24Icon 'Select and Grab Window...') |
12838 | 3219 |
) |
3220 |
(MenuItem |
|
3221 |
activeHelpKey: windowsGrapWidget |
|
3222 |
label: 'Select and Grab Widget...' |
|
3223 |
itemValue: widgetHardcopy |
|
3224 |
) |
|
3225 |
(MenuItem |
|
3226 |
activeHelpKey: windowsGrapScreen |
|
3227 |
label: 'Grab Screen...' |
|
3228 |
itemValue: fullScreenHardcopy |
|
3229 |
) |
|
3230 |
(MenuItem |
|
3231 |
activeHelpKey: windowsGrapScreenArea |
|
3232 |
label: 'Grab Screen Area...' |
|
3233 |
itemValue: screenHardcopy |
|
3234 |
) |
|
3235 |
(MenuItem |
|
3236 |
activeHelpKey: windowsGrapScreenArea |
|
3237 |
label: 'Grab Screen Area with Delay...' |
|
3238 |
itemValue: screenHardcopyWithDelay |
|
3239 |
) |
|
3240 |
) |
|
3241 |
nil |
|
3242 |
nil |
|
2774
bc4b37856b64
separate menuSpecs, for easier subclassing
Claus Gittinger <cg@exept.de>
parents:
2767
diff
changeset
|
3243 |
) |
1441 | 3244 |
! ! |
3245 |
||
7680 | 3246 |
!NewLauncher class methodsFor:'oldstyle-menu specs'! |
3247 |
||
3248 |
settingsMenu |
|
3249 |
"This resource specification was automatically generated |
|
3250 |
by the MenuEditor of ST/X." |
|
3251 |
||
3252 |
"Do not manually edit this!! If it is corrupted, |
|
3253 |
the MenuEditor may not be able to read the specification." |
|
3254 |
||
3255 |
" |
|
3256 |
MenuEditor new openOnClass:NewLauncher andSelector:#settingsMenu |
|
3257 |
(Menu new fromLiteralArrayEncoding:(NewLauncher settingsMenu)) startUp |
|
3258 |
" |
|
3259 |
||
3260 |
<resource: #menu> |
|
3261 |
||
12335 | 3262 |
^ |
7680 | 3263 |
#(#Menu |
12335 | 3264 |
#( |
3265 |
#(#MenuItem |
|
3266 |
#activeHelpKey: #settingsLanguage |
|
3267 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3268 |
#label: 'Language...' |
|
3269 |
#itemValue: #languageSetting |
|
3270 |
#translateLabel: true |
|
3271 |
) |
|
3272 |
#(#MenuItem |
|
3273 |
#activeHelpKey: #settingsKeyboardMappings |
|
3274 |
#label: 'Keyboard Mappings...' |
|
3275 |
#itemValue: #keyboardSetting |
|
3276 |
#translateLabel: true |
|
3277 |
) |
|
3278 |
#(#MenuItem |
|
3279 |
#activeHelpKey: #settingsViewStyle |
|
3280 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3281 |
#label: 'View Style...' |
|
3282 |
#itemValue: #viewStyleSetting |
|
3283 |
#translateLabel: true |
|
3284 |
) |
|
3285 |
#(#MenuItem |
|
3286 |
#activeHelpKey: #settingsFonts |
|
3287 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3288 |
#label: 'Fonts...' |
|
3289 |
#itemValue: #fontSettings |
|
3290 |
#translateLabel: true |
|
3291 |
) |
|
3292 |
#(#MenuItem |
|
3293 |
#label: '-' |
|
3294 |
) |
|
3295 |
#(#MenuItem |
|
3296 |
#activeHelpKey: #settingsMessages |
|
3297 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3298 |
#label: 'Messages...' |
|
3299 |
#itemValue: #messageSettings |
|
3300 |
#translateLabel: true |
|
3301 |
) |
|
3302 |
#(#MenuItem |
|
3303 |
#activeHelpKey: #settingsCompilation |
|
3304 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3305 |
#label: 'Compilation...' |
|
3306 |
#itemValue: #compilerSettings |
|
3307 |
#translateLabel: true |
|
3308 |
) |
|
3309 |
#(#MenuItem |
|
3310 |
#activeHelpKey: #settingsObjectMemory |
|
3311 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3312 |
#label: 'Object Memory...' |
|
3313 |
#itemValue: #memorySettings |
|
3314 |
#translateLabel: true |
|
3315 |
) |
|
3316 |
#(#MenuItem |
|
3317 |
#activeHelpKey: #settingsSourceAndDebugger |
|
3318 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3319 |
#label: 'Source and Debugger...' |
|
3320 |
#itemValue: #sourceAndDebuggerSettings |
|
3321 |
#translateLabel: true |
|
3322 |
) |
|
3323 |
#(#MenuItem |
|
3324 |
#activeHelpKey: #settingsTools |
|
3325 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3326 |
#label: 'Tools...' |
|
3327 |
#itemValue: #toolSettings |
|
3328 |
#translateLabel: true |
|
3329 |
) |
|
3330 |
#(#MenuItem |
|
3331 |
#activeHelpKey: #settingsJava |
|
3332 |
#label: 'Java...' |
|
3333 |
#itemValue: #javaSettings |
|
3334 |
#translateLabel: true |
|
3335 |
#isVisible: #javaSupportPresent |
|
3336 |
) |
|
3337 |
#(#MenuItem |
|
3338 |
#label: '-' |
|
3339 |
) |
|
3340 |
#(#MenuItem |
|
3341 |
#activeHelpKey: #settingsPrinter |
|
3342 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3343 |
#label: 'Printer...' |
|
3344 |
#itemValue: #printerSettings |
|
3345 |
#translateLabel: true |
|
3346 |
) |
|
3347 |
#(#MenuItem |
|
3348 |
#activeHelpKey: #settingsScreen |
|
3349 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3350 |
#label: 'Screen...' |
|
3351 |
#itemValue: #displaySettings |
|
3352 |
#translateLabel: true |
|
3353 |
) |
|
3354 |
#(#MenuItem |
|
3355 |
#label: '-' |
|
3356 |
) |
|
3357 |
#(#MenuItem |
|
3358 |
#activeHelpKey: #settingsMisc |
|
3359 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3360 |
#label: 'Editing...' |
|
3361 |
#itemValue: #editSettings |
|
3362 |
#translateLabel: true |
|
3363 |
) |
|
3364 |
#(#MenuItem |
|
3365 |
#activeHelpKey: #settingsMisc |
|
3366 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3367 |
#label: 'Misc...' |
|
3368 |
#itemValue: #miscSettings |
|
3369 |
#translateLabel: true |
|
3370 |
) |
|
3371 |
#(#MenuItem |
|
3372 |
#activeHelpKey: #settingsCommunications |
|
3373 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3374 |
#label: 'Communications...' |
|
3375 |
#itemValue: #communicationsSettings |
|
3376 |
#translateLabel: true |
|
3377 |
#isVisible: false |
|
3378 |
) |
|
3379 |
#(#MenuItem |
|
3380 |
#label: '-' |
|
3381 |
) |
|
3382 |
#(#MenuItem |
|
3383 |
#activeHelpKey: #settingsSaveSettings |
|
3384 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3385 |
#label: 'Save Settings...' |
|
3386 |
#itemValue: #saveSettings |
|
3387 |
#translateLabel: true |
|
3388 |
) |
|
3389 |
#(#MenuItem |
|
3390 |
#activeHelpKey: #settingsLoadSettings |
|
3391 |
#enabled: #enableDangerousMenuItemsInRemoteLauncher |
|
3392 |
#label: 'Load Settings...' |
|
3393 |
#itemValue: #loadSettings |
|
3394 |
#translateLabel: true |
|
3395 |
) |
|
3396 |
) |
|
3397 |
nil |
|
3398 |
nil |
|
7680 | 3399 |
) |
3400 |
! ! |
|
3401 |
||
1659 | 3402 |
!NewLauncher methodsFor:'accessing'! |
3403 |
||
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3404 |
errorListCanvas |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3405 |
errorListCanvas isNil ifTrue:[ |
12335 | 3406 |
errorListCanvas := DataSetView new. |
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3407 |
]. |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3408 |
^ errorListCanvas |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3409 |
! |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3410 |
|
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3411 |
examples |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3412 |
" |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3413 |
reopening a standard launcher (without any added tools) |
12335 | 3414 |
[exBegin] |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3415 |
NewLauncher removeAllUserAddedTools. |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3416 |
NewLauncher open. |
12335 | 3417 |
[exEnd] |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3418 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3419 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3420 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3421 |
adding your own menu items (for user-applications) |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3422 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3423 |
an additional item in the tools menu: |
12335 | 3424 |
[exBegin] |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3425 |
Transcript topView application |
12335 | 3426 |
addMenuItem:(MenuItem new |
3427 |
label: 'Foo'; |
|
3428 |
value: [Transcript showCR:'foo invoked']; |
|
3429 |
isButton: false; |
|
3430 |
labelImage: nil; |
|
3431 |
nameKey: #foo; |
|
3432 |
activeHelpKey: #Foo) |
|
3433 |
in:#menu |
|
3434 |
position:#(before workspace) |
|
3435 |
space:true |
|
3436 |
[exEnd] |
|
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3437 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3438 |
an additional item in the tools menu: |
12335 | 3439 |
[exBegin] |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3440 |
Transcript topView application |
12335 | 3441 |
addMenuItem:(MenuItem new |
3442 |
label: 'Foo'; |
|
3443 |
value: [Transcript showCR:'foo invoked']; |
|
3444 |
isButton: false; |
|
3445 |
labelImage: nil; |
|
3446 |
activeHelpKey: #Foo) |
|
3447 |
in:#menu |
|
3448 |
position:#(after guiPainter) |
|
3449 |
space:true |
|
3450 |
[exEnd] |
|
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3451 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3452 |
an additional item in one of the tools sub menus: |
12335 | 3453 |
[exBegin] |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3454 |
Transcript topView application |
12335 | 3455 |
addMenuItem:(MenuItem new |
3456 |
label: 'Foo'; |
|
3457 |
value: [Transcript showCR:'foo invoked']; |
|
3458 |
isButton: false; |
|
3459 |
labelImage: nil; |
|
3460 |
activeHelpKey: #Foo) |
|
3461 |
in:#toolbar |
|
3462 |
position:#(after Workspace) |
|
3463 |
space:true |
|
3464 |
[exEnd] |
|
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3465 |
" |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3466 |
! |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3467 |
|
8789
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3468 |
infoLineTemplate |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3469 |
"controls what is shown in the lower info - line. |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3470 |
See classes defaultInfoLineTemplate and updateInfo for desription." |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3471 |
|
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3472 |
^ infoLineTemplate ? (self class defaultInfoLineTemplate) |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3473 |
! |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3474 |
|
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3475 |
infoLineTemplate:aString |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3476 |
"controls what is shown in the lower info - line. |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3477 |
See classes defaultInfoLineTemplate and updateInfo for desription." |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3478 |
|
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3479 |
infoLineTemplate := aString. |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3480 |
! |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3481 |
|
1659 | 3482 |
menuToolbar |
8789
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3483 |
"provide access to my toolBar" |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3484 |
|
3449
10132cfd63ec
findGuiResources... now sets the receiver, if not yet set
Claus Gittinger <cg@exept.de>
parents:
3418
diff
changeset
|
3485 |
|menu| |
1659 | 3486 |
|
7762 | 3487 |
menu := Menu decodeFromLiteralArray:(self class menuToolbar). |
3449
10132cfd63ec
findGuiResources... now sets the receiver, if not yet set
Claus Gittinger <cg@exept.de>
parents:
3418
diff
changeset
|
3488 |
"/ menu receiver:self. -- now done in findGuiResources ... |
1659 | 3489 |
menu findGuiResourcesIn:self. |
3490 |
||
3491 |
^ menu |
|
7762 | 3492 |
|
3493 |
"Modified: / 27-03-2007 / 08:43:32 / cg" |
|
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3494 |
! |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3495 |
|
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3496 |
transcriptView |
8789
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3497 |
"provide access to my transcript view" |
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3498 |
|
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3499 |
transcript isNil ifTrue:[ |
12335 | 3500 |
(self componentAt: #transcriptView) notNil ifTrue:[ |
3501 |
transcript := (self componentAt: #transcriptView) subViews first. |
|
3502 |
] ifFalse:[ |
|
3503 |
transcript := Workspace new. |
|
3504 |
] |
|
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3505 |
]. |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3506 |
^ transcript |
1659 | 3507 |
! ! |
3508 |
||
1544 | 3509 |
!NewLauncher methodsFor:'aspects'! |
3510 |
||
1752 | 3511 |
canDoTerminal |
2009 | 3512 |
"return a 'valueHolder', which returns true if the terminal application |
3513 |
is available. For now, this is true if we run under unix" |
|
3514 |
||
12335 | 3515 |
^ OperatingSystem isUNIXlike |
2130 | 3516 |
or:[OperatingSystem isMSWINDOWSlike] |
1752 | 3517 |
|
3518 |
"Created: / 27.7.1998 / 12:47:54 / cg" |
|
2130 | 3519 |
"Modified: / 28.4.1999 / 11:55:24 / cg" |
1752 | 3520 |
! |
3521 |
||
7894
0c57fb46c8a7
disable remoteLauncher if there is no XWorkstation
Claus Gittinger <cg@exept.de>
parents:
7881
diff
changeset
|
3522 |
canOpenRemoteLauncher |
0c57fb46c8a7
disable remoteLauncher if there is no XWorkstation
Claus Gittinger <cg@exept.de>
parents:
7881
diff
changeset
|
3523 |
^ XWorkstation notNil and:[ XWorkstation isLoaded ] |
0c57fb46c8a7
disable remoteLauncher if there is no XWorkstation
Claus Gittinger <cg@exept.de>
parents:
7881
diff
changeset
|
3524 |
|
0c57fb46c8a7
disable remoteLauncher if there is no XWorkstation
Claus Gittinger <cg@exept.de>
parents:
7881
diff
changeset
|
3525 |
"Created: / 09-11-2007 / 12:10:51 / cg" |
0c57fb46c8a7
disable remoteLauncher if there is no XWorkstation
Claus Gittinger <cg@exept.de>
parents:
7881
diff
changeset
|
3526 |
! |
0c57fb46c8a7
disable remoteLauncher if there is no XWorkstation
Claus Gittinger <cg@exept.de>
parents:
7881
diff
changeset
|
3527 |
|
2698
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
3528 |
chickenFunIsRunning |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
3529 |
"return a 'valueHolder', which returns true if the chickenFun demo is running." |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
3530 |
|
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
3531 |
^ [Demos::ChickenFun notNil |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
3532 |
and:[Demos::ChickenFun isLoaded |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
3533 |
and:[Demos::ChickenFun isRunning]]] |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
3534 |
! |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
3535 |
|
8178 | 3536 |
debuggerHasIgnoredHalts |
14501 | 3537 |
^ DebugView notNil and:[ DebugView hasIgnoredHalts or:[ Smalltalk ignoreHalt ]] |
3538 |
||
3539 |
"Modified: / 10-07-2010 / 18:47:36 / cg" |
|
3540 |
! |
|
3541 |
||
3542 |
debuggerHasIgnoredHaltsOrSmalltalkIsIgnoringHalts |
|
3543 |
^ DebugView notNil and:[ DebugView hasIgnoredHalts or:[ Smalltalk ignoreHalt ]] |
|
9516
a472b6e9b28e
changed: #debuggerHasIgnoredHalts
Claus Gittinger <cg@exept.de>
parents:
9404
diff
changeset
|
3544 |
|
a472b6e9b28e
changed: #debuggerHasIgnoredHalts
Claus Gittinger <cg@exept.de>
parents:
9404
diff
changeset
|
3545 |
"Modified: / 10-07-2010 / 18:47:36 / cg" |
8178 | 3546 |
! |
3547 |
||
2136 | 3548 |
displaySupportsGLDrawing |
3549 |
"return a 'valueHolder', which returns true if the GL support |
|
3550 |
is available." |
|
3551 |
||
3552 |
^ [Screen current supportsGLDrawing] |
|
3553 |
||
3554 |
"Modified: / 13.2.1998 / 14:26:31 / cg" |
|
3555 |
"Created: / 3.5.1999 / 16:47:22 / cg" |
|
3556 |
! |
|
3557 |
||
1544 | 3558 |
enableDangerousMenuItemsInRemoteLauncher |
3559 |
||
3560 |
|holder| |
|
2558 | 3561 |
|
1544 | 3562 |
(holder := builder bindingAt:#enableDangerousMenuItemsInRemoteLauncher) isNil ifTrue:[ |
15264 | 3563 |
builder aspectAt:#enableDangerousMenuItemsInRemoteLauncher |
3564 |
put:(holder := ValueHolder with:true). |
|
1544 | 3565 |
]. |
3566 |
^ holder |
|
3567 |
! |
|
3568 |
||
3897 | 3569 |
fileBrowserItemVisible |
3909 | 3570 |
|holder| |
3571 |
||
3572 |
(holder := builder bindingAt:#fileBrowserItemVisible) isNil ifTrue:[ |
|
15264 | 3573 |
builder |
3574 |
aspectAt:#fileBrowserItemVisible |
|
3575 |
put:(holder := ValueHolder with:UserPreferences current useNewFileBrowser not) |
|
3909 | 3576 |
]. |
3577 |
^ holder |
|
3897 | 3578 |
! |
3579 |
||
8725 | 3580 |
historyManagerActive |
3581 |
"Answer whether the history manager is active." |
|
3582 |
||
3583 |
^[HistoryManager isActive] |
|
3584 |
||
3585 |
"Created: / 20-06-2004 / 16:05:41 / masca" |
|
3586 |
"Modified: / 20-04-2005 / 18:59:28 / janfrog" |
|
3587 |
! |
|
3588 |
||
2756
183efc156402
remote launchers show a 'close' item (instead of 'exit')
Claus Gittinger <cg@exept.de>
parents:
2738
diff
changeset
|
3589 |
isMainLauncherHolder |
183efc156402
remote launchers show a 'close' item (instead of 'exit')
Claus Gittinger <cg@exept.de>
parents:
2738
diff
changeset
|
3590 |
^ [ isMainLauncher ] |
183efc156402
remote launchers show a 'close' item (instead of 'exit')
Claus Gittinger <cg@exept.de>
parents:
2738
diff
changeset
|
3591 |
! |
183efc156402
remote launchers show a 'close' item (instead of 'exit')
Claus Gittinger <cg@exept.de>
parents:
2738
diff
changeset
|
3592 |
|
183efc156402
remote launchers show a 'close' item (instead of 'exit')
Claus Gittinger <cg@exept.de>
parents:
2738
diff
changeset
|
3593 |
isNotMainLauncherHolder |
183efc156402
remote launchers show a 'close' item (instead of 'exit')
Claus Gittinger <cg@exept.de>
parents:
2738
diff
changeset
|
3594 |
^ [ isMainLauncher not ] |
183efc156402
remote launchers show a 'close' item (instead of 'exit')
Claus Gittinger <cg@exept.de>
parents:
2738
diff
changeset
|
3595 |
! |
183efc156402
remote launchers show a 'close' item (instead of 'exit')
Claus Gittinger <cg@exept.de>
parents:
2738
diff
changeset
|
3596 |
|
1544 | 3597 |
javaSupportPresent |
2009 | 3598 |
"return a 'valueHolder', which returns true if the java support |
3599 |
is available." |
|
3600 |
||
1914 | 3601 |
^ [JavaVM notNil and:[JavaVM isBehavior and:[JavaVM isLoaded]]] |
1544 | 3602 |
|
3603 |
"Created: / 13.2.1998 / 14:25:59 / cg" |
|
3604 |
"Modified: / 13.2.1998 / 14:26:31 / cg" |
|
1711
a4318a71e939
hide appBuilder & libBuilder
Claus Gittinger <cg@exept.de>
parents:
1710
diff
changeset
|
3605 |
! |
a4318a71e939
hide appBuilder & libBuilder
Claus Gittinger <cg@exept.de>
parents:
1710
diff
changeset
|
3606 |
|
a4318a71e939
hide appBuilder & libBuilder
Claus Gittinger <cg@exept.de>
parents:
1710
diff
changeset
|
3607 |
libraryBuilderAvailable |
a4318a71e939
hide appBuilder & libBuilder
Claus Gittinger <cg@exept.de>
parents:
1710
diff
changeset
|
3608 |
^ false |
a4318a71e939
hide appBuilder & libBuilder
Claus Gittinger <cg@exept.de>
parents:
1710
diff
changeset
|
3609 |
|
a4318a71e939
hide appBuilder & libBuilder
Claus Gittinger <cg@exept.de>
parents:
1710
diff
changeset
|
3610 |
"Created: / 20.6.1998 / 16:54:31 / cg" |
2068
2eea9103d515
hide 'show active help' menu item - for now.
Claus Gittinger <cg@exept.de>
parents:
2046
diff
changeset
|
3611 |
! |
2eea9103d515
hide 'show active help' menu item - for now.
Claus Gittinger <cg@exept.de>
parents:
2046
diff
changeset
|
3612 |
|
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3613 |
noteBookCanvasHolder |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3614 |
|holder| |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3615 |
|
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3616 |
(holder := builder bindingAt:#noteBookCanvasHolder) isNil ifTrue:[ |
15264 | 3617 |
builder aspectAt:#noteBookCanvasHolder put:(holder := ValueHolder with:nil). |
3618 |
holder value:self transcriptView. |
|
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3619 |
]. |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3620 |
^ holder |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3621 |
! |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3622 |
|
8951 | 3623 |
oomPackageLoaded |
3624 |
"true if the oom (metrics) package is loaded" |
|
3625 |
||
3626 |
"/ access via at: to prevent preference-detector from including oom as |
|
3627 |
"/ prerequisite for NewLaucher. |
|
3628 |
^ (Smalltalk at:#'OOM::MetricVisualizer') isBehavior |
|
3629 |
! |
|
3630 |
||
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3631 |
selectedTabHolder |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3632 |
|holder| |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3633 |
|
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3634 |
(holder := builder bindingAt:#selectedTabHolder) isNil ifTrue:[ |
15264 | 3635 |
builder aspectAt:#selectedTabHolder put:(holder := ValueHolder with:1). |
3636 |
holder addDependent:self. |
|
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3637 |
]. |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3638 |
^ holder |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3639 |
! |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3640 |
|
2068
2eea9103d515
hide 'show active help' menu item - for now.
Claus Gittinger <cg@exept.de>
parents:
2046
diff
changeset
|
3641 |
showActiveHelpMenuItem |
2eea9103d515
hide 'show active help' menu item - for now.
Claus Gittinger <cg@exept.de>
parents:
2046
diff
changeset
|
3642 |
^ false |
3897 | 3643 |
! |
3644 |
||
8951 | 3645 |
smaccPackageLoaded |
11770
592d60ff706f
changed: #smaccPackageLoaded
Claus Gittinger <cg@exept.de>
parents:
11730
diff
changeset
|
3646 |
"true if the smacc (compiler-compiler) package is loaded" |
592d60ff706f
changed: #smaccPackageLoaded
Claus Gittinger <cg@exept.de>
parents:
11730
diff
changeset
|
3647 |
|
592d60ff706f
changed: #smaccPackageLoaded
Claus Gittinger <cg@exept.de>
parents:
11730
diff
changeset
|
3648 |
"/ access via at: to prevent preference-detector from including smacc as |
8951 | 3649 |
"/ prerequisite for NewLaucher. |
11770
592d60ff706f
changed: #smaccPackageLoaded
Claus Gittinger <cg@exept.de>
parents:
11730
diff
changeset
|
3650 |
^ (Smalltalk at:#'SmaCC::SmaCCParserGenerator') isBehavior |
8951 | 3651 |
! |
3652 |
||
7508 | 3653 |
smallTeamAvailable |
3654 |
^ SmallTeam notNil |
|
3655 |
||
3656 |
"Created: / 12-11-2006 / 16:09:18 / cg" |
|
3657 |
! |
|
3658 |
||
6420 | 3659 |
sqlWorkspaceItemVisible |
3660 |
^ (Smalltalk at:#'SQL::ODBCScratchpad') notNil |
|
3661 |
! |
|
3662 |
||
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3663 |
tabList |
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3664 |
^ resources array:#('Transcript' 'Errors'). |
8575
00d0548d17c4
webDocumentsItemShownInHelpMenu
Claus Gittinger <cg@exept.de>
parents:
8423
diff
changeset
|
3665 |
! |
00d0548d17c4
webDocumentsItemShownInHelpMenu
Claus Gittinger <cg@exept.de>
parents:
8423
diff
changeset
|
3666 |
|
00d0548d17c4
webDocumentsItemShownInHelpMenu
Claus Gittinger <cg@exept.de>
parents:
8423
diff
changeset
|
3667 |
webDocumentsItemShownInHelpMenu |
00d0548d17c4
webDocumentsItemShownInHelpMenu
Claus Gittinger <cg@exept.de>
parents:
8423
diff
changeset
|
3668 |
^ false |
1544 | 3669 |
! ! |
3670 |
||
3671 |
!NewLauncher methodsFor:'change & update'! |
|
3672 |
||
3673 |
update:something with:aParameter from:changedObject |
|
3674 |
"care for project changes & update my infoView" |
|
3675 |
||
12838 | 3676 |
((something == #currentProject) |
3677 |
or:[ (changedObject == Project) |
|
3678 |
or:[ (something == #finishedSnapshot)]]) ifTrue: [self updateInfo]. |
|
3679 |
||
3680 |
||
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3681 |
changedObject == self selectedTabHolder ifTrue: [ |
12838 | 3682 |
changedObject value == 1 ifTrue:[ |
3683 |
self noteBookCanvasHolder value:self transcriptView. |
|
3684 |
^ self. |
|
3685 |
]. |
|
3686 |
changedObject value == 2 ifTrue:[ |
|
3687 |
self noteBookCanvasHolder value:self errorListCanvas. |
|
3688 |
^ self. |
|
3689 |
]. |
|
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
3690 |
]. |
6167 | 3691 |
super update:something with:aParameter from:changedObject. |
1544 | 3692 |
! |
3693 |
||
3694 |
updateInfo |
|
8789
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3695 |
"update the infoLabel (at the bottom) from the current project" |
1544 | 3696 |
|
15358 | 3697 |
|project projectDir packageName packageNameOrNil defNameSpace projectInfo |
16508 | 3698 |
cvsRepository storeDB image bindings makeInfoString |
3699 |
svnRepositoryManagerClass svnWorkDirBaseName| |
|
7073 | 3700 |
|
3701 |
(Project notNil and:[(project := Project current) notNil]) ifTrue:[ |
|
12745 | 3702 |
projectDir := project directory. |
3703 |
packageName := packageNameOrNil := project package. |
|
3704 |
defNameSpace := project defaultNameSpace. |
|
3705 |
packageNameOrNil = PackageId noProjectID ifTrue:[ |
|
3706 |
packageNameOrNil := nil |
|
3707 |
]. |
|
1544 | 3708 |
]. |
3709 |
defNameSpace isNil ifTrue:[ |
|
12745 | 3710 |
defNameSpace := Smalltalk. |
1544 | 3711 |
]. |
6998 | 3712 |
image := ((ObjectMemory imageName ? 'none') asFilename baseName). |
3713 |
||
3714 |
SourceCodeManager notNil ifTrue:[ |
|
12745 | 3715 |
SourceCodeManager isCVS ifTrue:[ |
3716 |
cvsRepository := SourceCodeManager repositoryName. |
|
3717 |
(cvsRepository notNil) ifTrue:[ |
|
3718 |
cvsRepository := cvsRepository withoutPrefix:':pserver:'. |
|
3719 |
]. |
|
3720 |
] ifFalse:[ |
|
3721 |
SourceCodeManager isStore ifTrue:[ |
|
3722 |
storeDB := SourceCodeManager hostAndDBName |
|
3723 |
] |
|
3724 |
] |
|
6998 | 3725 |
]. |
1544 | 3726 |
|
16581 | 3727 |
makeInfoString := |
3728 |
[:title :value | |
|
16525 | 3729 |
|v| |
3730 |
v := value. |
|
16581 | 3731 |
value isString ifFalse:[v := '***' ]. |
12745 | 3732 |
(resources string:title) allBold |
3733 |
,': ' |
|
16525 | 3734 |
,(v withColor:(Color blue darkened)) |
12745 | 3735 |
,' ' |
3736 |
]. |
|
8789
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3737 |
|
7072 | 3738 |
bindings := Dictionary new. |
16581 | 3739 |
bindings at:'PACKAGE' |
3740 |
put:( packageName isNil |
|
3741 |
ifTrue:[ '' ] |
|
3742 |
ifFalse:[ (makeInfoString value:'Pkg' value:packageName) ]). |
|
3743 |
||
3744 |
bindings at:'PACKAGEOREMPTY' |
|
3745 |
put:( packageNameOrNil isNil |
|
3746 |
ifTrue:[ '' ] |
|
3747 |
ifFalse:[ (makeInfoString value:'Pkg' value:packageNameOrNil) ]). |
|
3748 |
||
3749 |
bindings at:'IMAGE' |
|
3750 |
put:(makeInfoString value:'Img' value:image). |
|
3751 |
||
3752 |
bindings at:'NS' |
|
3753 |
put:( defNameSpace == Smalltalk |
|
3754 |
ifTrue:[ '' ] |
|
3755 |
ifFalse:[ '"',defNameSpace name,'" '] ). |
|
3756 |
||
3757 |
bindings at:'PROJECTDIR' |
|
3758 |
put:(makeInfoString value:'Dir' value:(projectDir contractTo: 30)). |
|
3759 |
||
3760 |
bindings at:'CVS' |
|
3761 |
put:( cvsRepository isNil |
|
3762 |
ifTrue:[ '' ] |
|
3763 |
ifFalse:[ (makeInfoString value:'CVS' value:cvsRepository) ]). |
|
3764 |
||
3765 |
bindings at:'DB' |
|
3766 |
put:( storeDB isNil |
|
3767 |
ifTrue:[ '' ] |
|
3768 |
ifFalse:[ (makeInfoString value:'DB' value:storeDB) ]). |
|
3769 |
||
3770 |
bindings at:'NOREPOSITORY' |
|
3771 |
put: ((cvsRepository isNil and:[storeDB isNil]) |
|
3772 |
ifTrue:[ (' >','No Repository'allBold,'< ') ] |
|
3773 |
ifFalse:[ '' ]). |
|
8789
5eed274a5806
info line stuff more flexible and merged in Jan's stuff
Claus Gittinger <cg@exept.de>
parents:
8770
diff
changeset
|
3774 |
|
16508 | 3775 |
svnRepositoryManagerClass := Smalltalk at:#'SVN::RepositoryManager'. |
3776 |
(svnRepositoryManagerClass notNil |
|
16581 | 3777 |
and:[ svnRepositoryManagerClass isLoaded |
3778 |
and:[ svnRepositoryManagerClass enabled ]] |
|
3779 |
) ifTrue:[ |
|
3780 |
svnWorkDirBaseName := svnRepositoryManagerClass current workingCopyBase asFilename baseName. |
|
3781 |
||
3782 |
bindings |
|
3783 |
at: 'SVN_WORKING_COPY' |
|
3784 |
put: (makeInfoString value:'SVN Work' value:svnWorkDirBaseName). |
|
3785 |
] ifFalse:[ |
|
3786 |
bindings |
|
3787 |
at: 'SVN_WORKING_COPY' |
|
3788 |
put: '' |
|
3789 |
]. |
|
7073 | 3790 |
|
3791 |
projectInfo := self infoLineTemplate bindWithArguments:bindings. |
|
6998 | 3792 |
self infoLabelHolder value:projectInfo. |
16581 | 3793 |
^ projectInfo. |
1544 | 3794 |
! ! |
3795 |
||
3796 |
!NewLauncher methodsFor:'help'! |
|
3797 |
||
3798 |
defaultInfoLabel |
|
3799 |
||
3800 |
^self updateInfo |
|
3801 |
||
12085 | 3802 |
! |
3803 |
||
3804 |
flyByHelpTextForKey:aKey |
|
3805 |
|text| |
|
3806 |
||
3807 |
text := super flyByHelpTextForKey:aKey. |
|
3808 |
aKey == #fileSaveImage ifTrue:[ |
|
12335 | 3809 |
^ text bindWith:(ObjectMemory nameForSnapshot) |
12085 | 3810 |
]. |
3811 |
^ text |
|
1544 | 3812 |
! ! |
3813 |
||
2009 | 3814 |
!NewLauncher methodsFor:'menu configuration'! |
3815 |
||
5628
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
3816 |
addMenuItem:newItem from:anApplicationClassWhichProvidesResourcesOrNil in:where position:positionSpecOrNilArg space:space |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
3817 |
"adds a menu item; |
2691
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3818 |
where == #menu - menu item is added at the end of the sub menu 'Tools', |
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3819 |
where == #toolbar - menu item is added at the end of the tool bar, |
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3820 |
where == #menu.<name> - menu item is added at the end of the sub menu named 'name', |
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3821 |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
3822 |
position may be one of: |
13433 | 3823 |
#(before <someItemPath>) |
3824 |
#(after <someItemPath>) |
|
3825 |
#( #first ) or #first |
|
3826 |
#( #last ) or #last or nil |
|
2691
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3827 |
|
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3828 |
If space is true, some empty space is inserted. |
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3829 |
This can be invoked by a classes #initialize method, to add an item |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3830 |
for itself to the toolbar or menu." |
2691
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3831 |
|
12335 | 3832 |
|what menuPanel freeMenuIndex mainMenuPanel item subViews subMenuPath |
5628
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
3833 |
rest subMenu subItem positionSpecOrNil itemNameOrNil before itemsOriginalLabel| |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
3834 |
|
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
3835 |
itemsOriginalLabel := newItem label. |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
3836 |
newItem findGuiResourcesIn:anApplicationClassWhichProvidesResourcesOrNil rememberResourcesIn:nil. |
4042
788da3a81cd5
dynamically added items must be translated also
Claus Gittinger <cg@exept.de>
parents:
3966
diff
changeset
|
3837 |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
3838 |
positionSpecOrNil := positionSpecOrNilArg. |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
3839 |
positionSpecOrNil isArray ifTrue:[ |
13433 | 3840 |
positionSpecOrNil size > 1 ifTrue:[ |
3841 |
itemNameOrNil := positionSpecOrNil at:2. |
|
3842 |
]. |
|
3843 |
positionSpecOrNil := positionSpecOrNil at:1. |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
3844 |
]. |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
3845 |
before := (positionSpecOrNil == #first) or:[positionSpecOrNil == #before]. |
2691
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3846 |
|
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3847 |
what := where. |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3848 |
(what isNil or:[what = 'toolbar']) ifTrue:[ |
13433 | 3849 |
menuPanel := builder namedComponents at:#menuToolbarView ifAbsent:nil. |
3850 |
menuPanel isNil ifTrue:[ |
|
3851 |
'NewLauncher [warning]: addUserTool failed - no menuPanel' infoPrintCR. |
|
3852 |
^ self |
|
3853 |
]. |
|
3854 |
"/ look if not already in the toolBar |
|
3855 |
(self findItem:newItem inMenuPanel:menuPanel) ~~ 0 ifTrue:[ |
|
3856 |
"item already exists - do nothing" |
|
13679 | 3857 |
'NewLauncher: menu item already present:' infoPrint. newItem nameKey infoPrintCR. |
13433 | 3858 |
^ self. |
3859 |
]. |
|
3860 |
||
3861 |
"/ ok, not there; search for the position to put the item |
|
3862 |
freeMenuIndex := 0. |
|
3863 |
itemNameOrNil notNil ifTrue:[ |
|
3864 |
freeMenuIndex := menuPanel findFirst: [:i| i nameKey = itemNameOrNil]. |
|
3865 |
freeMenuIndex == 0 ifTrue:[ |
|
3866 |
freeMenuIndex := menuPanel findFirst: [:i| i activeHelpKey = itemNameOrNil |
|
3867 |
or:[i label = itemNameOrNil]]. |
|
3868 |
] |
|
3869 |
]. |
|
3870 |
||
3871 |
freeMenuIndex == 0 ifTrue:[ |
|
3872 |
"item to insert relative to not found, insert at the begin or end" |
|
3873 |
freeMenuIndex := before ifTrue:[1] ifFalse:[menuPanel numberOfItems + 1]. |
|
3874 |
] ifFalse:[ |
|
3875 |
before ifFalse:[freeMenuIndex := freeMenuIndex +1]. |
|
3876 |
]. |
|
3877 |
||
3878 |
space ifTrue:[ |
|
3879 |
"want an empty entry before or after newItem" |
|
3880 |
(menuPanel createAtIndex:freeMenuIndex) menuItem:(MenuItem label:''). |
|
3881 |
before ifFalse:[ |
|
3882 |
freeMenuIndex := freeMenuIndex + 1. |
|
3883 |
]. |
|
3884 |
]. |
|
3885 |
||
3886 |
(menuPanel createAtIndex:freeMenuIndex) menuItem:newItem. |
|
3887 |
||
3888 |
UserAddedToolBarItems isNil ifTrue: [UserAddedToolBarItems := Dictionary new]. |
|
3889 |
UserAddedToolBarItems at:newItem put:(AddedToolInfo new |
|
3890 |
item:newItem; |
|
3891 |
originalLabel:itemsOriginalLabel; |
|
3892 |
resourceProvider:anApplicationClassWhichProvidesResourcesOrNil; |
|
3893 |
where:where; |
|
3894 |
positionSpec:positionSpecOrNilArg; |
|
3895 |
space:space; |
|
3896 |
before:before; |
|
3897 |
menuWithNewItem:menuPanel; |
|
3898 |
yourself) |
|
2691
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3899 |
]. |
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3900 |
|
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3901 |
what isNil ifTrue:[ |
13433 | 3902 |
what := #menu |
2691
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3903 |
]. |
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
3904 |
|
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3905 |
(what includes:$.) ifTrue:[ |
13433 | 3906 |
subMenuPath := what asCollectionOfSubstringsSeparatedBy:$.. |
3907 |
what := subMenuPath at:1. |
|
3908 |
subMenuPath := subMenuPath copyFrom:2. |
|
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3909 |
] ifFalse:[ |
13433 | 3910 |
subMenuPath := #('tools'). |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3911 |
]. |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3912 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
3913 |
what = 'menu' ifTrue:[ |
13433 | 3914 |
mainMenuPanel := self builder menuBar. |
3915 |
mainMenuPanel isNil ifTrue:[ |
|
3916 |
subViews := self builder window subViews. |
|
3917 |
subViews notNil ifTrue:[ |
|
3918 |
mainMenuPanel := subViews at:1 ifAbsent:nil. |
|
3919 |
] |
|
3920 |
]. |
|
3921 |
mainMenuPanel isNil ifTrue:[ |
|
3922 |
'NewLauncher [warning]: addUserTool failed - no mainMenu' infoPrintCR. |
|
3923 |
^ self |
|
3924 |
]. |
|
3925 |
||
15717 | 3926 |
(subMenuPath isEmptyOrNil or:[subMenuPath first isEmptyOrNil]) ifTrue:[ |
13433 | 3927 |
"add to top menu" |
3928 |
menuPanel := mainMenuPanel. |
|
3929 |
] ifFalse:[ |
|
3930 |
"lookup sub menu" |
|
3931 |
item := mainMenuPanel itemAt:subMenuPath first. |
|
3932 |
item isNil ifTrue:[ |
|
3933 |
item := mainMenuPanel itemAt:'tools'. |
|
3934 |
item isNil ifTrue:[ |
|
3935 |
'NewLauncher [warning]: addUserTool failed - no tools menu' infoPrintCR. |
|
3936 |
^ self |
|
3937 |
]. |
|
3938 |
]. |
|
3939 |
rest := subMenuPath copyFrom:2. |
|
3940 |
menuPanel := subMenu := item submenu. |
|
3941 |
||
3942 |
rest do:[:pathComponent| |
|
3943 |
subMenu notNil ifTrue:[ |
|
3944 |
menuPanel := subMenu. |
|
3945 |
subItem := subMenu itemAt:pathComponent. |
|
3946 |
subItem isNil ifTrue:[ |
|
3947 |
subMenu := nil |
|
3948 |
] ifFalse:[ |
|
3949 |
subMenu := subItem submenu. |
|
3950 |
] |
|
3951 |
]. |
|
3952 |
]. |
|
3953 |
subMenu notNil ifTrue:[ |
|
3954 |
menuPanel := subMenu. |
|
3955 |
] |
|
3956 |
]. |
|
3957 |
||
3958 |
"/ look if not already in the panel |
|
3959 |
(self findItem:newItem inMenuPanel:menuPanel) ~~ 0 ifTrue:[ |
|
3960 |
"item already exists - do nothing" |
|
3961 |
Transcript show:'NewLauncher: menu item already present:'; showCR:newItem nameKey. |
|
3962 |
^ self. |
|
3963 |
]. |
|
3964 |
||
3965 |
"/ ok, search for the position to put the item |
|
3966 |
||
3967 |
freeMenuIndex := 0. |
|
3968 |
itemNameOrNil notNil ifTrue:[ |
|
3969 |
freeMenuIndex := menuPanel findFirst:[:i| i nameKey = itemNameOrNil]. |
|
3970 |
freeMenuIndex == 0 ifTrue:[ |
|
3971 |
freeMenuIndex := menuPanel findFirst:[:i| i itemValue = itemNameOrNil]. |
|
3972 |
freeMenuIndex == 0 ifTrue:[ |
|
3973 |
freeMenuIndex := menuPanel findFirst:[:i| i activeHelpKey = itemNameOrNil |
|
3974 |
or:[i label = itemNameOrNil]]. |
|
3975 |
] |
|
3976 |
] |
|
3977 |
]. |
|
3978 |
freeMenuIndex == 0 ifTrue:[ |
|
3979 |
freeMenuIndex := before ifTrue:[1] ifFalse:[menuPanel numberOfItems + 1]. |
|
3980 |
] ifFalse:[ |
|
3981 |
before ifFalse:[freeMenuIndex := freeMenuIndex +1]. |
|
3982 |
]. |
|
3983 |
space ifTrue:[ |
|
3984 |
"want a line before or after newItem" |
|
3985 |
(menuPanel createAtIndex:freeMenuIndex) menuItem:(MenuItem label: '-'). |
|
3986 |
before ifFalse:[ |
|
3987 |
freeMenuIndex := freeMenuIndex + 1. |
|
3988 |
]. |
|
3989 |
]. |
|
3990 |
||
3991 |
(menuPanel createAtIndex:freeMenuIndex) menuItem:newItem. |
|
3992 |
||
3993 |
UserAddedMenuItems isNil ifTrue: [UserAddedMenuItems := Dictionary new]. |
|
3994 |
UserAddedMenuItems at:newItem put:(AddedToolInfo new |
|
3995 |
item:newItem; |
|
3996 |
originalLabel:itemsOriginalLabel; |
|
3997 |
resourceProvider:anApplicationClassWhichProvidesResourcesOrNil; |
|
3998 |
where:where; |
|
3999 |
positionSpec:positionSpecOrNilArg; |
|
4000 |
space:space; |
|
4001 |
before:before; |
|
4002 |
menuWithNewItem:menuPanel; |
|
4003 |
yourself) |
|
2691
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
4004 |
]. |
040f58fe3115
allow addUserTool-before some other item;
Claus Gittinger <cg@exept.de>
parents:
2680
diff
changeset
|
4005 |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4006 |
" |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4007 |
UserAddedToolBarItems := nil. |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4008 |
UserAddedMenuItems := nil. |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4009 |
NewLauncher open. |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4010 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4011 |
Transcript topView application |
13433 | 4012 |
addMenuItem:(MenuItem new |
4013 |
label: 'Foo'; |
|
4014 |
value: [Transcript showCR:'foo']; |
|
4015 |
isButton: false; |
|
4016 |
labelImage: nil; |
|
4017 |
nameKey: #foo) |
|
4018 |
in:'menu.' |
|
4019 |
position:#(last) |
|
4020 |
space:true. |
|
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4021 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4022 |
Transcript topView application |
13433 | 4023 |
addMenuItem:(MenuItem new |
4024 |
label: 'Foo'; |
|
4025 |
value: [Transcript showCR:'foo']; |
|
4026 |
isButton: false; |
|
4027 |
labelImage: nil; |
|
4028 |
nameKey: #foo) |
|
4029 |
in:#menu |
|
4030 |
position:#(before Workspace) |
|
4031 |
space:true. |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4032 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4033 |
Transcript topView application |
13433 | 4034 |
addMenuItem:(MenuItem new |
4035 |
label: 'Bar'; |
|
4036 |
value: [Transcript showCR:'bar']; |
|
4037 |
isButton: false; |
|
4038 |
labelImage: nil; |
|
4039 |
nameKey: #bar) |
|
4040 |
in:#menu |
|
4041 |
position:#(after foo) |
|
4042 |
space:true. |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4043 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4044 |
Transcript topView application |
13433 | 4045 |
addMenuItem:(MenuItem new |
4046 |
label: 'Baz'; |
|
4047 |
value: [Transcript showCR:'baz']; |
|
4048 |
isButton: false; |
|
4049 |
labelImage: nil; |
|
4050 |
nameKey: #baz) |
|
4051 |
in:#menu |
|
4052 |
position:#(before bar) |
|
4053 |
space:false. |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4054 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4055 |
Transcript topView application |
13433 | 4056 |
addMenuItem:(MenuItem new |
4057 |
label: 'Baz2'; |
|
4058 |
value: [Transcript showCR:'baz2']; |
|
4059 |
isButton: false; |
|
4060 |
labelImage: nil; |
|
4061 |
nameKey: #baz2) |
|
4062 |
in:#menu |
|
4063 |
position:#(after bar) |
|
4064 |
space:false. |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4065 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4066 |
Transcript topView application |
13433 | 4067 |
addMenuItem:(MenuItem new |
4068 |
label: 'Foo2'; |
|
4069 |
value: [Transcript showCR:'foo2']; |
|
4070 |
isButton: false; |
|
4071 |
labelImage: nil; |
|
4072 |
nameKey: #foo2) |
|
4073 |
in:'menu.classes' |
|
4074 |
position:#last |
|
4075 |
space:false. |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4076 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4077 |
Transcript topView application |
13433 | 4078 |
addMenuItem:(MenuItem new |
4079 |
label: 'Foo3'; |
|
4080 |
value: [Transcript showCR:'foo3']; |
|
4081 |
isButton: false; |
|
4082 |
labelImage: nil; |
|
4083 |
nameKey: #foo3) |
|
4084 |
in:'menu.classes.special' |
|
4085 |
position:#first |
|
4086 |
space:true. |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4087 |
" |
10114
c02904895717
changed: #addMenuItem:from:in:position:space:
Claus Gittinger <cg@exept.de>
parents:
10032
diff
changeset
|
4088 |
|
10601
801ca2173f82
changed: #addMenuItem:from:in:position:space:
Claus Gittinger <cg@exept.de>
parents:
10600
diff
changeset
|
4089 |
"Modified: / 19-08-2011 / 12:17:30 / cg" |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4090 |
! |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
4091 |
|
5628
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4092 |
addMenuItem:newItem in:where position:positionSpecOrNilArg space:space |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4093 |
"adds a menu item; |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4094 |
where == #menu - menu item is added at the end of the sub menu 'Tools', |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4095 |
where == #toolbar - menu item is added at the end of the tool bar, |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4096 |
where == #menu.<name> - menu item is added at the end of the sub menu named 'name', |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4097 |
|
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4098 |
position may be one of: |
12335 | 4099 |
#(before <someItemPath>) |
4100 |
#(after <someItemPath>) |
|
4101 |
#( #first ) or #first |
|
4102 |
#( #last ) or #last or nil |
|
5628
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4103 |
|
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4104 |
If space is true, some empty space is inserted. |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4105 |
This can be invoked by a classes #initialize method, to add an item |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4106 |
for itself to the toolbar or menu." |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4107 |
|
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4108 |
^ self |
12335 | 4109 |
addMenuItem:newItem from:self in:where position:positionSpecOrNilArg space:space |
5628
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4110 |
! |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4111 |
|
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4112 |
findItem:menuItem inMenuPanel:menuPanel |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4113 |
"find a menu item in the menupanel. |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4114 |
Return the index of the item in the panel or 0 |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4115 |
if not found" |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4116 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4117 |
|idx| |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4118 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4119 |
idx := 0. |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4120 |
menuItem nameKey notNil ifTrue:[ |
12335 | 4121 |
idx := menuPanel findFirst: [:i| i nameKey = menuItem nameKey]. |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4122 |
]. |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4123 |
idx == 0 ifTrue:[ |
12335 | 4124 |
idx := menuPanel findFirst: [:i| (menuItem activeHelpKey notNil |
4125 |
and:[i activeHelpKey = menuItem activeHelpKey]) |
|
4126 |
or:[menuItem label notNil |
|
4127 |
and:[i label = menuItem label]]] |
|
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4128 |
]. |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4129 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4130 |
^ idx |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4131 |
! |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4132 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4133 |
removeUserTool:toolNameOrMenuItem |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4134 |
"removes a menu item labeled toolName |
12335 | 4135 |
This can be invoked by a classes #deinitialize method, |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4136 |
to remove its item from the toolbar or menu. |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4137 |
" |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4138 |
self class removeUserTool:toolNameOrMenuItem |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4139 |
! |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4140 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4141 |
removeUserTool:toolNameOrMenuItem from:addedToolsCollection |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4142 |
"removes a menu item labeled toolName |
12335 | 4143 |
This can be invoked by a classes #deinitialize method, |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4144 |
to remove its item from the toolbar or menu. |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4145 |
" |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4146 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4147 |
self class removeUserTool:toolNameOrMenuItem from:addedToolsCollection |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4148 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4149 |
" |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4150 |
Transcript topView application |
12335 | 4151 |
removeUserTool:'Bar' |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4152 |
" |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4153 |
" |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4154 |
Transcript topView application |
12335 | 4155 |
removeUserTool:'Foo' |
4690
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4156 |
" |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4157 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4158 |
! |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4159 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4160 |
userAddedMenuItems |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4161 |
"return a dictionary of user-added menu item infos. |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4162 |
" |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4163 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4164 |
^ UserAddedMenuItems ? #() |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4165 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4166 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4167 |
! |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4168 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4169 |
userAddedToolBarItems |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4170 |
"return a dictionary of user-added toolBar item infos. |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4171 |
" |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4172 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4173 |
^ UserAddedToolBarItems ? #() |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4174 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4175 |
|
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4176 |
! ! |
874d509e9c4d
Allow user addes tools in main toolbar.
Stefan Vogel <sv@exept.de>
parents:
4630
diff
changeset
|
4177 |
|
4865 | 4178 |
!NewLauncher methodsFor:'menus-dynamic'! |
3894
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4179 |
|
11486 | 4180 |
allWindowsMenu |
4181 |
"returns a subMenu with one oeprations-submenu entry per open window" |
|
4182 |
||
11525 | 4183 |
|menu allViewsAndLabels| |
11486 | 4184 |
|
4185 |
menu := Menu new receiver: self. |
|
11525 | 4186 |
allViewsAndLabels := self allTopViewsAndLabelsSortedFilteringWindowGroups:nil. |
4187 |
allViewsAndLabels do:[:assoc | |
|
12501 | 4188 |
|view label submenu likeThis info item| |
4189 |
||
4190 |
view := assoc value. |
|
4191 |
label := assoc key. |
|
4192 |
||
4193 |
submenu := Menu new. |
|
16575 | 4194 |
submenu addItem:((MenuItem |
14602 | 4195 |
label: 'Raise Deiconified' |
16575 | 4196 |
itemValue: [view raiseDeiconified; setForegroundWindow]) |
4197 |
hideMenuOnActivated:false). |
|
4198 |
submenu addItem:((item := MenuItem |
|
14602 | 4199 |
label: 'Iconify' |
16575 | 4200 |
itemValue: [view collapse]) |
4201 |
hideMenuOnActivated:false). |
|
12501 | 4202 |
view topView isCollapsed ifTrue:[ |
4203 |
item disable |
|
4204 |
]. |
|
14602 | 4205 |
submenu addItem:(MenuItem |
4206 |
label: 'Migrate...' |
|
4207 |
itemValue: [self migrateWindow:view] |
|
4208 |
enabled:(view windowGroup isModal not) ). |
|
16575 | 4209 |
submenu addItem:((MenuItem |
14602 | 4210 |
label: 'Bring onto Screen...' |
16575 | 4211 |
itemValue: [self bringWindowOntoScreen:view] ) |
4212 |
hideMenuOnActivated:false). |
|
12501 | 4213 |
|
4214 |
submenu addSeparator. |
|
14602 | 4215 |
submenu addItem:(MenuItem |
4216 |
label: 'Hardcopy' |
|
4217 |
itemValue: [self hardcopyOfView:view] ). |
|
4218 |
submenu addItem:(MenuItem |
|
4219 |
label: 'Inspect View' |
|
4220 |
itemValue: [view inspect] ). |
|
4221 |
submenu addItem:(MenuItem |
|
4222 |
label: 'Inspect Application' |
|
4223 |
itemValue: [view application inspect] |
|
4224 |
enabled:(view application notNil) ). |
|
12501 | 4225 |
submenu addSeparator. |
14602 | 4226 |
submenu addItem:(MenuItem |
4227 |
label: 'Browse View Class' |
|
4228 |
itemValue: [view class browse] ). |
|
4229 |
submenu addItem:(MenuItem |
|
4230 |
label: 'Browse Application Class' |
|
4231 |
itemValue: [view application class browse] |
|
4232 |
enabled:(view application notNil) ). |
|
4233 |
submenu addItem:(MenuItem |
|
4234 |
label: 'Debug Application' |
|
4235 |
itemValue: [Debugger openOn:view windowGroup process] ). |
|
12501 | 4236 |
|
4237 |
submenu addSeparator. |
|
16575 | 4238 |
submenu addItem:((MenuItem |
14602 | 4239 |
label: 'Close' |
16575 | 4240 |
itemValue: [view destroy] ) |
4241 |
hideMenuOnActivated:false). |
|
12501 | 4242 |
|
4243 |
likeThis := |
|
4244 |
allViewsAndLabels |
|
4245 |
select:[:assoc | |
|
4246 |
|otherView| |
|
4247 |
||
4248 |
otherView := assoc value. |
|
4249 |
otherView class == view class |
|
4250 |
and:[ otherView application class == view application class] |
|
4251 |
] |
|
4252 |
thenCollect:[:assoc | assoc value ]. |
|
4253 |
||
4254 |
likeThis size > 1 ifTrue:[ |
|
4255 |
info := view application notNil |
|
4256 |
ifTrue:[ view application class name ] |
|
4257 |
ifFalse:[ view class name ]. |
|
4258 |
info := ' ("',info,'")'. |
|
4259 |
] ifFalse:[ |
|
4260 |
info := '' |
|
4261 |
]. |
|
4262 |
||
4263 |
submenu addItem:(MenuItem new |
|
15023 | 4264 |
label: (resources string:'Close all like This%1' with:info); |
12501 | 4265 |
itemValue: [likeThis do:[:eachView | eachView destroy]]; |
14602 | 4266 |
translateLabel: false; |
12501 | 4267 |
enabled:(likeThis size > 1)). |
4268 |
||
12648 | 4269 |
submenu addItem:(MenuItem new |
15023 | 4270 |
label: (resources string:'Iconify all like This%1' with:info); |
12648 | 4271 |
itemValue: [likeThis do:[:eachView | eachView collapse]]; |
14602 | 4272 |
translateLabel: false; |
12648 | 4273 |
enabled:(likeThis size > 1)). |
4274 |
||
4275 |
submenu addItem:(MenuItem new |
|
15023 | 4276 |
label: (resources string:'Deiconify all like This%1' with:info); |
12648 | 4277 |
itemValue: [likeThis do:[:eachView | eachView raiseDeiconified]]; |
14602 | 4278 |
translateLabel: false; |
12648 | 4279 |
enabled:(likeThis size > 1)). |
4280 |
||
4281 |
||
12501 | 4282 |
menu addItem:(MenuItem new |
14602 | 4283 |
label: label |
4284 |
itemValue: [view raiseDeiconified; setForegroundWindow] |
|
4285 |
translateLabel: false; |
|
4286 |
submenu: submenu |
|
4287 |
). |
|
11486 | 4288 |
]. |
4289 |
||
4290 |
menu findGuiResourcesIn:self. |
|
4291 |
^menu |
|
4292 |
||
4293 |
"Created: / 27-04-2012 / 13:20:06 / cg" |
|
4294 |
! |
|
4295 |
||
3894
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4296 |
menuChangeHistory |
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4297 |
"returns a sub menu on the last changes" |
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4298 |
|
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4299 |
|changeSet menu changeHistory| |
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4300 |
|
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4301 |
changeSet := ChangeSet current. |
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4302 |
changeHistory := OrderedCollection new. |
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4303 |
|
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4304 |
[:exit | |
12509 | 4305 |
changeSet reverseDo:[:change | |
4306 |
change isMethodChange ifTrue:[ |
|
4307 |
change changeClass notNil ifTrue:[ |
|
4308 |
(changeHistory contains:[:chg | chg className = change className |
|
4309 |
and:[chg selector = change selector]]) |
|
4310 |
ifFalse:[ |
|
4311 |
changeHistory add:change. |
|
4312 |
changeHistory size > 15 ifTrue:[ |
|
4313 |
exit value:nil |
|
4314 |
] |
|
4315 |
]. |
|
4316 |
]. |
|
4317 |
]. |
|
4318 |
] |
|
3894
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4319 |
] valueWithExit. |
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4320 |
|
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4321 |
menu := Menu new receiver: self. |
12510 | 4322 |
|
12522 | 4323 |
changeHistory isEmpty ifTrue:[ |
4324 |
menu addItem:(MenuItem new |
|
13278 | 4325 |
label:'>> no uncommitted changes yet <<'; |
12522 | 4326 |
enabled:false). |
4327 |
] ifFalse:[ |
|
12510 | 4328 |
menu addItemGroup: |
4329 |
(changeHistory collect:[:change| |
|
4330 |
MenuItem new |
|
14602 | 4331 |
label: (change className , ' ' , (change selector ? '???')) |
4332 |
itemValue: [UserPreferences systemBrowserClass openInClass:change changeClass selector:change selector] |
|
12510 | 4333 |
translateLabel: false; |
4334 |
activeHelpKey: #classBrowserOnChangedMethod |
|
4335 |
]). |
|
4336 |
]. |
|
4337 |
||
12335 | 4338 |
menu addItemGroup: |
12509 | 4339 |
{ |
4340 |
MenuItem new |
|
15023 | 4341 |
label: (resources string:'Open Change Set Browser on all Changes') |
14942 | 4342 |
itemValue:#startChangeSetBrowser |
4343 |
translateLabel: false; |
|
4344 |
activeHelpKey: #startChangeSetBrowser |
|
4345 |
. |
|
4346 |
MenuItem new |
|
4347 |
label: (resources string:'Open Change Browser on File...') |
|
14602 | 4348 |
itemValue: |
12509 | 4349 |
[ |
4350 |
|file| |
|
4351 |
||
4352 |
file := Dialog requestFileName:'Change or Source File' default:ObjectMemory nameForChanges. |
|
4353 |
file notEmptyOrNil ifTrue:[ |
|
4354 |
UserPreferences current changesBrowserClass openOn:file |
|
4355 |
] |
|
14602 | 4356 |
] |
4357 |
translateLabel: false; |
|
12509 | 4358 |
activeHelpKey: #changeBrowserOnFile |
4359 |
}. |
|
4360 |
||
3894
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4361 |
menu findGuiResourcesIn:self. |
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4362 |
^menu |
9699 | 4363 |
|
4364 |
"Modified: / 25-01-2011 / 16:45:51 / cg" |
|
3894
1ad271f98c83
quick browsing of last few changes
Claus Gittinger <cg@exept.de>
parents:
3885
diff
changeset
|
4365 |
! |
1544 | 4366 |
|
4367 |
menuClassHistory |
|
4368 |
"returns a sub menu on the history of the classes" |
|
4369 |
||
13013 | 4370 |
^ self menuClassHistoryFor:(UserPreferences systemBrowserClass) |
5282
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4371 |
! |
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4372 |
|
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4373 |
menuClassHistoryFor:whichBrowserClass |
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4374 |
"returns a sub menu on the history of the classes" |
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4375 |
|
3133
517dcb6a296b
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3122
diff
changeset
|
4376 |
|menu classHistory| |
517dcb6a296b
history stuff refactored (common between old and new browser)
Claus Gittinger <cg@exept.de>
parents:
3122
diff
changeset
|
4377 |
|
13278 | 4378 |
menu := Menu new receiver: self. |
4379 |
||
5282
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4380 |
whichBrowserClass checkClassHistory. |
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4381 |
|
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4382 |
classHistory := whichBrowserClass classHistory. |
15274 | 4383 |
classHistory isEmptyOrNil ifTrue:[ |
4384 |
menu addItemGroup:{ |
|
4385 |
(MenuItem new |
|
13278 | 4386 |
label:'>> no visited history yet <<'; |
4387 |
enabled:false). |
|
15274 | 4388 |
} |
4389 |
] ifFalse:[ |
|
4390 |
menu addItemGroup: |
|
4391 |
(classHistory collect:[:histEntry| |
|
4392 |
MenuItem new |
|
4393 |
label: (histEntry className) |
|
4394 |
itemValue: [whichBrowserClass openInClass:histEntry theClass selector:histEntry selector] |
|
4395 |
translateLabel: false; |
|
4396 |
activeHelpKey: #classesSystemBrowserOnClass |
|
4397 |
] |
|
4398 |
). |
|
3883 | 4399 |
]. |
1716
a6cbe3d33ca2
disable class-history menu item, if there is no history;
Claus Gittinger <cg@exept.de>
parents:
1711
diff
changeset
|
4400 |
|
12335 | 4401 |
menu addItem: (MenuItem new |
14602 | 4402 |
label: 'Find Class...' |
14518 | 4403 |
itemValue: [self findClassAndBrowse]; |
4404 |
activeHelpKey: #findClassAndBrowse). |
|
4405 |
menu addItem: (MenuItem new |
|
14602 | 4406 |
label: 'Implementors Of...' |
14518 | 4407 |
itemValue: [self browseImplementors]; |
4408 |
activeHelpKey: #browseImplementors). |
|
4409 |
menu addItem: (MenuItem new |
|
14602 | 4410 |
label: 'Senders Of...' |
14518 | 4411 |
itemValue: [self browseSenders]; |
4412 |
activeHelpKey: #browseSenders). |
|
14942 | 4413 |
menu addItem: (MenuItem new |
4414 |
label: 'References to Class...' |
|
4415 |
itemValue: [self browseReferencesToClass]; |
|
4416 |
activeHelpKey: #browseReferencesToClass). |
|
16889 | 4417 |
menu addItem: (MenuItem new |
4418 |
label: 'Search String...' |
|
4419 |
itemValue: [self browseContainingString]; |
|
4420 |
activeHelpKey: #browseContainingString). |
|
15274 | 4421 |
classHistory notEmptyOrNil ifTrue:[ |
4422 |
menu addSeparator. |
|
4423 |
menu addItem: (MenuItem new |
|
4424 |
label: 'Clear History' |
|
4425 |
itemValue: [classHistory removeAll] |
|
4426 |
enabled:(classHistory notEmpty); |
|
4427 |
activeHelpKey: #historyEmptyMenu). |
|
4428 |
]. |
|
3883 | 4429 |
|
1652
c12aa281d822
also translate the Empty-History menu item.
Claus Gittinger <cg@exept.de>
parents:
1651
diff
changeset
|
4430 |
menu findGuiResourcesIn:self. |
5282
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4431 |
^ menu |
9699 | 4432 |
|
11785 | 4433 |
"Modified: / 09-09-2012 / 13:09:49 / cg" |
5282
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4434 |
! |
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4435 |
|
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4436 |
menuClassHistoryNew |
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4437 |
"returns a sub menu on the history of the classes" |
b0c82c2ef384
care for new vs. old browser in launchers class-history-menu
Claus Gittinger <cg@exept.de>
parents:
5239
diff
changeset
|
4438 |
|
5597 | 4439 |
^ self menuClassHistoryFor:(Tools::NewSystemBrowser ? NewSystemBrowser) |
3878 | 4440 |
! |
4441 |
||
4442 |
menuFileHistory |
|
4443 |
"returns a subMenu on the history of the filebrowsers directories" |
|
4444 |
||
4445 |
|menu dirHistory| |
|
4446 |
||
13278 | 4447 |
menu := Menu new receiver: self. |
4448 |
||
3966 | 4449 |
dirHistory := AbstractFileBrowser directoryHistory. |
13278 | 4450 |
dirHistory isEmpty ifTrue:[ |
4451 |
menu addItem:(MenuItem new |
|
17149 | 4452 |
label:(resources string:'>> no visited files yet <<'); |
13278 | 4453 |
enabled:false). |
4454 |
^ menu |
|
4455 |
]. |
|
4456 |
||
12335 | 4457 |
menu addItemGroup: |
13278 | 4458 |
(dirHistory collect:[:item| |
4459 |
|dirNameString| |
|
4460 |
dirNameString := item path. |
|
4461 |
MenuItem new |
|
14602 | 4462 |
label: dirNameString |
4463 |
itemValue: [UserPreferences fileBrowserClass openOn:dirNameString] |
|
13278 | 4464 |
translateLabel: false; |
4465 |
activeHelpKey: #FileBrowserOnDirectory |
|
4466 |
] |
|
3878 | 4467 |
). |
12335 | 4468 |
menu addItem: (MenuItem new |
14602 | 4469 |
label: 'Clear History' |
4470 |
itemValue: [dirHistory removeAll] |
|
13278 | 4471 |
enabled:(dirHistory notEmpty); |
4472 |
activeHelpKey: #historyEmptyMenu). |
|
3883 | 4473 |
|
3878 | 4474 |
menu findGuiResourcesIn:self. |
4475 |
^menu |
|
9699 | 4476 |
|
11785 | 4477 |
"Modified: / 09-09-2012 / 13:09:58 / cg" |
7508 | 4478 |
! |
4479 |
||
9221
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4480 |
recentlyOpenedApplicationsMenu |
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4481 |
|menu appHistory| |
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4482 |
|
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4483 |
appHistory := ApplicationModel recentlyOpenedApplications. |
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4484 |
appHistory isEmpty ifTrue:[^nil]. |
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4485 |
|
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4486 |
menu := Menu new receiver: self. |
12335 | 4487 |
menu addItemGroup: |
14602 | 4488 |
(appHistory collect:[:appClassName| |
4489 |
|item appClass label| |
|
4490 |
||
4491 |
appClass := Smalltalk classNamed:appClassName. |
|
4492 |
appClass isNil ifTrue:[ |
|
4493 |
label := appClassName. |
|
4494 |
] ifFalse:[ |
|
4495 |
label := appClass nameWithoutPrefix |
|
4496 |
]. |
|
4497 |
item := MenuItem |
|
4498 |
label: label |
|
4499 |
itemValue: #openApplication: argument: appClassName. |
|
4500 |
||
4501 |
appClass isNil ifTrue:[ |
|
4502 |
item enabled:false. |
|
4503 |
item label:(LabelAndIcon icon:(ToolbarIconLibrary erase16x16Icon2) string:appClassName) |
|
4504 |
]. |
|
4505 |
item |
|
4506 |
] |
|
9221
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4507 |
). |
12335 | 4508 |
menu addItem: (MenuItem new |
14602 | 4509 |
label: 'Clear History' |
4510 |
itemValue: [ ApplicationModel forgetRecentlyOpenedApplications ] |
|
4511 |
enabled:(appHistory notEmpty); |
|
4512 |
activeHelpKey: #historyEmptyMenu). |
|
9221
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4513 |
|
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4514 |
menu findGuiResourcesIn:self. |
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4515 |
^menu |
11785 | 4516 |
|
4517 |
"Modified: / 09-09-2012 / 13:10:12 / cg" |
|
9221
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4518 |
! |
468d20a04f3f
added: #recentlyOpenedApplicationsMenu
Claus Gittinger <cg@exept.de>
parents:
9170
diff
changeset
|
4519 |
|
7508 | 4520 |
startBrowserOnSmallTeamChangesMenu |
4521 |
"returns a subMenu on the history of the filebrowsers directories" |
|
4522 |
||
4523 |
<resource: #programMenu > |
|
4524 |
||
4525 |
^ [ |
|
15748 | 4526 |
|m anyItem hosts| |
4527 |
||
4528 |
m := Menu new. |
|
4529 |
||
4530 |
SmallTeam notNil ifTrue:[ |
|
4531 |
hosts := SmallTeam hostsWithChanges asSortedCollection. |
|
4532 |
hosts do:[:eachHost | |
|
4533 |
|item| |
|
4534 |
||
4535 |
item := MenuItem label:eachHost. |
|
4536 |
item itemValue:#'startBrowserOnChangesOnSmallTeamHost:' argument:eachHost. |
|
4537 |
m addItem:item. |
|
4538 |
anyItem := true. |
|
4539 |
]. |
|
4540 |
]. |
|
4541 |
hosts isEmptyOrNil ifTrue:[ nil ] ifFalse:[ m ] |
|
7508 | 4542 |
]. |
4543 |
||
4544 |
"Created: / 12-11-2006 / 16:06:06 / cg" |
|
1544 | 4545 |
! ! |
4546 |
||
4859 | 4547 |
!NewLauncher methodsFor:'private-settings callBacks'! |
1600
1d8cd3ef47d0
use settingsDialogs from Launcher
Claus Gittinger <cg@exept.de>
parents:
1593
diff
changeset
|
4548 |
|
1603
6a49f338be82
need compatible reopen protocol.
Claus Gittinger <cg@exept.de>
parents:
1600
diff
changeset
|
4549 |
reopenLauncher |
1600
1d8cd3ef47d0
use settingsDialogs from Launcher
Claus Gittinger <cg@exept.de>
parents:
1593
diff
changeset
|
4550 |
"reopen a new launcher. |
1d8cd3ef47d0
use settingsDialogs from Launcher
Claus Gittinger <cg@exept.de>
parents:
1593
diff
changeset
|
4551 |
for now (since style & language settings currently do |
1d8cd3ef47d0
use settingsDialogs from Launcher
Claus Gittinger <cg@exept.de>
parents:
1593
diff
changeset
|
4552 |
not affect living views ...) |
1782
4b1d6025c814
renamed SettingsDialogs to LauncherDialogs.
Claus Gittinger <cg@exept.de>
parents:
1780
diff
changeset
|
4553 |
WARNING: bad design: Message known in LauncherDialogs" |
1600
1d8cd3ef47d0
use settingsDialogs from Launcher
Claus Gittinger <cg@exept.de>
parents:
1593
diff
changeset
|
4554 |
|
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2003
diff
changeset
|
4555 |
|newLauncher wasShowingHelp| |
1800
fd190328277d
pass showingHelp down to new launcher when reopening.
Claus Gittinger <cg@exept.de>
parents:
1794
diff
changeset
|
4556 |
|
fd190328277d
pass showingHelp down to new launcher when reopening.
Claus Gittinger <cg@exept.de>
parents:
1794
diff
changeset
|
4557 |
wasShowingHelp := self showingHelp. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2003
diff
changeset
|
4558 |
newLauncher := super reopenLauncher. |
1800
fd190328277d
pass showingHelp down to new launcher when reopening.
Claus Gittinger <cg@exept.de>
parents:
1794
diff
changeset
|
4559 |
newLauncher showingHelp:wasShowingHelp. |
2005
c227faa4616b
more refactoring (NewLauncher <-> Launcher)
Claus Gittinger <cg@exept.de>
parents:
2003
diff
changeset
|
4560 |
^ newLauncher |
1600
1d8cd3ef47d0
use settingsDialogs from Launcher
Claus Gittinger <cg@exept.de>
parents:
1593
diff
changeset
|
4561 |
! ! |
1d8cd3ef47d0
use settingsDialogs from Launcher
Claus Gittinger <cg@exept.de>
parents:
1593
diff
changeset
|
4562 |
|
1544 | 4563 |
!NewLauncher methodsFor:'queries'! |
4564 |
||
4565 |
preferredExtent |
|
4566 |
||
10845 | 4567 |
^ super preferredExtent min: Screen current extent // (2.5 @ 3.5) |
4225
156064c1aa38
new settings added - useNewSettingsDialog have to set to treu for use
penk
parents:
4221
diff
changeset
|
4568 |
! |
156064c1aa38
new settings added - useNewSettingsDialog have to set to treu for use
penk
parents:
4221
diff
changeset
|
4569 |
|
4389 | 4570 |
useNewSettingsApplication |
5084 | 4571 |
^ UserPreferences current useNewSettingsApplication. |
4225
156064c1aa38
new settings added - useNewSettingsDialog have to set to treu for use
penk
parents:
4221
diff
changeset
|
4572 |
! |
156064c1aa38
new settings added - useNewSettingsDialog have to set to treu for use
penk
parents:
4221
diff
changeset
|
4573 |
|
4389 | 4574 |
useOldSettingsApplication |
4575 |
||
4576 |
^ self useNewSettingsApplication not |
|
9329
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
4577 |
! |
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
4578 |
|
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
4579 |
windowMigrationFunctionsAreShown |
0d3599eccc38
refactored for better reusability (menu configuration)
Claus Gittinger <cg@exept.de>
parents:
9254
diff
changeset
|
4580 |
^ XWorkstation notNil |
1544 | 4581 |
! ! |
4582 |
||
4863 | 4583 |
!NewLauncher methodsFor:'startup & release'! |
1544 | 4584 |
|
4585 |
allButOpenInterface:anInterface |
|
4586 |
"sent by my superclass to open up my interface" |
|
4587 |
||
4588 |
"/ if there is already a transcript on my device, |
|
4589 |
"/ I am a slave launcher with limited functionality. |
|
4590 |
||
4591 |
Transcript notNil ifTrue:[ |
|
12838 | 4592 |
Transcript ~~ Stderr ifTrue:[ |
4593 |
isMainLauncher := (Transcript graphicsDevice == device). |
|
4594 |
self enableDangerousMenuItemsInRemoteLauncher value: isMainLauncher. |
|
4595 |
] ifFalse:[ |
|
4596 |
isMainLauncher := true |
|
4597 |
] |
|
1544 | 4598 |
] ifFalse:[ |
12838 | 4599 |
isMainLauncher := true |
1544 | 4600 |
]. |
4601 |
||
4602 |
super allButOpenInterface:anInterface. |
|
4603 |
||
14074 | 4604 |
self setupTranscript. |
1544 | 4605 |
Project notNil ifTrue: [Project addDependent:self]. |
12838 | 4606 |
ObjectMemory addDependent:self. |
1544 | 4607 |
self class openLaunchers add: self. |
4608 |
^ builder |
|
4609 |
||
4610 |
"Created: / 5.2.1998 / 19:45:07 / cg" |
|
1710 | 4611 |
"Modified: / 20.6.1998 / 14:53:58 / cg" |
1544 | 4612 |
! |
4613 |
||
2027 | 4614 |
postBuildWith:aBuilder |
4615 |
"setup my preferred size" |
|
4616 |
||
3284 | 4617 |
|win hMin| |
4618 |
||
2027 | 4619 |
super postBuildWith:aBuilder. |
3284 | 4620 |
win := aBuilder window . |
4621 |
win extent:(self preferredExtent). |
|
4622 |
||
7514 | 4623 |
"/ |
3284 | 4624 |
"/ TODO: somehow find out how much decoration is added by the window manager ... |
4625 |
"/ |
|
7514 | 4626 |
|
4627 |
hMin := (aBuilder window margin * 2) |
|
12335 | 4628 |
+ aBuilder menuBar preferredHeight |
4629 |
+ (aBuilder componentAt:#infoBarSubSpec) height |
|
4630 |
+ (aBuilder componentAt:#menuToolbarView) preferredHeight |
|
4631 |
-3 "+ 8". "/ I guess this is menuToolbar level abs + textCollector level abs... |
|
3284 | 4632 |
|
4633 |
win minExtent:( win minExtent x @ hMin ). |
|
7514 | 4634 |
|
7516 | 4635 |
"Modified: / 16-11-2006 / 14:23:17 / cg" |
2027 | 4636 |
! |
4637 |
||
1544 | 4638 |
postOpenWith:aBuilder |
11526
46904b48f3a7
comment/format in: #postOpenWith:
Stefan Vogel <sv@exept.de>
parents:
11525
diff
changeset
|
4639 |
|toolInfo addMenuForToolInfo| |
2148 | 4640 |
|
14074 | 4641 |
self updateInfo. |
4642 |
||
2148 | 4643 |
"/ increase my priority" |
2344 | 4644 |
"/ self windowGroup process priority:(Processor userSchedulingPriority + 1). |
4645 |
Processor activeProcess priority:(Processor userSchedulingPriority + 1). |
|
2148 | 4646 |
|
12335 | 4647 |
addMenuForToolInfo := |
14074 | 4648 |
[:eachToolInfo| |
4649 |
|menuItem originalLabel| |
|
4650 |
||
4651 |
menuItem := eachToolInfo item. |
|
4652 |
originalLabel := eachToolInfo originalLabel. |
|
4653 |
originalLabel notNil ifTrue:[ menuItem label:originalLabel ]. |
|
4654 |
self |
|
4655 |
addMenuItem:menuItem |
|
4656 |
from:(eachToolInfo resourceProvider) |
|
4657 |
in:eachToolInfo where |
|
4658 |
position:eachToolInfo positionSpec |
|
4659 |
space:eachToolInfo space |
|
4660 |
]. |
|
5628
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
4661 |
|
2148 | 4662 |
"/ add user tools |
2721
405c3cdbd7ea
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2713
diff
changeset
|
4663 |
UserAddedToolBarItems notNil ifTrue:[ |
14074 | 4664 |
toolInfo := UserAddedToolBarItems. |
4665 |
[ |
|
4666 |
UserAddedToolBarItems := nil. |
|
4667 |
toolInfo do:addMenuForToolInfo. |
|
4668 |
] ifCurtailed:[ |
|
4669 |
UserAddedToolBarItems := toolInfo |
|
4670 |
] |
|
2721
405c3cdbd7ea
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2713
diff
changeset
|
4671 |
]. |
405c3cdbd7ea
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2713
diff
changeset
|
4672 |
UserAddedMenuItems notNil ifTrue:[ |
14074 | 4673 |
toolInfo := UserAddedMenuItems. |
4674 |
[ |
|
4675 |
UserAddedMenuItems := nil. |
|
4676 |
toolInfo do:addMenuForToolInfo. |
|
4677 |
] ifCurtailed:[ |
|
4678 |
UserAddedMenuItems := toolInfo |
|
4679 |
] |
|
1767 | 4680 |
]. |
2148 | 4681 |
|
1544 | 4682 |
super postOpenWith:aBuilder. |
2148 | 4683 |
|
2315 | 4684 |
"/ set the time-block |
2384
4901c54efb0a
Show clock only if selected by UserPreferences
Stefan Vogel <sv@exept.de>
parents:
2371
diff
changeset
|
4685 |
UserPreferences current showClockInLauncher ifTrue:[ |
14074 | 4686 |
self startClock |
2384
4901c54efb0a
Show clock only if selected by UserPreferences
Stefan Vogel <sv@exept.de>
parents:
2371
diff
changeset
|
4687 |
]. |
2315 | 4688 |
|
7516 | 4689 |
"Modified: / 16-11-2006 / 12:50:21 / cg" |
1544 | 4690 |
! |
4691 |
||
12838 | 4692 |
release |
4693 |
||
4694 |
super release. |
|
4695 |
||
4696 |
OpenLaunchers notNil ifTrue:[OpenLaunchers remove:self ifAbsent:nil]. |
|
4697 |
Project notNil ifTrue:[Project removeDependent:self]. |
|
4698 |
ObjectMemory removeDependent:self. |
|
4699 |
! |
|
4700 |
||
2039 | 4701 |
requestForWindowClose |
4702 |
|answer| |
|
4703 |
||
4704 |
isMainLauncher ifFalse:[ |
|
12335 | 4705 |
"/ remote launchers may not finish ST/X |
4706 |
||
4707 |
answer := Dialog |
|
4708 |
confirmWithCancel:(resources string:'Really close %1 (slave)?' with:self class name) |
|
4709 |
labels:(resources array:#('Cancel' 'Close')) |
|
4710 |
values:#(nil true) |
|
4711 |
default:1. |
|
4712 |
answer isNil ifTrue:[ |
|
4713 |
"/ cancel |
|
4714 |
^ false |
|
4715 |
]. |
|
4716 |
^ true |
|
2039 | 4717 |
]. |
4718 |
||
4719 |
^ super requestForWindowClose |
|
4720 |
! |
|
4721 |
||
12335 | 4722 |
setupTranscript |
1544 | 4723 |
"create the transcript view" |
4724 |
||
2046
f5c6ce56743a
avoid accidential autoloading of old Launcher class
Claus Gittinger <cg@exept.de>
parents:
2041
diff
changeset
|
4725 |
|launcher oldLauncherClass| |
1544 | 4726 |
|
4727 |
"/ check if this is an additional launcher on a remote display. |
|
4728 |
"/ if so, do not close the real launcher. |
|
4729 |
||
4730 |
(Transcript notNil and:[Transcript ~~ Stderr]) ifTrue:[ |
|
12335 | 4731 |
isMainLauncher ifTrue:[ |
4732 |
launcher := Transcript topView application |
|
4733 |
] ifFalse:[ |
|
4734 |
launcher := self class current. |
|
4735 |
]. |
|
4736 |
||
4737 |
(launcher notNil and:[launcher ~~ self]) ifTrue:[ |
|
4738 |
launcher window graphicsDevice == device ifTrue:[ |
|
4739 |
OpenLaunchers notNil ifTrue:[ |
|
4740 |
OpenLaunchers remove:launcher ifAbsent:nil. |
|
4741 |
]. |
|
4742 |
((oldLauncherClass := Smalltalk at:#Launcher) notNil |
|
4743 |
and:[oldLauncherClass isLoaded]) ifTrue: [ |
|
4744 |
oldLauncherClass openLaunchers remove:launcher ifAbsent:nil |
|
4745 |
]. |
|
4746 |
launcher close |
|
4747 |
] |
|
4748 |
] |
|
1544 | 4749 |
]. |
4750 |
||
6515
5996d5550b60
preps for notebook with transcript + error-list
Claus Gittinger <cg@exept.de>
parents:
6439
diff
changeset
|
4751 |
transcript := self transcriptView. "/ (self componentAt: #transcriptView) subViews first. |
1544 | 4752 |
|
4753 |
isMainLauncher ifTrue:[ |
|
12335 | 4754 |
transcript beTranscript. |
1544 | 4755 |
] ifFalse:[ |
12335 | 4756 |
transcript showCR:'**************** Notice ***********************'. |
4757 |
transcript showCR:'** this is NOT the Transcript **'. |
|
4758 |
transcript showCR:'** The real Transcript is on the main screen **'. |
|
4759 |
transcript showCR:'** **'. |
|
4760 |
transcript showCR:'** Menus affecting common state are disabled **'. |
|
4761 |
transcript showCR:'***********************************************'. |
|
1544 | 4762 |
] |
4763 |
||
2046
f5c6ce56743a
avoid accidential autoloading of old Launcher class
Claus Gittinger <cg@exept.de>
parents:
2041
diff
changeset
|
4764 |
"Modified: / 5.3.1999 / 18:00:36 / cg" |
1544 | 4765 |
! ! |
4766 |
||
4862 | 4767 |
!NewLauncher methodsFor:'user actions-classes'! |
3368 | 4768 |
|
10847
aae16bffdd78
added: #enableGlobalCoverageAnalysis
Claus Gittinger <cg@exept.de>
parents:
10845
diff
changeset
|
4769 |
enableGlobalCoverageAnalysis |
aae16bffdd78
added: #enableGlobalCoverageAnalysis
Claus Gittinger <cg@exept.de>
parents:
10845
diff
changeset
|
4770 |
InstrumentationContext new beActiveEverywhere. |
aae16bffdd78
added: #enableGlobalCoverageAnalysis
Claus Gittinger <cg@exept.de>
parents:
10845
diff
changeset
|
4771 |
|
aae16bffdd78
added: #enableGlobalCoverageAnalysis
Claus Gittinger <cg@exept.de>
parents:
10845
diff
changeset
|
4772 |
"Created: / 28-10-2011 / 20:31:28 / cg" |
aae16bffdd78
added: #enableGlobalCoverageAnalysis
Claus Gittinger <cg@exept.de>
parents:
10845
diff
changeset
|
4773 |
! |
aae16bffdd78
added: #enableGlobalCoverageAnalysis
Claus Gittinger <cg@exept.de>
parents:
10845
diff
changeset
|
4774 |
|
13033 | 4775 |
findApplicationAndOpen |
4776 |
|cls| |
|
4777 |
||
15834 | 4778 |
cls := SystemBrowser default askForClassWithFilter:[:cls | cls isVisualStartable]. |
13033 | 4779 |
cls notNil ifTrue:[ |
4780 |
cls open |
|
4781 |
] |
|
4782 |
! |
|
4783 |
||
13027 | 4784 |
findClassAndBrowse |
4785 |
|cls| |
|
4786 |
||
15834 | 4787 |
cls := SystemBrowser default askForClass. |
13027 | 4788 |
cls notNil ifTrue:[ |
15834 | 4789 |
SystemBrowser default openInClass:cls selector:nil |
13027 | 4790 |
] |
4791 |
! |
|
4792 |
||
3368 | 4793 |
openMethodFinder |
6032
c9ff68a79be2
Move #widgetHardcopy from NewLauncher to AbstractLauncherApplication
Stefan Vogel <sv@exept.de>
parents:
5989
diff
changeset
|
4794 |
"open the methodFinder (ported from squeak)" |
12335 | 4795 |
|
7417 | 4796 |
self openApplication:'MethodFinderWindow' |
4797 |
"/ MethodFinderWindow open |
|
4798 |
||
4799 |
"Modified: / 16-10-2006 / 13:36:36 / cg" |
|
7453 | 4800 |
! |
4801 |
||
13129 | 4802 |
startBrowserOnChangesOnSmallTeamHost:aHostName |
4803 |
(UserPreferences current changeSetBrowserClass) |
|
4804 |
openOn:(SmallTeam changesOnHost:aHostName) |
|
4805 |
||
4806 |
"Created: / 12-11-2006 / 16:07:12 / cg" |
|
4807 |
"Modified: / 01-07-2011 / 16:46:48 / cg" |
|
4808 |
"Modified (format): / 27-07-2012 / 20:39:06 / cg" |
|
4809 |
! |
|
4810 |
||
4811 |
startOOMBrowser |
|
4812 |
self openApplication:'OOM::MetricVisualizer' |
|
4813 |
||
4814 |
"Created: / 23-10-2006 / 16:00:25 / cg" |
|
4815 |
"Modified: / 23-10-2006 / 20:38:34 / cg" |
|
4816 |
! |
|
4817 |
||
4818 |
startToDoListBrowser |
|
4819 |
self openApplication:'Tools::ToDoListBrowser' |
|
4820 |
||
4821 |
"Created: / 23-10-2006 / 16:00:25 / cg" |
|
4822 |
"Modified: / 23-10-2006 / 20:38:34 / cg" |
|
4823 |
! |
|
4824 |
||
4825 |
stopIgnoringHalts |
|
14501 | 4826 |
DebugView stopIgnoringHalts. |
4827 |
Smalltalk ignoreHalt:false. |
|
13129 | 4828 |
! ! |
4829 |
||
4830 |
!NewLauncher methodsFor:'user actions-debugging'! |
|
4831 |
||
11233 | 4832 |
openTranscriptDebugDialog |
4833 |
|pattern| |
|
4834 |
||
12335 | 4835 |
pattern := Dialog |
15429 | 4836 |
request:('Enter GLOB matchpattern for message text\(Breakpoint if matching text is sent to the Transcript)\\Empty to disable, * for any text.' withCRs) |
4837 |
initialAnswer:(TextCollector debugSendersOfMessagePattern). |
|
11233 | 4838 |
pattern isNil ifTrue:[^ self]. |
4839 |
||
15429 | 4840 |
TextCollector debugSendersOfMessagePattern:pattern |
11233 | 4841 |
|
4842 |
"Created: / 02-02-2012 / 12:05:05 / cg" |
|
4843 |
! |
|
4844 |
||
4845 |
openTranscriptTraceDialog |
|
4846 |
|pattern| |
|
4847 |
||
12335 | 4848 |
pattern := Dialog |
15429 | 4849 |
request:('Enter GLOB matchpattern for message text\(Trace who sends matching text to the Transcript)\\Empty to disable, * for any.' withCRs) |
4850 |
initialAnswer:(TextCollector traceSendersOfMessagePattern). |
|
11233 | 4851 |
pattern isNil ifTrue:[^ self]. |
4852 |
||
15429 | 4853 |
TextCollector traceSendersOfMessagePattern:pattern |
11233 | 4854 |
|
4855 |
"Created: / 02-02-2012 / 12:06:10 / cg" |
|
4856 |
! |
|
4857 |
||
13129 | 4858 |
timestampTranscriptMessages |
15429 | 4859 |
^ TextCollector perform: #timestampMessages ifNotUnderstood:[false] |
13828 | 4860 |
|
4861 |
"Modified: / 25-07-2013 / 12:16:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
7508 | 4862 |
! |
4863 |
||
13129 | 4864 |
timestampTranscriptMessages:aBoolean |
15429 | 4865 |
^ TextCollector timestampMessages:aBoolean |
3368 | 4866 |
! ! |
4867 |
||
4862 | 4868 |
!NewLauncher methodsFor:'user actions-demos'! |
1406 | 4869 |
|
4870 |
openDemo:className |
|
4871 |
"open a demo, given its name. |
|
4872 |
Looks in both the Smalltalk- and the Demos-Namespace |
|
4873 |
for that class." |
|
4874 |
||
4875 |
self openApplication:className nameSpace:Demos |
|
4876 |
||
4877 |
! |
|
4878 |
||
1716
a6cbe3d33ca2
disable class-history menu item, if there is no history;
Claus Gittinger <cg@exept.de>
parents:
1711
diff
changeset
|
4879 |
openMandelbrotDemo |
12335 | 4880 |
self openDemo:#ComplexIterationView |
1716
a6cbe3d33ca2
disable class-history menu item, if there is no history;
Claus Gittinger <cg@exept.de>
parents:
1711
diff
changeset
|
4881 |
|
a6cbe3d33ca2
disable class-history menu item, if there is no history;
Claus Gittinger <cg@exept.de>
parents:
1711
diff
changeset
|
4882 |
"Created: / 8.7.1998 / 20:36:37 / cg" |
a6cbe3d33ca2
disable class-history menu item, if there is no history;
Claus Gittinger <cg@exept.de>
parents:
1711
diff
changeset
|
4883 |
! |
a6cbe3d33ca2
disable class-history menu item, if there is no history;
Claus Gittinger <cg@exept.de>
parents:
1711
diff
changeset
|
4884 |
|
2483 | 4885 |
startPingPong2 |
4886 |
"opens a 2-user PingPong game" |
|
4887 |
||
4888 |
self openApplication:'PingPongGame' nameSpace:Games with:#open2PlayerGame |
|
4889 |
||
4890 |
"Modified: / 13.12.1999 / 22:24:15 / cg" |
|
4891 |
! |
|
4892 |
||
2502 | 4893 |
startReversi |
4894 |
"opens a reversi game (java)" |
|
4895 |
||
4896 |
self openApplication:'JavaAppletDemo3' nameSpace:CodingExamples_GUI |
|
4897 |
||
4898 |
"Modified: / 13.12.1999 / 22:24:15 / cg" |
|
4899 |
! |
|
4900 |
||
2698
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4901 |
startStopDemo:className |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4902 |
"start/stop a demo, given its name. |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4903 |
Looks in both the Smalltalk- and the Demos-Namespace |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4904 |
for that class." |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4905 |
|
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4906 |
|cls| |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4907 |
|
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4908 |
cls := self findApplicationClass:className nameSpace:Demos. |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4909 |
cls isNil ifTrue:[ |
12335 | 4910 |
^ self |
2698
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4911 |
]. |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4912 |
|
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4913 |
Autoload autoloadFailedSignal handle:[:ex | |
12335 | 4914 |
self warn:(resources string:'Sorry, the %1 class seems to be not available.' with:cls name) |
2698
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4915 |
] do:[ |
12335 | 4916 |
self withWaitCursorDo:[ |
4917 |
cls isRunning ifTrue:[ |
|
4918 |
cls stop |
|
4919 |
] ifFalse:[ |
|
4920 |
cls start |
|
4921 |
] |
|
4922 |
] |
|
2698
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4923 |
] |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4924 |
! |
c6ef17fe725e
shortCut keys for browser and workspace
Claus Gittinger <cg@exept.de>
parents:
2693
diff
changeset
|
4925 |
|
1406 | 4926 |
startTicTacToe2 |
4927 |
"opens a 2-user ticTacToe game" |
|
4928 |
||
4929 |
self openApplication:'TicTacToeGame' nameSpace:Games with:#open2UserGame |
|
4930 |
! ! |
|
4931 |
||
4862 | 4932 |
!NewLauncher methodsFor:'user actions-file'! |
1406 | 4933 |
|
8725 | 4934 |
clearTranscript |
4935 |
Transcript current contents:'' |
|
4936 |
||
4937 |
"Modified: / 20-04-2005 / 18:59:28 / janfrog" |
|
4938 |
! |
|
4939 |
||
1406 | 4940 |
saveImage |
4941 |
"save image" |
|
4942 |
||
6232
7fb901df47d4
Make snapshot writing more robust against errors.
Stefan Vogel <sv@exept.de>
parents:
6224
diff
changeset
|
4943 |
[ |
12335 | 4944 |
self saveImageAs:ObjectMemory nameForSnapshot. |
6232
7fb901df47d4
Make snapshot writing more robust against errors.
Stefan Vogel <sv@exept.de>
parents:
6224
diff
changeset
|
4945 |
] on:SnapshotError do:[:ex| |
12335 | 4946 |
self warn:ex description. |
6232
7fb901df47d4
Make snapshot writing more robust against errors.
Stefan Vogel <sv@exept.de>
parents:
6224
diff
changeset
|
4947 |
] |
1406 | 4948 |
! |
4949 |
||
4950 |
saveImageAs |
|
4951 |
"save image, after asking for a file name" |
|
4952 |
||
6232
7fb901df47d4
Make snapshot writing more robust against errors.
Stefan Vogel <sv@exept.de>
parents:
6224
diff
changeset
|
4953 |
|imageFilename| |
7fb901df47d4
Make snapshot writing more robust against errors.
Stefan Vogel <sv@exept.de>
parents:
6224
diff
changeset
|
4954 |
|
12335 | 4955 |
imageFilename := Dialog |
4956 |
requestFileName:(resources string:'Save Image As') |
|
4957 |
default:ObjectMemory nameForSnapshot |
|
4958 |
pattern:'*.img' |
|
4959 |
fromDirectory:Filename currentDirectory. |
|
6232
7fb901df47d4
Make snapshot writing more robust against errors.
Stefan Vogel <sv@exept.de>
parents:
6224
diff
changeset
|
4960 |
|
7fb901df47d4
Make snapshot writing more robust against errors.
Stefan Vogel <sv@exept.de>
parents:
6224
diff
changeset
|
4961 |
imageFilename notNil ifTrue:[ |
12335 | 4962 |
[ |
4963 |
self saveImageAs:imageFilename |
|
4964 |
] on:SnapshotError do:[:ex| |
|
4965 |
self warn:ex description. |
|
4966 |
]. |
|
6232
7fb901df47d4
Make snapshot writing more robust against errors.
Stefan Vogel <sv@exept.de>
parents:
6224
diff
changeset
|
4967 |
]. |
13642 | 4968 |
! |
4969 |
||
4970 |
saveSessionChangesAs |
|
4971 |
"save the current default changeset as a patch file, |
|
4972 |
after asking for a file name" |
|
4973 |
||
15365 | 4974 |
|dir d changesFilename currentChangeSet| |
13642 | 4975 |
|
4976 |
(d := Filename homeDirectory construct:'.smalltalk') exists ifTrue:[ |
|
4977 |
d := d construct:'userPatches'. |
|
4978 |
d exists ifFalse:[ |
|
4979 |
d makeDirectory. |
|
4980 |
]. |
|
4981 |
dir := d. |
|
14789 | 4982 |
] ifFalse:[ |
4983 |
dir := Filename currentDirectory. |
|
13642 | 4984 |
]. |
4985 |
||
4986 |
changesFilename := Timestamp now |
|
13709 | 4987 |
printStringFormat:'changes_%(year)-%(month)-%(day)__%h:%m:%s.chg'. |
4988 |
OperatingSystem isMSWINDOWSlike ifTrue:[ changesFilename replaceAll:$: with:$_ ]. |
|
13642 | 4989 |
|
15365 | 4990 |
currentChangeSet := ChangeSet current. |
13642 | 4991 |
changesFilename := Dialog |
14788 | 4992 |
requestFileName:(resources |
15365 | 4993 |
string:'Save %1 Changes (for %2 Selectors in %3 Classes) As' |
4994 |
with:currentChangeSet size |
|
4995 |
with:currentChangeSet changeSelectors size |
|
4996 |
with:currentChangeSet changedClasses size) |
|
13642 | 4997 |
default:changesFilename |
4998 |
pattern:'*.chg' |
|
4999 |
fromDirectory:dir. |
|
5000 |
||
5001 |
changesFilename notEmptyOrNil ifTrue:[ |
|
14789 | 5002 |
self saveSessionChangesAs:changesFilename. |
5003 |
Transcript showCR:'session changes save in ',changesFilename asFilename pathName. |
|
13642 | 5004 |
]. |
5005 |
! |
|
5006 |
||
5007 |
saveSessionChangesAs:changesFilename |
|
5008 |
"save the current default changeset as a patch file" |
|
5009 |
||
5010 |
ChangeSet current fileOutAs: changesFilename |
|
1406 | 5011 |
! ! |
5012 |
||
4862 | 5013 |
!NewLauncher methodsFor:'user actions-help'! |
1406 | 5014 |
|
1429 | 5015 |
activeHelp |
5016 |
||
2344 | 5017 |
helpIsOn isNil ifTrue:[ |
14873 | 5018 |
helpIsOn := PluggableAdaptor new |
5019 |
getBlock:[:m | UserPreferences current flyByHelpActive and:[FlyByHelp isActive]] |
|
5020 |
putBlock:[:m :newValue | UserPreferences current flyByHelpActive:newValue] |
|
5021 |
updateBlock:[:m :aspect :param | true]. |
|
5022 |
"/ helpIsOn addDependent:self. |
|
2344 | 5023 |
]. |
5024 |
^ helpIsOn |
|
1429 | 5025 |
! |
5026 |
||
3492 | 5027 |
toggleFlyByHelp:aBoolean |
1411 | 5028 |
"turn on/off active help" |
5029 |
||
6101 | 5030 |
UserPreferences current flyByHelpActive:aBoolean. |
1411 | 5031 |
|
1842
b4bd3ccd2f3d
fixed active help (must be a value holder)
Claus Gittinger <cg@exept.de>
parents:
1841
diff
changeset
|
5032 |
"Modified: / 18.8.1998 / 16:06:27 / cg" |
1406 | 5033 |
! ! |
5034 |
||
4862 | 5035 |
!NewLauncher methodsFor:'user actions-system'! |
1406 | 5036 |
|
1544 | 5037 |
initJavaVM |
5038 |
JavaVM initializeVM |
|
5039 |
||
5040 |
"Created: / 9.2.1998 / 12:06:07 / cg" |
|
5041 |
! |
|
5042 |
||
5043 |
startLatencyMonitor |
|
5044 |
"open an interruptLatencyMonitor view" |
|
5045 |
||
5046 |
InterruptLatencyMonitor notNil ifTrue:[ |
|
12335 | 5047 |
Autoload autoloadFailedSignal catch:[ |
5048 |
InterruptLatencyMonitor open. |
|
5049 |
^ self. |
|
5050 |
]. |
|
1544 | 5051 |
]. |
2630 | 5052 |
self warn:'Sorry - the irq latency monitor is not available |
5053 |
in this release'. |
|
4464
997576abcb7f
add ProcessMonitorV2 access from menu dependent on userPreferences
penk
parents:
4449
diff
changeset
|
5054 |
! |
997576abcb7f
add ProcessMonitorV2 access from menu dependent on userPreferences
penk
parents:
4449
diff
changeset
|
5055 |
|
997576abcb7f
add ProcessMonitorV2 access from menu dependent on userPreferences
penk
parents:
4449
diff
changeset
|
5056 |
startProcessMonitor |
997576abcb7f
add ProcessMonitorV2 access from menu dependent on userPreferences
penk
parents:
4449
diff
changeset
|
5057 |
"open an ProcessMonitor view" |
997576abcb7f
add ProcessMonitorV2 access from menu dependent on userPreferences
penk
parents:
4449
diff
changeset
|
5058 |
|
5239 | 5059 |
self openApplication:( |
12335 | 5060 |
(UserPreferences current useProcessMonitorV2 |
5061 |
and:[ProcessMonitorV2 notNil]) |
|
5062 |
ifTrue:['ProcessMonitorV2'] |
|
5063 |
ifFalse:['ProcessMonitor']). |
|
6420 | 5064 |
! |
5065 |
||
14953 | 5066 |
startSQLScratchpad |
5067 |
((Smalltalk at:#'SQL::ODBCScratchpad') notNil |
|
5068 |
and:[ (Smalltalk at:#'SQL::ODBCScratchpad') isLoaded ]) ifFalse:[ |
|
5069 |
Smalltalk loadPackage:'stx:libdb/libodbc/applications'. |
|
5070 |
]. |
|
5071 |
||
5072 |
self openApplication:'SQL::ODBCScratchpad'. |
|
5073 |
! |
|
5074 |
||
6420 | 5075 |
startSQLWorkspace |
14953 | 5076 |
((Smalltalk at:#'SQL::WorkspacePage') notNil |
5077 |
and:[ (Smalltalk at:#'SQL::WorkspacePage') isLoaded ]) ifFalse:[ |
|
5078 |
Smalltalk loadPackage:'stx:libdb/devtools'. |
|
5079 |
]. |
|
5080 |
||
5081 |
self openApplication:'SQL::WorkspacePage'. |
|
8725 | 5082 |
! |
5083 |
||
5084 |
toggleHistoryManager |
|
5085 |
"Toggle history manager usage." |
|
5086 |
||
5087 |
HistoryManager isActive |
|
12335 | 5088 |
ifTrue: [HistoryManager deactivate] |
5089 |
ifFalse: [HistoryManager activate] |
|
8725 | 5090 |
|
5091 |
"Created: / 20-06-2004 / 16:08:09 / masca" |
|
5092 |
"Modified: / 20-04-2005 / 18:59:28 / janfrog" |
|
1544 | 5093 |
! ! |
5094 |
||
4862 | 5095 |
!NewLauncher methodsFor:'user actions-windows'! |
1544 | 5096 |
|
1928 | 5097 |
redrawAllWindows |
2864
d7c80fafa470
redrawAllWindows is now a display function
Claus Gittinger <cg@exept.de>
parents:
2854
diff
changeset
|
5098 |
device redrawAllWindows. |
1406 | 5099 |
! ! |
5100 |
||
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5101 |
!NewLauncher::AddedToolInfo methodsFor:'accessing'! |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5102 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5103 |
before |
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5104 |
|
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5105 |
^ before |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5106 |
! |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5107 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5108 |
before:something |
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5109 |
before := something. |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5110 |
! |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5111 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5112 |
item |
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5113 |
^ item |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5114 |
! |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5115 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5116 |
item:something |
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5117 |
item := something. |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5118 |
! |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5119 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5120 |
menuWithNewItem |
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5121 |
^ menuWithNewItem |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5122 |
! |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5123 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5124 |
menuWithNewItem:something |
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5125 |
menuWithNewItem := something. |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5126 |
! |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5127 |
|
5628
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5128 |
originalLabel |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5129 |
^ originalLabel |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5130 |
! |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5131 |
|
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5132 |
originalLabel:something |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5133 |
originalLabel := something. |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5134 |
! |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5135 |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5136 |
positionSpec |
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5137 |
^ positionSpec |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5138 |
! |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5139 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5140 |
positionSpec:something |
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5141 |
positionSpec := something. |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5142 |
! |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5143 |
|
5628
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5144 |
resourceProvider |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5145 |
^ resourceProvider |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5146 |
! |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5147 |
|
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5148 |
resourceProvider:something |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5149 |
resourceProvider := something. |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5150 |
! |
b9ac456bdb03
re-translate menuLabels of userAddedTools
Claus Gittinger <cg@exept.de>
parents:
5622
diff
changeset
|
5151 |
|
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5152 |
space |
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5153 |
^ space |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5154 |
! |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5155 |
|
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5156 |
space:something |
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5157 |
space := something. |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5158 |
! |
2721
405c3cdbd7ea
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2713
diff
changeset
|
5159 |
|
405c3cdbd7ea
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2713
diff
changeset
|
5160 |
where |
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5161 |
^ where |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5162 |
! |
2721
405c3cdbd7ea
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2713
diff
changeset
|
5163 |
|
405c3cdbd7ea
correctly remember userAddedTools for later reconstruction;
Claus Gittinger <cg@exept.de>
parents:
2713
diff
changeset
|
5164 |
where:something |
2854
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5165 |
where := something. |
ac97ea47bb08
browse changed classes added
Claus Gittinger <cg@exept.de>
parents:
2810
diff
changeset
|
5166 |
! ! |
2712
9e861058daab
addUserTool* is obsolete now;
Claus Gittinger <cg@exept.de>
parents:
2708
diff
changeset
|
5167 |
|
1406 | 5168 |
!NewLauncher class methodsFor:'documentation'! |
5169 |
||
10601
801ca2173f82
changed: #addMenuItem:from:in:position:space:
Claus Gittinger <cg@exept.de>
parents:
10600
diff
changeset
|
5170 |
version |
15707 | 5171 |
^ '$Header$' |
10601
801ca2173f82
changed: #addMenuItem:from:in:position:space:
Claus Gittinger <cg@exept.de>
parents:
10600
diff
changeset
|
5172 |
! |
801ca2173f82
changed: #addMenuItem:from:in:position:space:
Claus Gittinger <cg@exept.de>
parents:
10600
diff
changeset
|
5173 |
|
9962 | 5174 |
version_CVS |
15707 | 5175 |
^ '$Header$' |
8951 | 5176 |
! |
5177 |
||
9962 | 5178 |
version_SVN |
15707 | 5179 |
^ '$Id$' |
1406 | 5180 |
! ! |
12325 | 5181 |