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