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