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