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