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