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