author | Claus Gittinger <cg@exept.de> |
Fri, 14 Aug 1998 17:25:03 +0200 | |
changeset 953 | 1aecad8bf33a |
parent 943 | b9ba76358fbd |
child 955 | f4f7d2ebd3ce |
permissions | -rw-r--r-- |
199 | 1 |
" |
738 | 2 |
COPYRIGHT (c) 1997 by eXept Software AG |
199 | 3 |
All Rights Reserved |
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 |
|
738 | 7 |
inclusion of the above copyright notice. This software may not |
199 | 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 |
" |
|
12 |
||
13 |
||
14 |
||
738 | 15 |
ResourceSpecEditor subclass:#MenuEditor |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
16 |
instanceVariableNames:'specCanvas helpCanvas slices' |
220 | 17 |
classVariableNames:'' |
18 |
poolDictionaries:'' |
|
19 |
category:'Interface-UIPainter' |
|
199 | 20 |
! |
21 |
||
22 |
Object subclass:#Item |
|
220 | 23 |
instanceVariableNames:'activeHelpKey enabled label value nameKey indication shortcutKey |
407 | 24 |
accessCharacterPos retriever icon iconAndLabel submenuChannel |
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
25 |
startGroup argument translateLabel isButton isVisible choice |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
26 |
choiceValue' |
220 | 27 |
classVariableNames:'' |
28 |
poolDictionaries:'' |
|
29 |
privateIn:MenuEditor |
|
199 | 30 |
! |
31 |
||
407 | 32 |
SelectionInTreeView subclass:#TreeView |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
33 |
instanceVariableNames:'' |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
34 |
classVariableNames:'' |
220 | 35 |
poolDictionaries:'' |
36 |
privateIn:MenuEditor |
|
199 | 37 |
! |
38 |
||
39 |
!MenuEditor class methodsFor:'documentation'! |
|
40 |
||
41 |
copyright |
|
42 |
" |
|
738 | 43 |
COPYRIGHT (c) 1997 by eXept Software AG |
199 | 44 |
All Rights Reserved |
45 |
||
46 |
This software is furnished under a license and may be used |
|
47 |
only in accordance with the terms of that license and with the |
|
738 | 48 |
inclusion of the above copyright notice. This software may not |
199 | 49 |
be provided or otherwise made available to, or used by, any |
50 |
other person. No title to or ownership of the software is |
|
51 |
hereby transferred. |
|
52 |
" |
|
53 |
||
54 |
||
55 |
! |
|
56 |
||
57 |
documentation |
|
58 |
" |
|
728 | 59 |
The MenuEditor allows you to create, modify or just inspect |
60 |
hierarchical menus of menu bars, popup menu, or tool bar menus. |
|
199 | 61 |
|
62 |
[start with:] |
|
63 |
MenuEditor open |
|
728 | 64 |
MenuEditor openOnClass:MenuEditor andSelector:#menu |
199 | 65 |
|
66 |
[see also:] |
|
67 |
UIPainter |
|
68 |
||
69 |
[author:] |
|
541 | 70 |
Claus Atzkern, eXept Software AG |
71 |
Thomas Zwick, eXept Software AG |
|
199 | 72 |
" |
73 |
||
74 |
! ! |
|
75 |
||
508 | 76 |
!MenuEditor class methodsFor:'instance creation'! |
77 |
||
728 | 78 |
openModalOnMenu: aMenu |
79 |
"Open a MenuEditor modal on aMenu" |
|
80 |
"self openModalOnMenu: (self perform: #menu) decodeAsLiteralArray" |
|
81 |
||
82 |
^self new openModalOnMenu: aMenu |
|
508 | 83 |
! ! |
84 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
85 |
!MenuEditor class methodsFor:'accessing'! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
86 |
|
734 | 87 |
iconUnknown |
88 |
"returns an image used for picked items containing an image |
|
89 |
" |
|
90 |
||
91 |
<resource: #fileImage> |
|
92 |
||
804 | 93 |
"/ ^ Image fromFile:'brokenImage.xpm' |
94 |
^ Icon constantNamed:'brokenImage.xpm' |
|
95 |
||
96 |
"Modified: / 22.4.1998 / 22:15:11 / ca" |
|
734 | 97 |
! |
98 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
99 |
resourceType |
728 | 100 |
"get the type of resource of the method generated by the MenuEditor" |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
101 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
102 |
^#menu |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
103 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
104 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
105 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
106 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
107 |
! ! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
108 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
109 |
!MenuEditor class methodsFor:'aspects'! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
110 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
111 |
aspects |
728 | 112 |
"get the aspects for the attributes of the menu components" |
113 |
||
114 |
^#( |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
115 |
label |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
116 |
accessCharacterPos |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
117 |
argument |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
118 |
submenuChannel |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
119 |
enabled |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
120 |
value |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
121 |
nameKey |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
122 |
indication |
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
123 |
choice |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
124 |
choiceValue |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
125 |
translateLabel |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
126 |
isButton |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
127 |
shortcutKey |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
128 |
startGroup |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
129 |
retriever |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
130 |
iconAndLabel |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
131 |
icon |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
132 |
isVisible |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
133 |
) |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
134 |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
135 |
"Modified: / 14.8.1998 / 14:46:36 / cg" |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
136 |
! ! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
137 |
|
371 | 138 |
!MenuEditor class methodsFor:'help specs'! |
139 |
||
140 |
helpSpec |
|
738 | 141 |
"This resource specification was automatically generated |
142 |
by the UIHelpTool of ST/X." |
|
143 |
||
144 |
"Do not manually edit this!! If it is corrupted, |
|
145 |
the UIHelpTool may not be able to read the specification." |
|
371 | 146 |
|
147 |
" |
|
738 | 148 |
UIHelpTool openOnClass:MenuEditor |
371 | 149 |
" |
150 |
||
738 | 151 |
<resource: #help> |
152 |
||
153 |
^super helpSpec addPairsFrom:#( |
|
371 | 154 |
|
548 | 155 |
#addMenuItem |
156 |
'Adds a new menu item.' |
|
157 |
||
158 |
#addMenuSeparator |
|
159 |
'Adds a new menu separator.' |
|
160 |
||
161 |
#addSubMenu |
|
613 | 162 |
'Adds a new sub menu.' |
548 | 163 |
|
164 |
#addSubMenuLink |
|
613 | 165 |
'Adds a new linked sub menu.' |
371 | 166 |
|
577 | 167 |
#basicsAction |
627 | 168 |
'An action selector with 0, 1 (the argument field), or 2 (the selected item) arguments.' |
577 | 169 |
|
170 |
#basicsArgument |
|
613 | 171 |
'An argument passed to above selector, if it is a 1 or a 2 argument selector.' |
577 | 172 |
|
173 |
#basicsIndication |
|
174 |
'A boolean value holder, a boolean evaluating block, or a boolean returning selector for specifying indication state.' |
|
175 |
||
176 |
#basicsIsButton |
|
603 | 177 |
'Turns on/off a button behavior.' |
577 | 178 |
|
179 |
#basicsLabel |
|
180 |
'Label of the item.' |
|
181 |
||
182 |
#basicsMenu |
|
613 | 183 |
'A value holder providing the sub menu to be opened if item is selected.' |
577 | 184 |
|
185 |
#basicsMenuArgument |
|
943 | 186 |
'An argument passed with the menu selector.' |
577 | 187 |
|
188 |
#basicsNameKey |
|
189 |
'Unique identifier of the item (optional).' |
|
190 |
||
191 |
#basicsSelector |
|
613 | 192 |
'Selector under which the generated menu spec is saved.' |
577 | 193 |
|
194 |
#basicsSeparatorType |
|
195 |
'List of valid separators.' |
|
196 |
||
197 |
#basicsTranslateLabel |
|
943 | 198 |
'Translate the label via the classes resource file (internationalization).' |
577 | 199 |
|
200 |
#detailsAccelerator |
|
201 |
'Key to be pressed to select the menu item from the keyboard (accelerator key).' |
|
202 |
||
203 |
#detailsAccessCharaterPosition |
|
204 |
'Index of the access character position of the textual label (optional).' |
|
205 |
||
206 |
#detailsEnabled |
|
943 | 207 |
'Aspect or binding providing a boolean value holder for the enable-state of the menu item.' |
577 | 208 |
|
209 |
#detailsVisibility |
|
943 | 210 |
'Aspect or binding providing a boolean value holder for the visibility-state of the menu item.' |
577 | 211 |
|
548 | 212 |
#fileLoad |
943 | 213 |
'Opens a dialog to select and load a menu spec from a class.' |
548 | 214 |
|
215 |
#fileNew |
|
216 |
'Creates a new menu spec.' |
|
217 |
||
577 | 218 |
#filePickAMenu |
836 | 219 |
'Select a menu from an open view and read its specification' |
577 | 220 |
|
548 | 221 |
#fileSave |
943 | 222 |
'Saves the menu spec (and the help spec, if modified).' |
455 | 223 |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
224 |
#fileSaveAs |
943 | 225 |
'Opens a dialog to save the menu spec (and the help spec, if modified).' |
226 |
||
227 |
#historyMenuItem |
|
228 |
'Edit this menu specification.' |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
229 |
|
577 | 230 |
#imageImageAndLabel |
943 | 231 |
'Toggles display of both image and textual label.' |
577 | 232 |
|
233 |
#imageImageEditor |
|
943 | 234 |
'Opens an Image Editor on the resource method defined by retriever and selector.' |
577 | 235 |
|
236 |
#imageRetriever |
|
237 |
'Class implementing the image resource method. If no class is given, the current application class will be taken.' |
|
238 |
||
239 |
#imageSelector |
|
613 | 240 |
'Selector returning an image.' |
371 | 241 |
|
943 | 242 |
#test |
243 |
'Displays the current menu (layout test).' |
|
371 | 244 |
) |
836 | 245 |
|
943 | 246 |
"Modified: / 8.8.1998 / 02:37:32 / cg" |
371 | 247 |
! ! |
248 |
||
734 | 249 |
!MenuEditor class methodsFor:'image specs'! |
250 |
||
251 |
linkSubmenuImage |
|
738 | 252 |
"This resource specification was automatically generated |
253 |
by the ImageEditor of ST/X." |
|
254 |
||
255 |
"Do not manually edit this!!!! If it is corrupted, |
|
256 |
the ImageEditor may not be able to read the specification." |
|
257 |
||
734 | 258 |
" |
738 | 259 |
ImageEditor openOnClass:self andSelector:#linkSubmenuImage |
734 | 260 |
" |
261 |
||
262 |
<resource: #image> |
|
263 |
||
264 |
^Icon |
|
265 |
constantNamed:#'MenuEditor linkSubmenuImage' |
|
266 |
ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@ADQDQDQDQDQDQH@D"H"H"H"H"H"K0@RH"H"H"H"H"H/@A????????????<@D@@@@@@@@@@@C0@PL3L0DQDQDQD_@A@3L3LBH"H"H"<@DCL3L3@"H"H"K0@PL3L3L0??????@A@@@@L3L@@@@@<@DQDQDCL3@PLAG0@RH"H"@3L0@3@/@AH"H"H L3L3L0<@G?????<CL3L3L@@P@@@@@@@3L3LO@ADQDQDQDP@CLA<@D"H"H"H"H LBK0@RH"H"H"H"@BH/@B????????????<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]! |
|
267 |
||
268 |
menuItemImage |
|
738 | 269 |
"This resource specification was automatically generated |
270 |
by the ImageEditor of ST/X." |
|
271 |
||
272 |
"Do not manually edit this!!!! If it is corrupted, |
|
273 |
the ImageEditor may not be able to read the specification." |
|
274 |
||
734 | 275 |
" |
738 | 276 |
ImageEditor openOnClass:self andSelector:#menuItemImage |
734 | 277 |
" |
278 |
||
279 |
<resource: #image> |
|
280 |
||
281 |
^Icon |
|
282 |
constantNamed:#'MenuEditor menuItemImage' |
|
283 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUQUUUUUUUPUUUUUUU_UUUUUUUPUUUUUUUP@@@@@@@@EUUUUUVAF*****+HF:?+::;@F:.+*?;@F:.+::;@F:.+*:;@F:.+::;@F*****+DK??????A@@@@@@@@UUUUUUUPUUUUUUUXUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUX') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]! |
|
284 |
||
285 |
menuSeparatorImage |
|
738 | 286 |
"This resource specification was automatically generated |
287 |
by the ImageEditor of ST/X." |
|
288 |
||
289 |
"Do not manually edit this!!!! If it is corrupted, |
|
290 |
the ImageEditor may not be able to read the specification." |
|
291 |
||
734 | 292 |
" |
738 | 293 |
ImageEditor openOnClass:self andSelector:#menuSeparatorImage |
734 | 294 |
" |
295 |
||
296 |
<resource: #image> |
|
297 |
||
298 |
^Icon |
|
299 |
constantNamed:#'MenuEditor menuSeparatorImage' |
|
300 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUURUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUP@@@@@@@@EUUUUUV@F*****+DF*****+CF?????+@F0@@@@[@F%UUUU[HF*****+@F*****+@K??????N@@@@@@@HUUUUUUUPUUUUUUUPUUUUUUUWUUUUUUUXUUUUUUUPUUUUUUUP') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]! |
|
301 |
||
302 |
submenuImage |
|
738 | 303 |
"This resource specification was automatically generated |
304 |
by the ImageEditor of ST/X." |
|
305 |
||
306 |
"Do not manually edit this!!!! If it is corrupted, |
|
307 |
the ImageEditor may not be able to read the specification." |
|
308 |
||
734 | 309 |
" |
738 | 310 |
ImageEditor openOnClass:self andSelector:#submenuImage |
734 | 311 |
" |
312 |
||
313 |
<resource: #image> |
|
314 |
||
315 |
^Icon |
|
316 |
constantNamed:#'MenuEditor submenuImage' |
|
317 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@EUUUUUV@F*****+@F*****+@G??????GD@@@@@C@EUUUUUWLF*****+@F*****+@G??????HD@@@@@C@EUUUUUW@F*****+@F*****+OG??????@D@@@@@C@EUUUUUW@F*****+@F*****+@K??????@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]! ! |
|
318 |
||
199 | 319 |
!MenuEditor class methodsFor:'interface specs'! |
320 |
||
321 |
basicsItemSpec |
|
738 | 322 |
"This resource specification was automatically generated |
323 |
by the UIPainter of ST/X." |
|
324 |
||
325 |
"Do not manually edit this!! If it is corrupted, |
|
326 |
the UIPainter may not be able to read the specification." |
|
199 | 327 |
|
328 |
" |
|
329 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsItemSpec |
|
330 |
MenuEditor new openInterface:#basicsItemSpec |
|
331 |
" |
|
332 |
||
333 |
<resource: #canvas> |
|
334 |
||
335 |
^ |
|
336 |
||
337 |
#(#FullSpec |
|
703 | 338 |
#window: |
199 | 339 |
#(#WindowSpec |
728 | 340 |
#name: 'Basics Item' |
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
341 |
#layout: #(#LayoutFrame 216 0 173 0 482 0 491 0) |
728 | 342 |
#label: 'Basics Item' |
703 | 343 |
#min: #(#Point 10 10) |
344 |
#max: #(#Point 1160 870) |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
345 |
#bounds: #(#Rectangle 216 173 483 492) |
703 | 346 |
#usePreferredExtent: false |
199 | 347 |
) |
703 | 348 |
#component: |
199 | 349 |
#(#SpecCollection |
703 | 350 |
#collection: |
199 | 351 |
#( |
352 |
#(#LabelSpec |
|
703 | 353 |
#name: 'nameKeyLabel' |
354 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
355 |
#label: 'Name Key:' |
|
356 |
#adjust: #right |
|
357 |
#resizeForLabel: true |
|
199 | 358 |
) |
359 |
#(#InputFieldSpec |
|
703 | 360 |
#name: 'nameKeyField' |
361 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
362 |
#tabable: true |
|
363 |
#model: #nameKey |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
364 |
#group: #inputGroup |
703 | 365 |
#type: #symbolOrNil |
366 |
#acceptOnReturn: false |
|
367 |
#acceptOnTab: false |
|
199 | 368 |
) |
369 |
#(#LabelSpec |
|
703 | 370 |
#name: 'labelLabel' |
371 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
372 |
#label: 'Label:' |
|
373 |
#adjust: #right |
|
374 |
#resizeForLabel: true |
|
199 | 375 |
) |
376 |
#(#InputFieldSpec |
|
703 | 377 |
#name: 'labelField' |
378 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
379 |
#activeHelpKey: #basicsLabel |
|
380 |
#tabable: true |
|
381 |
#model: #label |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
382 |
#group: #inputGroup |
703 | 383 |
#acceptOnReturn: false |
384 |
#acceptOnTab: false |
|
199 | 385 |
) |
386 |
#(#LabelSpec |
|
703 | 387 |
#name: 'valueLabel' |
388 |
#layout: #(#AlignmentOrigin 107 0 90 0 1 0.5) |
|
389 |
#label: 'Action:' |
|
390 |
#adjust: #right |
|
391 |
#resizeForLabel: true |
|
199 | 392 |
) |
393 |
#(#InputFieldSpec |
|
703 | 394 |
#name: 'valueField' |
395 |
#layout: #(#LayoutFrame 110 0 79 0 -5 1.0 101 0) |
|
396 |
#activeHelpKey: #basicsAction |
|
397 |
#tabable: true |
|
398 |
#model: #value |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
399 |
#group: #inputGroup |
703 | 400 |
#type: #symbolOrNil |
401 |
#acceptOnReturn: false |
|
402 |
#acceptOnTab: false |
|
199 | 403 |
) |
404 |
#(#LabelSpec |
|
703 | 405 |
#name: 'argumentLabel' |
406 |
#layout: #(#AlignmentOrigin 107 0 115 0 1 0.5) |
|
407 |
#label: 'Argument:' |
|
408 |
#adjust: #right |
|
409 |
#resizeForLabel: true |
|
290 | 410 |
) |
411 |
#(#InputFieldSpec |
|
703 | 412 |
#name: 'argumentField' |
413 |
#layout: #(#LayoutFrame 110 0 104 0 -5 1.0 126 0) |
|
414 |
#activeHelpKey: #basicsArgument |
|
415 |
#tabable: true |
|
416 |
#model: #argument |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
417 |
#group: #inputGroup |
703 | 418 |
#type: #string |
419 |
#acceptOnReturn: false |
|
420 |
#acceptOnTab: false |
|
290 | 421 |
) |
371 | 422 |
#(#LabelSpec |
703 | 423 |
#name: 'indicationLabel' |
424 |
#layout: #(#AlignmentOrigin 107 0 155 0 1 0.5) |
|
425 |
#label: 'Indication:' |
|
426 |
#adjust: #right |
|
427 |
#resizeForLabel: true |
|
371 | 428 |
) |
429 |
#(#InputFieldSpec |
|
703 | 430 |
#name: 'indicationField' |
431 |
#layout: #(#LayoutFrame 110 0 144 0 -5 1.0 166 0) |
|
432 |
#activeHelpKey: #basicsIndication |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
433 |
#enableChannel: #indicationEnabled |
703 | 434 |
#tabable: true |
435 |
#model: #indication |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
436 |
#group: #inputGroup |
703 | 437 |
#type: #symbolOrNil |
438 |
#acceptOnReturn: false |
|
439 |
#acceptOnTab: false |
|
371 | 440 |
) |
398 | 441 |
#(#CheckBoxSpec |
703 | 442 |
#name: 'translateLabelCheckBox' |
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
443 |
#layout: #(#Point 20 230) |
703 | 444 |
#activeHelpKey: #basicsTranslateLabel |
445 |
#tabable: true |
|
446 |
#model: #translateLabel |
|
447 |
#label: 'Translate Label' |
|
398 | 448 |
) |
449 |
#(#CheckBoxSpec |
|
703 | 450 |
#name: 'isButtonCheckBox' |
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
451 |
#layout: #(#Point 20 259) |
703 | 452 |
#activeHelpKey: #basicsIsButton |
453 |
#tabable: true |
|
454 |
#model: #isButton |
|
455 |
#label: 'Is Button' |
|
398 | 456 |
) |
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
457 |
#(#LabelSpec |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
458 |
#name: 'choiceLabel' |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
459 |
#layout: #(#AlignmentOrigin 107 0 180 0 1 0.5) |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
460 |
#label: 'Choice:' |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
461 |
#translateLabel: true |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
462 |
#adjust: #right |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
463 |
#resizeForLabel: true |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
464 |
) |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
465 |
#(#InputFieldSpec |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
466 |
#name: 'choiceField' |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
467 |
#layout: #(#LayoutFrame 110 0 169 0 -5 1.0 191 0) |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
468 |
#activeHelpKey: #basicsIndication |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
469 |
#enableChannel: #choiceEnabled |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
470 |
#tabable: true |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
471 |
#model: #choice |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
472 |
#group: #inputGroup |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
473 |
#type: #symbolOrNil |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
474 |
#acceptOnReturn: false |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
475 |
#acceptOnTab: false |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
476 |
) |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
477 |
#(#LabelSpec |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
478 |
#name: 'choiceValueLabel' |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
479 |
#layout: #(#AlignmentOrigin 107 0 205 0 1 0.5) |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
480 |
#label: 'Value:' |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
481 |
#translateLabel: true |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
482 |
#adjust: #right |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
483 |
#resizeForLabel: true |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
484 |
) |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
485 |
#(#InputFieldSpec |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
486 |
#name: 'choiceValueField' |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
487 |
#layout: #(#LayoutFrame 110 0 194 0 -5 1.0 216 0) |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
488 |
#activeHelpKey: #basicsIndication |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
489 |
#enableChannel: #choiceValueEnabled |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
490 |
#tabable: true |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
491 |
#model: #choiceValue |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
492 |
#group: #inputGroup |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
493 |
#type: #smalltalkObject |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
494 |
#acceptOnReturn: true |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
495 |
#acceptOnTab: true |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
496 |
#acceptOnLeave: true |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
497 |
#acceptOnLostFocus: true |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
498 |
#immediateAccept: false |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
499 |
) |
199 | 500 |
) |
501 |
) |
|
502 |
) |
|
931 | 503 |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
504 |
"Modified: / 14.8.1998 / 15:43:35 / cg" |
199 | 505 |
! |
506 |
||
218 | 507 |
basicsLinkSpec |
738 | 508 |
"This resource specification was automatically generated |
509 |
by the UIPainter of ST/X." |
|
510 |
||
511 |
"Do not manually edit this!! If it is corrupted, |
|
512 |
the UIPainter may not be able to read the specification." |
|
218 | 513 |
|
514 |
" |
|
515 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsLinkSpec |
|
516 |
MenuEditor new openInterface:#basicsLinkSpec |
|
517 |
" |
|
518 |
||
519 |
<resource: #canvas> |
|
520 |
||
521 |
^ |
|
522 |
||
523 |
#(#FullSpec |
|
703 | 524 |
#window: |
218 | 525 |
#(#WindowSpec |
728 | 526 |
#name: 'Basics Link' |
738 | 527 |
#layout: #(#LayoutFrame 473 0 301 0 739 0 619 0) |
728 | 528 |
#label: 'Basics Link' |
703 | 529 |
#min: #(#Point 10 10) |
530 |
#max: #(#Point 1280 1024) |
|
738 | 531 |
#bounds: #(#Rectangle 473 301 740 620) |
703 | 532 |
#usePreferredExtent: false |
218 | 533 |
) |
703 | 534 |
#component: |
218 | 535 |
#(#SpecCollection |
703 | 536 |
#collection: |
218 | 537 |
#( |
538 |
#(#LabelSpec |
|
703 | 539 |
#name: 'nameKeyLabel' |
540 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
541 |
#activeHelpKey: #nameKey |
|
542 |
#label: 'Name Key:' |
|
543 |
#adjust: #right |
|
544 |
#resizeForLabel: true |
|
218 | 545 |
) |
546 |
#(#InputFieldSpec |
|
703 | 547 |
#name: 'nameKeyField' |
548 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
549 |
#activeHelpKey: #basicsNameKey |
|
550 |
#tabable: true |
|
551 |
#model: #nameKey |
|
552 |
#type: #symbolOrNil |
|
553 |
#acceptOnReturn: false |
|
554 |
#acceptOnTab: false |
|
931 | 555 |
#group: #inputGroup |
218 | 556 |
) |
557 |
#(#LabelSpec |
|
703 | 558 |
#name: 'labelLabel' |
559 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
560 |
#label: 'Label:' |
|
561 |
#resizeForLabel: true |
|
218 | 562 |
) |
563 |
#(#InputFieldSpec |
|
703 | 564 |
#name: 'labelField' |
565 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
566 |
#activeHelpKey: #basicsLabel |
|
567 |
#tabable: true |
|
568 |
#model: #label |
|
569 |
#acceptOnReturn: false |
|
570 |
#acceptOnTab: false |
|
931 | 571 |
#group: #inputGroup |
218 | 572 |
) |
469 | 573 |
#(#LabelSpec |
703 | 574 |
#name: 'menuLabel' |
575 |
#layout: #(#AlignmentOrigin 107 0 76 0 1 0.5) |
|
576 |
#label: 'Menu:' |
|
577 |
#resizeForLabel: true |
|
469 | 578 |
) |
218 | 579 |
#(#InputFieldSpec |
703 | 580 |
#name: 'menuField' |
581 |
#layout: #(#LayoutFrame 110 0 65 0 -5 1.0 87 0) |
|
582 |
#activeHelpKey: #basicsMenu |
|
583 |
#tabable: true |
|
584 |
#model: #submenuChannel |
|
585 |
#type: #symbolOrNil |
|
586 |
#acceptOnReturn: false |
|
587 |
#acceptOnTab: false |
|
931 | 588 |
#group: #inputGroup |
218 | 589 |
) |
590 |
#(#LabelSpec |
|
703 | 591 |
#name: 'ArgumentLabel' |
592 |
#layout: #(#AlignmentOrigin 107 0 100 0 1 0.5) |
|
593 |
#label: 'Argument:' |
|
594 |
#resizeForLabel: true |
|
218 | 595 |
) |
411 | 596 |
#(#InputFieldSpec |
703 | 597 |
#name: 'argumentField' |
598 |
#layout: #(#LayoutFrame 110 0 90 0 -5 1.0 112 0) |
|
599 |
#activeHelpKey: #basicsMenuArgument |
|
600 |
#tabable: true |
|
601 |
#model: #argument |
|
602 |
#acceptOnReturn: false |
|
603 |
#acceptOnTab: false |
|
931 | 604 |
#group: #inputGroup |
411 | 605 |
) |
469 | 606 |
#(#CheckBoxSpec |
703 | 607 |
#name: 'translateLabelCheckBox' |
728 | 608 |
#layout: #(#Point 20 190) |
703 | 609 |
#activeHelpKey: #basicsTranslateLabel |
610 |
#tabable: true |
|
611 |
#model: #translateLabel |
|
612 |
#label: 'Translate Label' |
|
411 | 613 |
) |
218 | 614 |
) |
615 |
) |
|
616 |
) |
|
931 | 617 |
|
618 |
"Modified: / 31.7.1998 / 01:18:16 / cg" |
|
218 | 619 |
! |
620 |
||
199 | 621 |
basicsMenuSpec |
738 | 622 |
"This resource specification was automatically generated |
623 |
by the UIPainter of ST/X." |
|
624 |
||
625 |
"Do not manually edit this!! If it is corrupted, |
|
626 |
the UIPainter may not be able to read the specification." |
|
199 | 627 |
|
628 |
" |
|
629 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsMenuSpec |
|
630 |
MenuEditor new openInterface:#basicsMenuSpec |
|
631 |
" |
|
632 |
||
633 |
<resource: #canvas> |
|
634 |
||
635 |
^ |
|
636 |
||
637 |
#(#FullSpec |
|
703 | 638 |
#window: |
199 | 639 |
#(#WindowSpec |
728 | 640 |
#name: 'Basics Menu' |
738 | 641 |
#layout: #(#LayoutFrame 473 0 301 0 739 0 619 0) |
728 | 642 |
#label: 'Basics Menu' |
703 | 643 |
#min: #(#Point 10 10) |
644 |
#max: #(#Point 1280 1024) |
|
738 | 645 |
#bounds: #(#Rectangle 473 301 740 620) |
703 | 646 |
#usePreferredExtent: false |
199 | 647 |
) |
703 | 648 |
#component: |
199 | 649 |
#(#SpecCollection |
703 | 650 |
#collection: |
199 | 651 |
#( |
652 |
#(#LabelSpec |
|
703 | 653 |
#name: 'nameKeyLabel' |
654 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
655 |
#label: 'Name Key:' |
|
656 |
#adjust: #right |
|
657 |
#resizeForLabel: true |
|
199 | 658 |
) |
659 |
#(#InputFieldSpec |
|
703 | 660 |
#name: 'nameKeyField' |
661 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
662 |
#activeHelpKey: #basicsNameKey |
|
663 |
#tabable: true |
|
664 |
#model: #nameKey |
|
665 |
#type: #symbolOrNil |
|
666 |
#acceptOnReturn: false |
|
667 |
#acceptOnTab: false |
|
931 | 668 |
#group: #inputGroup |
199 | 669 |
) |
670 |
#(#LabelSpec |
|
703 | 671 |
#name: 'labelLabel' |
672 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
673 |
#label: 'Label:' |
|
674 |
#adjust: #right |
|
675 |
#resizeForLabel: true |
|
199 | 676 |
) |
677 |
#(#InputFieldSpec |
|
703 | 678 |
#name: 'labelField' |
679 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
680 |
#activeHelpKey: #basicsLabel |
|
681 |
#tabable: true |
|
682 |
#model: #label |
|
683 |
#acceptOnReturn: false |
|
684 |
#acceptOnTab: false |
|
931 | 685 |
#group: #inputGroup |
199 | 686 |
) |
398 | 687 |
#(#CheckBoxSpec |
703 | 688 |
#name: 'translateLabelCheckBox' |
728 | 689 |
#layout: #(#Point 20 190) |
703 | 690 |
#activeHelpKey: #basicsTranslateLabel |
691 |
#tabable: true |
|
692 |
#model: #translateLabel |
|
693 |
#label: 'Translate Label' |
|
398 | 694 |
) |
199 | 695 |
) |
696 |
) |
|
697 |
) |
|
931 | 698 |
|
699 |
"Modified: / 31.7.1998 / 01:18:23 / cg" |
|
199 | 700 |
! |
701 |
||
702 |
basicsRootSpec |
|
738 | 703 |
"This resource specification was automatically generated |
704 |
by the UIPainter of ST/X." |
|
705 |
||
706 |
"Do not manually edit this!! If it is corrupted, |
|
707 |
the UIPainter may not be able to read the specification." |
|
199 | 708 |
|
709 |
" |
|
710 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsRootSpec |
|
711 |
MenuEditor new openInterface:#basicsRootSpec |
|
712 |
" |
|
713 |
||
714 |
<resource: #canvas> |
|
715 |
||
716 |
^ |
|
717 |
||
718 |
#(#FullSpec |
|
703 | 719 |
#window: |
199 | 720 |
#(#WindowSpec |
728 | 721 |
#name: 'Basics Root' |
738 | 722 |
#layout: #(#LayoutFrame 473 0 301 0 739 0 619 0) |
728 | 723 |
#label: 'Basics Root' |
703 | 724 |
#min: #(#Point 10 10) |
725 |
#max: #(#Point 1280 1024) |
|
738 | 726 |
#bounds: #(#Rectangle 473 301 740 620) |
703 | 727 |
#usePreferredExtent: false |
199 | 728 |
) |
703 | 729 |
#component: |
199 | 730 |
#(#SpecCollection |
703 | 731 |
#collection: |
199 | 732 |
#( |
733 |
#(#LabelSpec |
|
703 | 734 |
#name: 'selectorLabel' |
735 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
736 |
#label: 'Selector:' |
|
737 |
#adjust: #right |
|
738 |
#resizeForLabel: true |
|
199 | 739 |
) |
740 |
#(#InputFieldSpec |
|
703 | 741 |
#name: 'selectorField' |
742 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
743 |
#activeHelpKey: #basicsSelector |
|
744 |
#tabable: true |
|
745 |
#model: #label |
|
746 |
#acceptOnReturn: false |
|
747 |
#acceptOnTab: false |
|
931 | 748 |
#group: #inputGroup |
199 | 749 |
) |
750 |
) |
|
751 |
) |
|
752 |
) |
|
931 | 753 |
|
754 |
"Modified: / 31.7.1998 / 01:18:28 / cg" |
|
199 | 755 |
! |
756 |
||
218 | 757 |
basicsSeparatorSpec |
738 | 758 |
"This resource specification was automatically generated |
759 |
by the UIPainter of ST/X." |
|
760 |
||
761 |
"Do not manually edit this!! If it is corrupted, |
|
762 |
the UIPainter may not be able to read the specification." |
|
199 | 763 |
|
764 |
" |
|
218 | 765 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsSeparatorSpec |
766 |
MenuEditor new openInterface:#basicsSeparatorSpec |
|
199 | 767 |
" |
768 |
||
769 |
<resource: #canvas> |
|
770 |
||
771 |
^ |
|
772 |
||
773 |
#(#FullSpec |
|
703 | 774 |
#window: |
199 | 775 |
#(#WindowSpec |
728 | 776 |
#name: 'Basics Separator' |
738 | 777 |
#layout: #(#LayoutFrame 473 0 301 0 739 0 619 0) |
728 | 778 |
#label: 'Basics Separator' |
703 | 779 |
#min: #(#Point 10 10) |
780 |
#max: #(#Point 1160 870) |
|
738 | 781 |
#bounds: #(#Rectangle 473 301 740 620) |
703 | 782 |
#usePreferredExtent: false |
199 | 783 |
) |
703 | 784 |
#component: |
199 | 785 |
#(#SpecCollection |
703 | 786 |
#collection: |
199 | 787 |
#( |
218 | 788 |
#(#LabelSpec |
703 | 789 |
#name: 'separatorLabel' |
790 |
#layout: #(#AlignmentOrigin 127 0 26 0 1 0.5) |
|
791 |
#label: 'Separator Type:' |
|
792 |
#adjust: #right |
|
793 |
#resizeForLabel: true |
|
218 | 794 |
) |
795 |
#(#ComboListSpec |
|
703 | 796 |
#name: 'seperatorList' |
797 |
#layout: #(#LayoutFrame 132 0 15 0 -5 1.0 37 0) |
|
798 |
#activeHelpKey: #basicsSeparatorType |
|
799 |
#tabable: true |
|
800 |
#model: #seperatorSelection |
|
801 |
#useIndex: true |
|
199 | 802 |
) |
606 | 803 |
#(#LabelSpec |
703 | 804 |
#name: 'visibilityLabel' |
805 |
#layout: #(#AlignmentOrigin 127 0 76 0 1 0.5) |
|
806 |
#label: 'Visibility:' |
|
807 |
#adjust: #right |
|
808 |
#resizeForLabel: true |
|
606 | 809 |
) |
810 |
#(#InputFieldSpec |
|
728 | 811 |
#name: 'visibilityInputField' |
703 | 812 |
#layout: #(#LayoutFrame 132 0 65 0 -5 1.0 87 0) |
813 |
#activeHelpKey: #detailsVisibility |
|
814 |
#tabable: true |
|
815 |
#model: #isVisible |
|
816 |
#type: #symbolOrNil |
|
817 |
#acceptOnReturn: false |
|
818 |
#acceptOnTab: false |
|
931 | 819 |
#group: #inputGroup |
606 | 820 |
) |
199 | 821 |
) |
822 |
) |
|
823 |
) |
|
931 | 824 |
|
825 |
"Modified: / 31.7.1998 / 01:18:32 / cg" |
|
199 | 826 |
! |
827 |
||
828 |
detailsEditSpec |
|
738 | 829 |
"This resource specification was automatically generated |
830 |
by the UIPainter of ST/X." |
|
831 |
||
832 |
"Do not manually edit this!! If it is corrupted, |
|
833 |
the UIPainter may not be able to read the specification." |
|
199 | 834 |
|
835 |
" |
|
836 |
UIPainter new openOnClass:MenuEditor andSelector:#detailsEditSpec |
|
837 |
MenuEditor new openInterface:#detailsEditSpec |
|
838 |
" |
|
839 |
||
840 |
<resource: #canvas> |
|
841 |
||
842 |
^ |
|
843 |
||
844 |
#(#FullSpec |
|
703 | 845 |
#window: |
199 | 846 |
#(#WindowSpec |
728 | 847 |
#name: 'Details Edit' |
738 | 848 |
#layout: #(#LayoutFrame 332 0 374 0 590 0 661 0) |
728 | 849 |
#label: 'Details Edit' |
703 | 850 |
#min: #(#Point 10 10) |
851 |
#max: #(#Point 1280 1024) |
|
738 | 852 |
#bounds: #(#Rectangle 332 374 591 662) |
703 | 853 |
#usePreferredExtent: false |
199 | 854 |
) |
703 | 855 |
#component: |
199 | 856 |
#(#SpecCollection |
703 | 857 |
#collection: |
199 | 858 |
#( |
859 |
#(#LabelSpec |
|
703 | 860 |
#name: 'shortcutKeyLabel' |
861 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
862 |
#label: 'Accelerator:' |
|
863 |
#adjust: #right |
|
864 |
#resizeForLabel: true |
|
371 | 865 |
) |
866 |
#(#InputFieldSpec |
|
703 | 867 |
#name: 'shortcutKeyField' |
868 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
869 |
#activeHelpKey: #detailsAccelerator |
|
870 |
#tabable: true |
|
871 |
#model: #shortcutKey |
|
872 |
#type: #symbolOrNil |
|
873 |
#acceptOnReturn: false |
|
874 |
#acceptOnTab: false |
|
931 | 875 |
#group: #inputGroup |
371 | 876 |
) |
877 |
#(#LabelSpec |
|
703 | 878 |
#name: 'enabledLabel' |
879 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
880 |
#label: 'Enabled:' |
|
881 |
#adjust: #right |
|
882 |
#resizeForLabel: true |
|
199 | 883 |
) |
884 |
#(#InputFieldSpec |
|
703 | 885 |
#name: 'enabledField' |
886 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
887 |
#activeHelpKey: #detailsEnabled |
|
888 |
#tabable: true |
|
889 |
#model: #enabled |
|
890 |
#type: #symbolOrNil |
|
891 |
#acceptOnReturn: false |
|
892 |
#acceptOnTab: false |
|
931 | 893 |
#group: #inputGroup |
199 | 894 |
) |
895 |
#(#LabelSpec |
|
703 | 896 |
#name: 'visibilityLabel' |
897 |
#layout: #(#AlignmentOrigin 107 0 76 0 1 0.5) |
|
898 |
#label: 'Visibility:' |
|
899 |
#adjust: #right |
|
900 |
#resizeForLabel: true |
|
199 | 901 |
) |
902 |
#(#InputFieldSpec |
|
703 | 903 |
#name: 'isVisibleInputField' |
904 |
#layout: #(#LayoutFrame 110 0 65 0 -5 1.0 87 0) |
|
905 |
#activeHelpKey: #detailsVisibility |
|
906 |
#tabable: true |
|
907 |
#model: #isVisible |
|
908 |
#type: #symbolOrNil |
|
909 |
#acceptOnReturn: false |
|
910 |
#acceptOnTab: false |
|
931 | 911 |
#group: #inputGroup |
199 | 912 |
) |
532 | 913 |
#(#LabelSpec |
703 | 914 |
#name: 'StartGroupLabel' |
915 |
#layout: #(#AlignmentOrigin 107 0 111 0 1 0.5) |
|
916 |
#label: 'Start Group:' |
|
917 |
#adjust: #right |
|
918 |
#resizeForLabel: true |
|
532 | 919 |
) |
920 |
#(#PopUpListSpec |
|
703 | 921 |
#name: 'StartGroupPopUp' |
922 |
#layout: #(#LayoutFrame 110 0 100 0 -5 1.0 122 0) |
|
923 |
#label: 'PopUpList' |
|
738 | 924 |
#tabable: true |
703 | 925 |
#model: #startGroup |
926 |
#menu: |
|
532 | 927 |
#(nil |
928 |
#right |
|
929 |
) |
|
703 | 930 |
#useIndex: false |
532 | 931 |
) |
539 | 932 |
#(#LabelSpec |
703 | 933 |
#name: 'accessCharLabel' |
934 |
#layout: #(#AlignmentOrigin 217 0 142 0 1 0.5) |
|
935 |
#label: 'Access Character Position:' |
|
936 |
#adjust: #right |
|
937 |
#resizeForLabel: true |
|
539 | 938 |
) |
939 |
#(#InputFieldSpec |
|
703 | 940 |
#name: 'accessCharField' |
941 |
#layout: #(#LayoutFrame 220 0 131 0 -5 1.0 153 0) |
|
942 |
#activeHelpKey: #detailsAccessCharaterPosition |
|
943 |
#tabable: true |
|
944 |
#model: #accessCharacterPos |
|
945 |
#type: #numberOrNil |
|
946 |
#acceptOnReturn: false |
|
947 |
#acceptOnTab: false |
|
931 | 948 |
#group: #inputGroup |
539 | 949 |
) |
199 | 950 |
) |
951 |
) |
|
952 |
) |
|
931 | 953 |
|
954 |
"Modified: / 31.7.1998 / 01:18:43 / cg" |
|
199 | 955 |
! |
956 |
||
398 | 957 |
imageEditSpec |
738 | 958 |
"This resource specification was automatically generated |
959 |
by the UIPainter of ST/X." |
|
960 |
||
961 |
"Do not manually edit this!! If it is corrupted, |
|
962 |
the UIPainter may not be able to read the specification." |
|
199 | 963 |
|
964 |
" |
|
398 | 965 |
UIPainter new openOnClass:MenuEditor andSelector:#imageEditSpec |
966 |
MenuEditor new openInterface:#imageEditSpec |
|
199 | 967 |
" |
968 |
||
969 |
<resource: #canvas> |
|
970 |
||
971 |
^ |
|
703 | 972 |
|
199 | 973 |
#(#FullSpec |
703 | 974 |
#window: |
199 | 975 |
#(#WindowSpec |
728 | 976 |
#name: 'Image Item' |
888 | 977 |
#layout: #(#LayoutFrame 182 0 348 0 577 0 624 0) |
728 | 978 |
#label: 'Image Item' |
703 | 979 |
#min: #(#Point 10 10) |
980 |
#max: #(#Point 1280 1024) |
|
888 | 981 |
#bounds: #(#Rectangle 182 348 578 625) |
703 | 982 |
#usePreferredExtent: false |
199 | 983 |
) |
703 | 984 |
#component: |
199 | 985 |
#(#SpecCollection |
703 | 986 |
#collection: |
199 | 987 |
#( |
879 | 988 |
#(#CheckBoxSpec |
989 |
#name: 'iconAndLabelCheckBox' |
|
990 |
#layout: #(#LayoutOrigin 20 0 215 0) |
|
991 |
#activeHelpKey: #imageImageAndLabel |
|
992 |
#tabable: true |
|
993 |
#model: #iconAndLabel |
|
994 |
#label: 'Image & Label' |
|
995 |
) |
|
199 | 996 |
#(#LabelSpec |
703 | 997 |
#name: 'retrieverLabel' |
998 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
999 |
#label: 'Retriever:' |
|
1000 |
#adjust: #right |
|
1001 |
#resizeForLabel: true |
|
199 | 1002 |
) |
1003 |
#(#InputFieldSpec |
|
703 | 1004 |
#name: 'retrieverField' |
1005 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
1006 |
#activeHelpKey: #imageRetriever |
|
1007 |
#tabable: true |
|
1008 |
#model: #retriever |
|
1009 |
#type: #symbolOrNil |
|
1010 |
#acceptOnReturn: false |
|
1011 |
#acceptOnTab: false |
|
931 | 1012 |
#group: #inputGroup |
199 | 1013 |
) |
1014 |
#(#LabelSpec |
|
703 | 1015 |
#name: 'iconLabel' |
1016 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
1017 |
#label: 'Selector:' |
|
1018 |
#adjust: #right |
|
1019 |
#resizeForLabel: true |
|
199 | 1020 |
) |
1021 |
#(#InputFieldSpec |
|
703 | 1022 |
#name: 'iconField' |
1023 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
1024 |
#activeHelpKey: #imageSelector |
|
1025 |
#tabable: true |
|
1026 |
#model: #icon |
|
1027 |
#type: #symbolOrNil |
|
1028 |
#acceptOnReturn: false |
|
1029 |
#acceptOnTab: false |
|
931 | 1030 |
#group: #inputGroup |
199 | 1031 |
) |
469 | 1032 |
#(#ActionButtonSpec |
703 | 1033 |
#name: 'imageEditorButton' |
879 | 1034 |
#layout: #(#LayoutFrame 5 0.6 67 0 -5 1 91 0) |
703 | 1035 |
#activeHelpKey: #imageImageEditor |
1036 |
#label: 'Image Editor' |
|
1037 |
#tabable: true |
|
1038 |
#model: #doEditImage |
|
469 | 1039 |
) |
879 | 1040 |
#(#SequenceViewSpec |
1041 |
#name: 'systemOrUserImagesList' |
|
888 | 1042 |
#layout: #(#LayoutFrame 110 0 67 0 0 0.6 200 0) |
879 | 1043 |
#model: #selectionOfImage |
888 | 1044 |
#menu: #menuEditImage |
879 | 1045 |
#hasHorizontalScrollBar: true |
1046 |
#hasVerticalScrollBar: true |
|
1047 |
#miniScrollerHorizontal: true |
|
885 | 1048 |
#doubleClickSelector: #doEditImage |
879 | 1049 |
#valueChangeSelector: #imageSelected |
1050 |
#useIndex: false |
|
1051 |
#sequenceList: #listOfImages |
|
199 | 1052 |
) |
1053 |
) |
|
1054 |
) |
|
1055 |
) |
|
931 | 1056 |
|
1057 |
"Modified: / 31.7.1998 / 01:18:50 / cg" |
|
525 | 1058 |
! |
1059 |
||
1060 |
windowSpec |
|
738 | 1061 |
"This resource specification was automatically generated |
1062 |
by the UIPainter of ST/X." |
|
1063 |
||
1064 |
"Do not manually edit this!! If it is corrupted, |
|
1065 |
the UIPainter may not be able to read the specification." |
|
525 | 1066 |
|
1067 |
" |
|
1068 |
UIPainter new openOnClass:MenuEditor andSelector:#windowSpec |
|
1069 |
MenuEditor new openInterface:#windowSpec |
|
738 | 1070 |
MenuEditor open |
525 | 1071 |
" |
1072 |
||
1073 |
<resource: #canvas> |
|
1074 |
||
1075 |
^ |
|
1076 |
||
1077 |
#(#FullSpec |
|
703 | 1078 |
#window: |
525 | 1079 |
#(#WindowSpec |
734 | 1080 |
#name: 'Menu Editor' |
875 | 1081 |
#layout: #(#LayoutFrame 106 0 544 0 663 0 923 0) |
734 | 1082 |
#label: 'Menu Editor' |
748 | 1083 |
#min: #(#Point 510 390) |
703 | 1084 |
#max: #(#Point 1152 900) |
875 | 1085 |
#bounds: #(#Rectangle 106 544 664 924) |
703 | 1086 |
#menu: #menu |
1087 |
#usePreferredExtent: false |
|
525 | 1088 |
) |
703 | 1089 |
#component: |
525 | 1090 |
#(#SpecCollection |
703 | 1091 |
#collection: |
525 | 1092 |
#( |
1093 |
#(#MenuPanelSpec |
|
703 | 1094 |
#name: 'menuToolbarView' |
1095 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
|
1096 |
#menu: #menuToolbar |
|
1097 |
#showSeparatingLines: true |
|
525 | 1098 |
) |
1099 |
#(#VariableHorizontalPanelSpec |
|
734 | 1100 |
#name: 'VariableHorizontalPanel' |
703 | 1101 |
#layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0) |
1102 |
#component: |
|
525 | 1103 |
#(#SpecCollection |
703 | 1104 |
#collection: |
525 | 1105 |
#( |
1106 |
#(#ArbitraryComponentSpec |
|
734 | 1107 |
#name: 'TreeView' |
703 | 1108 |
#menu: #menuEdit |
1109 |
#hasHorizontalScrollBar: true |
|
1110 |
#hasVerticalScrollBar: true |
|
1111 |
#component: #treeView |
|
1112 |
#hasBorder: false |
|
525 | 1113 |
) |
1114 |
#(#ViewSpec |
|
734 | 1115 |
#name: 'Box' |
703 | 1116 |
#component: |
525 | 1117 |
#(#SpecCollection |
703 | 1118 |
#collection: |
525 | 1119 |
#( |
1120 |
#(#NoteBookViewSpec |
|
734 | 1121 |
#name: 'NoteBook' |
748 | 1122 |
#layout: #(#LayoutFrame 1 0.0 0 0.0 1 1.0 -30 1.0) |
703 | 1123 |
#tabable: true |
1124 |
#model: #tabModel |
|
1125 |
#menu: #tabList |
|
1126 |
#useIndex: true |
|
1127 |
#canvas: #noteBookView |
|
525 | 1128 |
) |
1129 |
#(#UISubSpecification |
|
703 | 1130 |
#name: 'SubSpecification' |
1131 |
#layout: #(#LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0) |
|
1132 |
#majorKey: #ToolApplicationModel |
|
1133 |
#minorKey: #windowSpecForCommit |
|
525 | 1134 |
) |
1135 |
) |
|
1136 |
) |
|
703 | 1137 |
#level: -1 |
525 | 1138 |
) |
1139 |
) |
|
1140 |
) |
|
836 | 1141 |
#handles: #(#Any 0.30117 1.0) |
525 | 1142 |
) |
1143 |
#(#UISubSpecification |
|
734 | 1144 |
#name: 'InfoBarSubSpec' |
703 | 1145 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
1146 |
#majorKey: #ToolApplicationModel |
|
1147 |
#minorKey: #windowSpecForInfoBar |
|
525 | 1148 |
) |
1149 |
) |
|
1150 |
) |
|
1151 |
) |
|
836 | 1152 |
|
875 | 1153 |
"Modified: / 20.6.1998 / 15:41:41 / cg" |
525 | 1154 |
! ! |
1155 |
||
1156 |
!MenuEditor class methodsFor:'menu specs'! |
|
1157 |
||
1158 |
menu |
|
738 | 1159 |
"This resource specification was automatically generated |
1160 |
by the MenuEditor of ST/X." |
|
1161 |
||
1162 |
"Do not manually edit this!! If it is corrupted, |
|
1163 |
the MenuEditor may not be able to read the specification." |
|
525 | 1164 |
|
1165 |
" |
|
1166 |
MenuEditor new openOnClass:MenuEditor andSelector:#menu |
|
1167 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menu)) startUp |
|
1168 |
" |
|
1169 |
||
1170 |
<resource: #menu> |
|
1171 |
||
1172 |
^ |
|
1173 |
||
1174 |
#(#Menu |
|
1175 |
||
1176 |
#( |
|
1177 |
#(#MenuItem |
|
686 | 1178 |
#label: 'About' |
836 | 1179 |
#translateLabel: true |
686 | 1180 |
#accessCharacterPosition: 1 |
1181 |
#labelImage: #(#ResourceRetriever nil #menuIcon) |
|
1182 |
#submenuChannel: #menuAbout |
|
525 | 1183 |
) |
1184 |
#(#MenuItem |
|
686 | 1185 |
#label: 'File' |
1186 |
#activeHelpKey: #file |
|
836 | 1187 |
#translateLabel: true |
686 | 1188 |
#submenu: |
525 | 1189 |
#(#Menu |
1190 |
||
1191 |
#( |
|
1192 |
#(#MenuItem |
|
686 | 1193 |
#label: 'New' |
1194 |
#value: #doNew |
|
836 | 1195 |
#translateLabel: true |
686 | 1196 |
#activeHelpKey: #fileNew |
525 | 1197 |
) |
1198 |
#(#MenuItem |
|
686 | 1199 |
#label: '-' |
525 | 1200 |
) |
1201 |
#(#MenuItem |
|
686 | 1202 |
#label: 'Load...' |
1203 |
#translateLabel: true |
|
1204 |
#value: #doLoad |
|
1205 |
#activeHelpKey: #fileLoad |
|
525 | 1206 |
) |
1207 |
#(#MenuItem |
|
686 | 1208 |
#label: '-' |
525 | 1209 |
) |
1210 |
#(#MenuItem |
|
686 | 1211 |
#label: 'Save' |
836 | 1212 |
#translateLabel: true |
686 | 1213 |
#value: #doSave |
1214 |
#activeHelpKey: #fileSave |
|
525 | 1215 |
) |
1216 |
#(#MenuItem |
|
686 | 1217 |
#label: 'Save As...' |
836 | 1218 |
#translateLabel: true |
686 | 1219 |
#value: #doSaveAs |
1220 |
#activeHelpKey: #fileSaveAs |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1221 |
) |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1222 |
#(#MenuItem |
686 | 1223 |
#label: '-' |
525 | 1224 |
) |
1225 |
#(#MenuItem |
|
686 | 1226 |
#label: 'Pick A Menu...' |
836 | 1227 |
#translateLabel: true |
686 | 1228 |
#value: #doPickAMenu |
1229 |
#activeHelpKey: #filePickAMenu |
|
525 | 1230 |
) |
1231 |
#(#MenuItem |
|
686 | 1232 |
#label: '-' |
525 | 1233 |
) |
1234 |
#(#MenuItem |
|
686 | 1235 |
#label: 'Browse Class' |
836 | 1236 |
#translateLabel: true |
686 | 1237 |
#value: #doBrowseClass |
1238 |
#activeHelpKey: #fileBrowseClass |
|
525 | 1239 |
) |
1240 |
#(#MenuItem |
|
686 | 1241 |
#label: '-' |
525 | 1242 |
) |
1243 |
#(#MenuItem |
|
686 | 1244 |
#label: 'Exit' |
1245 |
#translateLabel: true |
|
1246 |
#value: #closeRequest |
|
1247 |
#activeHelpKey: #fileExit |
|
525 | 1248 |
) |
1249 |
) nil |
|
1250 |
nil |
|
1251 |
) |
|
1252 |
) |
|
1253 |
#(#MenuItem |
|
686 | 1254 |
#label: 'Edit' |
1255 |
#activeHelpKey: #edit |
|
836 | 1256 |
#translateLabel: true |
686 | 1257 |
#submenuChannel: #menuEdit |
525 | 1258 |
) |
1259 |
#(#MenuItem |
|
686 | 1260 |
#label: 'Add' |
1261 |
#activeHelpKey: #add |
|
836 | 1262 |
#translateLabel: true |
686 | 1263 |
#submenuChannel: #menuAdd |
525 | 1264 |
) |
1265 |
#(#MenuItem |
|
686 | 1266 |
#label: 'Test' |
1267 |
#activeHelpKey: #test |
|
836 | 1268 |
#translateLabel: true |
686 | 1269 |
#submenuChannel: #submenuTest |
525 | 1270 |
) |
1271 |
#(#MenuItem |
|
738 | 1272 |
#label: 'Settings' |
1273 |
#submenu: |
|
1274 |
#(#Menu |
|
1275 |
||
1276 |
#( |
|
1277 |
#(#MenuItem |
|
1278 |
#label: 'Fonts' |
|
836 | 1279 |
#translateLabel: true |
738 | 1280 |
#submenuChannel: #menuFont |
1281 |
) |
|
1282 |
) nil |
|
1283 |
nil |
|
1284 |
) |
|
1285 |
) |
|
1286 |
#(#MenuItem |
|
748 | 1287 |
#label: 'History' |
1288 |
#activeHelpKey: #history |
|
836 | 1289 |
#translateLabel: true |
748 | 1290 |
#submenuChannel: #menuHistory |
1291 |
) |
|
1292 |
#(#MenuItem |
|
686 | 1293 |
#label: 'Help' |
836 | 1294 |
#translateLabel: true |
686 | 1295 |
#startGroup: #right |
748 | 1296 |
#submenu: |
1297 |
#(#Menu |
|
1298 |
||
1299 |
#( |
|
1300 |
#(#MenuItem |
|
1301 |
#label: 'Documentation' |
|
1302 |
#value: #openHTMLDocument: |
|
836 | 1303 |
#translateLabel: true |
748 | 1304 |
#activeHelpKey: #helpTutorial |
764 | 1305 |
#argument: 'tools/uipainter/MenuEditor.html' |
748 | 1306 |
) |
1307 |
#(#MenuItem |
|
1308 |
#label: '-' |
|
1309 |
) |
|
1310 |
#(#MenuItem |
|
1311 |
#label: 'Help Tool' |
|
1312 |
#value: #openHTMLDocument: |
|
836 | 1313 |
#translateLabel: true |
748 | 1314 |
#activeHelpKey: #helpHelpTool |
1315 |
#argument: 'tools/uipainter/HelpTool.html' |
|
1316 |
) |
|
1317 |
#(#MenuItem |
|
1318 |
#label: '-' |
|
1319 |
) |
|
1320 |
#(#MenuItem |
|
1321 |
#label: 'Show Help Texts' |
|
836 | 1322 |
#translateLabel: true |
748 | 1323 |
#activeHelpKey: #helpShowHelp |
936
f3db8359547a
method rename: #showHelp -> #showingHelp
Claus Gittinger <cg@exept.de>
parents:
931
diff
changeset
|
1324 |
#indication: #showingHelp: |
748 | 1325 |
) |
1326 |
) nil |
|
1327 |
nil |
|
1328 |
) |
|
525 | 1329 |
) |
1330 |
) nil |
|
1331 |
nil |
|
1332 |
) |
|
836 | 1333 |
|
936
f3db8359547a
method rename: #showHelp -> #showingHelp
Claus Gittinger <cg@exept.de>
parents:
931
diff
changeset
|
1334 |
"Modified: / 31.7.1998 / 18:19:47 / cg" |
525 | 1335 |
! |
1336 |
||
1337 |
menuAdd |
|
738 | 1338 |
"This resource specification was automatically generated |
1339 |
by the MenuEditor of ST/X." |
|
1340 |
||
1341 |
"Do not manually edit this!! If it is corrupted, |
|
1342 |
the MenuEditor may not be able to read the specification." |
|
525 | 1343 |
|
1344 |
" |
|
1345 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuAdd |
|
1346 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuAdd)) startUp |
|
1347 |
" |
|
1348 |
||
1349 |
<resource: #menu> |
|
1350 |
||
1351 |
^ |
|
1352 |
||
1353 |
#(#Menu |
|
1354 |
||
1355 |
#( |
|
1356 |
#(#MenuItem |
|
703 | 1357 |
#label: 'Menu Item' |
836 | 1358 |
#translateLabel: true |
703 | 1359 |
#value: #doCreateItem |
1360 |
#activeHelpKey: #addMenuItem |
|
1361 |
#labelImage: #(#ResourceRetriever #MenuEditor #menuItemImage 'Menu Item') |
|
525 | 1362 |
) |
1363 |
#(#MenuItem |
|
703 | 1364 |
#label: 'Menu Separator' |
836 | 1365 |
#translateLabel: true |
703 | 1366 |
#value: #doCreateSep |
1367 |
#activeHelpKey: #addMenuSeparator |
|
1368 |
#labelImage: #(#ResourceRetriever #MenuEditor #menuSeparatorImage 'Menu Separator') |
|
525 | 1369 |
) |
1370 |
#(#MenuItem |
|
703 | 1371 |
#label: '-' |
525 | 1372 |
) |
1373 |
#(#MenuItem |
|
703 | 1374 |
#label: 'Submenu' |
836 | 1375 |
#translateLabel: true |
703 | 1376 |
#value: #doCreateMenu |
1377 |
#activeHelpKey: #addSubMenu |
|
1378 |
#labelImage: #(#ResourceRetriever #MenuEditor #submenuImage 'Submenu') |
|
525 | 1379 |
) |
1380 |
#(#MenuItem |
|
703 | 1381 |
#label: 'Submenu Link' |
836 | 1382 |
#translateLabel: true |
703 | 1383 |
#value: #doCreateLink |
1384 |
#activeHelpKey: #addSubMenuLink |
|
1385 |
#labelImage: #(#ResourceRetriever #MenuEditor #linkSubmenuImage 'Submenu Link') |
|
525 | 1386 |
) |
1387 |
) nil |
|
1388 |
nil |
|
1389 |
) |
|
836 | 1390 |
|
1391 |
"Modified: / 20.5.1998 / 00:40:39 / cg" |
|
525 | 1392 |
! |
1393 |
||
1394 |
menuDefaultLink |
|
738 | 1395 |
"This resource specification was automatically generated |
1396 |
by the MenuEditor of ST/X." |
|
1397 |
||
1398 |
"Do not manually edit this!! If it is corrupted, |
|
1399 |
the MenuEditor may not be able to read the specification." |
|
525 | 1400 |
|
1401 |
" |
|
1402 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuDefaultLink |
|
1403 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuDefaultLink)) startUp |
|
1404 |
" |
|
1405 |
||
1406 |
<resource: #menu> |
|
1407 |
||
1408 |
^ |
|
738 | 1409 |
|
525 | 1410 |
#(#Menu |
738 | 1411 |
|
525 | 1412 |
#( |
1413 |
#(#MenuItem |
|
738 | 1414 |
#'label:' '!!!! derives from application !!!!' |
525 | 1415 |
) |
1416 |
) nil |
|
1417 |
nil |
|
1418 |
) |
|
1419 |
! |
|
1420 |
||
1421 |
menuEdit |
|
738 | 1422 |
"This resource specification was automatically generated |
1423 |
by the MenuEditor of ST/X." |
|
1424 |
||
1425 |
"Do not manually edit this!! If it is corrupted, |
|
1426 |
the MenuEditor may not be able to read the specification." |
|
525 | 1427 |
|
1428 |
" |
|
1429 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuEdit |
|
1430 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuEdit)) startUp |
|
1431 |
" |
|
1432 |
||
1433 |
<resource: #menu> |
|
1434 |
||
1435 |
^ |
|
1436 |
||
1437 |
#(#Menu |
|
1438 |
||
1439 |
#( |
|
1440 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1441 |
#label: 'Cut' |
882 | 1442 |
#translateLabel: true |
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1443 |
#value: #doCut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1444 |
#activeHelpKey: #editCut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1445 |
#enabled: #hasValidSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1446 |
#shortcutKeyCharacter: #Cut |
525 | 1447 |
) |
1448 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1449 |
#label: 'Copy' |
882 | 1450 |
#translateLabel: true |
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1451 |
#value: #doCopy |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1452 |
#activeHelpKey: #editCopy |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1453 |
#enabled: #hasValidSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1454 |
#shortcutKeyCharacter: #Copy |
525 | 1455 |
) |
1456 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1457 |
#label: 'Paste' |
882 | 1458 |
#translateLabel: true |
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1459 |
#value: #doPaste |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1460 |
#activeHelpKey: #editPaste |
738 | 1461 |
#enabled: #valueOfCanPaste |
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1462 |
#shortcutKeyCharacter: #Paste |
525 | 1463 |
) |
1464 |
#(#MenuItem |
|
686 | 1465 |
#label: 'Delete' |
882 | 1466 |
#translateLabel: true |
686 | 1467 |
#value: #doDelete |
1468 |
#activeHelpKey: #editDelete |
|
1469 |
#enabled: #hasValidSelection |
|
1470 |
#shortcutKeyCharacter: #Delete |
|
1471 |
) |
|
1472 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1473 |
#label: '-' |
525 | 1474 |
) |
1475 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1476 |
#label: 'Move Up' |
882 | 1477 |
#translateLabel: true |
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1478 |
#value: #doStepUp |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1479 |
#activeHelpKey: #editMoveUp |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1480 |
#enabled: #valueOfEnableMovingUpOrDown |
882 | 1481 |
#labelImage: #(#ResourceRetriever #Icon #upIcon 'Move Up') |
525 | 1482 |
) |
1483 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1484 |
#label: 'Move Down' |
882 | 1485 |
#translateLabel: true |
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1486 |
#value: #doStepDown |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1487 |
#activeHelpKey: #editMoveDown |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1488 |
#enabled: #valueOfEnableMovingUpOrDown |
882 | 1489 |
#labelImage: #(#ResourceRetriever #Icon #downIcon 'Move Down') |
525 | 1490 |
) |
1491 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1492 |
#label: 'Move In' |
882 | 1493 |
#translateLabel: true |
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1494 |
#value: #doStepIn |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1495 |
#activeHelpKey: #editMoveIn |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1496 |
#enabled: #valueOfEnableMovingIn |
882 | 1497 |
#labelImage: #(#ResourceRetriever #Icon #downRightIcon 'Move In') |
525 | 1498 |
) |
1499 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1500 |
#label: 'Move Out' |
882 | 1501 |
#translateLabel: true |
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1502 |
#value: #doStepOut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1503 |
#activeHelpKey: #editMoveOut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1504 |
#enabled: #valueOfEnableMovingOut |
882 | 1505 |
#labelImage: #(#ResourceRetriever #Icon #leftDownIcon 'Move Out') |
525 | 1506 |
) |
1507 |
) nil |
|
1508 |
nil |
|
1509 |
) |
|
1510 |
! |
|
1511 |
||
888 | 1512 |
menuEditImage |
1513 |
"This resource specification was automatically generated |
|
1514 |
by the MenuEditor of ST/X." |
|
1515 |
||
1516 |
"Do not manually edit this!! If it is corrupted, |
|
1517 |
the MenuEditor may not be able to read the specification." |
|
1518 |
||
1519 |
" |
|
1520 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuEditImage |
|
1521 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuEditImage)) startUp |
|
1522 |
" |
|
1523 |
||
1524 |
<resource: #menu> |
|
1525 |
||
1526 |
^ |
|
1527 |
||
1528 |
#(#Menu |
|
1529 |
||
1530 |
#( |
|
1531 |
#(#MenuItem |
|
1532 |
#label: 'Edit' |
|
1533 |
#translateLabel: true |
|
1534 |
#value: #doEditImage |
|
1535 |
#activeHelpKey: #editCut |
|
1536 |
#enabled: #hasValidSelection |
|
1537 |
#shortcutKeyCharacter: #Cut |
|
1538 |
) |
|
1539 |
#(#MenuItem |
|
1540 |
#label: 'Remove' |
|
1541 |
#translateLabel: true |
|
1542 |
#value: #doRemoveImage |
|
1543 |
#activeHelpKey: #editCopy |
|
1544 |
#enabled: #hasValidSelection |
|
1545 |
#shortcutKeyCharacter: #Copy |
|
1546 |
) |
|
1547 |
) nil |
|
1548 |
nil |
|
1549 |
) |
|
1550 |
! |
|
1551 |
||
525 | 1552 |
menuToolbar |
738 | 1553 |
"This resource specification was automatically generated |
1554 |
by the MenuEditor of ST/X." |
|
1555 |
||
1556 |
"Do not manually edit this!! If it is corrupted, |
|
1557 |
the MenuEditor may not be able to read the specification." |
|
525 | 1558 |
|
1559 |
" |
|
1560 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuToolbar |
|
1561 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuToolbar)) startUp |
|
1562 |
" |
|
1563 |
||
1564 |
<resource: #menu> |
|
1565 |
||
1566 |
^ |
|
1567 |
||
1568 |
#(#Menu |
|
1569 |
||
1570 |
#( |
|
1571 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1572 |
#label: 'New' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1573 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1574 |
#value: #doNew |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1575 |
#activeHelpKey: #fileNew |
879 | 1576 |
#labelImage: #(#ResourceRetriever #Icon #newIcon) |
525 | 1577 |
) |
1578 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1579 |
#label: 'Load' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1580 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1581 |
#value: #doLoad |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1582 |
#activeHelpKey: #fileLoad |
879 | 1583 |
#labelImage: #(#ResourceRetriever #Icon #loadIcon) |
525 | 1584 |
) |
1585 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1586 |
#label: 'Save' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1587 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1588 |
#value: #doSave |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1589 |
#activeHelpKey: #fileSave |
879 | 1590 |
#labelImage: #(#ResourceRetriever #Icon #saveIcon) |
525 | 1591 |
) |
1592 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1593 |
#label: '' |
525 | 1594 |
) |
1595 |
#(#MenuItem |
|
686 | 1596 |
#label: 'Cut' |
1597 |
#isButton: true |
|
1598 |
#value: #doCut |
|
1599 |
#activeHelpKey: #editCut |
|
1600 |
#enabled: #hasValidSelection |
|
879 | 1601 |
#labelImage: #(#ResourceRetriever #Icon #cutIcon) |
686 | 1602 |
) |
1603 |
#(#MenuItem |
|
1604 |
#label: 'Copy' |
|
1605 |
#isButton: true |
|
1606 |
#value: #doCopy |
|
1607 |
#activeHelpKey: #editCopy |
|
1608 |
#enabled: #hasValidSelection |
|
879 | 1609 |
#labelImage: #(#ResourceRetriever #Icon #copyIcon) |
686 | 1610 |
) |
1611 |
#(#MenuItem |
|
1612 |
#label: 'Paste' |
|
1613 |
#isButton: true |
|
1614 |
#value: #doPaste |
|
1615 |
#activeHelpKey: #editPaste |
|
738 | 1616 |
#enabled: #valueOfCanPaste |
879 | 1617 |
#labelImage: #(#ResourceRetriever #Icon #pasteIcon) |
686 | 1618 |
) |
1619 |
#(#MenuItem |
|
1620 |
#label: 'Delete' |
|
1621 |
#isButton: true |
|
1622 |
#value: #doDelete |
|
1623 |
#activeHelpKey: #editDelete |
|
1624 |
#enabled: #hasValidSelection |
|
879 | 1625 |
#labelImage: #(#ResourceRetriever #Icon #deleteIcon) |
686 | 1626 |
) |
1627 |
#(#MenuItem |
|
1628 |
#label: '' |
|
1629 |
) |
|
1630 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1631 |
#label: 'Add Item' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1632 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1633 |
#value: #doCreateItem |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1634 |
#activeHelpKey: #addMenuItem |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1635 |
#enabled: #hasAnySingleSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1636 |
#labelImage: #(#ResourceRetriever nil #menuItemImage) |
525 | 1637 |
) |
1638 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1639 |
#label: 'Add Separator' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1640 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1641 |
#value: #doCreateSep |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1642 |
#activeHelpKey: #addMenuSeparator |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1643 |
#enabled: #hasAnySingleSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1644 |
#labelImage: #(#ResourceRetriever nil #menuSeparatorImage) |
525 | 1645 |
) |
1646 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1647 |
#label: 'Add Submenu' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1648 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1649 |
#value: #doCreateMenu |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1650 |
#activeHelpKey: #addSubMenu |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1651 |
#enabled: #hasAnySingleSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1652 |
#labelImage: #(#ResourceRetriever nil #submenuImage) |
525 | 1653 |
) |
1654 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1655 |
#label: 'Add Linked Submenu' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1656 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1657 |
#value: #doCreateLink |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1658 |
#activeHelpKey: #addSubMenuLink |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1659 |
#enabled: #hasAnySingleSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1660 |
#labelImage: #(#ResourceRetriever nil #linkSubmenuImage) |
525 | 1661 |
) |
1662 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1663 |
#label: '' |
525 | 1664 |
) |
1665 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1666 |
#label: 'Move Up' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1667 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1668 |
#value: #doStepUp |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1669 |
#activeHelpKey: #editMoveUp |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1670 |
#enabled: #valueOfEnableMovingUpOrDown |
879 | 1671 |
#labelImage: #(#ResourceRetriever #Icon #upIcon) |
525 | 1672 |
) |
1673 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1674 |
#label: 'Move Down' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1675 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1676 |
#value: #doStepDown |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1677 |
#activeHelpKey: #editMoveDown |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1678 |
#enabled: #valueOfEnableMovingUpOrDown |
879 | 1679 |
#labelImage: #(#ResourceRetriever #Icon #downIcon) |
525 | 1680 |
) |
1681 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1682 |
#label: 'Move In' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1683 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1684 |
#value: #doStepIn |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1685 |
#activeHelpKey: #editMoveIn |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1686 |
#enabled: #valueOfEnableMovingIn |
879 | 1687 |
#labelImage: #(#ResourceRetriever #Icon #downRightIcon) |
525 | 1688 |
) |
1689 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1690 |
#label: 'Move Out' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1691 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1692 |
#value: #doStepOut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1693 |
#activeHelpKey: #editMoveOut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1694 |
#enabled: #valueOfEnableMovingOut |
879 | 1695 |
#labelImage: #(#ResourceRetriever #Icon #leftDownIcon) |
525 | 1696 |
) |
1697 |
) nil |
|
1698 |
nil |
|
1699 |
) |
|
1700 |
! ! |
|
1701 |
||
1702 |
!MenuEditor class methodsFor:'slices'! |
|
1703 |
||
1704 |
slicesItem |
|
1705 |
^#( |
|
1706 |
(Basics basicsItemSpec) |
|
1707 |
(Details detailsEditSpec) |
|
1708 |
(Image imageEditSpec) |
|
1709 |
) |
|
1710 |
||
1711 |
! |
|
1712 |
||
1713 |
slicesLink |
|
1714 |
^#( |
|
1715 |
(Basics basicsLinkSpec) |
|
1716 |
(Details detailsEditSpec) |
|
1717 |
(Image imageEditSpec) |
|
1718 |
) |
|
1719 |
||
1720 |
! |
|
1721 |
||
1722 |
slicesMenu |
|
1723 |
^#( |
|
1724 |
(Basics basicsMenuSpec) |
|
1725 |
(Details detailsEditSpec) |
|
1726 |
(Image imageEditSpec) |
|
1727 |
) |
|
1728 |
||
1729 |
! |
|
1730 |
||
1731 |
slicesRootMenu |
|
1732 |
^#( |
|
1733 |
(Basics basicsRootSpec) |
|
1734 |
) |
|
1735 |
||
1736 |
! |
|
1737 |
||
1738 |
slicesSeparatorMenu |
|
1739 |
^#( |
|
1740 |
(Basics basicsSeparatorSpec) |
|
1741 |
) |
|
1742 |
||
199 | 1743 |
! ! |
1744 |
||
1745 |
!MenuEditor methodsFor:'accessing'! |
|
1746 |
||
218 | 1747 |
submenuTest |
849
0001a9185d99
translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents:
836
diff
changeset
|
1748 |
"return the submenu assigned to item test; |
0001a9185d99
translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents:
836
diff
changeset
|
1749 |
this is dynamically constructed, to reflect the current |
0001a9185d99
translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents:
836
diff
changeset
|
1750 |
edited menu." |
0001a9185d99
translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents:
836
diff
changeset
|
1751 |
|
0001a9185d99
translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents:
836
diff
changeset
|
1752 |
|menu cls| |
218 | 1753 |
|
407 | 1754 |
(menu := self treeView asMenu) allItemsDo: |
1755 |
[:anItem| |
|
218 | 1756 |
anItem value:nil. |
1757 |
anItem enabled:true. |
|
1758 |
]. |
|
849
0001a9185d99
translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents:
836
diff
changeset
|
1759 |
|
0001a9185d99
translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents:
836
diff
changeset
|
1760 |
cls := self resolveName:specClass. |
0001a9185d99
translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents:
836
diff
changeset
|
1761 |
menu findGuiResourcesIn:cls. |
0001a9185d99
translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents:
836
diff
changeset
|
1762 |
^ menu |
287 | 1763 |
! |
1764 |
||
716 | 1765 |
useHelpTool: aHelpTool |
728 | 1766 |
"take the help dictionaries from aHelpTool into my helpTool" |
407 | 1767 |
|
287 | 1768 |
self noteBookView. |
716 | 1769 |
|
748 | 1770 |
self helpTool buildFromClass: aHelpTool specClass. |
1771 |
self helpTool dictionaries: aHelpTool dictionaries. |
|
1772 |
self helpTool dictionary: aHelpTool dictionary |
|
199 | 1773 |
! ! |
1774 |
||
1775 |
!MenuEditor methodsFor:'aspects'! |
|
1776 |
||
220 | 1777 |
hasAnySingleSelection |
407 | 1778 |
|
1779 |
^builder booleanValueAspectFor: #hasAnySingleSelection |
|
220 | 1780 |
! |
1781 |
||
1782 |
hasValidSelection |
|
407 | 1783 |
|
1784 |
^builder booleanValueAspectFor: #hasValidSelection |
|
220 | 1785 |
! |
1786 |
||
1787 |
hasValidSingleSelection |
|
407 | 1788 |
|
1789 |
^builder booleanValueAspectFor: #hasValidSingleSelection |
|
220 | 1790 |
! |
1791 |
||
879 | 1792 |
listOfImages |
1793 |
"get a list of the images" |
|
1794 |
||
1795 |
|holder| |
|
1796 |
(holder := builder bindingAt:#listOfImages) isNil ifTrue:[ |
|
1797 |
builder aspectAt:#listOfImages put: (holder := List new). |
|
1798 |
self updateListOfImages |
|
1799 |
]. |
|
1800 |
^ holder |
|
1801 |
||
1802 |
||
1803 |
! |
|
1804 |
||
287 | 1805 |
noteBookView |
728 | 1806 |
"create the note book view containing the attibute sections and the help tool" |
199 | 1807 |
|
287 | 1808 |
|noteBook helpTool| |
1809 |
||
1810 |
(noteBook := builder bindingAt:#noteBookView) isNil ifTrue:[ |
|
1811 |
noteBook := View new. |
|
1812 |
helpTool := UIHelpTool new. |
|
1813 |
||
1814 |
helpTool masterApplication:self. |
|
1815 |
helpCanvas := SubCanvas origin:0.0@0.0 corner:1.0@1.0 in:noteBook. |
|
1816 |
specCanvas := SubCanvas origin:0.0@0.0 corner:1.0@1.0 in:noteBook. |
|
1817 |
||
1818 |
helpCanvas client:helpTool. |
|
432
d35dccaa804c
commit buttons replaced by subSpec in ToolApplicationModel
tz
parents:
422
diff
changeset
|
1819 |
helpTool masterApplication:self. |
422 | 1820 |
helpTool modifiedHolder: self valueOfEnablingCommitButtons. |
287 | 1821 |
|
1822 |
builder aspectAt:#noteBookView put:noteBook. |
|
199 | 1823 |
]. |
287 | 1824 |
^ noteBook |
199 | 1825 |
! |
1826 |
||
879 | 1827 |
selectionOfImage |
1828 |
"get selection of list of the images as value" |
|
1829 |
||
1830 |
|holder| |
|
1831 |
(holder := builder bindingAt:#selectionOfImage) isNil ifTrue:[ |
|
1832 |
builder aspectAt:#selectionOfImage put: (holder := nil asValue). |
|
1833 |
]. |
|
1834 |
^ holder |
|
1835 |
||
1836 |
||
1837 |
! |
|
1838 |
||
199 | 1839 |
tabList |
728 | 1840 |
"get a value holder with the list of the attribute sections (slices)" |
199 | 1841 |
|
298 | 1842 |
|holder| |
1843 |
(holder := builder bindingAt:#tabList) isNil ifTrue:[ |
|
734 | 1844 |
builder aspectAt:#tabList put:(holder := #(Basics Details Image Help) asValue). |
298 | 1845 |
]. |
1846 |
^ holder |
|
1847 |
||
1848 |
||
199 | 1849 |
! |
1850 |
||
407 | 1851 |
treeView |
728 | 1852 |
"get a tree view representing hierarchically the menu items" |
407 | 1853 |
|
1854 |
|treeView| |
|
1855 |
(treeView := builder bindingAt:#treeView) isNil ifTrue:[ |
|
1856 |
treeView := TreeView new. |
|
1857 |
treeView action:[:dummy|self menuChanged]. |
|
1858 |
builder aspectAt: #treeView put: treeView |
|
1859 |
]. |
|
1860 |
^treeView |
|
199 | 1861 |
! ! |
1862 |
||
728 | 1863 |
!MenuEditor methodsFor:'building'! |
1864 |
||
734 | 1865 |
buildFromClass:aClass andSelector:aSelector |
1866 |
||
1867 |
self isStandAlone ifTrue:[ |
|
748 | 1868 |
self helpTool buildFromClass:specClass |
734 | 1869 |
]. |
1870 |
self treeView buildFromClass: aClass andSelector: aSelector. |
|
1871 |
||
1872 |
self updateHistory. |
|
1873 |
self updateInfoLabel. |
|
1874 |
self treeView selection: 2. |
|
1875 |
self menuChanged |
|
1876 |
||
1877 |
! |
|
1878 |
||
738 | 1879 |
buildFromResourceSpec: aResourceSpec |
728 | 1880 |
|
734 | 1881 |
self buildFromMenu: |
738 | 1882 |
(aResourceSpec class == Menu ifTrue: [aResourceSpec] ifFalse: [aResourceSpec decodeAsLiteralArray]) |
728 | 1883 |
! ! |
1884 |
||
199 | 1885 |
!MenuEditor methodsFor:'change & update'! |
1886 |
||
748 | 1887 |
updateChannels |
1888 |
"update channels" |
|
407 | 1889 |
|
1890 |
|node parent next state| |
|
1891 |
||
412 | 1892 |
state := false. |
879 | 1893 |
self updateSelectionOfImage. |
407 | 1894 |
|
1895 |
(node := self treeView selectedNode) notNil |
|
1896 |
ifTrue: |
|
1897 |
[ |
|
220 | 1898 |
self hasAnySingleSelection value:true. |
407 | 1899 |
(parent := node parent) notNil |
1900 |
ifTrue: |
|
1901 |
[ |
|
220 | 1902 |
next := parent childAt:((parent indexOfChild:node) + 1). |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1903 |
self valueOfEnableMovingIn value:(next notNil and:[next hasChildren]). |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1904 |
self valueOfEnableMovingUpOrDown value:(parent children size > 1). |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1905 |
self valueOfEnableMovingOut value:parent parent notNil. |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1906 |
self hasValidSingleSelection value:true. |
748 | 1907 |
self hasValidSelection value:true. |
1908 |
self valueOfCanPaste value:true & self valueOfCanPaste value. |
|
738 | 1909 |
^self |
220 | 1910 |
] |
407 | 1911 |
] |
1912 |
ifFalse: |
|
1913 |
[ |
|
220 | 1914 |
self hasAnySingleSelection value:false. |
407 | 1915 |
self treeView numberOfSelections ~~ 0 ifTrue:[ |
1916 |
state := (self treeView isInSelection:1) not |
|
220 | 1917 |
] |
407 | 1918 |
]. |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1919 |
self valueOfEnableMovingUpOrDown value:false. |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1920 |
self valueOfEnableMovingIn value:false. |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1921 |
self valueOfEnableMovingOut value:false. |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1922 |
self hasValidSingleSelection value:false. |
748 | 1923 |
self hasValidSelection value:state. |
1924 |
self valueOfCanPaste value:(self hasValidSingleSelection value or: [node == self treeView root]) & self valueOfCanPaste value. |
|
879 | 1925 |
|
1926 |
! |
|
1927 |
||
1928 |
updateListAndSelectionOfImage |
|
1929 |
"updates the list and selection of image" |
|
1930 |
||
1931 |
self updateListOfImages. |
|
1932 |
self updateSelectionOfImage |
|
1933 |
! |
|
1934 |
||
1935 |
updateListOfImages |
|
1936 |
"updates the list of images" |
|
1937 |
||
902 | 1938 |
|iconClass| |
1939 |
||
1940 |
(iconClass := (aspects at: #retriever) value ? specClass) notNil ifTrue: |
|
1941 |
[ |
|
1942 |
iconClass := Smalltalk at: iconClass |
|
1943 |
]. |
|
1944 |
||
879 | 1945 |
self listOfImages contents: |
1946 |
((self class getAllImageSelectorsFrom: iconClass) |
|
1947 |
collect: [:sel| |image| image := iconClass perform: sel. LabelAndIcon icon:(image magnifiedBy: 22/image extent y ) string: sel]). |
|
1948 |
||
1949 |
||
1950 |
! |
|
1951 |
||
1952 |
updateSelectionOfImage |
|
1953 |
"updates the selection of image" |
|
1954 |
||
1955 |
self selectionOfImage value: nil. |
|
1956 |
self updateListOfImages. |
|
1957 |
self selectionOfImage value: (self listOfImages detect: [:im| im string == (aspects at: #icon) value] ifNone: nil). |
|
1958 |
||
220 | 1959 |
! ! |
1960 |
||
916 | 1961 |
!MenuEditor methodsFor:'defaults'! |
1962 |
||
1963 |
aboutImage |
|
1964 |
"the image to be displayed in my about-box; |
|
1965 |
If nil is returned, thhe ST/X default image is used." |
|
1966 |
||
1967 |
^ Image fromFile:'bitmaps/xpmBitmaps/misc_tools/setup_menus.xpm' |
|
1968 |
||
1969 |
"Created: / 25.7.1998 / 20:48:12 / cg" |
|
1970 |
"Modified: / 27.7.1998 / 10:21:55 / cg" |
|
1971 |
! ! |
|
1972 |
||
220 | 1973 |
!MenuEditor methodsFor:'event handling'! |
1974 |
||
407 | 1975 |
doesNotUnderstand: aMessage |
1976 |
"detour incoming messages to the tree view" |
|
1977 |
||
1978 |
(self treeView respondsTo: aMessage selector) |
|
1979 |
ifTrue: |
|
1980 |
[ |
|
1981 |
^aMessage sendTo: self treeView |
|
1982 |
]. |
|
1983 |
super doesNotUnderstand:aMessage |
|
220 | 1984 |
|
1985 |
||
199 | 1986 |
! ! |
1987 |
||
287 | 1988 |
!MenuEditor methodsFor:'private'! |
1989 |
||
1990 |
helpKey |
|
728 | 1991 |
"get the help key of the selected menu item" |
407 | 1992 |
|
287 | 1993 |
|node| |
407 | 1994 |
(node := self treeView selectedNode) notNil ifTrue:[ |
287 | 1995 |
^ node contents activeHelpKey |
1996 |
]. |
|
1997 |
^ nil |
|
1998 |
! |
|
1999 |
||
2000 |
helpTool |
|
728 | 2001 |
"get the help tool" |
407 | 2002 |
|
2003 |
^helpCanvas application |
|
287 | 2004 |
! ! |
2005 |
||
199 | 2006 |
!MenuEditor methodsFor:'queries'! |
2007 |
||
2008 |
isHelpToolSelected |
|
728 | 2009 |
"return true if current selection is help tool" |
407 | 2010 |
|
290 | 2011 |
(tabSelection ~~ 0 and:[slices notNil]) ifTrue:[ |
407 | 2012 |
^(slices at:tabSelection) first = UIHelpTool label |
199 | 2013 |
]. |
407 | 2014 |
^false |
287 | 2015 |
! |
2016 |
||
535 | 2017 |
preferredExtent |
2018 |
||
2019 |
^super preferredExtent max: (Screen current width//3)@(Screen current height//2.5) |
|
2020 |
||
2021 |
||
199 | 2022 |
! ! |
2023 |
||
2024 |
!MenuEditor methodsFor:'selection'! |
|
2025 |
||
879 | 2026 |
imageSelected |
2027 |
||
2028 |
(aspects at: #icon) value: self selectionOfImage value string |
|
2029 |
||
2030 |
! |
|
2031 |
||
199 | 2032 |
menuChanged |
407 | 2033 |
|
728 | 2034 |
|node item slc sel old| |
199 | 2035 |
|
407 | 2036 |
aspects do: [:holder| holder removeDependent:self]. |
2037 |
(node := self treeView selectedNode) notNil ifTrue:[ |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2038 |
aspects do:[:anAspect| |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2039 |
anAspect isBlock ifFalse:[anAspect value:nil] |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2040 |
]. |
199 | 2041 |
item := node contents. |
2042 |
item toAspects:aspects. |
|
2043 |
||
218 | 2044 |
item isSeparator ifFalse:[ |
199 | 2045 |
node parent isNil ifFalse:[ |
218 | 2046 |
node hasChildren ifTrue:[ |
2047 |
slc := #slicesMenu |
|
2048 |
] ifFalse:[ |
|
2049 |
item submenuChannel isNil ifTrue:[slc := #slicesItem] |
|
2050 |
ifFalse:[slc := #slicesLink] |
|
2051 |
]. |
|
287 | 2052 |
slc := (self class perform:slc) copyWith:#( 'Help' #dummy ). |
199 | 2053 |
] ifTrue:[ |
287 | 2054 |
slc := self class perform:#slicesRootMenu |
2055 |
]. |
|
199 | 2056 |
] ifTrue:[ |
287 | 2057 |
slc := self class perform:#slicesSeparatorMenu. |
2058 |
] |
|
199 | 2059 |
]. |
432
d35dccaa804c
commit buttons replaced by subSpec in ToolApplicationModel
tz
parents:
422
diff
changeset
|
2060 |
|
d35dccaa804c
commit buttons replaced by subSpec in ToolApplicationModel
tz
parents:
422
diff
changeset
|
2061 |
self helpTool helpKey: self helpKey. |
d35dccaa804c
commit buttons replaced by subSpec in ToolApplicationModel
tz
parents:
422
diff
changeset
|
2062 |
"Next line helps me to preserve myself against unnecessary settings of |
d35dccaa804c
commit buttons replaced by subSpec in ToolApplicationModel
tz
parents:
422
diff
changeset
|
2063 |
valueOfEnablingCommitButtons to true in the help tool." |
d35dccaa804c
commit buttons replaced by subSpec in ToolApplicationModel
tz
parents:
422
diff
changeset
|
2064 |
self valueOfEnablingCommitButtons value: false. |
199 | 2065 |
|
2066 |
slc ~= slices ifTrue:[ |
|
290 | 2067 |
tabSelection ~~ 0 ifTrue:[ |
287 | 2068 |
old := (slices at:tabSelection) first |
2069 |
]. |
|
2070 |
||
199 | 2071 |
(slices := slc) notNil ifTrue:[ |
287 | 2072 |
sel := slices collect:[:s| s first]. |
728 | 2073 |
tabSelection := 0. |
287 | 2074 |
self tabList value:sel. |
2075 |
||
2076 |
(old notNil and:[(sel := sel findFirst:[:n|n = old]) ~~ 0]) ifFalse:[ |
|
2077 |
sel := 1 |
|
2078 |
]. |
|
2079 |
self tabModel value:sel |
|
199 | 2080 |
] ifFalse:[ |
2081 |
self tabList value:nil. |
|
290 | 2082 |
self tabSelection:0. |
199 | 2083 |
] |
2084 |
]. |
|
748 | 2085 |
self updateChannels. |
407 | 2086 |
aspects do: [:holder| holder addDependent:self]. |
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2087 |
|
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2088 |
"Modified: / 14.8.1998 / 14:52:32 / cg" |
199 | 2089 |
! |
2090 |
||
407 | 2091 |
tabSelection: aSelection |
728 | 2092 |
"put the section aSelection into the note book" |
2093 |
||
287 | 2094 |
tabSelection = aSelection ifTrue:[ |
199 | 2095 |
^ self |
2096 |
]. |
|
298 | 2097 |
(aSelection ~~ 0 and:[slices isNil]) ifTrue:[ |
2098 |
^ self |
|
2099 |
]. |
|
290 | 2100 |
(tabSelection := aSelection) == 0 ifTrue:[ |
287 | 2101 |
slices isNil ifTrue:[ |
2102 |
specCanvas client:nil. |
|
2103 |
^ specCanvas raise. |
|
2104 |
]. |
|
2105 |
tabSelection == 1 ifTrue:[^ self]. |
|
2106 |
tabSelection := 1 |
|
199 | 2107 |
]. |
287 | 2108 |
|
432
d35dccaa804c
commit buttons replaced by subSpec in ToolApplicationModel
tz
parents:
422
diff
changeset
|
2109 |
self isHelpToolSelected ifTrue:[ |
287 | 2110 |
self helpTool helpKey:(self helpKey). |
2111 |
helpCanvas raise. |
|
728 | 2112 |
] ifFalse:[ |
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2113 |
aspects do: [:holder| holder removeDependent:self]. |
728 | 2114 |
specCanvas client:self spec:(self class perform:(slices at:tabSelection) last) builder:builder. |
407 | 2115 |
aspects do: [:holder| holder addDependent:self]. |
738 | 2116 |
self updateFonts. |
728 | 2117 |
specCanvas raise. |
879 | 2118 |
] |
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2119 |
|
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2120 |
"Modified: / 14.8.1998 / 15:07:06 / cg" |
199 | 2121 |
! ! |
2122 |
||
2123 |
!MenuEditor methodsFor:'startup / release'! |
|
2124 |
||
738 | 2125 |
initialize |
2126 |
"initialize value holders for the attributes of the menu components" |
|
2127 |
||
2128 |
|holder| |
|
2129 |
||
2130 |
super initialize. |
|
2131 |
||
2132 |
aspects at:#seperatorSelection put:(holder := SelectionInList new). |
|
2133 |
holder list: Item separatorList. |
|
872
eb3bd8e609f1
must create builder early - req'd.
Claus Gittinger <cg@exept.de>
parents:
860
diff
changeset
|
2134 |
holder addDependent:self. |
eb3bd8e609f1
must create builder early - req'd.
Claus Gittinger <cg@exept.de>
parents:
860
diff
changeset
|
2135 |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2136 |
aspects at:#indicationEnabled put:(BlockValue |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2137 |
with:[:a | a size == 0] |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2138 |
argument:(aspects at:#choice)). |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2139 |
aspects at:#choiceEnabled put:(BlockValue |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2140 |
with:[:a | a size == 0] |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2141 |
argument:(aspects at:#indication)). |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2142 |
aspects at:#choiceValueEnabled put:(BlockValue |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2143 |
with:[:a | a size > 0] |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2144 |
argument:(aspects at:#choice)). |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2145 |
|
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2146 |
"Modified: / 14.8.1998 / 15:07:58 / cg" |
738 | 2147 |
! |
2148 |
||
728 | 2149 |
openModalOnMenu: aMenu |
734 | 2150 |
"build a tree from aMenu and open it modal" |
728 | 2151 |
|
738 | 2152 |
super openModalOnResourceSpec: aMenu |
728 | 2153 |
! |
2154 |
||
412 | 2155 |
postOpenWith:aBuilder |
2156 |
||
537 | 2157 |
super postOpenWith:aBuilder. |
2158 |
||
412 | 2159 |
self isHelpToolSelected |
2160 |
ifTrue: [helpCanvas raise] |
|
748 | 2161 |
ifFalse: [specCanvas raise] |
2162 |
||
199 | 2163 |
! ! |
2164 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2165 |
!MenuEditor methodsFor:'user actions'! |
199 | 2166 |
|
407 | 2167 |
accept |
2168 |
"invoked by button 'OK' and by save requests of menu item changes" |
|
2169 |
||
2170 |
|node| |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2171 |
|
637 | 2172 |
super accept. |
2173 |
||
642 | 2174 |
(node := self treeView selectedNode) notNil |
407 | 2175 |
ifTrue: |
2176 |
[ |
|
2177 |
self isHelpToolSelected |
|
2178 |
ifTrue: |
|
2179 |
[ |
|
2180 |
self helpTool accept. |
|
686 | 2181 |
node contents activeHelpKey: self helpTool helpKey. |
2182 |
self valueOfEnablingCommitButtons value: false. |
|
407 | 2183 |
] |
2184 |
ifFalse: |
|
2185 |
[ |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2186 |
node contents buildFromAspects: aspects. |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2187 |
node changed. |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2188 |
specSelector := self treeView selectorName. |
407 | 2189 |
] |
734 | 2190 |
]. |
879 | 2191 |
self updateInfoLabel. |
2192 |
self updateListAndSelectionOfImage |
|
407 | 2193 |
! |
2194 |
||
2195 |
cancel |
|
2196 |
"invoked by button 'Cancel'" |
|
2197 |
||
2198 |
|node| |
|
2199 |
(node := self treeView selectedNode) notNil |
|
2200 |
ifTrue: |
|
432
d35dccaa804c
commit buttons replaced by subSpec in ToolApplicationModel
tz
parents:
422
diff
changeset
|
2201 |
[ |
407 | 2202 |
self helpTool helpKey:(self helpKey). |
2203 |
aspects do:[:anAspect| anAspect value:nil]. |
|
2204 |
node contents toAspects:aspects |
|
2205 |
]. |
|
422 | 2206 |
self valueOfEnablingCommitButtons value: false. |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2207 |
modified := false |
407 | 2208 |
! |
2209 |
||
879 | 2210 |
doEditImage |
888 | 2211 |
"opens a Image Editor on the resource retriever and the icon selector; |
2212 |
then updates the list of images and select the line of the image" |
|
879 | 2213 |
|
2214 |
super doEditImage. |
|
2215 |
||
2216 |
self updateListAndSelectionOfImage |
|
2217 |
! |
|
2218 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2219 |
doNew |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2220 |
|
748 | 2221 |
super doNew ifTrue: [self helpTool doNew] |
199 | 2222 |
! |
2223 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2224 |
doPickAMenu |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2225 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2226 |
|view| |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2227 |
|
642 | 2228 |
((view := Screen current viewFromUser) isNil or: |
2229 |
[view == Screen current rootView]) ifTrue:[ |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2230 |
^ self |
398 | 2231 |
]. |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2232 |
view specClass == MenuPanelSpec ifTrue:[ |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2233 |
^ self treeView buildFromMenu: view asMenu |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2234 |
]. |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2235 |
^ nil |
381 | 2236 |
! |
2237 |
||
888 | 2238 |
doRemoveImage |
2239 |
"removes the image of the selected line" |
|
2240 |
||
2241 |
self selectionOfImage value notNil |
|
2242 |
ifTrue: |
|
2243 |
[ |
|
2244 |
(Smalltalk at: (aspects at: #retriever) value ? specClass) class removeSelector: |
|
2245 |
self selectionOfImage value string. |
|
2246 |
||
2247 |
self updateListAndSelectionOfImage. |
|
2248 |
(aspects at:#icon) value: nil |
|
2249 |
] |
|
2250 |
! |
|
2251 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2252 |
doSave |
764 | 2253 |
|cls treeView menu spec mthd category code excla| |
199 | 2254 |
|
642 | 2255 |
super doSave ifFalse: [^nil]. |
637 | 2256 |
|
2257 |
cls := self resolveName: specClass. |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2258 |
treeView := self treeView. |
407 | 2259 |
menu := treeView asMenu. |
199 | 2260 |
menu := menu literalArrayEncoding. |
2261 |
spec := WriteStream on:String new. |
|
2262 |
UISpecification prettyPrintSpecArray:menu on:spec indent:5. |
|
2263 |
spec := spec contents. |
|
2264 |
||
2265 |
"/ if that method already exists, do not overwrite the category |
|
2266 |
||
576 | 2267 |
category := 'menu specs'. |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2268 |
(mthd := cls class compiledMethodAt:specSelector) notNil ifTrue:[ |
199 | 2269 |
category := mthd category. |
2270 |
]. |
|
2271 |
||
764 | 2272 |
excla := Character excla asString. |
2273 |
||
2274 |
code := excla |
|
654
45cc74ba1113
simplified comma-expression to make microsoft-cc happy
Claus Gittinger <cg@exept.de>
parents:
642
diff
changeset
|
2275 |
, (cls name , ' class methodsFor:' , category storeString) |
764 | 2276 |
, excla , '\\' |
199 | 2277 |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2278 |
, specSelector , '\' |
738 | 2279 |
, (self class codeGenerationComment replChar:$!! withString:'!!!!') |
2280 |
, '\\ "\' |
|
654
45cc74ba1113
simplified comma-expression to make microsoft-cc happy
Claus Gittinger <cg@exept.de>
parents:
642
diff
changeset
|
2281 |
, (' MenuEditor new openOnClass:' , cls name , ' andSelector:#' , specSelector , '\') |
45cc74ba1113
simplified comma-expression to make microsoft-cc happy
Claus Gittinger <cg@exept.de>
parents:
642
diff
changeset
|
2282 |
, (' (Menu new fromLiteralArrayEncoding:(' , cls name , ' ' , specSelector , ')) startUp\') |
199 | 2283 |
, ' "\'. |
2284 |
||
2285 |
code := code |
|
2286 |
, '\' |
|
2287 |
, ' <resource: #menu>\\' |
|
2288 |
, ' ^\' |
|
2289 |
, ' ', spec |
|
2290 |
, '\' |
|
764 | 2291 |
, (excla , ' ' , excla) |
199 | 2292 |
, '\\'. |
2293 |
||
2294 |
code := code withCRs. |
|
2295 |
(ReadStream on:code) fileIn. |
|
2296 |
||
764 | 2297 |
self isStandAlone ifTrue: [self helpTool installHelpSpecsOnClass:self specClass]. |
699 | 2298 |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2299 |
self updateHistory. |
748 | 2300 |
self updateInfoLabel. |
2301 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2302 |
hasSaved := true. |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2303 |
modified := false. |
218 | 2304 |
|
199 | 2305 |
! |
2306 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2307 |
doSaveAs |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2308 |
|
637 | 2309 |
super doSaveAs ifTrue: [self treeView selectorName: specSelector] |
218 | 2310 |
! |
199 | 2311 |
|
218 | 2312 |
doStepDown |
407 | 2313 |
"shift selected menu item one step down" |
2314 |
||
2315 |
self treeView selectedNodeChangeSequenceOrder:1. |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2316 |
modified := true. |
398 | 2317 |
|
2318 |
||
2319 |
||
2320 |
||
218 | 2321 |
! |
2322 |
||
2323 |
doStepIn |
|
407 | 2324 |
"move selected menu item into next submenu" |
2325 |
||
2326 |
self treeView selectedNodeBecomeChildOfNext. |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2327 |
modified := true. |
398 | 2328 |
|
2329 |
||
2330 |
||
2331 |
||
199 | 2332 |
|
218 | 2333 |
! |
199 | 2334 |
|
218 | 2335 |
doStepOut |
407 | 2336 |
"move selected menu item out from parent submenu" |
2337 |
||
2338 |
self treeView selectedNodeBecomeSisterOfParent. |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2339 |
modified := true. |
218 | 2340 |
! |
2341 |
||
2342 |
doStepUp |
|
407 | 2343 |
"shift selected menu item one step up" |
2344 |
||
2345 |
self treeView selectedNodeChangeSequenceOrder:-1. |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2346 |
modified := true. |
199 | 2347 |
! ! |
2348 |
||
218 | 2349 |
!MenuEditor::Item class methodsFor:'constants'! |
2350 |
||
2351 |
separatorList |
|
734 | 2352 |
"get the list of available separator types" |
407 | 2353 |
|
2354 |
^#('blank' 'single line' 'double line') |
|
218 | 2355 |
! |
2356 |
||
2357 |
separatorSlices |
|
734 | 2358 |
"get the list of menu spec values of the corresponding separator types" |
2359 |
||
218 | 2360 |
^ #( |
2361 |
( #blank '' ) |
|
2362 |
( #single '-' ) |
|
2363 |
( #double '=' ) |
|
2364 |
) |
|
2365 |
! ! |
|
2366 |
||
199 | 2367 |
!MenuEditor::Item class methodsFor:'documentation'! |
2368 |
||
2369 |
documentation |
|
2370 |
" |
|
213 | 2371 |
implements the contents assigned to a TreeItem. An instance |
199 | 2372 |
is associated with one item and keeps all its information |
2373 |
||
2374 |
[see also:] |
|
213 | 2375 |
TreeItem |
199 | 2376 |
MenuEditor |
2377 |
||
2378 |
[author:] |
|
2379 |
Claus Atzkern |
|
2380 |
" |
|
2381 |
||
2382 |
||
2383 |
! ! |
|
2384 |
||
2385 |
!MenuEditor::Item methodsFor:'accessing'! |
|
2386 |
||
287 | 2387 |
activeHelpKey |
734 | 2388 |
"get the help key of the menu item" |
407 | 2389 |
|
2390 |
^activeHelpKey |
|
287 | 2391 |
! |
2392 |
||
2393 |
activeHelpKey:aKey |
|
734 | 2394 |
"set the help key of the menu item" |
407 | 2395 |
|
287 | 2396 |
activeHelpKey := aKey |
2397 |
! |
|
2398 |
||
199 | 2399 |
label |
734 | 2400 |
"get the value of the menu item" |
199 | 2401 |
|
407 | 2402 |
^label |
2403 |
! |
|
199 | 2404 |
|
2405 |
label:something |
|
734 | 2406 |
"set the value of the menu item" |
199 | 2407 |
|
407 | 2408 |
label := something ? '-' |
218 | 2409 |
! |
2410 |
||
2411 |
separatorType |
|
734 | 2412 |
"get the separator type assigned to item or nil" |
407 | 2413 |
|
2414 |
label size > 1 |
|
2415 |
ifFalse: |
|
2416 |
[ |
|
2417 |
label size == 0 ifTrue:[^#blank]. |
|
2418 |
label first == $- ifTrue:[^#single]. |
|
2419 |
label first == $= ifTrue:[^#double]. |
|
218 | 2420 |
]. |
407 | 2421 |
^nil |
218 | 2422 |
|
2423 |
! |
|
2424 |
||
2425 |
submenuChannel |
|
2426 |
"return the value of the instance variable 'submenuChannel' (automatically generated)" |
|
2427 |
||
407 | 2428 |
^submenuChannel |
218 | 2429 |
! |
2430 |
||
2431 |
submenuChannel:aChannel |
|
734 | 2432 |
"get the submenuChannel" |
218 | 2433 |
|
2434 |
submenuChannel := aChannel |
|
860
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2435 |
! |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2436 |
|
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2437 |
translateLabel:aBoolean |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2438 |
"set/clear the translate to national-language flag" |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2439 |
|
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2440 |
translateLabel := aBoolean |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2441 |
|
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2442 |
"Created: / 6.6.1998 / 17:23:33 / cg" |
218 | 2443 |
! ! |
199 | 2444 |
|
860
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2445 |
!MenuEditor::Item methodsFor:'building'! |
199 | 2446 |
|
2447 |
buildFromAspects:aspects |
|
734 | 2448 |
"read the values of the aspects into my values" |
407 | 2449 |
|
249 | 2450 |
|name| |
407 | 2451 |
self isSeparator |
2452 |
ifFalse: |
|
2453 |
[ |
|
199 | 2454 |
name := label. |
2455 |
label := (aspects at:#label) value. |
|
2456 |
||
218 | 2457 |
(label isNil or:[self isSeparator]) ifTrue:[ |
199 | 2458 |
(aspects at:#label) value:(label := name) |
2459 |
]. |
|
2460 |
||
407 | 2461 |
enabled := (aspects at:#enabled) value. |
2462 |
value := (aspects at:#value) value. |
|
2463 |
nameKey := (aspects at:#nameKey) value. |
|
2464 |
indication := (aspects at:#indication) value. |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2465 |
choice := (aspects at:#choice) value. |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2466 |
choiceValue := (aspects at:#choiceValue) value. |
407 | 2467 |
shortcutKey := (aspects at:#shortcutKey) value. |
532 | 2468 |
startGroup := (aspects at:#startGroup) value. |
407 | 2469 |
accessCharacterPos := (aspects at:#accessCharacterPos) value. |
2470 |
argument := (aspects at:#argument) value. |
|
2471 |
translateLabel := (aspects at:#translateLabel) value. |
|
2472 |
isButton := (aspects at:#isButton) value. |
|
298 | 2473 |
|
2474 |
argument isString ifTrue:[ |
|
2475 |
argument size > 1 ifTrue:[ |
|
2476 |
(argument at:1) == $# ifTrue:[ |
|
2477 |
argument := (argument copyFrom:2) asSymbol |
|
2478 |
] |
|
2479 |
] |
|
2480 |
]. |
|
407 | 2481 |
submenuChannel := (aspects at:#submenuChannel) value. |
2482 |
retriever := (aspects at:#retriever) value. |
|
2483 |
icon := (aspects at:#icon) value. |
|
2484 |
iconAndLabel := (aspects at:#iconAndLabel) value. |
|
2485 |
] |
|
2486 |
ifTrue: |
|
2487 |
[ |
|
218 | 2488 |
name := (aspects at:#seperatorSelection) selectionIndex. |
2489 |
label := (self class separatorSlices at:name) last. |
|
606 | 2490 |
]. |
2491 |
isVisible := (aspects at:#isVisible) value. |
|
2492 |
||
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2493 |
"Modified: / 14.8.1998 / 15:36:38 / cg" |
199 | 2494 |
! |
2495 |
||
2496 |
buildFromMenuItem:anItem |
|
734 | 2497 |
"read the attributes of anItem into my values" |
407 | 2498 |
|
199 | 2499 |
|rtv| |
2500 |
||
218 | 2501 |
self label:(anItem label). |
2502 |
activeHelpKey := anItem activeHelpKey. |
|
199 | 2503 |
|
2504 |
(enabled := anItem enabled) isSymbol ifFalse:[ |
|
2505 |
enabled := nil |
|
2506 |
]. |
|
2507 |
(value := anItem value) isSymbol ifFalse:[ |
|
2508 |
value := nil. |
|
2509 |
]. |
|
2510 |
(indication := anItem indication) isSymbol ifFalse:[ |
|
2511 |
indication := nil |
|
2512 |
]. |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2513 |
(choice := anItem choice) isSymbol ifFalse:[ |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2514 |
choice := nil |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2515 |
]. |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2516 |
choiceValue := anItem choiceValue. |
199 | 2517 |
|
407 | 2518 |
nameKey := anItem nameKey. |
2519 |
shortcutKey := anItem shortcutKeyCharacter. |
|
532 | 2520 |
startGroup := anItem startGroup. |
407 | 2521 |
accessCharacterPos := anItem accessCharacterPosition. |
2522 |
argument := anItem argument. |
|
537 | 2523 |
|
407 | 2524 |
submenuChannel := anItem submenuChannel. |
2525 |
translateLabel := anItem translateLabel. |
|
2526 |
isButton := anItem isButton. |
|
539 | 2527 |
isVisible := anItem isVisible. |
407 | 2528 |
|
2529 |
(((rtv := anItem adornment) notNil) |
|
2530 |
and:[(rtv := rtv labelImage) isKindOf:ResourceRetriever]) |
|
2531 |
ifTrue: |
|
2532 |
[ |
|
199 | 2533 |
retriever := rtv className. |
2534 |
icon := rtv selector. |
|
2535 |
(iconAndLabel := rtv labelText notNil) ifTrue:[ |
|
2536 |
label := rtv labelText. |
|
2537 |
] |
|
2538 |
] |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2539 |
|
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2540 |
"Modified: / 14.8.1998 / 15:37:20 / cg" |
860
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2541 |
! ! |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2542 |
|
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2543 |
!MenuEditor::Item methodsFor:'conversion'! |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2544 |
|
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2545 |
asMenuItem |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2546 |
"converts self to a menu item" |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2547 |
|
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2548 |
|item rcv| |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2549 |
|
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2550 |
item := MenuItem labeled:label. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2551 |
item isVisible:isVisible. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2552 |
|
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2553 |
self isSeparator ifFalse:[ |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2554 |
item activeHelpKey:activeHelpKey. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2555 |
item enabled:enabled. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2556 |
item accessCharacterPosition:accessCharacterPos. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2557 |
item argument:argument. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2558 |
item submenuChannel:submenuChannel. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2559 |
item nameKey:nameKey. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2560 |
item shortcutKeyCharacter:shortcutKey. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2561 |
item startGroup:startGroup. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2562 |
item value:value. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2563 |
item indication:indication. |
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2564 |
item choice:choice. |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2565 |
item choiceValue:choiceValue. |
860
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2566 |
item translateLabel: translateLabel. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2567 |
item isButton: isButton. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2568 |
|
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2569 |
icon notNil ifTrue:[ |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2570 |
rcv := ResourceRetriever new. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2571 |
rcv className:retriever. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2572 |
rcv selector:icon. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2573 |
iconAndLabel == true ifTrue:[ |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2574 |
rcv labelText:label |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2575 |
]. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2576 |
item labelImage:rcv |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2577 |
] |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2578 |
]. |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
2579 |
^item |
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2580 |
|
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2581 |
"Modified: / 14.8.1998 / 15:36:35 / cg" |
199 | 2582 |
! |
2583 |
||
2584 |
toAspects:aspects |
|
734 | 2585 |
"put my values into the values of aspects" |
407 | 2586 |
|
249 | 2587 |
|type| |
407 | 2588 |
(type := self separatorType) notNil |
2589 |
ifTrue: |
|
2590 |
[ |
|
218 | 2591 |
type := self class separatorSlices findFirst:[:el| el first == type ]. |
2592 |
(aspects at:#seperatorSelection) selectionIndex:type. |
|
407 | 2593 |
] |
2594 |
ifFalse: |
|
2595 |
[ |
|
2596 |
(aspects at:#label) value:label. |
|
2597 |
(aspects at:#enabled) value:enabled. |
|
2598 |
(aspects at:#value) value:value. |
|
2599 |
(aspects at:#nameKey) value:nameKey. |
|
2600 |
(aspects at:#indication) value:indication. |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2601 |
(aspects at:#choice) value:choice. |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2602 |
(aspects at:#choiceValue) value:choiceValue. |
407 | 2603 |
(aspects at:#shortcutKey) value:shortcutKey. |
532 | 2604 |
(aspects at:#startGroup) value:startGroup. |
407 | 2605 |
(aspects at:#accessCharacterPos) value:accessCharacterPos. |
2606 |
(aspects at:#translateLabel) value:translateLabel. |
|
2607 |
(aspects at:#submenuChannel) value:submenuChannel. |
|
2608 |
(aspects at:#retriever) value:retriever. |
|
2609 |
(aspects at:#icon) value:icon. |
|
2610 |
(aspects at:#iconAndLabel) value:iconAndLabel. |
|
539 | 2611 |
(aspects at:#isButton) value:isButton. |
537 | 2612 |
|
407 | 2613 |
argument isSymbol |
2614 |
ifTrue: [(aspects at:#argument)value:'#', argument] |
|
2615 |
ifFalse:[(aspects at:#argument)value:argument]. |
|
606 | 2616 |
]. |
2617 |
(aspects at:#isVisible) value:isVisible. |
|
2618 |
||
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
2619 |
"Modified: / 14.8.1998 / 15:37:29 / cg" |
199 | 2620 |
! ! |
2621 |
||
2622 |
!MenuEditor::Item methodsFor:'queries'! |
|
2623 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2624 |
iconFor: aNode |
734 | 2625 |
"get the icon of the menu item for the tree view" |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2626 |
|
686 | 2627 |
(aNode hasChildren or: [aNode parent isNil]) |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2628 |
ifTrue: |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2629 |
[ |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2630 |
^MenuEditor submenuImage |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2631 |
] |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2632 |
ifFalse: |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2633 |
[ |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2634 |
submenuChannel notNil |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2635 |
ifTrue: |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2636 |
[ |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2637 |
^MenuEditor linkSubmenuImage |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2638 |
] |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2639 |
ifFalse: |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2640 |
[ |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2641 |
self isSeparator |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2642 |
ifTrue: [^MenuEditor menuSeparatorImage] |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2643 |
ifFalse: [^MenuEditor menuItemImage] |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2644 |
] |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2645 |
] |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2646 |
! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2647 |
|
218 | 2648 |
isSeparator |
734 | 2649 |
"return true if item is a seperator" |
407 | 2650 |
|
2651 |
^self separatorType notNil |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2652 |
! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2653 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2654 |
treeViewLabel |
734 | 2655 |
"get the label of the menu item for the tree view" |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2656 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2657 |
^label asBoldText, |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2658 |
(value notNil ifTrue: [': [', |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2659 |
value , |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2660 |
(argument notNil ifTrue: [' ', (Text string: argument emphasis: #italic)] ifFalse: ['']), |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2661 |
']'] ifFalse: ['']) |
199 | 2662 |
! ! |
2663 |
||
407 | 2664 |
!MenuEditor::TreeView class methodsFor:'documentation'! |
199 | 2665 |
|
2666 |
documentation |
|
2667 |
" |
|
734 | 2668 |
This tree view class provides a hierarchical representation |
2669 |
of the components of a menu. |
|
199 | 2670 |
|
2671 |
[see also:] |
|
2672 |
SelectionInTreeView |
|
213 | 2673 |
SelectionInTree |
2674 |
TreeItem |
|
199 | 2675 |
|
2676 |
[author:] |
|
2677 |
Claus Atzkern |
|
2678 |
" |
|
2679 |
! ! |
|
2680 |
||
407 | 2681 |
!MenuEditor::TreeView methodsFor:'accessing'! |
199 | 2682 |
|
2683 |
selectorName |
|
734 | 2684 |
"get the selector of the menu spec" |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2685 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2686 |
^(listOfNodes first contents label) asSymbol |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2687 |
! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2688 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2689 |
selectorName: aSymbol |
734 | 2690 |
"set the selector for the menu spec" |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2691 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2692 |
listOfNodes first contents label: aSymbol |
199 | 2693 |
! ! |
2694 |
||
407 | 2695 |
!MenuEditor::TreeView methodsFor:'building'! |
199 | 2696 |
|
637 | 2697 |
buildFromClass:aClass andSelector:aSelector |
734 | 2698 |
"read a menu spec from aClass and aSelector and put |
2699 |
the encoded menu into the tree view" |
|
407 | 2700 |
|
728 | 2701 |
|spec cls menu firstNode firstNodeLabel| |
2702 |
||
2703 |
"if opened on a menu" |
|
2704 |
(aClass isNil and: [aSelector isNil and: [listOfNodes size > 0]]) ifTrue: [^nil]. |
|
199 | 2705 |
|
2706 |
(aClass notNil and:[aSelector notNil]) ifTrue:[ |
|
340 | 2707 |
cls := self application resolveName:aClass. |
199 | 2708 |
|
2709 |
(cls respondsTo:aSelector) ifTrue:[ |
|
2710 |
spec := cls perform:aSelector |
|
2711 |
] |
|
2712 |
]. |
|
331 | 2713 |
|
199 | 2714 |
spec isNil ifFalse:[ |
298 | 2715 |
(spec isMemberOf:Menu) ifFalse:[ |
2716 |
menu := Menu new fromLiteralArrayEncoding:spec. |
|
2717 |
] ifTrue:[ |
|
2718 |
menu := spec. |
|
2719 |
]. |
|
728 | 2720 |
firstNode := self nodeLabel:(aSelector asString). |
2721 |
self subMenu:menu parent:firstNode. |
|
199 | 2722 |
] ifTrue:[ |
728 | 2723 |
(aClass notNil and: [aSelector isNil and: [listOfNodes size > 0]]) |
2724 |
ifTrue: |
|
2725 |
[ |
|
2726 |
firstNode := listOfNodes first |
|
2727 |
] |
|
2728 |
ifFalse: |
|
2729 |
[ |
|
2730 |
aSelector notNil ifTrue:[firstNodeLabel := aSelector asString] |
|
2731 |
ifFalse:[firstNodeLabel := 'menu']. |
|
2732 |
firstNode := self nodeLabel:firstNodeLabel. |
|
2733 |
] |
|
199 | 2734 |
]. |
734 | 2735 |
|
728 | 2736 |
firstNode expand. |
2737 |
model root: firstNode. |
|
2738 |
||
2739 |
firstNode hasChildren ifFalse:[ |
|
775 | 2740 |
model add:(self nodeLabel:'Item 1') below:firstNode |
199 | 2741 |
]. |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2742 |
|
199 | 2743 |
|
2744 |
! |
|
2745 |
||
2746 |
buildFromMenu:aMenu |
|
734 | 2747 |
"put aMenu into the tree view" |
199 | 2748 |
|
249 | 2749 |
|node| |
199 | 2750 |
|
213 | 2751 |
node := self nodeLabel:'menu'. |
199 | 2752 |
self subMenu:aMenu parent:node. |
2753 |
||
2754 |
node hasChildren ifFalse:[ |
|
728 | 2755 |
node add:(self nodeLabel:'Item 1') |
199 | 2756 |
]. |
213 | 2757 |
node expand. |
199 | 2758 |
model root:node. |
2759 |
! |
|
2760 |
||
213 | 2761 |
menuItem:anItem |
199 | 2762 |
|
249 | 2763 |
|node| |
199 | 2764 |
|
407 | 2765 |
node := self nodeLabel: anItem label. |
199 | 2766 |
node contents buildFromMenuItem:anItem. |
407 | 2767 |
self subMenu: anItem submenu parent:node. |
2768 |
^node. |
|
199 | 2769 |
|
2770 |
||
2771 |
! |
|
2772 |
||
2773 |
subMenu:aMenu parent:aParent |
|
407 | 2774 |
|
213 | 2775 |
|idx grp| |
199 | 2776 |
|
2777 |
aMenu isNil ifFalse:[ |
|
2778 |
grp := aMenu groupSizes. |
|
213 | 2779 |
aMenu itemsDo:[:i| aParent add:(self menuItem:i)]. |
199 | 2780 |
|
2781 |
grp notNil ifTrue:[ |
|
213 | 2782 |
idx := 0. |
199 | 2783 |
|
2784 |
grp do:[:i| |
|
213 | 2785 |
idx := idx + i + 1. |
2786 |
aParent add:(self nodeLabel:nil) beforeIndex:idx. |
|
199 | 2787 |
] |
2788 |
] |
|
2789 |
] |
|
2790 |
! ! |
|
2791 |
||
407 | 2792 |
!MenuEditor::TreeView methodsFor:'conversion'! |
199 | 2793 |
|
2794 |
asMenu |
|
2795 |
|menu root| |
|
2796 |
||
2797 |
root := self root. |
|
2798 |
||
2799 |
root hasChildren ifTrue:[ |
|
2800 |
menu := Menu new. |
|
2801 |
root children do:[:aChild| menu addItem:(self asMenuItem:aChild)]. |
|
2802 |
]. |
|
2803 |
^ menu |
|
2804 |
! |
|
2805 |
||
2806 |
asMenuItem:aNode |
|
2807 |
||
2808 |
|menu item| |
|
2809 |
||
2810 |
item := aNode contents asMenuItem. |
|
2811 |
||
2812 |
aNode hasChildren ifTrue:[ |
|
2813 |
menu := Menu new. |
|
2814 |
aNode children do:[:aChild| menu addItem:(self asMenuItem:aChild)]. |
|
2815 |
item submenu:menu |
|
2816 |
]. |
|
2817 |
^ item |
|
2818 |
||
2819 |
! ! |
|
2820 |
||
407 | 2821 |
!MenuEditor::TreeView methodsFor:'drawing basics'! |
199 | 2822 |
|
853 | 2823 |
redrawLabelAt:x y:yTop index:anIndex |
407 | 2824 |
"draw text label assigned to a node at x y( center)" |
2825 |
||
853 | 2826 |
|isSelected y0 x0 x1 maxX w label type item| |
199 | 2827 |
|
2828 |
item := (listOfNodes at:anIndex) contents. |
|
218 | 2829 |
type := item separatorType. |
199 | 2830 |
|
218 | 2831 |
type isNil ifTrue:[ |
853 | 2832 |
^ super redrawLabelAt:x y:yTop index:anIndex |
2833 |
]. |
|
2834 |
isSelected := self isInSelection:anIndex. |
|
854 | 2835 |
x0 := x. |
853 | 2836 |
|
2837 |
highlightMode == #label ifTrue:[ |
|
2838 |
x0 := x + 4. |
|
2839 |
||
2840 |
isSelected ifTrue:[ |
|
2841 |
w := 80 + 8. |
|
2842 |
self paint:hilightBgColor. |
|
2843 |
self fillRectangleX:x y:yTop width:w height:fontHeight. |
|
2844 |
] |
|
218 | 2845 |
] ifFalse:[ |
853 | 2846 |
w := 0. |
2847 |
]. |
|
2848 |
type == #blank ifFalse:[ |
|
2849 |
isSelected ifTrue:[self paint:hilightFgColor] |
|
2850 |
ifFalse:[self paint:fgColor]. |
|
2851 |
||
2852 |
x1 := x0 + 80. |
|
2853 |
y0 := yTop - 1 + (fontHeight // 2). |
|
2854 |
self displayLineFromX:x0 y:y0 toX:x1 y:y0. |
|
2855 |
||
2856 |
type == #double ifTrue:[ |
|
2857 |
y0 := y0 + 2. |
|
2858 |
self displayLineFromX:x0 y:y0 toX:x1 y:y0. |
|
2859 |
] |
|
2860 |
]. |
|
2861 |
||
2862 |
(isSelected and:[highlightMode == #label]) ifTrue:[ |
|
2863 |
self redrawSelFrameAtX:x y:yTop toX:(x + w) |
|
2864 |
]. |
|
2865 |
||
199 | 2866 |
! ! |
2867 |
||
407 | 2868 |
!MenuEditor::TreeView methodsFor:'event handling'! |
356 | 2869 |
|
2870 |
keyPress:key x:x y:y |
|
407 | 2871 |
"invoked if any key was pressed" |
2872 |
||
412 | 2873 |
<resource: #keyboard (#Delete #BackSpace #Cut #Copy #Paste)> |
2874 |
||
686 | 2875 |
(key == #Delete or:[key == #BackSpace]) ifTrue: [^self doDelete]. |
748 | 2876 |
key == #Cut ifTrue:[^self doCut]. |
407 | 2877 |
key == #Copy ifTrue:[^self doCopy]. |
2878 |
key == #Paste ifTrue:[^self doPaste]. |
|
356 | 2879 |
|
412 | 2880 |
super keyPress:key x:x y:y |
356 | 2881 |
|
2882 |
! ! |
|
2883 |
||
407 | 2884 |
!MenuEditor::TreeView methodsFor:'initialization'! |
199 | 2885 |
|
2886 |
initialize |
|
734 | 2887 |
"initialize the tree view of the menu components" |
407 | 2888 |
|
199 | 2889 |
super initialize. |
275 | 2890 |
|
213 | 2891 |
self multipleSelectOk:true. |
407 | 2892 |
self showDirectoryIndicator: true. |
2893 |
self showDirectoryIndicatorForRoot: false. |
|
634 | 2894 |
self selectConditionBlock: [:i|self application askForItemModification]. |
412 | 2895 |
self validateDoubleClickBlock: [:node| node ~~ listOfNodes first]. |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2896 |
self model iconAction: [:aNode| aNode contents iconFor: aNode]. |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2897 |
self model labelAction: [:aNode| aNode contents treeViewLabel] |
199 | 2898 |
! ! |
2899 |
||
407 | 2900 |
!MenuEditor::TreeView methodsFor:'menus'! |
199 | 2901 |
|
2902 |
doCopy |
|
912 | 2903 |
|clip| |
398 | 2904 |
|
213 | 2905 |
self hasSelection ifTrue:[ |
912 | 2906 |
self application clipboard:(clip := OrderedCollection new). |
2907 |
self selectionDo:[:i | clip add:((listOfNodes at:i) copy)]. |
|
748 | 2908 |
self topView application updateAllToolInstances. |
213 | 2909 |
] |
199 | 2910 |
! |
2911 |
||
2912 |
doCreateItem |
|
398 | 2913 |
|
557 | 2914 |
self addElement: (self nodeLabel:'Item') |
199 | 2915 |
! |
2916 |
||
218 | 2917 |
doCreateLink |
407 | 2918 |
|
218 | 2919 |
|node item| |
2920 |
||
557 | 2921 |
node := self nodeLabel:'Submenu Link'. |
218 | 2922 |
item := node contents. |
2923 |
item submenuChannel:#menuDefaultLink. |
|
398 | 2924 |
self addElement:node. |
2925 |
self setModified. |
|
218 | 2926 |
|
2927 |
||
2928 |
! |
|
2929 |
||
199 | 2930 |
doCreateMenu |
398 | 2931 |
|
199 | 2932 |
|node| |
557 | 2933 |
node := self nodeLabel:'Submenu'. |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2934 |
node parent: self selectedNode. |
557 | 2935 |
node add:(self nodeLabel:'Item 1'). |
213 | 2936 |
self addElement:node |
199 | 2937 |
! |
2938 |
||
2939 |
doCreateSep |
|
398 | 2940 |
|
213 | 2941 |
self addElement:(self nodeLabel:nil) |
199 | 2942 |
! |
2943 |
||
2944 |
doCut |
|
912 | 2945 |
|app| |
2946 |
||
2947 |
app := self topView application. |
|
2948 |
(app hasValidSelection value and: [self askForItemModification]) |
|
603 | 2949 |
ifTrue: |
2950 |
[ |
|
2951 |
|selectedNodes| |
|
2952 |
self doCopy. |
|
2953 |
selectedNodes := self selection asSortedCollection. |
|
2954 |
self selectedNodesRemove. |
|
2955 |
self selection: selectedNodes first - 1. |
|
2956 |
self setModified. |
|
912 | 2957 |
app updateAllToolInstances. |
603 | 2958 |
] |
398 | 2959 |
|
199 | 2960 |
! |
2961 |
||
686 | 2962 |
doDelete |
2963 |
||
2964 |
(self topView application hasValidSelection value and: [self askForItemModification]) |
|
2965 |
ifTrue: |
|
2966 |
[ |
|
2967 |
|selectedNodes| |
|
2968 |
selectedNodes := self selection asSortedCollection. |
|
2969 |
self selectedNodesRemove. |
|
2970 |
self selection: selectedNodes first - 1. |
|
2971 |
self setModified. |
|
2972 |
] |
|
2973 |
||
2974 |
! |
|
2975 |
||
199 | 2976 |
doPaste |
912 | 2977 |
|clip| |
2978 |
||
2979 |
clip := self application clipboard. |
|
2980 |
(clip notNil and:[self selectedNode notNil]) ifTrue:[ |
|
2981 |
self addElement:(clip collect:[:el| el copy]) |
|
220 | 2982 |
]. |
199 | 2983 |
! ! |
2984 |
||
407 | 2985 |
!MenuEditor::TreeView methodsFor:'private'! |
199 | 2986 |
|
557 | 2987 |
addElement: aNode |
407 | 2988 |
"add something after selection" |
2989 |
||
634 | 2990 |
self askForItemModification |
603 | 2991 |
ifTrue: |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2992 |
[ |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2993 |
self selectedNodeAdd: aNode. |
603 | 2994 |
(aNode isCollection not and: [aNode name = 'Item']) |
2995 |
ifTrue: |
|
2996 |
[ |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2997 |
|label| |
603 | 2998 |
label := aNode name, ' ', |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
2999 |
(self selectedNode parent notNil |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3000 |
ifTrue: |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3001 |
[ |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3002 |
(((self selectedNode children size = 0 |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3003 |
ifTrue: [self selectedNode parent children] |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3004 |
ifFalse: [self selectedNode children]) select: |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3005 |
[:node| |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3006 |
|lab| |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3007 |
lab := node contents label. |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3008 |
((node children size = 0) & |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3009 |
node contents submenuChannel isNil & |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3010 |
(lab ~= '-') & (lab ~= '=') & (lab ~= '')) |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3011 |
]) size) printString] |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3012 |
ifFalse: ['1']). |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3013 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3014 |
aNode name: label string asBoldText. |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3015 |
aNode contents label: label string. |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
3016 |
]. |
603 | 3017 |
aNode isCollection ifFalse: [self selectNode: aNode] ifTrue: [self selection: (aNode collect: [:node| self indexOfNode: node])]. |
3018 |
self setModified. |
|
3019 |
] |
|
3020 |
! |
|
3021 |
||
634 | 3022 |
askForItemModification |
3023 |
||
3024 |
^self topView application askForItemModification |
|
199 | 3025 |
! |
3026 |
||
213 | 3027 |
nodeLabel:aLabel |
407 | 3028 |
|
860
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
3029 |
^TreeItem new contents: ((MenuEditor::Item new label:aLabel) translateLabel:true) |
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
3030 |
|
3e5171aad09f
new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents:
854
diff
changeset
|
3031 |
"Modified: / 6.6.1998 / 17:22:35 / cg" |
398 | 3032 |
! |
3033 |
||
557 | 3034 |
selectedNodeAdd:something |
3035 |
||
3036 |
|node| |
|
3037 |
||
3038 |
something notNil ifTrue:[ |
|
3039 |
(node := self selectedNode) notNil ifTrue:[ |
|
3040 |
node parent notNil ifTrue:[ |
|
3041 |
node isCollapsable ifTrue:[ |
|
3042 |
model add:something afterIndex:node children size below:node |
|
3043 |
] ifFalse:[ |
|
3044 |
model add:something after:node |
|
3045 |
] |
|
3046 |
] ifFalse:[ |
|
3047 |
model add:something afterIndex:node children size below:(self root) |
|
3048 |
] |
|
3049 |
] |
|
3050 |
] |
|
3051 |
||
3052 |
||
3053 |
! |
|
3054 |
||
398 | 3055 |
setModified |
912 | 3056 |
|app| |
3057 |
||
3058 |
(app := self topView application) modified: true. |
|
3059 |
app updateChannels |
|
199 | 3060 |
! ! |
3061 |
||
3062 |
!MenuEditor class methodsFor:'documentation'! |
|
3063 |
||
3064 |
version |
|
3065 |
^ '$Header$' |
|
3066 |
! ! |