author | ca |
Mon, 22 Jul 2002 09:55:56 +0200 | |
changeset 1575 | a933d590818c |
parent 1571 | a4f1d7825ae8 |
child 1586 | 613c56ad49d9 |
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 |
||
1372 | 15 |
"{ Package: 'stx:libtool2' }" |
16 |
||
738 | 17 |
ResourceSpecEditor subclass:#MenuEditor |
1244 | 18 |
instanceVariableNames:'treeView typeOfCanvas listOfCanvas listOfSlices |
19 |
lastImageRetriever slices' |
|
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
20 |
classVariableNames:'ImageRetrieverClasses' |
220 | 21 |
poolDictionaries:'' |
22 |
category:'Interface-UIPainter' |
|
199 | 23 |
! |
24 |
||
25 |
Object subclass:#Item |
|
220 | 26 |
instanceVariableNames:'activeHelpKey enabled label value nameKey indication shortcutKey |
407 | 27 |
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
|
28 |
startGroup argument translateLabel isButton isVisible choice |
1564
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
29 |
choiceValue auxValue hideMenuOnActivated font horizontalLayout |
1410 | 30 |
showBusyCursorWhilePerforming keepLinkedMenu triggerOnDown' |
1407 | 31 |
classVariableNames:'' |
32 |
poolDictionaries:'' |
|
33 |
privateIn:MenuEditor |
|
34 |
! |
|
35 |
||
1454 | 36 |
SelectionInTreeView subclass:#TreeView |
37 |
instanceVariableNames:'' |
|
38 |
classVariableNames:'' |
|
39 |
poolDictionaries:'' |
|
40 |
privateIn:MenuEditor |
|
41 |
! |
|
42 |
||
199 | 43 |
!MenuEditor class methodsFor:'documentation'! |
44 |
||
45 |
copyright |
|
46 |
" |
|
738 | 47 |
COPYRIGHT (c) 1997 by eXept Software AG |
199 | 48 |
All Rights Reserved |
49 |
||
50 |
This software is furnished under a license and may be used |
|
51 |
only in accordance with the terms of that license and with the |
|
738 | 52 |
inclusion of the above copyright notice. This software may not |
199 | 53 |
be provided or otherwise made available to, or used by, any |
54 |
other person. No title to or ownership of the software is |
|
55 |
hereby transferred. |
|
56 |
" |
|
57 |
||
58 |
||
59 |
! |
|
60 |
||
61 |
documentation |
|
62 |
" |
|
728 | 63 |
The MenuEditor allows you to create, modify or just inspect |
64 |
hierarchical menus of menu bars, popup menu, or tool bar menus. |
|
199 | 65 |
|
66 |
[start with:] |
|
67 |
MenuEditor open |
|
728 | 68 |
MenuEditor openOnClass:MenuEditor andSelector:#menu |
199 | 69 |
|
70 |
[see also:] |
|
71 |
UIPainter |
|
72 |
||
73 |
[author:] |
|
541 | 74 |
Claus Atzkern, eXept Software AG |
75 |
Thomas Zwick, eXept Software AG |
|
199 | 76 |
" |
77 |
||
78 |
! ! |
|
79 |
||
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
80 |
!MenuEditor class methodsFor:'initialization'! |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
81 |
|
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
82 |
initialize |
1546
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
83 |
ImageRetrieverClasses := #( |
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
84 |
Icon |
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
85 |
NewLauncher |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
86 |
SystemBrowser |
1546
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
87 |
ToolbarIconLibrary |
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
88 |
) |
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
89 |
|
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
90 |
" |
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
91 |
self initialize |
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
92 |
" |
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
93 |
! ! |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
94 |
|
508 | 95 |
!MenuEditor class methodsFor:'instance creation'! |
96 |
||
728 | 97 |
openModalOnMenu: aMenu |
98 |
"Open a MenuEditor modal on aMenu" |
|
99 |
"self openModalOnMenu: (self perform: #menu) decodeAsLiteralArray" |
|
100 |
||
101 |
^self new openModalOnMenu: aMenu |
|
508 | 102 |
! ! |
103 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
104 |
!MenuEditor class methodsFor:'accessing'! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
105 |
|
734 | 106 |
iconUnknown |
107 |
"returns an image used for picked items containing an image |
|
108 |
" |
|
109 |
<resource: #fileImage> |
|
110 |
||
1400 | 111 |
^ MenuPanelSpec icon |
734 | 112 |
! |
113 |
||
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
114 |
resourceType |
728 | 115 |
"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
|
116 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
117 |
^#menu |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
118 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
119 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
120 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
121 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
122 |
! ! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
123 |
|
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
124 |
!MenuEditor class methodsFor:'accessing image retriever'! |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
125 |
|
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
126 |
addNewImageRetriever:aSymbolOrClass |
1546
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
127 |
"add a class to the imageRetriever list" |
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
128 |
|
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
129 |
|key| |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
130 |
|
1546
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
131 |
aSymbolOrClass isBehavior ifTrue:[ |
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
132 |
key := aSymbolOrClass nameWithNameSpacePrefix |
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
133 |
] ifFalse:[ |
1463 | 134 |
key := aSymbolOrClass |
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
135 |
]. |
1463 | 136 |
|
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
137 |
key size ~~ 0 ifTrue:[ |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
138 |
key := key asSymbol. |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
139 |
|
1546
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
140 |
(ImageRetrieverClasses includes:key) ifFalse:[ |
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
141 |
ImageRetrieverClasses := ImageRetrieverClasses asOrderedCollection. |
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
142 |
ImageRetrieverClasses add:key. |
1546
4485d0c37aae
another default image retriever
Claus Gittinger <cg@exept.de>
parents:
1545
diff
changeset
|
143 |
ImageRetrieverClasses sort. |
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
144 |
] |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
145 |
]. |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
146 |
! |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
147 |
|
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
148 |
imageRetrieverClasses |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
149 |
"returns a collection of image retrievers |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
150 |
" |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
151 |
^ ImageRetrieverClasses |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
152 |
! ! |
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
153 |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
154 |
!MenuEditor class methodsFor:'aspects'! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
155 |
|
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
156 |
aspects |
728 | 157 |
"get the aspects for the attributes of the menu components" |
158 |
||
159 |
^#( |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
160 |
label |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
161 |
accessCharacterPos |
1348
48e25df6aa34
added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents:
1335
diff
changeset
|
162 |
showBusyCursorWhilePerforming |
1564
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
163 |
horizontalLayout |
1410 | 164 |
triggerOnDown |
1365 | 165 |
font |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
166 |
argument |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
167 |
submenuChannel |
1378 | 168 |
keepLinkedMenu |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
169 |
enabled |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
170 |
value |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
171 |
nameKey |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
172 |
indication |
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
173 |
choice |
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
174 |
choiceValue |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
175 |
translateLabel |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
176 |
isButton |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
177 |
shortcutKey |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
178 |
startGroup |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
179 |
retriever |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
180 |
iconAndLabel |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
181 |
icon |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
182 |
isVisible |
1321 | 183 |
hideMenuOnActivated |
1199 | 184 |
auxValue |
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
185 |
) |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
186 |
|
953
1aecad8bf33a
added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents:
943
diff
changeset
|
187 |
"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
|
188 |
! ! |
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
189 |
|
371 | 190 |
!MenuEditor class methodsFor:'help specs'! |
191 |
||
1545 | 192 |
flyByHelpSpec |
193 |
<resource: #help> |
|
194 |
||
195 |
^super flyByHelpSpec addPairsFrom:#( |
|
196 |
||
197 |
#addMenuItem |
|
1547 | 198 |
'Add Item' |
1545 | 199 |
|
200 |
#addMenuSeparator |
|
1547 | 201 |
'Add Separator' |
1545 | 202 |
|
203 |
#addSubMenu |
|
1547 | 204 |
'Add SubMenu' |
1545 | 205 |
|
206 |
#addSubMenuLink |
|
1547 | 207 |
'Add linked SubMenu' |
1545 | 208 |
|
209 |
#fileLoad |
|
1547 | 210 |
'Load Menu' |
1545 | 211 |
|
212 |
#fileNew |
|
1547 | 213 |
'New Menu' |
1545 | 214 |
|
215 |
#filePickAMenu |
|
216 |
'Pick a menu' |
|
217 |
||
218 |
#fileSave |
|
1547 | 219 |
'Save Menu' |
1545 | 220 |
|
221 |
#fileSaveAs |
|
1547 | 222 |
'Save Menu' |
1545 | 223 |
|
224 |
) |
|
225 |
! |
|
226 |
||
371 | 227 |
helpSpec |
738 | 228 |
"This resource specification was automatically generated |
229 |
by the UIHelpTool of ST/X." |
|
230 |
||
231 |
"Do not manually edit this!! If it is corrupted, |
|
232 |
the UIHelpTool may not be able to read the specification." |
|
371 | 233 |
|
234 |
" |
|
738 | 235 |
UIHelpTool openOnClass:MenuEditor |
371 | 236 |
" |
237 |
||
738 | 238 |
<resource: #help> |
239 |
||
240 |
^super helpSpec addPairsFrom:#( |
|
371 | 241 |
|
548 | 242 |
#addMenuItem |
1468 | 243 |
'Add a new menu item.' |
548 | 244 |
|
245 |
#addMenuSeparator |
|
1468 | 246 |
'Add a new menu separator.' |
548 | 247 |
|
248 |
#addSubMenu |
|
1468 | 249 |
'Add a new sub menu.' |
548 | 250 |
|
251 |
#addSubMenuLink |
|
1468 | 252 |
'Add a new linked sub menu.' |
371 | 253 |
|
577 | 254 |
#basicsAction |
627 | 255 |
'An action selector with 0, 1 (the argument field), or 2 (the selected item) arguments.' |
577 | 256 |
|
257 |
#basicsArgument |
|
1330 | 258 |
'An optional arg passed with above selector, if it is a 1 or 2 arg selector (enter a Smalltalk literal).' |
577 | 259 |
|
959 | 260 |
#basicsChoice |
1330 | 261 |
'Aspect for a boolean holder, block or method, specifying the choices state (RadioButton behavior).' |
959 | 262 |
|
263 |
#basicsChoiceValue |
|
264 |
'That choices value (typically number or symbol).' |
|
577 | 265 |
|
1020
dcfbf3acb037
added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents:
1007
diff
changeset
|
266 |
#basicsIndication |
1330 | 267 |
'Aspect for boolean holder, block, or method, specifying the indication state (CheckToggle behavior).' |
1020
dcfbf3acb037
added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents:
1007
diff
changeset
|
268 |
|
577 | 269 |
#basicsIsButton |
1468 | 270 |
'Enable/disable button-like behavior.' |
577 | 271 |
|
1020
dcfbf3acb037
added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents:
1007
diff
changeset
|
272 |
#basicsKey |
dcfbf3acb037
added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents:
1007
diff
changeset
|
273 |
'Internal key of the item (optional, for programmed accesses).' |
dcfbf3acb037
added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents:
1007
diff
changeset
|
274 |
|
577 | 275 |
#basicsLabel |
276 |
'Label of the item.' |
|
277 |
||
278 |
#basicsMenu |
|
1330 | 279 |
'Aspect providing the sub menu to be opened if item is selected (provide spec or valueHolder).' |
577 | 280 |
|
281 |
#basicsMenuArgument |
|
943 | 282 |
'An argument passed with the menu selector.' |
577 | 283 |
|
284 |
#basicsNameKey |
|
285 |
'Unique identifier of the item (optional).' |
|
286 |
||
287 |
#basicsSelector |
|
613 | 288 |
'Selector under which the generated menu spec is saved.' |
577 | 289 |
|
290 |
#basicsSeparatorType |
|
291 |
'List of valid separators.' |
|
292 |
||
293 |
#basicsTranslateLabel |
|
943 | 294 |
'Translate the label via the classes resource file (internationalization).' |
577 | 295 |
|
1020
dcfbf3acb037
added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents:
1007
diff
changeset
|
296 |
#browseResource |
dcfbf3acb037
added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents:
1007
diff
changeset
|
297 |
'Search for methods with image resource.' |
dcfbf3acb037
added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents:
1007
diff
changeset
|
298 |
|
577 | 299 |
#detailsAccelerator |
1566 | 300 |
'Accelerator key to select the menu item from the keyboard (Cmdx or Ctrlx).' |
577 | 301 |
|
302 |
#detailsAccessCharaterPosition |
|
1566 | 303 |
'Index of the access character position of the textual label (obsolete, VW compatibility).' |
577 | 304 |
|
1199 | 305 |
#detailsAuxValue |
306 |
'Some additional value - for arbitrary use by the program' |
|
307 |
||
577 | 308 |
#detailsEnabled |
943 | 309 |
'Aspect or binding providing a boolean value holder for the enable-state of the menu item.' |
577 | 310 |
|
959 | 311 |
#detailsStartGroup |
312 |
'Specify start of a right-aligned item group.' |
|
313 |
||
577 | 314 |
#detailsVisibility |
943 | 315 |
'Aspect or binding providing a boolean value holder for the visibility-state of the menu item.' |
577 | 316 |
|
548 | 317 |
#fileLoad |
1468 | 318 |
'Open a dialog to select and load a menu spec from a class.' |
548 | 319 |
|
320 |
#fileNew |
|
1468 | 321 |
'Create a new menu spec.' |
548 | 322 |
|
577 | 323 |
#filePickAMenu |
836 | 324 |
'Select a menu from an open view and read its specification' |
577 | 325 |
|
548 | 326 |
#fileSave |
1468 | 327 |
'Save the menu spec (and the help spec, if modified).' |
455 | 328 |
|
633
11bbf4599843
uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents:
627
diff
changeset
|
329 |
#fileSaveAs |
1468 | 330 |
'Open a dialog to save the menu spec (and the help spec, if modified).' |
943 | 331 |
|
1321 | 332 |
#hideMenuOnActivated |
1468 | 333 |
'If on, the menu hides itself after the item was activated.' |
1426 | 334 |
|
577 | 335 |
#imageImageAndLabel |
1468 | 336 |
'Toggle display of both image and textual label.' |
577 | 337 |
|
338 |
#imageImageEditor |
|
1468 | 339 |
'Open an Image Editor on the resource method defined by retriever and selector.' |
577 | 340 |
|
1020
dcfbf3acb037
added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents:
1007
diff
changeset
|
341 |
#imageImageList |
dcfbf3acb037
added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents:
1007
diff
changeset
|
342 |
'Currently existing image resources.' |
dcfbf3acb037
added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents:
1007
diff
changeset
|
343 |
|
577 | 344 |
#imageRetriever |
345 |
'Class implementing the image resource method. If no class is given, the current application class will be taken.' |
|
346 |
||
347 |
#imageSelector |
|
959 | 348 |
'Selector returning an image (sent to above or the application).' |
349 |
||
1378 | 350 |
#keepLinkedMenu |
1468 | 351 |
'Keep the linked menu after activation (do not destroy).' |
1378 | 352 |
|
1464 | 353 |
#showBusyCursorWhilePerforming |
1468 | 354 |
'If on, a busy cursor is shown while the items action is performing.' |
1464 | 355 |
|
356 |
#triggerOnDown |
|
1468 | 357 |
'If on, the items action is performed on mouse-button press (default is on button-release).' |
1464 | 358 |
|
1564
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
359 |
#horizontalLayout |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
360 |
'If on, the submenu organizes its items horizontal insteat of vertical (default).' |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
361 |
|
371 | 362 |
) |
363 |
! ! |
|
364 |
||
734 | 365 |
!MenuEditor class methodsFor:'image specs'! |
366 |
||
367 |
linkSubmenuImage |
|
738 | 368 |
"This resource specification was automatically generated |
369 |
by the ImageEditor of ST/X." |
|
370 |
||
371 |
"Do not manually edit this!!!! If it is corrupted, |
|
372 |
the ImageEditor may not be able to read the specification." |
|
373 |
||
734 | 374 |
" |
738 | 375 |
ImageEditor openOnClass:self andSelector:#linkSubmenuImage |
734 | 376 |
" |
377 |
||
378 |
<resource: #image> |
|
379 |
||
380 |
^Icon |
|
381 |
constantNamed:#'MenuEditor linkSubmenuImage' |
|
1425 | 382 |
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] |
383 |
! |
|
734 | 384 |
|
385 |
menuItemImage |
|
738 | 386 |
"This resource specification was automatically generated |
387 |
by the ImageEditor of ST/X." |
|
388 |
||
389 |
"Do not manually edit this!!!! If it is corrupted, |
|
390 |
the ImageEditor may not be able to read the specification." |
|
391 |
||
734 | 392 |
" |
738 | 393 |
ImageEditor openOnClass:self andSelector:#menuItemImage |
734 | 394 |
" |
395 |
||
396 |
<resource: #image> |
|
397 |
||
398 |
^Icon |
|
399 |
constantNamed:#'MenuEditor menuItemImage' |
|
1425 | 400 |
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] |
401 |
! |
|
734 | 402 |
|
403 |
menuSeparatorImage |
|
738 | 404 |
"This resource specification was automatically generated |
405 |
by the ImageEditor of ST/X." |
|
406 |
||
407 |
"Do not manually edit this!!!! If it is corrupted, |
|
408 |
the ImageEditor may not be able to read the specification." |
|
409 |
||
734 | 410 |
" |
738 | 411 |
ImageEditor openOnClass:self andSelector:#menuSeparatorImage |
734 | 412 |
" |
413 |
||
414 |
<resource: #image> |
|
415 |
||
416 |
^Icon |
|
417 |
constantNamed:#'MenuEditor menuSeparatorImage' |
|
1425 | 418 |
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] |
419 |
! |
|
734 | 420 |
|
421 |
submenuImage |
|
738 | 422 |
"This resource specification was automatically generated |
423 |
by the ImageEditor of ST/X." |
|
424 |
||
425 |
"Do not manually edit this!!!! If it is corrupted, |
|
426 |
the ImageEditor may not be able to read the specification." |
|
427 |
||
734 | 428 |
" |
738 | 429 |
ImageEditor openOnClass:self andSelector:#submenuImage |
734 | 430 |
" |
431 |
||
432 |
<resource: #image> |
|
433 |
||
434 |
^Icon |
|
435 |
constantNamed:#'MenuEditor submenuImage' |
|
1425 | 436 |
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] |
437 |
! ! |
|
734 | 438 |
|
199 | 439 |
!MenuEditor class methodsFor:'interface specs'! |
440 |
||
441 |
basicsItemSpec |
|
738 | 442 |
"This resource specification was automatically generated |
443 |
by the UIPainter of ST/X." |
|
444 |
||
445 |
"Do not manually edit this!! If it is corrupted, |
|
446 |
the UIPainter may not be able to read the specification." |
|
199 | 447 |
|
448 |
" |
|
449 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsItemSpec |
|
450 |
MenuEditor new openInterface:#basicsItemSpec |
|
451 |
" |
|
452 |
||
453 |
<resource: #canvas> |
|
454 |
||
1155 | 455 |
^ |
456 |
#(#FullSpec |
|
457 |
#name: #basicsItemSpec |
|
458 |
#window: |
|
459 |
#(#WindowSpec |
|
460 |
#label: 'Basics Item' |
|
461 |
#name: 'Basics Item' |
|
462 |
#min: #(#Point 10 10) |
|
463 |
#max: #(#Point 1160 870) |
|
1410 | 464 |
#bounds: #(#Rectangle 898 390 1173 751) |
1155 | 465 |
) |
466 |
#component: |
|
467 |
#(#SpecCollection |
|
468 |
#collection: #( |
|
469 |
#(#LabelSpec |
|
470 |
#label: 'Name Key:' |
|
471 |
#name: 'nameKeyLabel' |
|
472 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
473 |
#activeHelpKey: #basicsKey |
|
474 |
#resizeForLabel: true |
|
475 |
#adjust: #right |
|
476 |
) |
|
477 |
#(#InputFieldSpec |
|
478 |
#name: 'nameKeyField' |
|
1244 | 479 |
#layout: #(#LayoutFrame 110 0 16 0 -5 1.0 38 0) |
1155 | 480 |
#activeHelpKey: #basicsKey |
481 |
#tabable: true |
|
482 |
#model: #nameKey |
|
1244 | 483 |
#group: #inputGroup1 |
1155 | 484 |
#type: #symbolOrNil |
485 |
#acceptOnLeave: false |
|
486 |
#acceptOnReturn: true |
|
487 |
#acceptOnTab: true |
|
488 |
#acceptOnLostFocus: false |
|
489 |
#acceptChannel: #acceptChannel |
|
490 |
#modifiedChannel: #modifiedChannel |
|
491 |
#acceptOnPointerLeave: false |
|
492 |
) |
|
493 |
#(#LabelSpec |
|
494 |
#label: 'Label:' |
|
495 |
#name: 'labelLabel' |
|
496 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
497 |
#activeHelpKey: #basicsLabel |
|
498 |
#resizeForLabel: true |
|
499 |
#adjust: #right |
|
500 |
) |
|
501 |
#(#InputFieldSpec |
|
502 |
#name: 'labelField' |
|
503 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
504 |
#activeHelpKey: #basicsLabel |
|
505 |
#tabable: true |
|
506 |
#model: #label |
|
1244 | 507 |
#group: #inputGroup1 |
1155 | 508 |
#acceptOnReturn: true |
509 |
#acceptOnTab: true |
|
510 |
#acceptOnLostFocus: false |
|
511 |
#acceptChannel: #acceptChannel |
|
512 |
#modifiedChannel: #modifiedChannel |
|
513 |
#acceptOnPointerLeave: false |
|
514 |
) |
|
515 |
#(#LabelSpec |
|
516 |
#label: 'Action:' |
|
517 |
#name: 'valueLabel' |
|
1410 | 518 |
#layout: #(#AlignmentOrigin 107 0 85 0 1 0.5) |
1155 | 519 |
#activeHelpKey: #basicsAction |
520 |
#resizeForLabel: true |
|
521 |
#adjust: #right |
|
522 |
) |
|
523 |
#(#InputFieldSpec |
|
524 |
#name: 'valueField' |
|
1410 | 525 |
#layout: #(#LayoutFrame 110 0 74 0 -5 1.0 96 0) |
1155 | 526 |
#activeHelpKey: #basicsAction |
527 |
#tabable: true |
|
528 |
#model: #value |
|
1244 | 529 |
#group: #inputGroup1 |
1155 | 530 |
#type: #symbolOrNil |
531 |
#acceptOnReturn: true |
|
532 |
#acceptOnTab: true |
|
533 |
#acceptOnLostFocus: false |
|
534 |
#acceptChannel: #acceptChannel |
|
535 |
#modifiedChannel: #modifiedChannel |
|
536 |
#acceptOnPointerLeave: false |
|
537 |
) |
|
538 |
#(#LabelSpec |
|
539 |
#label: 'Argument:' |
|
540 |
#name: 'argumentLabel' |
|
1410 | 541 |
#layout: #(#AlignmentOrigin 107 0 110 0 1 0.5) |
1155 | 542 |
#activeHelpKey: #basicsArgument |
543 |
#resizeForLabel: true |
|
544 |
#adjust: #right |
|
545 |
) |
|
546 |
#(#InputFieldSpec |
|
547 |
#name: 'argumentField' |
|
1410 | 548 |
#layout: #(#LayoutFrame 110 0 99 0 -5 1.0 121 0) |
1155 | 549 |
#activeHelpKey: #basicsArgument |
550 |
#tabable: true |
|
551 |
#model: #argument |
|
1244 | 552 |
#group: #inputGroup1 |
1189
0e7e286f864c
code cleanup; care for non-string argument
Claus Gittinger <cg@exept.de>
parents:
1155
diff
changeset
|
553 |
#type: #smalltalkObject |
1155 | 554 |
#acceptOnReturn: true |
555 |
#acceptOnTab: true |
|
556 |
#acceptOnLostFocus: false |
|
557 |
#acceptChannel: #acceptChannel |
|
558 |
#modifiedChannel: #modifiedChannel |
|
559 |
#acceptOnPointerLeave: false |
|
560 |
) |
|
561 |
#(#LabelSpec |
|
562 |
#label: 'Indication:' |
|
563 |
#name: 'indicationLabel' |
|
1410 | 564 |
#layout: #(#AlignmentOrigin 107 0 144 0 1 0.5) |
1155 | 565 |
#activeHelpKey: #basicsIndication |
566 |
#resizeForLabel: true |
|
567 |
#adjust: #right |
|
568 |
) |
|
569 |
#(#InputFieldSpec |
|
570 |
#name: 'indicationField' |
|
1410 | 571 |
#layout: #(#LayoutFrame 110 0 133 0 -5 1.0 155 0) |
1155 | 572 |
#activeHelpKey: #basicsIndication |
573 |
#enableChannel: #indicationEnabled |
|
574 |
#tabable: true |
|
575 |
#model: #indication |
|
1244 | 576 |
#group: #inputGroup1 |
1155 | 577 |
#type: #symbolOrNil |
578 |
#immediateAccept: true |
|
579 |
#acceptOnReturn: true |
|
580 |
#acceptOnTab: true |
|
581 |
#acceptOnLostFocus: false |
|
582 |
#acceptChannel: #acceptChannel |
|
583 |
#modifiedChannel: #modifiedChannel |
|
584 |
#acceptOnPointerLeave: false |
|
585 |
) |
|
586 |
#(#LabelSpec |
|
587 |
#label: 'Choice:' |
|
588 |
#name: 'choiceLabel' |
|
1410 | 589 |
#layout: #(#AlignmentOrigin 107 0 169 0 1 0.5) |
1155 | 590 |
#activeHelpKey: #basicsChoice |
591 |
#translateLabel: true |
|
592 |
#resizeForLabel: true |
|
593 |
#adjust: #right |
|
594 |
) |
|
595 |
#(#InputFieldSpec |
|
596 |
#name: 'choiceField' |
|
1410 | 597 |
#layout: #(#LayoutFrame 110 0 158 0 -5 1.0 180 0) |
1155 | 598 |
#activeHelpKey: #basicsChoice |
599 |
#enableChannel: #choiceEnabled |
|
600 |
#tabable: true |
|
601 |
#model: #choice |
|
1244 | 602 |
#group: #inputGroup1 |
1155 | 603 |
#type: #symbolOrNil |
604 |
#immediateAccept: true |
|
605 |
#acceptOnReturn: true |
|
606 |
#acceptOnTab: true |
|
607 |
#acceptOnLostFocus: false |
|
608 |
#acceptChannel: #acceptChannel |
|
609 |
#modifiedChannel: #modifiedChannel |
|
610 |
#acceptOnPointerLeave: false |
|
611 |
) |
|
612 |
#(#LabelSpec |
|
613 |
#label: 'Value:' |
|
614 |
#name: 'choiceValueLabel' |
|
1410 | 615 |
#layout: #(#AlignmentOrigin 107 0 194 0 1 0.5) |
1155 | 616 |
#activeHelpKey: #basicsChoiceValue |
617 |
#translateLabel: true |
|
618 |
#resizeForLabel: true |
|
619 |
#adjust: #right |
|
620 |
) |
|
621 |
#(#InputFieldSpec |
|
622 |
#name: 'choiceValueField' |
|
1410 | 623 |
#layout: #(#LayoutFrame 110 0 183 0 -5 1.0 205 0) |
1155 | 624 |
#activeHelpKey: #basicsChoiceValue |
625 |
#enableChannel: #choiceValueEnabled |
|
626 |
#tabable: true |
|
627 |
#model: #choiceValue |
|
1244 | 628 |
#group: #inputGroup1 |
1155 | 629 |
#type: #smalltalkObject |
630 |
#acceptOnLeave: false |
|
631 |
#acceptOnReturn: true |
|
632 |
#acceptOnTab: true |
|
633 |
#acceptOnLostFocus: false |
|
634 |
#acceptChannel: #acceptChannel |
|
635 |
#modifiedChannel: #modifiedChannel |
|
636 |
#acceptOnPointerLeave: false |
|
637 |
) |
|
638 |
#(#CheckBoxSpec |
|
639 |
#label: 'Translate Label' |
|
640 |
#name: 'translateLabelCheckBox' |
|
1410 | 641 |
#layout: #(#Point 20 218) |
1155 | 642 |
#activeHelpKey: #basicsTranslateLabel |
643 |
#tabable: true |
|
644 |
#model: #translateLabel |
|
645 |
) |
|
646 |
#(#CheckBoxSpec |
|
647 |
#label: 'Is Button' |
|
648 |
#name: 'isButtonCheckBox' |
|
1410 | 649 |
#layout: #(#Point 20 243) |
1155 | 650 |
#activeHelpKey: #basicsIsButton |
651 |
#tabable: true |
|
652 |
#model: #isButton |
|
653 |
) |
|
1321 | 654 |
#(#CheckBoxSpec |
655 |
#label: 'Hide Menu after Activation' |
|
656 |
#name: 'hideMenuOnActivated' |
|
1410 | 657 |
#layout: #(#Point 20 267) |
1321 | 658 |
#activeHelpKey: #hideMenuOnActivated |
659 |
#tabable: true |
|
660 |
#model: #hideMenuOnActivated |
|
661 |
) |
|
1348
48e25df6aa34
added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents:
1335
diff
changeset
|
662 |
#(#CheckBoxSpec |
48e25df6aa34
added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents:
1335
diff
changeset
|
663 |
#label: 'BusyCursor while Active' |
48e25df6aa34
added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents:
1335
diff
changeset
|
664 |
#name: 'showBusyCursorWhilePerforming' |
1410 | 665 |
#layout: #(#Point 20 291) |
1426 | 666 |
#activeHelpKey: #showBusyCursorWhilePerforming |
1348
48e25df6aa34
added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents:
1335
diff
changeset
|
667 |
#tabable: true |
48e25df6aa34
added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents:
1335
diff
changeset
|
668 |
#model: #showBusyCursorWhilePerforming |
48e25df6aa34
added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents:
1335
diff
changeset
|
669 |
#translateLabel: true |
48e25df6aa34
added 'showBysuCursorWhileActive' attribute
Claus Gittinger <cg@exept.de>
parents:
1335
diff
changeset
|
670 |
) |
1410 | 671 |
#(#CheckBoxSpec |
672 |
#label: 'Trigger On Down' |
|
673 |
#name: 'triggerOnDown' |
|
674 |
#layout: #(#Point 20 315) |
|
1426 | 675 |
#activeHelpKey: #triggerOnDown |
1410 | 676 |
#tabable: true |
677 |
#model: #triggerOnDown |
|
678 |
#translateLabel: true |
|
679 |
) |
|
1155 | 680 |
) |
681 |
||
682 |
) |
|
199 | 683 |
) |
684 |
! |
|
685 |
||
218 | 686 |
basicsLinkSpec |
738 | 687 |
"This resource specification was automatically generated |
688 |
by the UIPainter of ST/X." |
|
689 |
||
690 |
"Do not manually edit this!! If it is corrupted, |
|
691 |
the UIPainter may not be able to read the specification." |
|
218 | 692 |
|
693 |
" |
|
694 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsLinkSpec |
|
695 |
MenuEditor new openInterface:#basicsLinkSpec |
|
696 |
" |
|
697 |
||
698 |
<resource: #canvas> |
|
699 |
||
1155 | 700 |
^ |
701 |
#(#FullSpec |
|
702 |
#name: #basicsLinkSpec |
|
703 |
#window: |
|
704 |
#(#WindowSpec |
|
705 |
#label: 'Basics Link' |
|
706 |
#name: 'Basics Link' |
|
707 |
#min: #(#Point 10 10) |
|
708 |
#max: #(#Point 1280 1024) |
|
1378 | 709 |
#bounds: #(#Rectangle 900 124 1167 443) |
1155 | 710 |
) |
711 |
#component: |
|
712 |
#(#SpecCollection |
|
713 |
#collection: #( |
|
714 |
#(#LabelSpec |
|
715 |
#label: 'Name Key:' |
|
716 |
#name: 'nameKeyLabel' |
|
717 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
718 |
#activeHelpKey: #nameKey |
|
719 |
#resizeForLabel: true |
|
720 |
#adjust: #right |
|
721 |
) |
|
722 |
#(#InputFieldSpec |
|
723 |
#name: 'nameKeyField' |
|
724 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
725 |
#activeHelpKey: #basicsNameKey |
|
726 |
#tabable: true |
|
727 |
#model: #nameKey |
|
1244 | 728 |
#group: #inputGroup2 |
1155 | 729 |
#type: #symbolOrNil |
730 |
#acceptOnReturn: true |
|
731 |
#acceptOnTab: true |
|
732 |
#acceptChannel: #acceptChannel |
|
733 |
#modifiedChannel: #modifiedChannel |
|
734 |
#acceptOnPointerLeave: false |
|
735 |
) |
|
736 |
#(#LabelSpec |
|
737 |
#label: 'Label:' |
|
738 |
#name: 'labelLabel' |
|
739 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
740 |
#resizeForLabel: true |
|
741 |
) |
|
742 |
#(#InputFieldSpec |
|
743 |
#name: 'labelField' |
|
744 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
745 |
#activeHelpKey: #basicsLabel |
|
746 |
#tabable: true |
|
747 |
#model: #label |
|
1244 | 748 |
#group: #inputGroup2 |
1155 | 749 |
#acceptOnReturn: true |
750 |
#acceptOnTab: true |
|
751 |
#acceptChannel: #acceptChannel |
|
752 |
#modifiedChannel: #modifiedChannel |
|
753 |
#acceptOnPointerLeave: false |
|
754 |
) |
|
755 |
#(#LabelSpec |
|
756 |
#label: 'Menu:' |
|
757 |
#name: 'menuLabel' |
|
758 |
#layout: #(#AlignmentOrigin 107 0 76 0 1 0.5) |
|
759 |
#resizeForLabel: true |
|
760 |
) |
|
761 |
#(#InputFieldSpec |
|
762 |
#name: 'menuField' |
|
763 |
#layout: #(#LayoutFrame 110 0 65 0 -5 1.0 87 0) |
|
764 |
#activeHelpKey: #basicsMenu |
|
765 |
#tabable: true |
|
766 |
#model: #submenuChannel |
|
1244 | 767 |
#group: #inputGroup2 |
1155 | 768 |
#type: #symbolOrNil |
769 |
#acceptOnReturn: true |
|
770 |
#acceptOnTab: true |
|
771 |
#acceptChannel: #acceptChannel |
|
772 |
#modifiedChannel: #modifiedChannel |
|
773 |
#acceptOnPointerLeave: false |
|
774 |
) |
|
775 |
#(#LabelSpec |
|
776 |
#label: 'Argument:' |
|
777 |
#name: 'ArgumentLabel' |
|
778 |
#layout: #(#AlignmentOrigin 107 0 100 0 1 0.5) |
|
779 |
#resizeForLabel: true |
|
780 |
) |
|
781 |
#(#InputFieldSpec |
|
782 |
#name: 'argumentField' |
|
783 |
#layout: #(#LayoutFrame 110 0 90 0 -5 1.0 112 0) |
|
784 |
#activeHelpKey: #basicsMenuArgument |
|
785 |
#tabable: true |
|
786 |
#model: #argument |
|
1244 | 787 |
#group: #inputGroup2 |
1155 | 788 |
#acceptOnReturn: true |
789 |
#acceptOnTab: true |
|
790 |
#acceptChannel: #acceptChannel |
|
791 |
#modifiedChannel: #modifiedChannel |
|
792 |
#acceptOnPointerLeave: false |
|
793 |
) |
|
794 |
#(#CheckBoxSpec |
|
795 |
#label: 'Translate Label' |
|
796 |
#name: 'translateLabelCheckBox' |
|
797 |
#layout: #(#Point 20 190) |
|
798 |
#activeHelpKey: #basicsTranslateLabel |
|
799 |
#tabable: true |
|
800 |
#model: #translateLabel |
|
801 |
) |
|
1378 | 802 |
#(#CheckBoxSpec |
1564
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
803 |
#label: 'Has Horizontal Layout' |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
804 |
#name: 'horizontalLayout' |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
805 |
#layout: #(#Point 20 217) |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
806 |
#activeHelpKey: #horizontalLayout |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
807 |
#tabable: true |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
808 |
#model: #horizontalLayout |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
809 |
) |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
810 |
#(#CheckBoxSpec |
1378 | 811 |
#label: 'Do not destroy linked Menu' |
812 |
#name: 'keepLinkedMenu' |
|
1564
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
813 |
#layout: #(#Point 20 244) |
1378 | 814 |
#tabable: true |
815 |
#activeHelpKey: #keepLinkedMenu |
|
816 |
#model: #keepLinkedMenu |
|
817 |
#translateLabel: true |
|
818 |
) |
|
1155 | 819 |
) |
820 |
||
821 |
) |
|
218 | 822 |
) |
823 |
! |
|
824 |
||
199 | 825 |
basicsMenuSpec |
738 | 826 |
"This resource specification was automatically generated |
827 |
by the UIPainter of ST/X." |
|
828 |
||
829 |
"Do not manually edit this!! If it is corrupted, |
|
830 |
the UIPainter may not be able to read the specification." |
|
199 | 831 |
|
832 |
" |
|
833 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsMenuSpec |
|
834 |
MenuEditor new openInterface:#basicsMenuSpec |
|
835 |
" |
|
836 |
||
837 |
<resource: #canvas> |
|
838 |
||
1155 | 839 |
^ |
840 |
#(#FullSpec |
|
841 |
#name: #basicsMenuSpec |
|
842 |
#window: |
|
843 |
#(#WindowSpec |
|
844 |
#label: 'Basics Menu' |
|
845 |
#name: 'Basics Menu' |
|
846 |
#min: #(#Point 10 10) |
|
847 |
#max: #(#Point 1280 1024) |
|
1244 | 848 |
#bounds: #(#Rectangle 93 223 360 542) |
1155 | 849 |
) |
850 |
#component: |
|
851 |
#(#SpecCollection |
|
852 |
#collection: #( |
|
853 |
#(#LabelSpec |
|
854 |
#label: 'Name Key:' |
|
855 |
#name: 'nameKeyLabel' |
|
856 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
857 |
#resizeForLabel: true |
|
858 |
#adjust: #right |
|
859 |
) |
|
860 |
#(#InputFieldSpec |
|
861 |
#name: 'nameKeyField' |
|
862 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
863 |
#activeHelpKey: #basicsNameKey |
|
864 |
#tabable: true |
|
865 |
#model: #nameKey |
|
1244 | 866 |
#group: #inputGroup3 |
1155 | 867 |
#type: #symbolOrNil |
868 |
#acceptOnReturn: true |
|
869 |
#acceptOnTab: true |
|
870 |
#acceptChannel: #acceptChannel |
|
871 |
#modifiedChannel: #modifiedChannel |
|
872 |
#acceptOnPointerLeave: false |
|
873 |
) |
|
874 |
#(#LabelSpec |
|
875 |
#label: 'Label:' |
|
876 |
#name: 'labelLabel' |
|
877 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
878 |
#resizeForLabel: true |
|
879 |
#adjust: #right |
|
880 |
) |
|
881 |
#(#InputFieldSpec |
|
882 |
#name: 'labelField' |
|
883 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
884 |
#activeHelpKey: #basicsLabel |
|
885 |
#tabable: true |
|
886 |
#model: #label |
|
1244 | 887 |
#group: #inputGroup3 |
1155 | 888 |
#acceptOnReturn: true |
889 |
#acceptOnTab: true |
|
890 |
#acceptChannel: #acceptChannel |
|
891 |
#modifiedChannel: #modifiedChannel |
|
892 |
#acceptOnPointerLeave: false |
|
893 |
) |
|
894 |
#(#CheckBoxSpec |
|
895 |
#label: 'Translate Label' |
|
896 |
#name: 'translateLabelCheckBox' |
|
897 |
#layout: #(#Point 20 190) |
|
898 |
#activeHelpKey: #basicsTranslateLabel |
|
899 |
#tabable: true |
|
900 |
#model: #translateLabel |
|
901 |
) |
|
1564
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
902 |
#(#CheckBoxSpec |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
903 |
#label: 'Has Horizontal Orientation' |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
904 |
#name: 'horizontalLayout' |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
905 |
#layout: #(#Point 20 217) |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
906 |
#activeHelpKey: #horizontalLayout |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
907 |
#tabable: true |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
908 |
#model: #horizontalLayout |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
909 |
) |
0833cfacf787
menuBuilder: support of horizontal/vertical layout of submenu
ca
parents:
1547
diff
changeset
|
910 |
|
1155 | 911 |
) |
912 |
||
913 |
) |
|
199 | 914 |
) |
915 |
! |
|
916 |
||
917 |
basicsRootSpec |
|
738 | 918 |
"This resource specification was automatically generated |
919 |
by the UIPainter of ST/X." |
|
920 |
||
921 |
"Do not manually edit this!! If it is corrupted, |
|
922 |
the UIPainter may not be able to read the specification." |
|
199 | 923 |
|
924 |
" |
|
925 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsRootSpec |
|
926 |
MenuEditor new openInterface:#basicsRootSpec |
|
927 |
" |
|
928 |
||
929 |
<resource: #canvas> |
|
930 |
||
1155 | 931 |
^ |
932 |
#(#FullSpec |
|
933 |
#name: #basicsRootSpec |
|
934 |
#window: |
|
935 |
#(#WindowSpec |
|
936 |
#label: 'Basics Root' |
|
937 |
#name: 'Basics Root' |
|
938 |
#layout: #(#LayoutFrame 11 0 100 0 277 0 418 0) |
|
939 |
#level: 0 |
|
940 |
#min: #(#Point 10 10) |
|
941 |
#max: #(#Point 1280 1024) |
|
942 |
#bounds: #(#Rectangle 11 100 278 419) |
|
943 |
#usePreferredExtent: false |
|
944 |
#returnIsOKInDialog: true |
|
945 |
#escapeIsCancelInDialog: true |
|
946 |
) |
|
947 |
#component: |
|
948 |
#(#SpecCollection |
|
949 |
#collection: #( |
|
950 |
#(#LabelSpec |
|
951 |
#label: 'Selector:' |
|
952 |
#name: 'selectorLabel' |
|
953 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
954 |
#resizeForLabel: true |
|
955 |
#adjust: #right |
|
1468 | 956 |
#activeHelpKey: #basicsSelector |
1155 | 957 |
) |
958 |
#(#InputFieldSpec |
|
959 |
#name: 'selectorField' |
|
960 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
961 |
#activeHelpKey: #basicsSelector |
|
962 |
#tabable: true |
|
963 |
#model: #label |
|
964 |
#group: #inputGroup |
|
965 |
#acceptOnReturn: true |
|
966 |
#acceptOnTab: true |
|
967 |
#acceptChannel: #acceptChannel |
|
968 |
#modifiedChannel: #modifiedChannel |
|
969 |
#acceptOnPointerLeave: false |
|
970 |
) |
|
971 |
) |
|
972 |
||
973 |
) |
|
199 | 974 |
) |
975 |
! |
|
976 |
||
218 | 977 |
basicsSeparatorSpec |
738 | 978 |
"This resource specification was automatically generated |
979 |
by the UIPainter of ST/X." |
|
980 |
||
981 |
"Do not manually edit this!! If it is corrupted, |
|
982 |
the UIPainter may not be able to read the specification." |
|
199 | 983 |
|
984 |
" |
|
218 | 985 |
UIPainter new openOnClass:MenuEditor andSelector:#basicsSeparatorSpec |
986 |
MenuEditor new openInterface:#basicsSeparatorSpec |
|
199 | 987 |
" |
988 |
||
989 |
<resource: #canvas> |
|
990 |
||
1155 | 991 |
^ |
992 |
#(#FullSpec |
|
993 |
#name: #basicsSeparatorSpec |
|
994 |
#window: |
|
995 |
#(#WindowSpec |
|
996 |
#label: 'Basics Separator' |
|
997 |
#name: 'Basics Separator' |
|
998 |
#layout: #(#LayoutFrame 9 0 149 0 275 0 467 0) |
|
999 |
#level: 0 |
|
1000 |
#min: #(#Point 10 10) |
|
1001 |
#max: #(#Point 1160 870) |
|
1002 |
#bounds: #(#Rectangle 9 149 276 468) |
|
1003 |
#usePreferredExtent: false |
|
1004 |
#returnIsOKInDialog: true |
|
1005 |
#escapeIsCancelInDialog: true |
|
1006 |
) |
|
1007 |
#component: |
|
1008 |
#(#SpecCollection |
|
1009 |
#collection: #( |
|
1010 |
#(#LabelSpec |
|
1011 |
#label: 'Separator Type:' |
|
1012 |
#name: 'separatorLabel' |
|
1013 |
#layout: #(#AlignmentOrigin 127 0 26 0 1 0.5) |
|
1014 |
#resizeForLabel: true |
|
1015 |
#adjust: #right |
|
1016 |
) |
|
1017 |
#(#ComboListSpec |
|
1018 |
#name: 'seperatorList' |
|
1019 |
#layout: #(#LayoutFrame 132 0 15 0 -5 1.0 37 0) |
|
1020 |
#activeHelpKey: #basicsSeparatorType |
|
1021 |
#tabable: true |
|
1022 |
#model: #seperatorSelection |
|
1023 |
#useIndex: true |
|
1024 |
) |
|
1025 |
#(#LabelSpec |
|
1026 |
#label: 'Visibility:' |
|
1027 |
#name: 'visibilityLabel' |
|
1028 |
#layout: #(#AlignmentOrigin 127 0 76 0 1 0.5) |
|
1029 |
#resizeForLabel: true |
|
1030 |
#adjust: #right |
|
1031 |
) |
|
1032 |
#(#InputFieldSpec |
|
1033 |
#name: 'visibilityInputField' |
|
1034 |
#layout: #(#LayoutFrame 132 0 65 0 -5 1.0 87 0) |
|
1035 |
#activeHelpKey: #detailsVisibility |
|
1036 |
#tabable: true |
|
1037 |
#model: #isVisible |
|
1038 |
#group: #inputGroup |
|
1039 |
#type: #symbolOrNil |
|
1040 |
#acceptOnReturn: true |
|
1041 |
#acceptOnTab: true |
|
1042 |
#acceptChannel: #acceptChannel |
|
1043 |
#modifiedChannel: #modifiedChannel |
|
1044 |
#acceptOnPointerLeave: false |
|
1045 |
) |
|
1046 |
) |
|
1047 |
||
1048 |
) |
|
199 | 1049 |
) |
1050 |
! |
|
1051 |
||
1052 |
detailsEditSpec |
|
738 | 1053 |
"This resource specification was automatically generated |
1054 |
by the UIPainter of ST/X." |
|
1055 |
||
1056 |
"Do not manually edit this!! If it is corrupted, |
|
1057 |
the UIPainter may not be able to read the specification." |
|
199 | 1058 |
|
1059 |
" |
|
1060 |
UIPainter new openOnClass:MenuEditor andSelector:#detailsEditSpec |
|
1061 |
MenuEditor new openInterface:#detailsEditSpec |
|
1062 |
" |
|
1063 |
||
1064 |
<resource: #canvas> |
|
1065 |
||
1155 | 1066 |
^ |
1067 |
#(#FullSpec |
|
1068 |
#name: #detailsEditSpec |
|
1069 |
#window: |
|
1070 |
#(#WindowSpec |
|
1071 |
#label: 'Details Edit' |
|
1072 |
#name: 'Details Edit' |
|
1073 |
#min: #(#Point 10 10) |
|
1074 |
#max: #(#Point 1280 1024) |
|
1365 | 1075 |
#bounds: #(#Rectangle 12 22 327 306) |
1155 | 1076 |
) |
1077 |
#component: |
|
1078 |
#(#SpecCollection |
|
1079 |
#collection: #( |
|
1080 |
#(#LabelSpec |
|
1081 |
#label: 'Accelerator:' |
|
1082 |
#name: 'shortcutKeyLabel' |
|
1083 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
1084 |
#activeHelpKey: #detailsAccelerator |
|
1085 |
#resizeForLabel: true |
|
1086 |
#adjust: #right |
|
1087 |
) |
|
1088 |
#(#InputFieldSpec |
|
1089 |
#name: 'shortcutKeyField' |
|
1090 |
#layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0) |
|
1091 |
#activeHelpKey: #detailsAccelerator |
|
1092 |
#tabable: true |
|
1093 |
#model: #shortcutKey |
|
1244 | 1094 |
#group: #inputGroup4 |
1155 | 1095 |
#type: #symbolOrNil |
1096 |
#acceptOnReturn: true |
|
1097 |
#acceptOnTab: true |
|
1098 |
#acceptChannel: #acceptChannel |
|
1099 |
#modifiedChannel: #modifiedChannel |
|
1244 | 1100 |
#acceptOnPointerLeave: false |
1155 | 1101 |
) |
1102 |
#(#LabelSpec |
|
1103 |
#label: 'Enabled:' |
|
1104 |
#name: 'enabledLabel' |
|
1105 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
1106 |
#activeHelpKey: #detailsEnabled |
|
1107 |
#resizeForLabel: true |
|
1108 |
#adjust: #right |
|
1109 |
) |
|
1110 |
#(#InputFieldSpec |
|
1111 |
#name: 'enabledField' |
|
1112 |
#layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0) |
|
1113 |
#activeHelpKey: #detailsEnabled |
|
1114 |
#tabable: true |
|
1115 |
#model: #enabled |
|
1244 | 1116 |
#group: #inputGroup4 |
1155 | 1117 |
#type: #symbolOrNil |
1118 |
#acceptOnReturn: true |
|
1119 |
#acceptOnTab: true |
|
1120 |
#acceptChannel: #acceptChannel |
|
1121 |
#modifiedChannel: #modifiedChannel |
|
1244 | 1122 |
#acceptOnPointerLeave: false |
1155 | 1123 |
) |
1124 |
#(#LabelSpec |
|
1125 |
#label: 'Visibility:' |
|
1126 |
#name: 'visibilityLabel' |
|
1127 |
#layout: #(#AlignmentOrigin 107 0 76 0 1 0.5) |
|
1128 |
#activeHelpKey: #detailsVisibility |
|
1129 |
#resizeForLabel: true |
|
1130 |
#adjust: #right |
|
1131 |
) |
|
1132 |
#(#InputFieldSpec |
|
1133 |
#name: 'isVisibleInputField' |
|
1134 |
#layout: #(#LayoutFrame 110 0 65 0 -5 1.0 87 0) |
|
1135 |
#activeHelpKey: #detailsVisibility |
|
1136 |
#tabable: true |
|
1137 |
#model: #isVisible |
|
1244 | 1138 |
#group: #inputGroup4 |
1155 | 1139 |
#type: #symbolOrNil |
1140 |
#acceptOnReturn: true |
|
1141 |
#acceptOnTab: true |
|
1142 |
#acceptChannel: #acceptChannel |
|
1143 |
#modifiedChannel: #modifiedChannel |
|
1244 | 1144 |
#acceptOnPointerLeave: false |
1145 |
) |
|
1146 |
#(#LabelSpec |
|
1147 |
#label: 'Aux Value' |
|
1148 |
#name: 'auxLabel' |
|
1149 |
#layout: #(#AlignmentOrigin 107 0 101 0 1 0.5) |
|
1150 |
#activeHelpKey: #detailsAuxValue |
|
1151 |
#translateLabel: true |
|
1152 |
#resizeForLabel: true |
|
1153 |
#adjust: #right |
|
1154 |
) |
|
1155 |
#(#InputFieldSpec |
|
1156 |
#name: 'auxInputField' |
|
1157 |
#layout: #(#LayoutFrame 110 0 90 0 -5 1.0 112 0) |
|
1158 |
#activeHelpKey: #detailsAuxValue |
|
1159 |
#tabable: true |
|
1160 |
#model: #auxValue |
|
1161 |
#group: #inputGroup4 |
|
1162 |
#type: #smalltalkObject |
|
1163 |
#acceptOnReturn: true |
|
1164 |
#acceptOnTab: true |
|
1165 |
#acceptChannel: #acceptChannel |
|
1166 |
#modifiedChannel: #modifiedChannel |
|
1167 |
#acceptOnPointerLeave: false |
|
1155 | 1168 |
) |
1169 |
#(#LabelSpec |
|
1170 |
#label: 'Start Group:' |
|
1171 |
#name: 'StartGroupLabel' |
|
1199 | 1172 |
#layout: #(#AlignmentOrigin 107 0 139 0 1 0.5) |
1155 | 1173 |
#activeHelpKey: #detailsStartGroup |
1174 |
#resizeForLabel: true |
|
1175 |
#adjust: #right |
|
1176 |
) |
|
1177 |
#(#PopUpListSpec |
|
1566 | 1178 |
#label: 'left' |
1155 | 1179 |
#name: 'StartGroupPopUp' |
1199 | 1180 |
#layout: #(#LayoutFrame 110 0 128 0 -5 1.0 150 0) |
1155 | 1181 |
#activeHelpKey: #detailsStartGroup |
1182 |
#tabable: true |
|
1183 |
#model: #startGroup |
|
1184 |
#menu: |
|
1566 | 1185 |
#(#left |
1155 | 1186 |
#right |
199 | 1187 |
) |
1155 | 1188 |
#useIndex: false |
1189 |
) |
|
1190 |
#(#LabelSpec |
|
1191 |
#label: 'Access Character Position:' |
|
1192 |
#name: 'accessCharLabel' |
|
1199 | 1193 |
#layout: #(#AlignmentOrigin 217 0 170 0 1 0.5) |
1155 | 1194 |
#activeHelpKey: #detailsAccessCharaterPosition |
1195 |
#resizeForLabel: true |
|
1196 |
#adjust: #right |
|
1197 |
) |
|
1198 |
#(#InputFieldSpec |
|
1199 |
#name: 'accessCharField' |
|
1199 | 1200 |
#layout: #(#LayoutFrame 220 0 159 0 -5 1.0 181 0) |
1155 | 1201 |
#activeHelpKey: #detailsAccessCharaterPosition |
1202 |
#tabable: true |
|
1203 |
#model: #accessCharacterPos |
|
1244 | 1204 |
#group: #inputGroup4 |
1155 | 1205 |
#type: #numberOrNil |
1206 |
#immediateAccept: false |
|
1207 |
#acceptOnReturn: true |
|
1208 |
#acceptOnTab: true |
|
1209 |
#acceptChannel: #acceptChannel |
|
1210 |
#modifiedChannel: #modifiedChannel |
|
1244 | 1211 |
#acceptOnPointerLeave: false |
1155 | 1212 |
) |
1365 | 1213 |
#(#LabelSpec |
1214 |
#label: 'Font:' |
|
1215 |
#name: 'fontLabel' |
|
1216 |
#layout: #(#AlignmentOrigin 75 0 231 0 1 0.5) |
|
1217 |
#resizeForLabel: true |
|
1218 |
#adjust: #right |
|
1219 |
) |
|
1220 |
#(#FontMenuSpec |
|
1221 |
#attributes: |
|
1222 |
#(#tabable |
|
1223 |
true |
|
1224 |
) |
|
1225 |
#name: 'fontMenu' |
|
1226 |
#layout: #(#LayoutFrame 78 0 220 0 -5 1.0 242 0) |
|
1227 |
#activeHelpKey: #fontMenu |
|
1228 |
#model: #font |
|
1229 |
) |
|
1155 | 1230 |
) |
1231 |
||
1232 |
) |
|
199 | 1233 |
) |
1234 |
! |
|
1235 |
||
398 | 1236 |
imageEditSpec |
738 | 1237 |
"This resource specification was automatically generated |
1238 |
by the UIPainter of ST/X." |
|
1239 |
||
1240 |
"Do not manually edit this!! If it is corrupted, |
|
1241 |
the UIPainter may not be able to read the specification." |
|
199 | 1242 |
|
1243 |
" |
|
398 | 1244 |
UIPainter new openOnClass:MenuEditor andSelector:#imageEditSpec |
1245 |
MenuEditor new openInterface:#imageEditSpec |
|
199 | 1246 |
" |
1247 |
||
1248 |
<resource: #canvas> |
|
1249 |
||
1155 | 1250 |
^ |
1251 |
#(#FullSpec |
|
1252 |
#name: #imageEditSpec |
|
1253 |
#window: |
|
1254 |
#(#WindowSpec |
|
1255 |
#label: 'Image Item' |
|
1256 |
#name: 'Image Item' |
|
1257 |
#min: #(#Point 10 10) |
|
1258 |
#max: #(#Point 1280 1024) |
|
1464 | 1259 |
#bounds: #(#Rectangle 12 22 300 317) |
1155 | 1260 |
) |
1261 |
#component: |
|
1262 |
#(#SpecCollection |
|
1263 |
#collection: #( |
|
1264 |
#(#LabelSpec |
|
1265 |
#label: 'Retriever:' |
|
1266 |
#name: 'retrieverLabel' |
|
1267 |
#layout: #(#AlignmentOrigin 107 0 26 0 1 0.5) |
|
1268 |
#activeHelpKey: #imageRetriever |
|
1269 |
#resizeForLabel: true |
|
1270 |
#adjust: #right |
|
1271 |
) |
|
1272 |
#(#ComboBoxSpec |
|
1273 |
#name: 'retrieverField' |
|
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
1274 |
#layout: #(#LayoutFrame 110 0 15 0 -20 1.0 37 0) |
1155 | 1275 |
#activeHelpKey: #imageRetriever |
1276 |
#tabable: true |
|
1277 |
#model: #retriever |
|
1278 |
#type: #symbolOrNil |
|
1279 |
#acceptOnReturn: true |
|
1280 |
#acceptOnTab: true |
|
1281 |
#acceptChannel: #acceptChannel |
|
1282 |
#acceptOnPointerLeave: false |
|
1283 |
#comboList: #retrieverClassList |
|
1284 |
) |
|
1285 |
#(#LabelSpec |
|
1286 |
#label: 'Selector:' |
|
1287 |
#name: 'iconLabel' |
|
1288 |
#layout: #(#AlignmentOrigin 107 0 51 0 1 0.5) |
|
1289 |
#activeHelpKey: #imageSelector |
|
1290 |
#resizeForLabel: true |
|
1291 |
#adjust: #right |
|
1292 |
) |
|
1293 |
#(#InputFieldSpec |
|
1294 |
#name: 'iconField' |
|
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
1295 |
#layout: #(#LayoutFrame 110 0 40 0 -42 1.0 62 0) |
1155 | 1296 |
#activeHelpKey: #imageSelector |
1297 |
#tabable: true |
|
1298 |
#model: #icon |
|
1244 | 1299 |
#group: #inputGroup5 |
1155 | 1300 |
#type: #symbolOrNil |
1301 |
#acceptOnReturn: true |
|
1302 |
#acceptOnTab: true |
|
1303 |
#acceptChannel: #acceptChannel |
|
1304 |
#modifiedChannel: #modifiedChannel |
|
1305 |
#acceptOnPointerLeave: false |
|
1306 |
) |
|
1307 |
#(#ActionButtonSpec |
|
1301 | 1308 |
#label: '...' |
1309 |
#name: 'browseButton' |
|
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
1310 |
#layout: #(#LayoutFrame -40 1 40 0 -20 1 62 0) |
1301 | 1311 |
#activeHelpKey: #browseResource |
1155 | 1312 |
#tabable: true |
1301 | 1313 |
#model: #doBrowseForImageResource |
1155 | 1314 |
) |
1464 | 1315 |
#(#SelectionInListModelViewSpec |
1316 |
#name: 'selectionOfImage' |
|
1462
02fe22d76582
change layout of image viewer, support of adding new image retriever
ca
parents:
1454
diff
changeset
|
1317 |
#layout: #(#LayoutFrame 20 |