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