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