author | Claus Gittinger <cg@exept.de> |
Wed, 26 Jan 2000 15:15:53 +0100 | |
changeset 1309 | 0a45ef81b47e |
parent 1307 | 52898ecde37d |
child 1313 | 95ef9b917d82 |
permissions | -rw-r--r-- |
164 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by eXept Software AG |
|
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 |
||
15 |
||
16 |
ApplicationModel subclass:#UISpecificationTool |
|
759 | 17 |
instanceVariableNames:'modifiedHolder aspects specification selection specChannel |
1307 | 18 |
buildInView listOfSpecViews' |
164 | 19 |
classVariableNames:'' |
20 |
poolDictionaries:'' |
|
21 |
category:'Interface-UIPainter' |
|
22 |
! |
|
23 |
||
1307 | 24 |
ViewScroller subclass:#BuildInView |
25 |
instanceVariableNames:'outerFrame' |
|
26 |
classVariableNames:'' |
|
27 |
poolDictionaries:'' |
|
28 |
privateIn:UISpecificationTool |
|
29 |
! |
|
30 |
||
164 | 31 |
!UISpecificationTool class methodsFor:'documentation'! |
32 |
||
33 |
copyright |
|
34 |
" |
|
35 |
COPYRIGHT (c) 1995 by eXept Software AG |
|
36 |
All Rights Reserved |
|
37 |
||
38 |
This software is furnished under a license and may be used |
|
39 |
only in accordance with the terms of that license and with the |
|
40 |
inclusion of the above copyright notice. This software may not |
|
41 |
be provided or otherwise made available to, or used by, any |
|
42 |
other person. No title to or ownership of the software is |
|
43 |
hereby transferred. |
|
44 |
" |
|
45 |
||
46 |
||
47 |
||
48 |
! |
|
49 |
||
50 |
documentation |
|
51 |
" |
|
52 |
used by the UIPainter to manipulate the specifications of the selected component |
|
53 |
||
54 |
[author:] |
|
55 |
Claus Atzkern |
|
56 |
||
57 |
[see also:] |
|
58 |
UIPainter |
|
59 |
UILayoutTool |
|
60 |
UIHelpTool |
|
61 |
" |
|
62 |
! ! |
|
63 |
||
172 | 64 |
!UISpecificationTool class methodsFor:'help specs'! |
65 |
||
66 |
helpSpec |
|
752 | 67 |
"This resource specification was automatically generated |
68 |
by the UIHelpTool of ST/X." |
|
69 |
||
70 |
"Do not manually edit this!! If it is corrupted, |
|
71 |
the UIHelpTool may not be able to read the specification." |
|
294 | 72 |
|
847 | 73 |
" |
752 | 74 |
UIHelpTool openOnClass:UISpecificationTool |
172 | 75 |
" |
294 | 76 |
|
752 | 77 |
<resource: #help> |
78 |
||
79 |
^super helpSpec addPairsFrom:#( |
|
172 | 80 |
|
580 | 81 |
#acceptChannel |
780 | 82 |
'Aspect selector or binding for accepting the entry.' |
580 | 83 |
|
367 | 84 |
#acceptImmediate |
801 | 85 |
'Enable sending of the entered string to the model with every key press.' |
367 | 86 |
|
87 |
#acceptOnLeave |
|
1153 | 88 |
'Enable sending of the entered string to the model when field is left via a keyboard action.' |
367 | 89 |
|
540 | 90 |
#acceptOnLostFocus |
801 | 91 |
'Enable sending of the entered string to the model when the field looses its input focus.' |
540 | 92 |
|
1153 | 93 |
#acceptOnPointerLeaveFocus |
94 |
'Enable sending of the entered string to the model when field is left via a mouse motion.' |
|
95 |
||
367 | 96 |
#acceptOnReturn |
801 | 97 |
'Enable sending of the entered string to the model when the RETURN key is pressed.' |
367 | 98 |
|
99 |
#acceptOnTab |
|
801 | 100 |
'Enable sending of the entered string to the model when the TAB key is pressed.' |
367 | 101 |
|
303 | 102 |
#action |
801 | 103 |
'Name of the message sent to the application when the widget is activated.' |
303 | 104 |
|
367 | 105 |
#actionArg |
801 | 106 |
'Optional argument passed with the action message.' |
367 | 107 |
|
540 | 108 |
#appletParamText |
109 |
'Paste the complete appletTAGs HTML text here (i.e. all from <applet> up to and including the </applet>). Press parse to extract all parameters from it.' |
|
110 |
||
111 |
#appletTextParse |
|
112 |
'Parse the appletTAG and fill the parameters directory from it.' |
|
113 |
||
350 | 114 |
#arbitraryView |
801 | 115 |
'The name of the message sent to the application to provide the view instance.' |
294 | 116 |
|
540 | 117 |
#archiveEntry |
118 |
'The name of a zip-file archive, if the class(es) are to be loaded from a zip-archive.' |
|
119 |
||
120 |
#arrowButtonDirection |
|
780 | 121 |
'Defines the direction of the arrow.' |
540 | 122 |
|
350 | 123 |
#autoRepeat |
1154 | 124 |
'Enable auto-repeat of the action as long as the button is pressed (Must be Trigger-on-Down).' |
307 | 125 |
|
367 | 126 |
#backgroundChannel |
1165 | 127 |
'Aspect selector or binding for a background color holder.' |
367 | 128 |
|
350 | 129 |
#backgroundColor |
780 | 130 |
'Defines the background color of the widget.' |
303 | 131 |
|
350 | 132 |
#beDefault |
801 | 133 |
'Show a default (-return) bitmap after the label.' |
307 | 134 |
|
580 | 135 |
#beDependentOfRows |
1164 | 136 |
'Make the widget dependent on each row (ie rows send change messages).' |
580 | 137 |
|
350 | 138 |
#booleanHolder |
837 | 139 |
'Aspect selector or binding for a boolean holder which enables the widget.' |
294 | 140 |
|
1166 | 141 |
#booleanModel |
142 |
'Aspect selector or binding for a holder on the boolean state.' |
|
143 |
||
350 | 144 |
#borderWidth |
783 | 145 |
'Defines the width of the border (in pixels).' |
303 | 146 |
|
1166 | 147 |
#buttonModelArg |
148 |
'Value stored into the model when the button is pressed.' |
|
149 |
||
307 | 150 |
#canvas |
780 | 151 |
'Aspect selector or binding for the widget placed into the notebook.' |
294 | 152 |
|
350 | 153 |
#canvasArgument |
801 | 154 |
'An optional argument passed with the message.' |
350 | 155 |
|
156 |
#canvasSelector |
|
801 | 157 |
'The name of the message sent to the application after opening the canvas.' |
350 | 158 |
|
1153 | 159 |
#chartHolder |
160 |
'Value holder on a chart description.' |
|
161 |
||
162 |
#chartLabel |
|
163 |
'Label string shown with the chart.' |
|
164 |
||
580 | 165 |
#clientHolder |
801 | 166 |
'Aspect selector or binding for a holder on the client application to be opened.' |
580 | 167 |
|
350 | 168 |
#clientKey |
801 | 169 |
'Name of the message which returns an application. By default the application itself is used.' |
350 | 170 |
|
540 | 171 |
#codeBaseHolder |
172 |
'The URL of the directory, where the classFile-file resides. If the classFile is located on the local machine, use\ file:/<fullPath>\ where fullPath is an absolute pathname. If its to be accessed via http, use\ http:/<host>/<relativePath>\ where relativePath is the path relative to the http''s top diretory on that host.' |
|
173 |
||
174 |
#codeFileEntry |
|
801 | 175 |
'The name of the java classFile which contains the applets code. For example: ''ArcTest.class''' |
540 | 176 |
|
1164 | 177 |
#columnAdaptor |
178 |
'Name of a method in the application which returns a column adaptor.' |
|
179 |
||
580 | 180 |
#columnButton |
780 | 181 |
'Opens a Table Columns Builder.' |
580 | 182 |
|
183 |
#columnHolder |
|
801 | 184 |
'Aspect selector or binding for a holder on the list of the column descriptions.' |
580 | 185 |
|
1176 | 186 |
#componentsChangeSize |
187 |
'Recompute layout when any component changes its size.' |
|
188 |
||
1165 | 189 |
#converter |
190 |
'Method in the application returning a typeconverter.' |
|
847 | 191 |
|
1176 | 192 |
#dblClickChannel |
193 |
'Aspect selector or binding for a holder on the double-clicked item.' |
|
194 |
||
350 | 195 |
#defaultLabel |
780 | 196 |
'Default label (used, if nothing selected).' |
350 | 197 |
|
198 |
#document |
|
855 | 199 |
'Aspect selector or binding for a holder of the URL of the document.' |
350 | 200 |
|
201 |
#doubleClickSelector |
|
1028 | 202 |
'Message sent to the application upon double click.' |
580 | 203 |
|
204 |
#downAction |
|
801 | 205 |
'Name of the message sent to the application when the down(right)-button is pressed.' |
294 | 206 |
|
1157
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
207 |
#dragDisplayObjects |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
208 |
'Message with one argument the DropSource, to get the list of Objects displayed during dragging' |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
209 |
|
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
210 |
#dragDropObjects |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
211 |
'Message with one argument the DropSource, to get the list of DropObjects' |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
212 |
|
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
213 |
#dragFeedBack |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
214 |
'Optional Message with one argument, the DropContext, to give a feedBack of the finished operation' |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
215 |
|
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
216 |
#dragStart |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
217 |
'Optional Message with two arguments, the DropSource and the view, called to start your own handler' |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
218 |
|
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
219 |
#dragStartArgument |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
220 |
'Optional user defined argument stored in the DropSource' |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
221 |
|
1190 | 222 |
#drawBoxChannel |
223 |
'Boolean aspect which controls box-display.' |
|
224 |
||
225 |
#drawNormalsChannel |
|
226 |
'Boolean aspect which controls normals-display.' |
|
227 |
||
1157
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
228 |
#dropArgument |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
229 |
'Optional user defined argument stored in the DropTarget' |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
230 |
|
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
231 |
#dropCanCheck |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
232 |
'Message with one argument, the DropContext, to asked if the context could be dropped' |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
233 |
|
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
234 |
#dropEnter |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
235 |
'Optional Message with one argument, the DropContext, send the first time when entering the widget' |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
236 |
|
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
237 |
#dropLeave |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
238 |
'Optional Message with one argument, the DropContext, send the last time when leaving the widget' |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
239 |
|
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
240 |
#dropOver |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
241 |
'Optional Message with one argument, the DropContext, send all the time when moveing over the widget' |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
242 |
|
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
243 |
#dropSelector |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
244 |
'Message with one argument, the DropContext, to drop the collection of objects' |
cc039cdcc145
add help text to the drag & drop operation
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
245 |
|
350 | 246 |
#enableChannel |
837 | 247 |
'Aspect selector or binding for a boolean holder which enables the widget.' |
350 | 248 |
|
1161 | 249 |
#endMotionCallBack |
250 |
'Method invoked with end of thumb motion.' |
|
251 |
||
1051 | 252 |
#escapeIsCancelInDialog |
253 |
'If on, and the window is opened modal, the ESC-Key acts like a Cancel-action' |
|
254 |
||
580 | 255 |
#fileSelectionFilterClas |
801 | 256 |
'The name of the item class used to create the entries into the hierarchical list.' |
580 | 257 |
|
350 | 258 |
#fileSelectionTreeRoot |
801 | 259 |
'Aspect selector or binding for a holder on the root directories path name.' |
350 | 260 |
|
580 | 261 |
#fitLastRow |
801 | 262 |
'Resize the last row to fit the width of the widget.' |
580 | 263 |
|
350 | 264 |
#fontMenu |
801 | 265 |
'Defines the font used by the widget.' |
294 | 266 |
|
367 | 267 |
#forceRecursiveBackground |
801 | 268 |
'If on, the background color is recursively set in all sub components.' |
367 | 269 |
|
540 | 270 |
#foregroundChannel |
801 | 271 |
'Aspect selector or binding for a foreground color holder.' |
540 | 272 |
|
350 | 273 |
#foregroundColor |
780 | 274 |
'Defines the foreground color of the widget.' |
350 | 275 |
|
276 |
#galleryLabels |
|
801 | 277 |
'Aspect selector or binding for a holder on the label list.' |
350 | 278 |
|
279 |
#galleryModel |
|
780 | 280 |
'Aspect selector or binding for the selected label.' |
294 | 281 |
|
307 | 282 |
#gallerySelection |
801 | 283 |
'Aspect selector or binding for a holder which gets the windowSpec of the selected widget.' |
307 | 284 |
|
294 | 285 |
#gallerySelectors |
801 | 286 |
'Name of the message sent to the application returning a list of resource spec selectors.' |
294 | 287 |
|
1190 | 288 |
#glxGraphXMax |
289 |
'range end x' |
|
290 |
||
291 |
#glxGraphXMin |
|
292 |
'range start x' |
|
293 |
||
294 |
#glxGraphXStep |
|
295 |
'range step x' |
|
296 |
||
297 |
#glxGraphYMax |
|
298 |
'range end y' |
|
299 |
||
300 |
#glxGraphYMin |
|
301 |
'range start y' |
|
302 |
||
303 |
#glxGraphYStep |
|
304 |
'range step y' |
|
305 |
||
1164 | 306 |
#has3Dseparators |
801 | 307 |
'Enable 3D-look row/column separators.' |
367 | 308 |
|
1082 | 309 |
#hasBorder |
310 |
'Draw a border around the widget - ignored in 3D view styles (ST80 compatibility).' |
|
311 |
||
350 | 312 |
#hierarchicalList |
801 | 313 |
'Aspect selector or binding for a root item holder.' |
350 | 314 |
|
315 |
#hierarchicalListButton |
|
780 | 316 |
'Opens a Hierarchical List Editor on the application class and the defined selector.' |
294 | 317 |
|
1153 | 318 |
#highlightMode |
319 |
'Defines how selected items are highlighted' |
|
320 |
||
350 | 321 |
#horizontalLayout |
801 | 322 |
'Defines how sub components are arranged horizontally.' |
350 | 323 |
|
324 |
#horizontalMiniScroller |
|
801 | 325 |
'Use a mini-scroller as horizontal scrollbar.' |
294 | 326 |
|
350 | 327 |
#horizontalScroller |
801 | 328 |
'Enable horizontal scrollability.' |
350 | 329 |
|
580 | 330 |
#horizontalSpace |
801 | 331 |
'Horizontal space between sub components (in pixels).' |
580 | 332 |
|
350 | 333 |
#id |
780 | 334 |
'Unique symbolic name (ID) of the widget.' |
303 | 335 |
|
540 | 336 |
#initiallyDisabled |
801 | 337 |
'Widget is initially disabled.' |
540 | 338 |
|
367 | 339 |
#initiallyInvisible |
801 | 340 |
'Widget is initially invisible.' |
367 | 341 |
|
342 |
#inputFieldGroup |
|
780 | 343 |
'Unique symbolic name (ID) for the group of the entry field.' |
367 | 344 |
|
350 | 345 |
#isMultiSelect |
801 | 346 |
'Enable/disable multiple selections.' |
294 | 347 |
|
580 | 348 |
#isOpaque |
801 | 349 |
'If on, the widget is displayed opaque; if off, its transparent.' |
580 | 350 |
|
350 | 351 |
#isTriggerOnDown |
801 | 352 |
'If on, the button triggers its action when pressed. If off, it triggers on release.' |
303 | 353 |
|
1153 | 354 |
#itemChildrenSelector |
355 |
'Method in the application to return a block retrieveing nodes (lazy) children.' |
|
356 |
||
357 |
#itemContentsSelector |
|
358 |
'Method in the application to return a block retrieveing a nodes (lazy) contents.' |
|
359 |
||
360 |
#itemIconSelector |
|
361 |
'Method in the application to return a block retrieveing nodes (lazy) icon.' |
|
362 |
||
363 |
#itemLabelSelector |
|
364 |
'Method in the application to return a block retrieveing nodes (lazy) label.' |
|
365 |
||
1181 | 366 |
#keepCanvasAlive |
367 |
'If on, the view is unmapped when switching; otherwise, its destroyed.' |
|
368 |
||
1161 | 369 |
#keyboardStep |
370 |
'Defines the step used with cursor keys.' |
|
371 |
||
303 | 372 |
#label |
801 | 373 |
'The label of the widget.' |
303 | 374 |
|
1176 | 375 |
#labelAlignment |
376 |
'Specifies how the labels logo is positioned within the Label.' |
|
377 |
||
367 | 378 |
#labelChannel |
801 | 379 |
'Aspect selector or binding for a labelString holder.' |
367 | 380 |
|
381 |
#labelIsImage |
|
837 | 382 |
'Label is actually the selector if a message providing an image-label.' |
367 | 383 |
|
580 | 384 |
#labelPositionList |
780 | 385 |
'Defines the position of the label.' |
580 | 386 |
|
540 | 387 |
#lampColor |
801 | 388 |
'Defines the lamps color.' |
540 | 389 |
|
350 | 390 |
#level |
1028 | 391 |
'Level of the 3D-border (in pixels); Take widgets default, if left empty.' |
350 | 392 |
|
393 |
#listHolder |
|
801 | 394 |
'Aspect selector or binding for the list holder.' |
350 | 395 |
|
396 |
#majorKey |
|
801 | 397 |
'Name of the class which provides the window spec. If empty, the application itself is used.' |
350 | 398 |
|
399 |
#maxChars |
|
801 | 400 |
'Maximum number of characters in the field.' |
350 | 401 |
|
402 |
#maxSize |
|
403 |
'Those two fields specify the windows maximum size. The user will not be allowed to resize it to a larger size.' |
|
404 |
||
847 | 405 |
#maxValue |
406 |
'An optional maximum value (if fieldType = numberInRange)' |
|
407 |
||
350 | 408 |
#maxXField |
801 | 409 |
'The maximum width of the applications topWindow.' |
350 | 410 |
|
411 |
#maxYField |
|
801 | 412 |
'The maximum height of the applications topWindow.' |
350 | 413 |
|
414 |
#menuButton |
|
801 | 415 |
'Open a Menu Editor on the menu.' |
350 | 416 |
|
417 |
#menuId |
|
1051 | 418 |
'Aspect selector or binding providing the menu spec.' |
350 | 419 |
|
420 |
#menuPerformer |
|
801 | 421 |
'Aspect selector or binding providing the receiver of menu messages.' |
350 | 422 |
|
423 |
#middleButtonPressed |
|
801 | 424 |
'Name of the message sent to the application when the middle button is pressed.' |
350 | 425 |
|
847 | 426 |
#minValue |
427 |
'An optional minimum value (if fieldType = numberInRange)' |
|
428 |
||
350 | 429 |
#minXField |
801 | 430 |
'The minimum width of the applications topWindow.' |
350 | 431 |
|
432 |
#minYField |
|
801 | 433 |
'The minimum height of the applications topWindow.' |
350 | 434 |
|
294 | 435 |
#minorKey |
801 | 436 |
'Name of the message sent to the application returning the window specification.' |
350 | 437 |
|
1162 | 438 |
#model |
439 |
'Aspect selector or binding providing the model of the widget.' |
|
440 |
||
580 | 441 |
#modifiedChannel |
801 | 442 |
'Aspect selector or binding for a holder for the modified-flag.' |
580 | 443 |
|
444 |
#monitoring |
|
801 | 445 |
'Enable automatic update whenever the directory is modified.' |
580 | 446 |
|
447 |
#monitoringDelayTime |
|
801 | 448 |
'Time in seconds between updates (if monitoring is enabled).' |
580 | 449 |
|
450 |
#moveSelectedRow |
|
801 | 451 |
'Enable/disable automatic movement of the row containing the selected tab item.' |
580 | 452 |
|
350 | 453 |
#oneTabPerLine |
801 | 454 |
'Arrange tabs vertically, with only one tab item per row.' |
350 | 455 |
|
610
c6dc33689c6a
Add help for subSpec GUI Painter opening.
Stefan Vogel <sv@exept.de>
parents:
584
diff
changeset
|
456 |
#openSubSpecGuiHelp |
780 | 457 |
'Opens a GUI Builder on the defined class and selector.' |
610
c6dc33689c6a
Add help for subSpec GUI Painter opening.
Stefan Vogel <sv@exept.de>
parents:
584
diff
changeset
|
458 |
|
580 | 459 |
#orientation |
801 | 460 |
'Defines the orientation (horizontal or vertical).' |
580 | 461 |
|
540 | 462 |
#paramAdd |
801 | 463 |
'Adds a name-value pair to the appletParameter collection.' |
540 | 464 |
|
465 |
#paramList |
|
466 |
'Lists defined parameters.' |
|
467 |
||
468 |
#paramNameField |
|
469 |
'The name of the appletParameter.' |
|
470 |
||
471 |
#paramRemove |
|
801 | 472 |
'Removes that appletParameter.' |
540 | 473 |
|
474 |
#paramValueField |
|
475 |
'The value of the appletParameter.' |
|
476 |
||
1161 | 477 |
#progressValueHolder |
478 |
'Aspect selector or binding for a holder on the indicators value.' |
|
479 |
||
540 | 480 |
#radioButtonGroup |
801 | 481 |
'Aspect selector or binding providing the radioButton group-model.' |
540 | 482 |
|
483 |
#radioButtonValue |
|
801 | 484 |
'Value passed to the radioButton group-model.' |
540 | 485 |
|
486 |
#readOnly |
|
801 | 487 |
'Make the contents be readOnly.' |
540 | 488 |
|
580 | 489 |
#regionType |
780 | 490 |
'Defines the shape of the widget.' |
580 | 491 |
|
540 | 492 |
#resizeForLabel |
801 | 493 |
'Enable/disable automatic resize after a label change.' |
540 | 494 |
|
1051 | 495 |
#returnIsOKInDialog |
496 |
'If on, and the window is opened modal, the Return/Enter-Key acts like an Accept-action' |
|
497 |
||
580 | 498 |
#rowIfAbsent |
801 | 499 |
'Name of the message sent to the application when an empty list entry is detected.' |
580 | 500 |
|
1161 | 501 |
#scrollerValueHolder |
502 |
'Aspect selector or binding for a holder on the scrollers value.' |
|
503 |
||
580 | 504 |
#selectConditionSelector |
1028 | 505 |
'Message sent to the application to validate a selection (not selectable if false is returned).' |
580 | 506 |
|
1164 | 507 |
#selectRowOnDefault |
508 |
'Select whole row, if unselectable column is selected.' |
|
509 |
||
350 | 510 |
#selectionHolder |
801 | 511 |
'Aspect selector or binding for a holder on the selection.' |
350 | 512 |
|
513 |
#setMaxExtent |
|
801 | 514 |
'Pick the maximum extent from the canvases current extent.' |
350 | 515 |
|
516 |
#setMinExtent |
|
801 | 517 |
'Pick the minimum extent from the canvases current extent.' |
350 | 518 |
|
1190 | 519 |
#showBox |
520 |
'Display a bounding box.' |
|
521 |
||
580 | 522 |
#showDirectoryIndicator |
801 | 523 |
'Show/hide directory indicators for non-empty directories.' |
580 | 524 |
|
525 |
#showDirectoryIndicatorForRoot |
|
801 | 526 |
'Show/hide the directory indicator for the root item.' |
303 | 527 |
|
1164 | 528 |
#showLabels |
529 |
'Show/hide column labels.' |
|
530 |
||
540 | 531 |
#showLamp |
801 | 532 |
'Show/hide the colored lamp.' |
540 | 533 |
|
350 | 534 |
#showLines |
801 | 535 |
'Show/hide connecting lines between tree items.' |
303 | 536 |
|
1190 | 537 |
#showNormals |
538 |
'Display normals.' |
|
539 |
||
580 | 540 |
#showPercentage |
801 | 541 |
'Show/hide the percentage display.' |
580 | 542 |
|
350 | 543 |
#showRoot |
801 | 544 |
'Show/hide the root item.' |
294 | 545 |
|
580 | 546 |
#showSeparatingLines |
801 | 547 |
'Show/hide separated lines.' |
580 | 548 |
|
350 | 549 |
#sizeAsDefault |
801 | 550 |
'Size the widget to include space for the default-(return) bitmap.' |
294 | 551 |
|
1161 | 552 |
#sliderValueHolder |
553 |
'Aspect selector or binding for a holder on the sliders value.' |
|
554 |
||
580 | 555 |
#specHolder |
780 | 556 |
'Aspect selector or binding for holding the selector returning a window specification.' |
580 | 557 |
|
558 |
#start |
|
801 | 559 |
'Defines the ranges minimum.' |
580 | 560 |
|
1161 | 561 |
#startMotionCallBack |
562 |
'Method invoked with start of thumb motion.' |
|
563 |
||
580 | 564 |
#step |
801 | 565 |
'Defines the step within the range.' |
580 | 566 |
|
567 |
#stop |
|
801 | 568 |
'Defines the ranges maximum.' |
580 | 569 |
|
1028 | 570 |
#supportsExpandAll |
571 |
'Enable/disable the expand-all function' |
|
572 |
||
294 | 573 |
#tabLabels |
801 | 574 |
'Name of the message sent to the application returning a list of labels for the tab items.' |
294 | 575 |
|
350 | 576 |
#tabOrientation |
780 | 577 |
'Defines the side for the arrangement of the tab items.' |
294 | 578 |
|
579 |
#tabWidget |
|
801 | 580 |
'Defines the type of the border style of the tab items (Windows style vs. Mac style).' |
367 | 581 |
|
540 | 582 |
#tabable |
837 | 583 |
'Widget can be reached by pressing the TAB key.' |
540 | 584 |
|
1176 | 585 |
#tabbedOverEndAction |
586 |
'Method invoked when the end was reached by tabbing.' |
|
587 |
||
588 |
#tabbedOverStartAction |
|
589 |
'Method invoked when the beginning was reached by tabbing.' |
|
590 |
||
367 | 591 |
#translateLabel |
837 | 592 |
'Translate the label via the resource mechanism to a national language string.' |
294 | 593 |
|
350 | 594 |
#typeConverter |
801 | 595 |
'Defines how the entry string is converted to an object which is passed to the model.' |
350 | 596 |
|
580 | 597 |
#upAction |
801 | 598 |
'Name of the message sent to the application when the up(left)-button is pressed.' |
580 | 599 |
|
350 | 600 |
#useIndex |
801 | 601 |
'If on, use the items index as selection; if off, use the items value.' |
307 | 602 |
|
367 | 603 |
#usePreferredExtent |
1051 | 604 |
'If on, the window computes its preferred extent; if off, the layout-sections value is used.' |
367 | 605 |
|
580 | 606 |
#validateDoubleClickSelector |
1028 | 607 |
'Message sent to the application to validate double click (no action if false is returned).' |
608 |
||
609 |
#validateExpandabilitySelector |
|
610 |
'Message sent to the application to validate expand on double click (no expand if false is returned).' |
|
580 | 611 |
|
294 | 612 |
#valueChangeSelector |
1028 | 613 |
'Message sent to the application when the selection has changed.' |
294 | 614 |
|
350 | 615 |
#verticalLayout |
780 | 616 |
'Defines how sub components are vertically arranged.' |
294 | 617 |
|
350 | 618 |
#verticalMiniScroller |
801 | 619 |
'Use a mini-scroller as vertical scrollbar.' |
303 | 620 |
|
350 | 621 |
#verticalScroller |
801 | 622 |
'Enable vertical scrollability.' |
350 | 623 |
|
580 | 624 |
#verticalSpace |
780 | 625 |
'Vertical space between the sub components (in pixels).' |
580 | 626 |
|
1296 | 627 |
#visibilityChannel |
628 |
'Aspect selector or binding for a boolean holder which makes the widget visible.' |
|
629 |
||
350 | 630 |
#windowIcon |
801 | 631 |
'Name of the message sent to the application returning an icon image for the top window.' |
303 | 632 |
|
350 | 633 |
#windowLabel |
801 | 634 |
'Label of the top window.' |
307 | 635 |
|
1190 | 636 |
#xRotChannel |
637 |
'Aspect providing x-Rotation value.' |
|
638 |
||
639 |
#xTransChannel |
|
640 |
'Aspect providing x-Translation value.' |
|
641 |
||
642 |
#yRotChannel |
|
643 |
'Aspect providing y-Rotation value.' |
|
644 |
||
645 |
#yTransChannel |
|
646 |
'Aspect providing y-Translation value.' |
|
647 |
||
648 |
#zRotChannel |
|
649 |
'Aspect providing z-Rotation value.' |
|
650 |
||
651 |
#zTransChannel |
|
652 |
'Aspect providing z-Translation value.' |
|
653 |
||
172 | 654 |
) |
655 |
! ! |
|
656 |
||
164 | 657 |
!UISpecificationTool class methodsFor:'interface specs'! |
658 |
||
659 |
windowSpec |
|
1307 | 660 |
"This resource specification was automatically generated |
661 |
by the UIPainter of ST/X." |
|
164 | 662 |
|
1307 | 663 |
"Do not manually edit this!! If it is corrupted, |
664 |
the UIPainter may not be able to read the specification." |
|
164 | 665 |
|
666 |
" |
|
667 |
UIPainter new openOnClass:UISpecificationTool andSelector:#windowSpec |
|
668 |
UISpecificationTool new openInterface:#windowSpec |
|
1307 | 669 |
UISpecificationTool open |
164 | 670 |
" |
671 |
||
672 |
<resource: #canvas> |
|
673 |
||
1307 | 674 |
^ |
675 |
#(#FullSpec |
|
676 |
#name: #windowSpec |
|
677 |
#window: |
|
678 |
#(#WindowSpec |
|
679 |
#label: 'unnamed canvas' |
|
680 |
#name: 'unnamed canvas' |
|
681 |
#bounds: #(#Rectangle 30 217 330 517) |
|
682 |
) |
|
683 |
#component: |
|
684 |
#(#SpecCollection |
|
685 |
#collection: #( |
|
686 |
#(#ArbitraryComponentSpec |
|
687 |
#name: 'ArbitraryComponent1' |
|
688 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
689 |
#hasBorder: false |
|
690 |
#component: #buildInViewTop |
|
691 |
) |
|
692 |
) |
|
693 |
||
694 |
) |
|
164 | 695 |
) |
696 |
! ! |
|
697 |
||
698 |
!UISpecificationTool methodsFor:'accessing'! |
|
699 |
||
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1051
diff
changeset
|
700 |
acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1051
diff
changeset
|
701 |
"return the value of the instance variable 'acceptChannel' (automatically generated)" |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1051
diff
changeset
|
702 |
|
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1051
diff
changeset
|
703 |
^ masterApplication acceptChannel |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1051
diff
changeset
|
704 |
! |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1051
diff
changeset
|
705 |
|
172 | 706 |
specification |
707 |
"gets current edit specification |
|
708 |
" |
|
709 |
^ specification |
|
710 |
||
711 |
||
712 |
! |
|
713 |
||
714 |
specification:aSpec |
|
715 |
"sets current edit specification |
|
716 |
" |
|
717 |
aSpec isNil ifTrue:[ |
|
1307 | 718 |
^ self specificationChanged |
719 |
]. |
|
720 |
"/ same type of spec - simply change the spec; no need to setup everything |
|
428 | 721 |
|
1307 | 722 |
specification class == aSpec class ifTrue:[ |
723 |
specification := aSpec. |
|
724 |
^ specChannel value:specification. |
|
725 |
]. |
|
726 |
self specificationChanged. |
|
727 |
specification := aSpec. |
|
728 |
||
729 |
"/ some tricky specs need the builder during the addBindings phase. |
|
730 |
"/ This is passed down in a special UIBindingsDictionary |
|
731 |
"/ (remain backward compatible) |
|
536
3991e37ec19f
pass special dictionary as bindings-environmnt
Claus Gittinger <cg@exept.de>
parents:
428
diff
changeset
|
732 |
|
1307 | 733 |
aspects := UISpecification newBindingsDictionary. |
734 |
aspects builder:builder. |
|
735 |
aspects at:#modifiedChannel put:modifiedHolder. |
|
736 |
aspects at:#acceptChannel put:self acceptChannel. |
|
172 | 737 |
|
1307 | 738 |
specChannel := specification asValue. |
739 |
specification class addBindingsTo:aspects for:specification channel:specChannel. |
|
536
3991e37ec19f
pass special dictionary as bindings-environmnt
Claus Gittinger <cg@exept.de>
parents:
428
diff
changeset
|
740 |
|
1307 | 741 |
"/ arrange for being notified, if any aspect changes |
742 |
aspects do:[:el| el addDependent:self ]. |
|
743 |
||
172 | 744 |
! ! |
745 |
||
746 |
!UISpecificationTool methodsFor:'accessing channels'! |
|
747 |
||
164 | 748 |
modifiedHolder:aValueHolder |
749 |
"set the value holder set to true in case of modifying attributes |
|
750 |
" |
|
1071 | 751 |
|
1307 | 752 |
modifiedHolder removeDependent:self. |
164 | 753 |
|
754 |
(modifiedHolder := aValueHolder) notNil ifTrue:[ |
|
755 |
modifiedHolder addDependent:self. |
|
756 |
]. |
|
757 |
||
758 |
! ! |
|
759 |
||
364 | 760 |
!UISpecificationTool methodsFor:'actions'! |
761 |
||
762 |
setMaxExtent |
|
763 |
"set the windows maxExtent from its current extent" |
|
764 |
||
765 |
|canvas currentExtent| |
|
766 |
||
767 |
canvas := self masterApplication painter topView. |
|
768 |
currentExtent := canvas extent. |
|
769 |
(self aspectFor:#maxX) value:currentExtent x. |
|
770 |
(self aspectFor:#maxY) value:currentExtent y. |
|
771 |
||
772 |
"Modified: / 29.10.1997 / 18:29:17 / cg" |
|
773 |
! |
|
774 |
||
775 |
setMinExtent |
|
776 |
"set the windows minExtent from its current extent" |
|
777 |
||
778 |
|canvas currentExtent| |
|
779 |
||
780 |
canvas := self masterApplication painter topView. |
|
781 |
currentExtent := canvas extent. |
|
782 |
(self aspectFor:#minX) value:currentExtent x. |
|
783 |
(self aspectFor:#minY) value:currentExtent y. |
|
784 |
||
785 |
"Created: / 29.10.1997 / 18:17:55 / cg" |
|
786 |
"Modified: / 29.10.1997 / 18:28:53 / cg" |
|
787 |
! ! |
|
788 |
||
164 | 789 |
!UISpecificationTool methodsFor:'bindings'! |
790 |
||
791 |
aspectFor:aKey |
|
792 |
"returns aspect for a key or nil |
|
793 |
" |
|
794 |
aspects notNil ifTrue:[ |
|
795 |
^ aspects at:aKey ifAbsent:nil |
|
796 |
]. |
|
797 |
^ super aspectFor:aKey |
|
798 |
||
428 | 799 |
! |
800 |
||
1307 | 801 |
buildInViewTop |
802 |
^ buildInView superView |
|
803 |
||
804 |
||
805 |
! |
|
806 |
||
807 |
specificationChanged |
|
428 | 808 |
|
1307 | 809 |
specChannel notNil ifTrue:[ |
810 |
specChannel release. |
|
811 |
specChannel := nil. |
|
812 |
]. |
|
813 |
aspects notNil ifTrue:[ |
|
814 |
aspects release. |
|
815 |
aspects := nil. |
|
876 | 816 |
]. |
1307 | 817 |
selection := nil. |
818 |
specification := nil. |
|
869 | 819 |
|
1307 | 820 |
listOfSpecViews notNil ifTrue:[ |
821 |
buildInView scrolledView:nil. |
|
822 |
||
823 |
listOfSpecViews do:[:aView| |
|
824 |
aView notNil ifTrue:[ |
|
825 |
aView destroy |
|
826 |
] |
|
827 |
]. |
|
828 |
listOfSpecViews := nil. |
|
829 |
]. |
|
584
351914fcc5a4
Define #specificationFor: to fetch subspecifications and
Stefan Vogel <sv@exept.de>
parents:
580
diff
changeset
|
830 |
! |
351914fcc5a4
Define #specificationFor: to fetch subspecifications and
Stefan Vogel <sv@exept.de>
parents:
580
diff
changeset
|
831 |
|
351914fcc5a4
Define #specificationFor: to fetch subspecifications and
Stefan Vogel <sv@exept.de>
parents:
580
diff
changeset
|
832 |
specificationFor:aKey |
351914fcc5a4
Define #specificationFor: to fetch subspecifications and
Stefan Vogel <sv@exept.de>
parents:
580
diff
changeset
|
833 |
"this is called if our current specification contains |
351914fcc5a4
Define #specificationFor: to fetch subspecifications and
Stefan Vogel <sv@exept.de>
parents:
580
diff
changeset
|
834 |
subspecifications or subcanvases. |
351914fcc5a4
Define #specificationFor: to fetch subspecifications and
Stefan Vogel <sv@exept.de>
parents:
580
diff
changeset
|
835 |
Get the subspecification from the current specification" |
351914fcc5a4
Define #specificationFor: to fetch subspecifications and
Stefan Vogel <sv@exept.de>
parents:
580
diff
changeset
|
836 |
|
1307 | 837 |
specification notNil ifTrue:[ |
838 |
^ specification class perform:aKey ifNotUnderstood:nil |
|
584
351914fcc5a4
Define #specificationFor: to fetch subspecifications and
Stefan Vogel <sv@exept.de>
parents:
580
diff
changeset
|
839 |
]. |
351914fcc5a4
Define #specificationFor: to fetch subspecifications and
Stefan Vogel <sv@exept.de>
parents:
580
diff
changeset
|
840 |
^ nil |
172 | 841 |
! ! |
842 |
||
843 |
!UISpecificationTool methodsFor:'change & update'! |
|
164 | 844 |
|
172 | 845 |
update |
846 |
"reload specification |
|
164 | 847 |
" |
172 | 848 |
specChannel notNil ifTrue:[ |
849 |
specChannel value:specification. |
|
850 |
] |
|
164 | 851 |
|
852 |
||
853 |
! |
|
854 |
||
855 |
update:something with:someArgument from:someone |
|
856 |
"any attribute changed its state in the current specification |
|
857 |
" |
|
858 |
someone ~~ modifiedHolder ifTrue:[ |
|
893 | 859 |
"/ any in the spec has changed. |
860 |
"/ update my modified holders value |
|
861 |
||
1071 | 862 |
modifiedHolder value:true |
164 | 863 |
] |
864 |
||
893 | 865 |
"Modified: / 16.7.1998 / 19:25:59 / cg" |
164 | 866 |
! ! |
867 |
||
1307 | 868 |
!UISpecificationTool methodsFor:'initialization'! |
869 |
||
870 |
initialize |
|
871 |
|view| |
|
872 |
||
873 |
super initialize. |
|
874 |
view := ScrollableView for:BuildInView. |
|
875 |
view verticalScrollable:true. |
|
876 |
view verticalMini:true. |
|
877 |
view autoHideScrollBars:true. |
|
878 |
view level:0. |
|
879 |
buildInView := view scrolledView. |
|
880 |
! ! |
|
881 |
||
164 | 882 |
!UISpecificationTool methodsFor:'selection'! |
883 |
||
884 |
selection:something |
|
172 | 885 |
"selection changed |
886 |
" |
|
1307 | 887 |
|slices index spec window| |
164 | 888 |
|
172 | 889 |
specification notNil ifTrue:[ |
890 |
slices := specification class slices. |
|
1307 | 891 |
index := slices findFirst:[:aSlice| aSlice first = something ]. |
164 | 892 |
|
1307 | 893 |
index ~~ 0 ifTrue:[ |
894 |
spec := specification class perform:((slices at:index) last) |
|
428 | 895 |
] |
164 | 896 |
]. |
897 |
||
172 | 898 |
spec ~= selection ifTrue:[ |
1307 | 899 |
(selection := spec) notNil ifTrue:[ |
900 |
listOfSpecViews isNil ifTrue:[ |
|
901 |
listOfSpecViews := Array new:(slices size). |
|
902 |
] ifFalse:[ |
|
903 |
window := listOfSpecViews at:index |
|
904 |
]. |
|
905 |
window isNil ifTrue:[ |
|
906 |
builder buildFromSpec:spec in:(window := SimpleView new). |
|
907 |
listOfSpecViews at:index put:window. |
|
908 |
]. |
|
909 |
]. |
|
910 |
buildInView scrolledView:window. |
|
164 | 911 |
]. |
912 |
! ! |
|
913 |
||
1307 | 914 |
!UISpecificationTool::BuildInView methodsFor:'accessing'! |
759 | 915 |
|
1307 | 916 |
scrolledView:aView |
917 |
"set the view to be scrolled" |
|
918 |
|scr| |
|
919 |
||
920 |
scrolledView == aView ifTrue:[^ self]. |
|
759 | 921 |
|
1307 | 922 |
outerFrame isNil ifTrue:[ |
923 |
self level:0. |
|
924 |
outerFrame := SimpleView origin:0.0@0.0 corner:1.0@1.0 in:self. |
|
925 |
realized ifTrue:[outerFrame realize]. |
|
926 |
]. |
|
759 | 927 |
|
1307 | 928 |
scrolledView notNil ifTrue:[scrolledView unmap]. |
759 | 929 |
|
1307 | 930 |
(scrolledView := aView) isNil ifTrue:[ |
931 |
^ self |
|
932 |
]. |
|
933 |
||
934 |
scrolledView superView == outerFrame ifFalse:[ |
|
935 |
scrolledView borderWidth:0; level:0. |
|
845
146b3f78afcb
we dont want any 3D effect for the scrolled view
Claus Gittinger <cg@exept.de>
parents:
837
diff
changeset
|
936 |
|
1307 | 937 |
outerFrame addSubView:scrolledView. |
938 |
scrolledView origin:0@0 corner:1.0 @ (scrolledView preferredExtent y). |
|
939 |
scrolledView := scrolledView. |
|
940 |
scrolledView allViewBackground:(self viewBackground). |
|
759 | 941 |
]. |
845
146b3f78afcb
we dont want any 3D effect for the scrolled view
Claus Gittinger <cg@exept.de>
parents:
837
diff
changeset
|
942 |
|
1307 | 943 |
realized ifTrue:[ |
944 |
scrolledView realize. |
|
945 |
self sizeChanged:nil. |
|
946 |
]. |
|
759 | 947 |
|
1307 | 948 |
|
949 |
||
950 |
||
951 |
||
759 | 952 |
! ! |
953 |
||
164 | 954 |
!UISpecificationTool class methodsFor:'documentation'! |
955 |
||
956 |
version |
|
957 |
^ '$Header$' |
|
958 |
! ! |