author | tz |
Wed, 11 Mar 1998 01:41:25 +0100 | |
changeset 720 | 7f228c9cde2e |
parent 716 | 7f95684c7f7d |
child 725 | 9d3fa75a40e4 |
permissions | -rw-r--r-- |
199 | 1 |
" |
2 |
COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger |
|
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 |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
14 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
15 |
ListSpecEditor subclass:#MenuEditor |
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 |
539 | 25 |
startGroup argument translateLabel isButton isVisible' |
220 | 26 |
classVariableNames:'' |
27 |
poolDictionaries:'' |
|
28 |
privateIn:MenuEditor |
|
199 | 29 |
! |
30 |
||
407 | 31 |
SelectionInTreeView subclass:#TreeView |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
32 |
instanceVariableNames:'' |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
33 |
classVariableNames:'' |
220 | 34 |
poolDictionaries:'' |
35 |
privateIn:MenuEditor |
|
199 | 36 |
! |
37 |
||
38 |
!MenuEditor class methodsFor:'documentation'! |
|
39 |
||
40 |
copyright |
|
41 |
" |
|
42 |
COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger |
|
43 |
All Rights Reserved |
|
44 |
||
45 |
This software is furnished under a license and may be used |
|
46 |
only in accordance with the terms of that license and with the |
|
47 |
inclusion of the above copyright notice. This software may not |
|
48 |
be provided or otherwise made available to, or used by, any |
|
49 |
other person. No title to or ownership of the software is |
|
50 |
hereby transferred. |
|
51 |
" |
|
52 |
||
53 |
||
54 |
! |
|
55 |
||
56 |
documentation |
|
57 |
" |
|
58 |
create and modify or inspect popup and pullDown menus of the |
|
59 |
new style( derives from Menu). |
|
60 |
||
61 |
[start with:] |
|
62 |
MenuEditor open |
|
63 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuPullDown |
|
64 |
||
65 |
[see also:] |
|
66 |
UIPainter |
|
67 |
UIHelpTool |
|
68 |
UISpecificationTool |
|
69 |
SelectionInTreeView |
|
70 |
||
71 |
[author:] |
|
541 | 72 |
Claus Atzkern, eXept Software AG |
73 |
Thomas Zwick, eXept Software AG |
|
199 | 74 |
" |
75 |
||
76 |
! ! |
|
77 |
||
406
a519e0d547f6
widgets rearranged for different fonts + comfortable menu load support
tz
parents:
398
diff
changeset
|
78 |
!MenuEditor class methodsFor:'initialization'! |
a519e0d547f6
widgets rearranged for different fonts + comfortable menu load support
tz
parents:
398
diff
changeset
|
79 |
|
a519e0d547f6
widgets rearranged for different fonts + comfortable menu load support
tz
parents:
398
diff
changeset
|
80 |
initialize |
a519e0d547f6
widgets rearranged for different fonts + comfortable menu load support
tz
parents:
398
diff
changeset
|
81 |
|
432
d35dccaa804c
commit buttons replaced by subSpec in ToolApplicationModel
tz
parents:
422
diff
changeset
|
82 |
super initialize. |
d35dccaa804c
commit buttons replaced by subSpec in ToolApplicationModel
tz
parents:
422
diff
changeset
|
83 |
|
407 | 84 |
TreeView initialize |
406
a519e0d547f6
widgets rearranged for different fonts + comfortable menu load support
tz
parents:
398
diff
changeset
|
85 |
! ! |
a519e0d547f6
widgets rearranged for different fonts + comfortable menu load support
tz
parents:
398
diff
changeset
|
86 |
|
508 | 87 |
!MenuEditor class methodsFor:'instance creation'! |
88 |
||
89 |
openModalOnClass:aClass andSelector:aSelector |
|
90 |
^ self new openModalOnClass:aClass andSelector:aSelector |
|
91 |
||
92 |
||
93 |
! |
|
94 |
||
95 |
openOnClass:aClass andSelector:aSelector |
|
96 |
^ self new openOnClass:aClass andSelector:aSelector |
|
97 |
||
98 |
||
99 |
! ! |
|
100 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
101 |
!MenuEditor class methodsFor:'accessing'! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
102 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
103 |
resourceType |
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 |
^#menu |
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 |
|
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 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
112 |
!MenuEditor class methodsFor:'aspects'! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
113 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
114 |
aspects |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
115 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
116 |
^#( |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
117 |
label |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
118 |
accessCharacterPos |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
119 |
argument |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
120 |
submenuChannel |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
121 |
enabled |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
122 |
value |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
123 |
nameKey |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
124 |
indication |
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 |
) |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
135 |
|
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 |
|
318 | 138 |
!MenuEditor class methodsFor:'code generation'! |
139 |
||
140 |
sourceCategory |
|
432
d35dccaa804c
commit buttons replaced by subSpec in ToolApplicationModel
tz
parents:
422
diff
changeset
|
141 |
"returns the category where to install the menu |
318 | 142 |
" |
143 |
^ 'accessing menu' |
|
144 |
! ! |
|
145 |
||
371 | 146 |
!MenuEditor class methodsFor:'help specs'! |
147 |
||
148 |
helpSpec |
|
149 |
"return a dictionary filled with helpKey -> helptext associations. |
|
150 |
These are used by the activeHelp tool." |
|
151 |
||
152 |
" |
|
153 |
UIHelpTool openOnClass:MenuEditor |
|
154 |
" |
|
155 |
||
156 |
^ super helpSpec addPairsFrom:#( |
|
157 |
||
548 | 158 |
#addMenuItem |
159 |
'Adds a new menu item.' |
|
160 |
||
161 |
#addMenuSeparator |
|
162 |
'Adds a new menu separator.' |
|
163 |
||
164 |
#addSubMenu |
|
613 | 165 |
'Adds a new sub menu.' |
548 | 166 |
|
167 |
#addSubMenuLink |
|
613 | 168 |
'Adds a new linked sub menu.' |
371 | 169 |
|
577 | 170 |
#basicsAction |
627 | 171 |
'An action selector with 0, 1 (the argument field), or 2 (the selected item) arguments.' |
577 | 172 |
|
173 |
#basicsArgument |
|
613 | 174 |
'An argument passed to above selector, if it is a 1 or a 2 argument selector.' |
577 | 175 |
|
176 |
#basicsIndication |
|
177 |
'A boolean value holder, a boolean evaluating block, or a boolean returning selector for specifying indication state.' |
|
178 |
||
179 |
#basicsIsButton |
|
603 | 180 |
'Turns on/off a button behavior.' |
577 | 181 |
|
182 |
#basicsLabel |
|
183 |
'Label of the item.' |
|
184 |
||
185 |
#basicsMenu |
|
613 | 186 |
'A value holder providing the sub menu to be opened if item is selected.' |
577 | 187 |
|
188 |
#basicsMenuArgument |
|
189 |
'An argument passes with menu selector.' |
|
190 |
||
191 |
#basicsNameKey |
|
192 |
'Unique identifier of the item (optional).' |
|
193 |
||
194 |
#basicsSelector |
|
613 | 195 |
'Selector under which the generated menu spec is saved.' |
577 | 196 |
|
197 |
#basicsSeparatorType |
|
198 |
'List of valid separators.' |
|
199 |
||
200 |
#basicsTranslateLabel |
|
603 | 201 |
'Turns on/off translation behavior of the label via class resource file.' |
577 | 202 |
|
203 |
#detailsAccelerator |
|
204 |
'Key to be pressed to select the menu item from the keyboard (accelerator key).' |
|
205 |
||
206 |
#detailsAccessCharaterPosition |
|
207 |
'Index of the access character position of the textual label (optional).' |
|
208 |
||
209 |
#detailsEnabled |
|
613 | 210 |
'A boolean value holder providing en- or disabling of the menu item.' |
577 | 211 |
|
212 |
#detailsVisibility |
|
213 |
'A boolean value holder providing visibility of the menu item.' |
|
214 |
||
548 | 215 |
#fileLoad |
612 | 216 |
'Opens a dialog for selecting and loading a menu spec from a class.' |
548 | 217 |
|
218 |
#fileNew |
|
219 |
'Creates a new menu spec.' |
|
220 |
||
577 | 221 |
#filePickAMenu |
222 |
'Changes the cursor for moving it over another menu view to load its menu spec.' |
|
223 |
||
548 | 224 |
#fileSave |
225 |
'Saves current menu spec and if modified the help spec.' |
|
455 | 226 |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
227 |
#fileSaveAs |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
228 |
'Opens a dialog to save current menu spec and if modified the help spec.' |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
229 |
|
577 | 230 |
#imageImageAndLabel |
603 | 231 |
'Turns on/off displaying both image and textual label.' |
577 | 232 |
|
233 |
#imageImageEditor |
|
234 |
'Opens an Image Editor on retriever and selector.' |
|
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 |
|
242 |
) |
|
243 |
! ! |
|
244 |
||
199 | 245 |
!MenuEditor class methodsFor:'interface specs'! |
246 |
||
247 |
basicsItemSpec |
|
248 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
249 |
||
250 |
"do not manually edit this - the painter/builder may not be able to |
|
251 |
handle the specification if its corrupted." |
|
252 |
||
253 |
" |
|
254 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsItemSpec |
|
255 |
MenuEditor new openInterface:#basicsItemSpec |
|
256 |
" |
|
257 |
||
258 |
<resource: #canvas> |
|
259 |
||
260 |
^ |
|
261 |
||
262 |
#(#FullSpec |
|
703 | 263 |
#window: |
199 | 264 |
#(#WindowSpec |
703 | 265 |
#name: 'unnamed canvas' |
716 | 266 |
#layout: #(#LayoutFrame 72 0 301 0 338 0 619 0) |
703 | 267 |
#label: 'unnamed canvas' |
268 |
#min: #(#Point 10 10) |
|
269 |
#max: #(#Point 1160 870) |
|
716 | 270 |
#bounds: #(#Rectangle 72 301 339 620) |
703 | 271 |
#usePreferredExtent: false |
199 | 272 |
) |
703 | 273 |
#component: |
199 | 274 |
#(#SpecCollection |
703 | 275 |
#collection: |
199 | 276 |
#( |
277 |
#(#LabelSpec |
|
703 | 278 |
#name: 'nameKeyLabel' |
279 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
280 |
#label: 'Name Key:' |
|
281 |
#adjust: #right |
|
282 |
#resizeForLabel: true |
|
199 | 283 |
) |
284 |
#(#InputFieldSpec |
|
703 | 285 |
#name: 'nameKeyField' |
286 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
287 |
#tabable: true |
|
288 |
#model: #nameKey |
|
289 |
#type: #symbolOrNil |
|
290 |
#acceptOnReturn: false |
|
291 |
#acceptOnTab: false |
|
199 | 292 |
) |
293 |
#(#LabelSpec |
|
703 | 294 |
#name: 'labelLabel' |
295 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
296 |
#label: 'Label:' |
|
297 |
#adjust: #right |
|
298 |
#resizeForLabel: true |
|
199 | 299 |
) |
300 |
#(#InputFieldSpec |
|
703 | 301 |
#name: 'labelField' |
302 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
303 |
#activeHelpKey: #basicsLabel |
|
304 |
#tabable: true |
|
305 |
#model: #label |
|
306 |
#acceptOnReturn: false |
|
307 |
#acceptOnTab: false |
|
199 | 308 |
) |
309 |
#(#LabelSpec |
|
703 | 310 |
#name: 'valueLabel' |
311 |
#layout: #(#AlignmentOrigin 107 0 90 0 1 0.5) |
|
312 |
#label: 'Action:' |
|
313 |
#adjust: #right |
|
314 |
#resizeForLabel: true |
|
199 | 315 |
) |
316 |
#(#InputFieldSpec |
|
703 | 317 |
#name: 'valueField' |
318 |
#layout: #(#LayoutFrame 110 0 79 0 -5 1.0 101 0) |
|
319 |
#activeHelpKey: #basicsAction |
|
320 |
#tabable: true |
|
321 |
#model: #value |
|
322 |
#type: #symbolOrNil |
|
323 |
#acceptOnReturn: false |
|
324 |
#acceptOnTab: false |
|
199 | 325 |
) |
326 |
#(#LabelSpec |
|
703 | 327 |
#name: 'argumentLabel' |
328 |
#layout: #(#AlignmentOrigin 107 0 115 0 1 0.5) |
|
329 |
#label: 'Argument:' |
|
330 |
#adjust: #right |
|
331 |
#resizeForLabel: true |
|
290 | 332 |
) |
333 |
#(#InputFieldSpec |
|
703 | 334 |
#name: 'argumentField' |
335 |
#layout: #(#LayoutFrame 110 0 104 0 -5 1.0 126 0) |
|
336 |
#activeHelpKey: #basicsArgument |
|
337 |
#tabable: true |
|
338 |
#model: #argument |
|
339 |
#type: #string |
|
340 |
#acceptOnReturn: false |
|
341 |
#acceptOnTab: false |
|
290 | 342 |
) |
371 | 343 |
#(#LabelSpec |
703 | 344 |
#name: 'indicationLabel' |
345 |
#layout: #(#AlignmentOrigin 107 0 155 0 1 0.5) |
|
346 |
#label: 'Indication:' |
|
347 |
#adjust: #right |
|
348 |
#resizeForLabel: true |
|
371 | 349 |
) |
350 |
#(#InputFieldSpec |
|
703 | 351 |
#name: 'indicationField' |
352 |
#layout: #(#LayoutFrame 110 0 144 0 -5 1.0 166 0) |
|
353 |
#activeHelpKey: #basicsIndication |
|
354 |
#tabable: true |
|
355 |
#model: #indication |
|
356 |
#type: #symbolOrNil |
|
357 |
#acceptOnReturn: false |
|
358 |
#acceptOnTab: false |
|
371 | 359 |
) |
398 | 360 |
#(#CheckBoxSpec |
703 | 361 |
#name: 'translateLabelCheckBox' |
362 |
#layout: #(#Point 20 192) |
|
363 |
#activeHelpKey: #basicsTranslateLabel |
|
364 |
#tabable: true |
|
365 |
#model: #translateLabel |
|
366 |
#label: 'Translate Label' |
|
398 | 367 |
) |
368 |
#(#CheckBoxSpec |
|
703 | 369 |
#name: 'isButtonCheckBox' |
370 |
#layout: #(#Point 20 221) |
|
371 |
#activeHelpKey: #basicsIsButton |
|
372 |
#tabable: true |
|
373 |
#model: #isButton |
|
374 |
#label: 'Is Button' |
|
398 | 375 |
) |
199 | 376 |
) |
377 |
) |
|
378 |
) |
|
379 |
! |
|
380 |
||
218 | 381 |
basicsLinkSpec |
382 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
383 |
||
384 |
"do not manually edit this - the painter/builder may not be able to |
|
385 |
handle the specification if its corrupted." |
|
386 |
||
387 |
" |
|
388 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsLinkSpec |
|
389 |
MenuEditor new openInterface:#basicsLinkSpec |
|
390 |
" |
|
391 |
||
392 |
<resource: #canvas> |
|
393 |
||
394 |
^ |
|
395 |
||
396 |
#(#FullSpec |
|
703 | 397 |
#window: |
218 | 398 |
#(#WindowSpec |
703 | 399 |
#name: 'unnamed canvas' |
400 |
#layout: #(#LayoutFrame 478 0 279 0 744 0 597 0) |
|
401 |
#label: 'unnamed canvas' |
|
402 |
#min: #(#Point 10 10) |
|
403 |
#max: #(#Point 1280 1024) |
|
404 |
#bounds: #(#Rectangle 478 279 745 598) |
|
405 |
#usePreferredExtent: false |
|
218 | 406 |
) |
703 | 407 |
#component: |
218 | 408 |
#(#SpecCollection |
703 | 409 |
#collection: |
218 | 410 |
#( |
411 |
#(#LabelSpec |
|
703 | 412 |
#name: 'nameKeyLabel' |
413 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
414 |
#activeHelpKey: #nameKey |
|
415 |
#label: 'Name Key:' |
|
416 |
#adjust: #right |
|
417 |
#resizeForLabel: true |
|
218 | 418 |
) |
419 |
#(#InputFieldSpec |
|
703 | 420 |
#name: 'nameKeyField' |
421 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
422 |
#activeHelpKey: #basicsNameKey |
|
423 |
#tabable: true |
|
424 |
#model: #nameKey |
|
425 |
#type: #symbolOrNil |
|
426 |
#acceptOnReturn: false |
|
427 |
#acceptOnTab: false |
|
218 | 428 |
) |
429 |
#(#LabelSpec |
|
703 | 430 |
#name: 'labelLabel' |
431 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
432 |
#label: 'Label:' |
|
433 |
#resizeForLabel: true |
|
218 | 434 |
) |
435 |
#(#InputFieldSpec |
|
703 | 436 |
#name: 'labelField' |
437 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
438 |
#activeHelpKey: #basicsLabel |
|
439 |
#tabable: true |
|
440 |
#model: #label |
|
441 |
#acceptOnReturn: false |
|
442 |
#acceptOnTab: false |
|
218 | 443 |
) |
469 | 444 |
#(#LabelSpec |
703 | 445 |
#name: 'menuLabel' |
446 |
#layout: #(#AlignmentOrigin 107 0 76 0 1 0.5) |
|
447 |
#label: 'Menu:' |
|
448 |
#resizeForLabel: true |
|
469 | 449 |
) |
218 | 450 |
#(#InputFieldSpec |
703 | 451 |
#name: 'menuField' |
452 |
#layout: #(#LayoutFrame 110 0 65 0 -5 1.0 87 0) |
|
453 |
#activeHelpKey: #basicsMenu |
|
454 |
#tabable: true |
|
455 |
#model: #submenuChannel |
|
456 |
#type: #symbolOrNil |
|
457 |
#acceptOnReturn: false |
|
458 |
#acceptOnTab: false |
|
218 | 459 |
) |
460 |
#(#LabelSpec |
|
703 | 461 |
#name: 'ArgumentLabel' |
462 |
#layout: #(#AlignmentOrigin 107 0 100 0 1 0.5) |
|
463 |
#label: 'Argument:' |
|
464 |
#resizeForLabel: true |
|
218 | 465 |
) |
411 | 466 |
#(#InputFieldSpec |
703 | 467 |
#name: 'argumentField' |
468 |
#layout: #(#LayoutFrame 110 0 90 0 -5 1.0 112 0) |
|
469 |
#activeHelpKey: #basicsMenuArgument |
|
470 |
#tabable: true |
|
471 |
#model: #argument |
|
472 |
#acceptOnReturn: false |
|
473 |
#acceptOnTab: false |
|
411 | 474 |
) |
469 | 475 |
#(#CheckBoxSpec |
703 | 476 |
#name: 'translateLabelCheckBox' |
477 |
#layout: #(#Point 20 128) |
|
478 |
#activeHelpKey: #basicsTranslateLabel |
|
479 |
#tabable: true |
|
480 |
#model: #translateLabel |
|
481 |
#label: 'Translate Label' |
|
411 | 482 |
) |
218 | 483 |
) |
484 |
) |
|
485 |
) |
|
486 |
! |
|
487 |
||
199 | 488 |
basicsMenuSpec |
489 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
490 |
||
491 |
"do not manually edit this - the painter/builder may not be able to |
|
492 |
handle the specification if its corrupted." |
|
493 |
||
494 |
" |
|
495 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsMenuSpec |
|
496 |
MenuEditor new openInterface:#basicsMenuSpec |
|
497 |
" |
|
498 |
||
499 |
<resource: #canvas> |
|
500 |
||
501 |
^ |
|
502 |
||
503 |
#(#FullSpec |
|
703 | 504 |
#window: |
199 | 505 |
#(#WindowSpec |
703 | 506 |
#name: 'unnamed canvas' |
507 |
#layout: #(#LayoutFrame 484 0 274 0 750 0 592 0) |
|
508 |
#label: 'unnamed canvas' |
|
509 |
#min: #(#Point 10 10) |
|
510 |
#max: #(#Point 1280 1024) |
|
511 |
#bounds: #(#Rectangle 484 274 751 593) |
|
512 |
#usePreferredExtent: false |
|
199 | 513 |
) |
703 | 514 |
#component: |
199 | 515 |
#(#SpecCollection |
703 | 516 |
#collection: |
199 | 517 |
#( |
518 |
#(#LabelSpec |
|
703 | 519 |
#name: 'nameKeyLabel' |
520 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
521 |
#label: 'Name Key:' |
|
522 |
#adjust: #right |
|
523 |
#resizeForLabel: true |
|
199 | 524 |
) |
525 |
#(#InputFieldSpec |
|
703 | 526 |
#name: 'nameKeyField' |
527 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
528 |
#activeHelpKey: #basicsNameKey |
|
529 |
#tabable: true |
|
530 |
#model: #nameKey |
|
531 |
#type: #symbolOrNil |
|
532 |
#acceptOnReturn: false |
|
533 |
#acceptOnTab: false |
|
199 | 534 |
) |
535 |
#(#LabelSpec |
|
703 | 536 |
#name: 'labelLabel' |
537 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
538 |
#label: 'Label:' |
|
539 |
#adjust: #right |
|
540 |
#resizeForLabel: true |
|
199 | 541 |
) |
542 |
#(#InputFieldSpec |
|
703 | 543 |
#name: 'labelField' |
544 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
545 |
#activeHelpKey: #basicsLabel |
|
546 |
#tabable: true |
|
547 |
#model: #label |
|
548 |
#acceptOnReturn: false |
|
549 |
#acceptOnTab: false |
|
199 | 550 |
) |
398 | 551 |
#(#CheckBoxSpec |
703 | 552 |
#name: 'translateLabelCheckBox' |
553 |
#layout: #(#Point 20 100) |
|
554 |
#activeHelpKey: #basicsTranslateLabel |
|
555 |
#tabable: true |
|
556 |
#model: #translateLabel |
|
557 |
#label: 'Translate Label' |
|
398 | 558 |
) |
199 | 559 |
) |
560 |
) |
|
561 |
) |
|
562 |
! |
|
563 |
||
564 |
basicsRootSpec |
|
565 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
566 |
||
567 |
"do not manually edit this - the painter/builder may not be able to |
|
568 |
handle the specification if its corrupted." |
|
569 |
||
570 |
" |
|
571 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsRootSpec |
|
572 |
MenuEditor new openInterface:#basicsRootSpec |
|
573 |
" |
|
574 |
||
575 |
<resource: #canvas> |
|
576 |
||
577 |
^ |
|
578 |
||
579 |
#(#FullSpec |
|
703 | 580 |
#window: |
199 | 581 |
#(#WindowSpec |
703 | 582 |
#name: 'unnamed canvas' |
583 |
#layout: #(#LayoutFrame 448 0 290 0 714 0 608 0) |
|
584 |
#label: 'unnamed canvas' |
|
585 |
#min: #(#Point 10 10) |
|
586 |
#max: #(#Point 1280 1024) |
|
587 |
#bounds: #(#Rectangle 448 290 715 609) |
|
588 |
#usePreferredExtent: false |
|
199 | 589 |
) |
703 | 590 |
#component: |
199 | 591 |
#(#SpecCollection |
703 | 592 |
#collection: |
199 | 593 |
#( |
594 |
#(#LabelSpec |
|
703 | 595 |
#name: 'selectorLabel' |
596 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
597 |
#label: 'Selector:' |
|
598 |
#adjust: #right |
|
599 |
#resizeForLabel: true |
|
199 | 600 |
) |
601 |
#(#InputFieldSpec |
|
703 | 602 |
#name: 'selectorField' |
603 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
604 |
#activeHelpKey: #basicsSelector |
|
605 |
#tabable: true |
|
606 |
#model: #label |
|
607 |
#acceptOnReturn: false |
|
608 |
#acceptOnTab: false |
|
199 | 609 |
) |
610 |
) |
|
611 |
) |
|
612 |
) |
|
613 |
! |
|
614 |
||
218 | 615 |
basicsSeparatorSpec |
199 | 616 |
"this window spec was automatically generated by the ST/X UIPainter" |
617 |
||
618 |
"do not manually edit this - the painter/builder may not be able to |
|
619 |
handle the specification if its corrupted." |
|
620 |
||
621 |
" |
|
218 | 622 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsSeparatorSpec |
623 |
MenuEditor new openInterface:#basicsSeparatorSpec |
|
199 | 624 |
" |
625 |
||
626 |
<resource: #canvas> |
|
627 |
||
628 |
^ |
|
629 |
||
630 |
#(#FullSpec |
|
703 | 631 |
#window: |
199 | 632 |
#(#WindowSpec |
703 | 633 |
#name: 'unnamed canvas' |
634 |
#layout: #(#LayoutFrame 467 0 304 0 733 0 622 0) |
|
635 |
#label: 'unnamed canvas' |
|
636 |
#min: #(#Point 10 10) |
|
637 |
#max: #(#Point 1160 870) |
|
638 |
#bounds: #(#Rectangle 467 304 734 623) |
|
639 |
#usePreferredExtent: false |
|
199 | 640 |
) |
703 | 641 |
#component: |
199 | 642 |
#(#SpecCollection |
703 | 643 |
#collection: |
199 | 644 |
#( |
218 | 645 |
#(#LabelSpec |
703 | 646 |
#name: 'separatorLabel' |
647 |
#layout: #(#AlignmentOrigin 127 0 26 0 1 0.5) |
|
648 |
#label: 'Separator Type:' |
|
649 |
#adjust: #right |
|
650 |
#resizeForLabel: true |
|
218 | 651 |
) |
652 |
#(#ComboListSpec |
|
703 | 653 |
#name: 'seperatorList' |
654 |
#layout: #(#LayoutFrame 132 0 15 0 -5 1.0 37 0) |
|
655 |
#activeHelpKey: #basicsSeparatorType |
|
656 |
#tabable: true |
|
657 |
#model: #seperatorSelection |
|
658 |
#useIndex: true |
|
199 | 659 |
) |
606 | 660 |
#(#LabelSpec |
703 | 661 |
#name: 'visibilityLabel' |
662 |
#layout: #(#AlignmentOrigin 127 0 76 0 1 0.5) |
|
663 |
#label: 'Visibility:' |
|
664 |
#adjust: #right |
|
665 |
#resizeForLabel: true |
|
606 | 666 |
) |
667 |
#(#InputFieldSpec |
|
703 | 668 |
#name: 'isVisibleInputField' |
669 |
#layout: #(#LayoutFrame 132 0 65 0 -5 1.0 87 0) |
|
670 |
#activeHelpKey: #detailsVisibility |
|
671 |
#tabable: true |
|
672 |
#model: #isVisible |
|
673 |
#type: #symbolOrNil |
|
674 |
#acceptOnReturn: false |
|
675 |
#acceptOnTab: false |
|
606 | 676 |
) |
199 | 677 |
) |
678 |
) |
|
679 |
) |
|
680 |
! |
|
681 |
||
682 |
detailsEditSpec |
|
683 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
684 |
||
685 |
"do not manually edit this - the painter/builder may not be able to |
|
686 |
handle the specification if its corrupted." |
|
687 |
||
688 |
" |
|
689 |
UIPainter new openOnClass:MenuEditor andSelector:#detailsEditSpec |
|
690 |
MenuEditor new openInterface:#detailsEditSpec |
|
691 |
" |
|
692 |
||
693 |
<resource: #canvas> |
|
694 |
||
695 |
^ |
|
696 |
||
697 |
#(#FullSpec |
|
703 | 698 |
#window: |
199 | 699 |
#(#WindowSpec |
703 | 700 |
#name: 'unnamed canvas' |
701 |
#layout: #(#LayoutFrame 449 0 329 0 707 0 616 0) |
|
702 |
#label: 'unnamed canvas' |
|
703 |
#min: #(#Point 10 10) |
|
704 |
#max: #(#Point 1280 1024) |
|
705 |
#bounds: #(#Rectangle 449 329 708 617) |
|
706 |
#usePreferredExtent: false |
|
199 | 707 |
) |
703 | 708 |
#component: |
199 | 709 |
#(#SpecCollection |
703 | 710 |
#collection: |
199 | 711 |
#( |
712 |
#(#LabelSpec |
|
703 | 713 |
#name: 'shortcutKeyLabel' |
714 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
715 |
#label: 'Accelerator:' |
|
716 |
#adjust: #right |
|
717 |
#resizeForLabel: true |
|
371 | 718 |
) |
719 |
#(#InputFieldSpec |
|
703 | 720 |
#name: 'shortcutKeyField' |
721 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
722 |
#activeHelpKey: #detailsAccelerator |
|
723 |
#tabable: true |
|
724 |
#model: #shortcutKey |
|
725 |
#type: #symbolOrNil |
|
726 |
#acceptOnReturn: false |
|
727 |
#acceptOnTab: false |
|
371 | 728 |
) |
729 |
#(#LabelSpec |
|
703 | 730 |
#name: 'enabledLabel' |
731 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
732 |
#label: 'Enabled:' |
|
733 |
#adjust: #right |
|
734 |
#resizeForLabel: true |
|
199 | 735 |
) |
736 |
#(#InputFieldSpec |
|
703 | 737 |
#name: 'enabledField' |
738 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
739 |
#activeHelpKey: #detailsEnabled |
|
740 |
#tabable: true |
|
741 |
#model: #enabled |
|
742 |
#type: #symbolOrNil |
|
743 |
#acceptOnReturn: false |
|
744 |
#acceptOnTab: false |
|
199 | 745 |
) |
746 |
#(#LabelSpec |
|
703 | 747 |
#name: 'visibilityLabel' |
748 |
#layout: #(#AlignmentOrigin 107 0 76 0 1 0.5) |
|
749 |
#label: 'Visibility:' |
|
750 |
#adjust: #right |
|
751 |
#resizeForLabel: true |
|
199 | 752 |
) |
753 |
#(#InputFieldSpec |
|
703 | 754 |
#name: 'isVisibleInputField' |
755 |
#layout: #(#LayoutFrame 110 0 65 0 -5 1.0 87 0) |
|
756 |
#activeHelpKey: #detailsVisibility |
|
757 |
#tabable: true |
|
758 |
#model: #isVisible |
|
759 |
#type: #symbolOrNil |
|
760 |
#acceptOnReturn: false |
|
761 |
#acceptOnTab: false |
|
199 | 762 |
) |
532 | 763 |
#(#LabelSpec |
703 | 764 |
#name: 'StartGroupLabel' |
765 |
#layout: #(#AlignmentOrigin 107 0 111 0 1 0.5) |
|
766 |
#label: 'Start Group:' |
|
767 |
#adjust: #right |
|
768 |
#resizeForLabel: true |
|
532 | 769 |
) |
770 |
#(#PopUpListSpec |
|
703 | 771 |
#name: 'StartGroupPopUp' |
772 |
#layout: #(#LayoutFrame 110 0 100 0 -5 1.0 122 0) |
|
773 |
#label: 'PopUpList' |
|
774 |
#model: #startGroup |
|
775 |
#menu: |
|
532 | 776 |
#(nil |
777 |
#right |
|
778 |
) |
|
703 | 779 |
#useIndex: false |
532 | 780 |
) |
539 | 781 |
#(#LabelSpec |
703 | 782 |
#name: 'accessCharLabel' |
783 |
#layout: #(#AlignmentOrigin 217 0 142 0 1 0.5) |
|
784 |
#label: 'Access Character Position:' |
|
785 |
#adjust: #right |
|
786 |
#resizeForLabel: true |
|
539 | 787 |
) |
788 |
#(#InputFieldSpec |
|
703 | 789 |
#name: 'accessCharField' |
790 |
#layout: #(#LayoutFrame 220 0 131 0 -5 1.0 153 0) |
|
791 |
#activeHelpKey: #detailsAccessCharaterPosition |
|
792 |
#tabable: true |
|
793 |
#model: #accessCharacterPos |
|
794 |
#type: #numberOrNil |
|
795 |
#acceptOnReturn: false |
|
796 |
#acceptOnTab: false |
|
539 | 797 |
) |
199 | 798 |
) |
799 |
) |
|
800 |
) |
|
801 |
! |
|
802 |
||
398 | 803 |
imageEditSpec |
199 | 804 |
"this window spec was automatically generated by the ST/X UIPainter" |
805 |
||
806 |
"do not manually edit this - the painter/builder may not be able to |
|
807 |
handle the specification if its corrupted." |
|
808 |
||
809 |
" |
|
398 | 810 |
UIPainter new openOnClass:MenuEditor andSelector:#imageEditSpec |
811 |
MenuEditor new openInterface:#imageEditSpec |
|
199 | 812 |
" |
813 |
||
814 |
<resource: #canvas> |
|
815 |
||
816 |
^ |
|
703 | 817 |
|
199 | 818 |
#(#FullSpec |
703 | 819 |
#window: |
199 | 820 |
#(#WindowSpec |
703 | 821 |
#name: 'unnamed canvas' |
822 |
#layout: #(#LayoutFrame 462 0 313 0 706 0 454 0) |
|
823 |
#label: 'unnamed canvas' |
|
824 |
#min: #(#Point 10 10) |
|
825 |
#max: #(#Point 1280 1024) |
|
826 |
#bounds: #(#Rectangle 462 313 707 455) |
|
827 |
#usePreferredExtent: false |
|
199 | 828 |
) |
703 | 829 |
#component: |
199 | 830 |
#(#SpecCollection |
703 | 831 |
#collection: |
199 | 832 |
#( |
833 |
#(#LabelSpec |
|
703 | 834 |
#name: 'retrieverLabel' |
835 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
836 |
#label: 'Retriever:' |
|
837 |
#adjust: #right |
|
838 |
#resizeForLabel: true |
|
199 | 839 |
) |
840 |
#(#InputFieldSpec |
|
703 | 841 |
#name: 'retrieverField' |
842 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
843 |
#activeHelpKey: #imageRetriever |
|
844 |
#tabable: true |
|
845 |
#model: #retriever |
|
846 |
#type: #symbolOrNil |
|
847 |
#acceptOnReturn: false |
|
848 |
#acceptOnTab: false |
|
199 | 849 |
) |
850 |
#(#LabelSpec |
|
703 | 851 |
#name: 'iconLabel' |
852 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
853 |
#label: 'Selector:' |
|
854 |
#adjust: #right |
|
855 |
#resizeForLabel: true |
|
199 | 856 |
) |
857 |
#(#InputFieldSpec |
|
703 | 858 |
#name: 'iconField' |
859 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
860 |
#activeHelpKey: #imageSelector |
|
861 |
#tabable: true |
|
862 |
#model: #icon |
|
863 |
#type: #symbolOrNil |
|
864 |
#acceptOnReturn: false |
|
865 |
#acceptOnTab: false |
|
199 | 866 |
) |
469 | 867 |
#(#ActionButtonSpec |
703 | 868 |
#name: 'imageEditorButton' |
869 |
#layout: #(#LayoutFrame 110 0 66 0 -5 1 90 0) |
|
870 |
#activeHelpKey: #imageImageEditor |
|
871 |
#label: 'Image Editor' |
|
872 |
#tabable: true |
|
873 |
#model: #doEditImage |
|
469 | 874 |
) |
199 | 875 |
#(#CheckBoxSpec |
703 | 876 |
#name: 'iconAndLabel' |
877 |
#layout: #(#LayoutOrigin 20 0 104 0) |
|
878 |
#activeHelpKey: #imageImageAndLabel |
|
879 |
#tabable: true |
|
880 |
#model: #iconAndLabel |
|
881 |
#label: 'Image & Label' |
|
199 | 882 |
) |
883 |
) |
|
884 |
) |
|
885 |
) |
|
525 | 886 |
! |
887 |
||
888 |
windowSpec |
|
889 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
890 |
||
891 |
"do not manually edit this - the painter/builder may not be able to |
|
892 |
handle the specification if its corrupted." |
|
893 |
||
894 |
" |
|
895 |
UIPainter new openOnClass:MenuEditor andSelector:#windowSpec |
|
896 |
MenuEditor new openInterface:#windowSpec |
|
897 |
" |
|
898 |
"MenuEditor open" |
|
899 |
||
900 |
<resource: #canvas> |
|
901 |
||
902 |
^ |
|
903 |
||
904 |
#(#FullSpec |
|
703 | 905 |
#window: |
525 | 906 |
#(#WindowSpec |
703 | 907 |
#name: 'Menu Builder' |
908 |
#layout: #(#LayoutFrame 75 0 372 0 654 0 755 0) |
|
909 |
#label: 'Menu Builder' |
|
910 |
#min: #(#Point 10 10) |
|
911 |
#max: #(#Point 1152 900) |
|
912 |
#bounds: #(#Rectangle 75 372 655 756) |
|
913 |
#menu: #menu |
|
914 |
#usePreferredExtent: false |
|
525 | 915 |
) |
703 | 916 |
#component: |
525 | 917 |
#(#SpecCollection |
703 | 918 |
#collection: |
525 | 919 |
#( |
920 |
#(#MenuPanelSpec |
|
703 | 921 |
#name: 'menuToolbarView' |
922 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
|
923 |
#menu: #menuToolbar |
|
924 |
#showSeparatingLines: true |
|
525 | 925 |
) |
926 |
#(#VariableHorizontalPanelSpec |
|
703 | 927 |
#name: 'variableHorizontalPanel1' |
928 |
#layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0) |
|
929 |
#component: |
|
525 | 930 |
#(#SpecCollection |
703 | 931 |
#collection: |
525 | 932 |
#( |
933 |
#(#ArbitraryComponentSpec |
|
703 | 934 |
#name: 'painterView' |
935 |
#menu: #menuEdit |
|
936 |
#hasHorizontalScrollBar: true |
|
937 |
#hasVerticalScrollBar: true |
|
938 |
#component: #treeView |
|
939 |
#hasBorder: false |
|
525 | 940 |
) |
941 |
#(#ViewSpec |
|
703 | 942 |
#name: 'view1' |
943 |
#component: |
|
525 | 944 |
#(#SpecCollection |
703 | 945 |
#collection: |
525 | 946 |
#( |
947 |
#(#NoteBookViewSpec |
|
703 | 948 |
#name: 'specificationView' |
949 |
#layout: #(#LayoutFrame 1 0.0 0 0.0 1 1.0 -26 1.0) |
|
950 |
#tabable: true |
|
951 |
#model: #tabModel |
|
952 |
#menu: #tabList |
|
953 |
#useIndex: true |
|
954 |
#canvas: #noteBookView |
|
525 | 955 |
) |
956 |
#(#UISubSpecification |
|
703 | 957 |
#name: 'SubSpecification' |
958 |
#layout: #(#LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0) |
|
959 |
#majorKey: #ToolApplicationModel |
|
960 |
#minorKey: #windowSpecForCommit |
|
525 | 961 |
) |
962 |
) |
|
963 |
) |
|
703 | 964 |
#level: -1 |
525 | 965 |
) |
966 |
) |
|
967 |
) |
|
703 | 968 |
#handles: #(#Any 0.384483 1.0) |
525 | 969 |
) |
970 |
#(#UISubSpecification |
|
703 | 971 |
#name: 'infoBarSubSpec' |
972 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
973 |
#majorKey: #ToolApplicationModel |
|
974 |
#minorKey: #windowSpecForInfoBar |
|
525 | 975 |
) |
976 |
) |
|
977 |
) |
|
978 |
) |
|
979 |
! ! |
|
980 |
||
981 |
!MenuEditor class methodsFor:'menu specs'! |
|
982 |
||
983 |
menu |
|
984 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
985 |
||
986 |
"do not manually edit this - the builder may not be able to |
|
987 |
handle the specification if its corrupted." |
|
988 |
||
989 |
" |
|
990 |
MenuEditor new openOnClass:MenuEditor andSelector:#menu |
|
991 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menu)) startUp |
|
992 |
" |
|
993 |
||
994 |
<resource: #menu> |
|
995 |
||
996 |
^ |
|
997 |
||
998 |
#(#Menu |
|
999 |
||
1000 |
#( |
|
1001 |
#(#MenuItem |
|
686 | 1002 |
#label: 'About' |
1003 |
#activeHelpKey: #about |
|
1004 |
#accessCharacterPosition: 1 |
|
1005 |
#labelImage: #(#ResourceRetriever nil #menuIcon) |
|
1006 |
#submenuChannel: #menuAbout |
|
525 | 1007 |
) |
1008 |
#(#MenuItem |
|
686 | 1009 |
#label: 'File' |
1010 |
#translateLabel: true |
|
1011 |
#activeHelpKey: #file |
|
1012 |
#submenu: |
|
525 | 1013 |
#(#Menu |
1014 |
||
1015 |
#( |
|
1016 |
#(#MenuItem |
|
686 | 1017 |
#label: 'New' |
1018 |
#value: #doNew |
|
1019 |
#activeHelpKey: #fileNew |
|
525 | 1020 |
) |
1021 |
#(#MenuItem |
|
686 | 1022 |
#label: '-' |
525 | 1023 |
) |
1024 |
#(#MenuItem |
|
686 | 1025 |
#label: 'Load...' |
1026 |
#translateLabel: true |
|
1027 |
#value: #doLoad |
|
1028 |
#activeHelpKey: #fileLoad |
|
1029 |
#enabled: #isStandAlone |
|
525 | 1030 |
) |
1031 |
#(#MenuItem |
|
686 | 1032 |
#label: '-' |
525 | 1033 |
) |
1034 |
#(#MenuItem |
|
686 | 1035 |
#label: 'Save' |
1036 |
#value: #doSave |
|
1037 |
#activeHelpKey: #fileSave |
|
525 | 1038 |
) |
1039 |
#(#MenuItem |
|
686 | 1040 |
#label: 'Save As...' |
1041 |
#value: #doSaveAs |
|
1042 |
#activeHelpKey: #fileSaveAs |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1043 |
) |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
1044 |
#(#MenuItem |
686 | 1045 |
#label: '-' |
525 | 1046 |
) |
1047 |
#(#MenuItem |
|
686 | 1048 |
#label: 'Pick A Menu...' |
1049 |
#value: #doPickAMenu |
|
1050 |
#activeHelpKey: #filePickAMenu |
|
1051 |
#enabled: #isStandAlone |
|
525 | 1052 |
) |
1053 |
#(#MenuItem |
|
686 | 1054 |
#label: '-' |
525 | 1055 |
) |
1056 |
#(#MenuItem |
|
686 | 1057 |
#label: 'Browse Class' |
1058 |
#value: #doBrowseClass |
|
1059 |
#activeHelpKey: #fileBrowseClass |
|
525 | 1060 |
) |
1061 |
#(#MenuItem |
|
686 | 1062 |
#label: '-' |
525 | 1063 |
) |
1064 |
#(#MenuItem |
|
686 | 1065 |
#label: 'Exit' |
1066 |
#translateLabel: true |
|
1067 |
#value: #closeRequest |
|
1068 |
#activeHelpKey: #fileExit |
|
525 | 1069 |
) |
1070 |
) nil |
|
1071 |
nil |
|
1072 |
) |
|
1073 |
) |
|
1074 |
#(#MenuItem |
|
686 | 1075 |
#label: 'Edit' |
1076 |
#activeHelpKey: #edit |
|
1077 |
#submenuChannel: #menuEdit |
|
525 | 1078 |
) |
1079 |
#(#MenuItem |
|
686 | 1080 |
#label: 'Add' |
1081 |
#activeHelpKey: #add |
|
1082 |
#submenuChannel: #menuAdd |
|
525 | 1083 |
) |
1084 |
#(#MenuItem |
|
686 | 1085 |
#label: 'Test' |
1086 |
#activeHelpKey: #test |
|
1087 |
#submenuChannel: #submenuTest |
|
525 | 1088 |
) |
1089 |
#(#MenuItem |
|
686 | 1090 |
#label: 'History' |
1091 |
#activeHelpKey: #history |
|
1092 |
#submenuChannel: #menuHistory |
|
525 | 1093 |
) |
1094 |
#(#MenuItem |
|
686 | 1095 |
#label: 'Help' |
1096 |
#startGroup: #right |
|
1097 |
#activeHelpKey: #help |
|
1098 |
#submenuChannel: #menuHelp |
|
525 | 1099 |
) |
1100 |
) nil |
|
1101 |
nil |
|
1102 |
) |
|
1103 |
! |
|
1104 |
||
1105 |
menuAdd |
|
1106 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
1107 |
||
1108 |
"do not manually edit this - the builder may not be able to |
|
1109 |
handle the specification if its corrupted." |
|
1110 |
||
1111 |
" |
|
1112 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuAdd |
|
1113 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuAdd)) startUp |
|
1114 |
" |
|
1115 |
||
1116 |
<resource: #menu> |
|
1117 |
||
1118 |
^ |
|
1119 |
||
1120 |
#(#Menu |
|
1121 |
||
1122 |
#( |
|
1123 |
#(#MenuItem |
|
703 | 1124 |
#label: 'Menu Item' |
1125 |
#value: #doCreateItem |
|
1126 |
#activeHelpKey: #addMenuItem |
|
1127 |
#labelImage: #(#ResourceRetriever #MenuEditor #menuItemImage 'Menu Item') |
|
525 | 1128 |
) |
1129 |
#(#MenuItem |
|
703 | 1130 |
#label: 'Menu Separator' |
1131 |
#value: #doCreateSep |
|
1132 |
#activeHelpKey: #addMenuSeparator |
|
1133 |
#labelImage: #(#ResourceRetriever #MenuEditor #menuSeparatorImage 'Menu Separator') |
|
525 | 1134 |
) |
1135 |
#(#MenuItem |
|
703 | 1136 |
#label: '-' |
525 | 1137 |
) |
1138 |
#(#MenuItem |
|
703 | 1139 |
#label: 'Submenu' |
1140 |
#value: #doCreateMenu |
|
1141 |
#activeHelpKey: #addSubMenu |
|
1142 |
#labelImage: #(#ResourceRetriever #MenuEditor #submenuImage 'Submenu') |
|
525 | 1143 |
) |
1144 |
#(#MenuItem |
|
703 | 1145 |
#label: 'Submenu Link' |
1146 |
#value: #doCreateLink |
|
1147 |
#activeHelpKey: #addSubMenuLink |
|
1148 |
#labelImage: #(#ResourceRetriever #MenuEditor #linkSubmenuImage 'Submenu Link') |
|
525 | 1149 |
) |
1150 |
) nil |
|
1151 |
nil |
|
1152 |
) |
|
1153 |
! |
|
1154 |
||
1155 |
menuDefaultLink |
|
1156 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
1157 |
||
1158 |
"do not manually edit this - the builder may not be able to |
|
1159 |
handle the specification if its corrupted." |
|
1160 |
||
1161 |
" |
|
1162 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuDefaultLink |
|
1163 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuDefaultLink)) startUp |
|
1164 |
" |
|
1165 |
||
1166 |
<resource: #menu> |
|
1167 |
||
1168 |
^ |
|
1169 |
||
1170 |
#(#Menu |
|
1171 |
||
1172 |
#( |
|
1173 |
#(#MenuItem |
|
1174 |
#'label:' '!! derives from application !!' |
|
1175 |
) |
|
1176 |
) nil |
|
1177 |
nil |
|
1178 |
) |
|
1179 |
! |
|
1180 |
||
1181 |
menuEdit |
|
1182 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
1183 |
||
1184 |
"do not manually edit this - the builder may not be able to |
|
1185 |
handle the specification if its corrupted." |
|
1186 |
||
1187 |
" |
|
1188 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuEdit |
|
1189 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuEdit)) startUp |
|
1190 |
" |
|
1191 |
||
1192 |
<resource: #menu> |
|
1193 |
||
1194 |
^ |
|
1195 |
||
1196 |
#(#Menu |
|
1197 |
||
1198 |
#( |
|
1199 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1200 |
#label: 'Cut' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1201 |
#value: #doCut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1202 |
#activeHelpKey: #editCut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1203 |
#enabled: #hasValidSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1204 |
#shortcutKeyCharacter: #Cut |
525 | 1205 |
) |
1206 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1207 |
#label: 'Copy' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1208 |
#value: #doCopy |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1209 |
#activeHelpKey: #editCopy |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1210 |
#enabled: #hasValidSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1211 |
#shortcutKeyCharacter: #Copy |
525 | 1212 |
) |
1213 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1214 |
#label: 'Paste' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1215 |
#value: #doPaste |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1216 |
#activeHelpKey: #editPaste |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1217 |
#enabled: #hasAnySingleSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1218 |
#shortcutKeyCharacter: #Paste |
525 | 1219 |
) |
1220 |
#(#MenuItem |
|
686 | 1221 |
#label: 'Delete' |
1222 |
#value: #doDelete |
|
1223 |
#activeHelpKey: #editDelete |
|
1224 |
#enabled: #hasValidSelection |
|
1225 |
#shortcutKeyCharacter: #Delete |
|
1226 |
) |
|
1227 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1228 |
#label: '-' |
525 | 1229 |
) |
1230 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1231 |
#label: 'Move Up' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1232 |
#value: #doStepUp |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1233 |
#activeHelpKey: #editMoveUp |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1234 |
#enabled: #valueOfEnableMovingUpOrDown |
525 | 1235 |
) |
1236 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1237 |
#label: 'Move Down' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1238 |
#value: #doStepDown |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1239 |
#activeHelpKey: #editMoveDown |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1240 |
#enabled: #valueOfEnableMovingUpOrDown |
525 | 1241 |
) |
1242 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1243 |
#label: 'Move In' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1244 |
#value: #doStepIn |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1245 |
#activeHelpKey: #editMoveIn |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1246 |
#enabled: #valueOfEnableMovingIn |
525 | 1247 |
) |
1248 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1249 |
#label: 'Move Out' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1250 |
#value: #doStepOut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1251 |
#activeHelpKey: #editMoveOut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1252 |
#enabled: #valueOfEnableMovingOut |
525 | 1253 |
) |
1254 |
) nil |
|
1255 |
nil |
|
1256 |
) |
|
1257 |
! |
|
1258 |
||
1259 |
menuToolbar |
|
1260 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
1261 |
||
1262 |
"do not manually edit this - the builder may not be able to |
|
1263 |
handle the specification if its corrupted." |
|
1264 |
||
1265 |
" |
|
1266 |
MenuEditor new openOnClass:MenuEditor andSelector:#menuToolbar |
|
1267 |
(Menu new fromLiteralArrayEncoding:(MenuEditor menuToolbar)) startUp |
|
1268 |
" |
|
1269 |
||
1270 |
<resource: #menu> |
|
1271 |
||
1272 |
^ |
|
1273 |
||
1274 |
#(#Menu |
|
1275 |
||
1276 |
#( |
|
1277 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1278 |
#label: 'New' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1279 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1280 |
#value: #doNew |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1281 |
#activeHelpKey: #fileNew |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1282 |
#labelImage: #(#ResourceRetriever nil #newIcon) |
525 | 1283 |
) |
1284 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1285 |
#label: 'Load' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1286 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1287 |
#value: #doLoad |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1288 |
#activeHelpKey: #fileLoad |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1289 |
#labelImage: #(#ResourceRetriever nil #loadIcon) |
525 | 1290 |
) |
1291 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1292 |
#label: 'Save' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1293 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1294 |
#value: #doSave |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1295 |
#activeHelpKey: #fileSave |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1296 |
#labelImage: #(#ResourceRetriever nil #saveIcon) |
525 | 1297 |
) |
1298 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1299 |
#label: '' |
525 | 1300 |
) |
1301 |
#(#MenuItem |
|
686 | 1302 |
#label: 'Cut' |
1303 |
#isButton: true |
|
1304 |
#value: #doCut |
|
1305 |
#activeHelpKey: #editCut |
|
1306 |
#enabled: #hasValidSelection |
|
1307 |
#labelImage: #(#ResourceRetriever nil #cutIcon) |
|
1308 |
) |
|
1309 |
#(#MenuItem |
|
1310 |
#label: 'Copy' |
|
1311 |
#isButton: true |
|
1312 |
#value: #doCopy |
|
1313 |
#activeHelpKey: #editCopy |
|
1314 |
#enabled: #hasValidSelection |
|
1315 |
#labelImage: #(#ResourceRetriever nil #copyIcon) |
|
1316 |
) |
|
1317 |
#(#MenuItem |
|
1318 |
#label: 'Paste' |
|
1319 |
#isButton: true |
|
1320 |
#value: #doPaste |
|
1321 |
#activeHelpKey: #editPaste |
|
1322 |
#enabled: #hasAnySingleSelection |
|
1323 |
#labelImage: #(#ResourceRetriever nil #pasteIcon) |
|
1324 |
) |
|
1325 |
#(#MenuItem |
|
1326 |
#label: 'Delete' |
|
1327 |
#isButton: true |
|
1328 |
#value: #doDelete |
|
1329 |
#activeHelpKey: #editDelete |
|
1330 |
#enabled: #hasValidSelection |
|
1331 |
#labelImage: #(#ResourceRetriever nil #deleteIcon) |
|
1332 |
) |
|
1333 |
#(#MenuItem |
|
1334 |
#label: '' |
|
1335 |
) |
|
1336 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1337 |
#label: 'Add Item' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1338 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1339 |
#value: #doCreateItem |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1340 |
#activeHelpKey: #addMenuItem |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1341 |
#enabled: #hasAnySingleSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1342 |
#labelImage: #(#ResourceRetriever nil #menuItemImage) |
525 | 1343 |
) |
1344 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1345 |
#label: 'Add Separator' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1346 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1347 |
#value: #doCreateSep |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1348 |
#activeHelpKey: #addMenuSeparator |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1349 |
#enabled: #hasAnySingleSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1350 |
#labelImage: #(#ResourceRetriever nil #menuSeparatorImage) |
525 | 1351 |
) |
1352 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1353 |
#label: 'Add Submenu' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1354 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1355 |
#value: #doCreateMenu |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1356 |
#activeHelpKey: #addSubMenu |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1357 |
#enabled: #hasAnySingleSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1358 |
#labelImage: #(#ResourceRetriever nil #submenuImage) |
525 | 1359 |
) |
1360 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1361 |
#label: 'Add Linked Submenu' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1362 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1363 |
#value: #doCreateLink |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1364 |
#activeHelpKey: #addSubMenuLink |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1365 |
#enabled: #hasAnySingleSelection |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1366 |
#labelImage: #(#ResourceRetriever nil #linkSubmenuImage) |
525 | 1367 |
) |
1368 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1369 |
#label: '' |
525 | 1370 |
) |
1371 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1372 |
#label: 'Move Up' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1373 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1374 |
#value: #doStepUp |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1375 |
#activeHelpKey: #editMoveUp |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1376 |
#enabled: #valueOfEnableMovingUpOrDown |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1377 |
#labelImage: #(#ResourceRetriever nil #upIcon) |
525 | 1378 |
) |
1379 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1380 |
#label: 'Move Down' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1381 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1382 |
#value: #doStepDown |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1383 |
#activeHelpKey: #editMoveDown |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1384 |
#enabled: #valueOfEnableMovingUpOrDown |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1385 |
#labelImage: #(#ResourceRetriever nil #downIcon) |
525 | 1386 |
) |
1387 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1388 |
#label: 'Move In' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1389 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1390 |
#value: #doStepIn |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1391 |
#activeHelpKey: #editMoveIn |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1392 |
#enabled: #valueOfEnableMovingIn |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1393 |
#labelImage: #(#ResourceRetriever nil #downRightIcon) |
525 | 1394 |
) |
1395 |
#(#MenuItem |
|
669
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1396 |
#label: 'Move Out' |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1397 |
#isButton: true |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1398 |
#value: #doStepOut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1399 |
#activeHelpKey: #editMoveOut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1400 |
#enabled: #valueOfEnableMovingOut |
1f5b2d936bcf
disable move down/up buttons while selecting multiple items
tz
parents:
667
diff
changeset
|
1401 |
#labelImage: #(#ResourceRetriever nil #leftDownIcon) |
525 | 1402 |
) |
1403 |
) nil |
|
1404 |
nil |
|
1405 |
) |
|
1406 |
! ! |
|
1407 |
||
1408 |
!MenuEditor class methodsFor:'resources'! |
|
1409 |
||
1410 |
linkSubmenuImage |
|
1411 |
"Generated by the Image Editor" |
|
1412 |
" |
|
1413 |
ImageEditor openOnClass:self andSelector:#linkSubmenuImage |
|
1414 |
" |
|
1415 |
||
1416 |
<resource: #image> |
|
1417 |
||
1418 |
^Icon |
|
1419 |
constantNamed:#'MenuEditor linkSubmenuImage' |
|
686 | 1420 |
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]! |
525 | 1421 |
|
1422 |
menuItemImage |
|
1423 |
"Generated by the Image Editor" |
|
1424 |
" |
|
1425 |
ImageEditor openOnClass:self andSelector:#menuItemImage |
|
1426 |
" |
|
1427 |
||
1428 |
<resource: #image> |
|
1429 |
||
1430 |
^Icon |
|
1431 |
constantNamed:#'MenuEditor menuItemImage' |
|
686 | 1432 |
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]! |
525 | 1433 |
|
1434 |
menuSeparatorImage |
|
1435 |
"Generated by the Image Editor" |
|
1436 |
" |
|
1437 |
ImageEditor openOnClass:self andSelector:#menuSeparatorImage |
|
1438 |
" |
|
1439 |
||
1440 |
<resource: #image> |
|
1441 |
||
1442 |
^Icon |
|
1443 |
constantNamed:#'MenuEditor menuSeparatorImage' |
|
686 | 1444 |
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]! |
525 | 1445 |
|
1446 |
submenuImage |
|
1447 |
"Generated by the Image Editor" |
|
1448 |
" |
|
1449 |
ImageEditor openOnClass:self andSelector:#submenuImage |
|
1450 |
" |
|
1451 |
||
1452 |
<resource: #image> |
|
1453 |
||
1454 |
^Icon |
|
1455 |
constantNamed:#'MenuEditor submenuImage' |
|
686 | 1456 |
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]! ! |
525 | 1457 |
|
1458 |
!MenuEditor class methodsFor:'slices'! |
|
1459 |
||
1460 |
slicesItem |
|
1461 |
^#( |
|
1462 |
(Basics basicsItemSpec) |
|
1463 |
(Details detailsEditSpec) |
|
1464 |
(Image imageEditSpec) |
|
1465 |
) |
|
1466 |
||
1467 |
! |
|
1468 |
||
1469 |
s |