author | ca |
Wed, 22 Apr 1998 15:58:26 +0200 | |
changeset 803 | 19e0367ee9d6 |
parent 799 | 22734b99f830 |
child 816 | b3d2c7c1c5db |
permissions | -rw-r--r-- |
332 | 1 |
" |
2 |
COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger |
|
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 |
||
408 | 17 |
ToolApplicationModel subclass:#DataSetBuilder |
332 | 18 |
instanceVariableNames:'className superclassName hasChanged columnView columns |
556 | 19 |
selectedColumnIndex tabSelectionIndex aspects' |
332 | 20 |
classVariableNames:'Number' |
21 |
poolDictionaries:'' |
|
22 |
category:'Interface-UIPainter' |
|
23 |
! |
|
24 |
||
25 |
!DataSetBuilder class methodsFor:'documentation'! |
|
26 |
||
27 |
copyright |
|
28 |
" |
|
29 |
COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger |
|
30 |
All Rights Reserved |
|
31 |
||
32 |
This software is furnished under a license and may be used |
|
33 |
only in accordance with the terms of that license and with the |
|
34 |
inclusion of the above copyright notice. This software may not |
|
35 |
be provided or otherwise made available to, or used by, any |
|
36 |
other person. No title to or ownership of the software is |
|
37 |
hereby transferred. |
|
38 |
" |
|
39 |
||
40 |
||
41 |
||
42 |
||
43 |
! |
|
44 |
||
45 |
documentation |
|
46 |
" |
|
47 |
create and modify or inspect dataset columns; used by UIPainter (DataSetColumnSpec) |
|
48 |
||
49 |
[see also:] |
|
50 |
DataSetColumnSpec |
|
51 |
DataSetSpec |
|
52 |
DataSetView |
|
53 |
DataSetColumn |
|
54 |
||
55 |
[author:] |
|
545 | 56 |
Claus Atzkern, eXept Software AG |
332 | 57 |
" |
58 |
||
59 |
! ! |
|
60 |
||
799
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
61 |
!DataSetBuilder class methodsFor:'instance creation'! |
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
62 |
|
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
63 |
openOnClass:aClass andSelector:aSelector |
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
64 |
self information:'not yet implemented' |
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
65 |
|
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
66 |
"Created: / 22.4.1998 / 10:21:03 / cg" |
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
67 |
! ! |
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
68 |
|
528 | 69 |
!DataSetBuilder class methodsFor:'help specs'! |
70 |
||
71 |
helpSpec |
|
72 |
"return a dictionary filled with helpKey -> helptext associations. |
|
73 |
These are used by the activeHelp tool." |
|
74 |
||
75 |
" |
|
76 |
UIHelpTool openOnClass:DataSetBuilder |
|
77 |
" |
|
78 |
||
79 |
^ super helpSpec addPairsFrom:#( |
|
80 |
||
550 | 81 |
#addColumn |
82 |
'Adds a new column.' |
|
83 |
||
597 | 84 |
#basicsEditor |
85 |
'Default widget type or a selector returning an instance of an user defined widget opened in the cell.' |
|
528 | 86 |
|
597 | 87 |
#basicsFont |
88 |
'Sets the font of the label text.' |
|
528 | 89 |
|
597 | 90 |
#basicsJustification |
91 |
'Aligns the label text to the left, right, or centered in the cell.' |
|
528 | 92 |
|
597 | 93 |
#basicsLabel |
94 |
'The label of the column or a selector returning a string an image.' |
|
95 |
||
96 |
#basicsLabelIsImage |
|
97 |
'Turns on/off image behavior of the label string; i.e. it is used as selector returning an image.' |
|
528 | 98 |
|
597 | 99 |
#basicsRenderer |
100 |
'Specifies displaying cell as Text, CheckToggle, ComboBox, ComboList or as a RowSelector.' |
|
528 | 101 |
|
597 | 102 |
#colorsBackgroundCellColor |
103 |
'Sets the background color of the column.' |
|
104 |
||
105 |
#colorsBackgroundLabelColor |
|
106 |
'Sets the background color of the label.' |
|
528 | 107 |
|
597 | 108 |
#colorsBackgroundSelector |
109 |
'Selector returning the background color for a cell (optional).' |
|
528 | 110 |
|
597 | 111 |
#colorsForegroundCellColor |
112 |
'Sets the foreground color of the column.' |
|
113 |
||
114 |
#colorsForegroundLabelColor |
|
115 |
'Sets the foreground color of the label.' |
|
528 | 116 |
|
597 | 117 |
#colorsForegroundSelector |
118 |
'Selector returning the foreground color for a cell (optional).' |
|
528 | 119 |
|
597 | 120 |
#formatInputType |
121 |
'A type converter symbol used by the input field.' |
|
528 | 122 |
|
597 | 123 |
#formatMaxSize |
124 |
'Maximum size of the string which can be typed in. 0 or nil means unlimited.' |
|
528 | 125 |
|
597 | 126 |
#formatTextFormat |
127 |
'Format string specifying the output format of the cell text. In this release, only numbers are supported (for example: 0.0000).' |
|
128 |
||
129 |
#frameColumnWidth |
|
130 |
'Width (fixed) of a column (optional).' |
|
528 | 131 |
|
597 | 132 |
#frameMinWidth |
133 |
'Minimum width of the column (optional).' |
|
528 | 134 |
|
597 | 135 |
#frameRowHeight |
136 |
'Height of the row (optional).' |
|
137 |
||
138 |
#frameShowColumnSeparator |
|
139 |
'Turns on/off displaying column separators.' |
|
528 | 140 |
|
597 | 141 |
#frameShowRowSeparator |
142 |
'Turns on/off displaying row separators.' |
|
528 | 143 |
|
597 | 144 |
#selectionCellClickSelector |
145 |
'A selector called if cell was selected. ' |
|
528 | 146 |
|
597 | 147 |
#selectionCellDoubleClickSelector |
148 |
'A selector called if cell was double clicked.' |
|
528 | 149 |
|
597 | 150 |
#selectionCellSelector |
528 | 151 |
'An optional selector, which is used to test whether the cell in the column is selectable; the ''Is Selectable'' flag must be enabled.' |
152 |
||
597 | 153 |
#selectionIsSelectable |
154 |
'Turns on/off selection behavior of a column.' |
|
155 |
||
156 |
#selectionLabelClickSelector |
|
157 |
'A selector called if label cell was clicked.' |
|
528 | 158 |
|
597 | 159 |
#selectionLabelSelectorArgument |
160 |
'An argument passed to label selection selector. ' |
|
528 | 161 |
|
597 | 162 |
#valuesChoiceSelector |
163 |
'A selector returning a collection of choices for a cell having a ComboBox or a ComboList widget.' |
|
528 | 164 |
|
597 | 165 |
#valuesMenuSelector |
166 |
'A selector returning a middle button menu.' |
|
167 |
||
168 |
#valuesPrintSelector |
|
169 |
'A key selector used to register images on a DSVColumnView (the arg). For more detailed info see #register... methods in DSVColumnView.' |
|
528 | 170 |
|
597 | 171 |
#valuesReadSelector |
172 |
'A selector used to get (string or a bitmap) or set (if the write selector is undefined) the contents of a cell.' |
|
528 | 173 |
|
597 | 174 |
#valuesWriteSelector |
175 |
'A selector used to set the value of a cell.' |
|
528 | 176 |
|
177 |
) |
|
178 |
! ! |
|
179 |
||
180 |
!DataSetBuilder class methodsFor:'interface specs'! |
|
332 | 181 |
|
182 |
basicsEditSpec |
|
183 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
184 |
||
185 |
"do not manually edit this - the painter/builder may not be able to |
|
186 |
handle the specification if its corrupted." |
|
187 |
||
188 |
" |
|
189 |
UIPainter new openOnClass:DataSetBuilder andSelector:#basicsEditSpec |
|
190 |
DataSetBuilder new openInterface:#basicsEditSpec |
|
191 |
" |
|
192 |
||
193 |
<resource: #canvas> |
|
194 |
||
195 |
^ |
|
196 |
||
197 |
#(#FullSpec |
|
687 | 198 |
#window: |
332 | 199 |
#(#WindowSpec |
687 | 200 |
#name: 'DataSet Basic' |
201 |
#layout: #(#LayoutFrame 299 0 234 0 587 0 489 0) |
|
202 |
#label: 'DataSet Basic' |
|
203 |
#min: #(#Point 10 10) |
|
204 |
#max: #(#Point 1280 1024) |
|
205 |
#bounds: #(#Rectangle 299 234 588 490) |
|
206 |
#usePreferredExtent: false |
|
332 | 207 |
) |
687 | 208 |
#component: |
332 | 209 |
#(#SpecCollection |
687 | 210 |
#collection: |
332 | 211 |
#( |
408 | 212 |
#(#FramedBoxSpec |
687 | 213 |
#name: 'framedBox1' |
214 |
#layout: #(#LayoutFrame 0 0.0 3 0 0 1.0 145 0) |
|
215 |
#component: |
|
408 | 216 |
#(#SpecCollection |
687 | 217 |
#collection: |
408 | 218 |
#( |
219 |
#(#LabelSpec |
|
687 | 220 |
#name: 'label1' |
221 |
#layout: #(#AlignmentOrigin 107 0 32 0 1 0.5) |
|
222 |
#label: 'Label:' |
|
223 |
#resizeForLabel: true |
|
408 | 224 |
) |
225 |
#(#InputFieldSpec |
|
687 | 226 |
#name: 'labelField' |
227 |
#layout: #(#LayoutFrame 110 0 21 0 15 1.0 43 0) |
|
228 |
#activeHelpKey: #basicsLabel |
|
229 |
#tabable: true |
|
230 |
#model: #label |
|
408 | 231 |
) |
232 |
#(#CheckBoxSpec |
|
687 | 233 |
#name: 'labelIsImage' |
234 |
#layout: #(#LayoutOrigin 107 0 103 0) |
|
235 |
#activeHelpKey: #basicsLabelIsImage |
|
236 |
#tabable: true |
|
237 |
#model: #labelIsImage |
|
238 |
#label: 'Label Is Image' |
|
408 | 239 |
) |
439 | 240 |
#(#UISubSpecification |
687 | 241 |
#name: 'fontSubSpec' |
242 |
#layout: #(#LayoutFrame 60 0.0 47 0 15 1.0 75 0) |
|
243 |
#activeHelpKey: #basicsFont |
|
244 |
#majorKey: #UISpecification |
|
245 |
#minorKey: #fontSpec |
|
439 | 246 |
) |
442 | 247 |
#(#PopUpListSpec |
687 | 248 |
#name: 'Alignment' |
249 |
#layout: #(#LayoutFrame 110 0 78 0 15 1.0 100 0) |
|
250 |
#activeHelpKey: #basicsJustification |
|
251 |
#label: 'Alignment' |
|
252 |
#model: #labelAlignment |
|
253 |
#menu: |
|
442 | 254 |
#(#left |
255 |
#right #center |
|
256 |
) |
|
687 | 257 |
#useIndex: false |
442 | 258 |
) |
259 |
#(#LabelSpec |
|
687 | 260 |
#name: 'JustificationLabel' |
261 |
#layout: #(#AlignmentOrigin 107 0 89 0 1 0.5) |
|
262 |
#label: 'Justification:' |
|
263 |
#adjust: #left |
|
264 |
#resizeForLabel: true |
|
442 | 265 |
) |
408 | 266 |
) |
267 |
) |
|
687 | 268 |
#label: 'Header:' |
269 |
#labelPosition: #topLeft |
|
332 | 270 |
) |
271 |
#(#FramedBoxSpec |
|
687 | 272 |
#name: 'typesFrame' |
273 |
#layout: #(#LayoutFrame 0 0.0 145 0 0 1.0 227 0) |
|
274 |
#component: |
|
332 | 275 |
#(#SpecCollection |
687 | 276 |
#collection: |
332 | 277 |
#( |
278 |
#(#LabelSpec |
|
687 | 279 |
#name: 'rendererLabel' |
280 |
#layout: #(#AlignmentOrigin 107 0 29 0 1 0.5) |
|
281 |
#label: 'Renderer:' |
|
282 |
#resizeForLabel: true |
|
332 | 283 |
) |
284 |
#(#ComboListSpec |
|
687 | 285 |
#name: 'rendererField' |
286 |
#layout: #(#LayoutFrame 110 0 18 0 15 1.0 40 0) |
|
287 |
#activeHelpKey: #basicsRenderer |
|
288 |
#tabable: true |
|
289 |
#model: #rendererType |
|
290 |
#comboList: #rendererTypeList |
|
291 |
#useIndex: false |
|
332 | 292 |
) |
293 |
#(#LabelSpec |
|
687 | 294 |
#name: 'editorLabel' |
295 |
#layout: #(#AlignmentOrigin 107 0 55 0 1 0.5) |
|
296 |
#label: 'Editor:' |
|
297 |
#resizeForLabel: true |
|
332 | 298 |
) |
299 |
#(#ComboBoxSpec |
|
687 | 300 |
#name: 'editorField' |
301 |
#layout: #(#LayoutFrame 110 0 44 0 15 1.0 66 0) |
|
302 |
#activeHelpKey: #basicsEditor |
|
303 |
#tabable: true |
|
304 |
#model: #editorType |
|
305 |
#type: #symbolOrNil |
|
306 |
#comboList: #editorTypeList |
|
307 |
#useIndex: false |
|
332 | 308 |
) |
309 |
) |
|
310 |
) |
|
687 | 311 |
#label: 'Cell Type:' |
312 |
#labelPosition: #topLeft |
|
391 | 313 |
) |
314 |
) |
|
315 |
) |
|
316 |
) |
|
317 |
! |
|
318 |
||
408 | 319 |
colorsEditSpec |
332 | 320 |
"this window spec was automatically generated by the ST/X UIPainter" |
321 |
||
322 |
"do not manually edit this - the painter/builder may not be able to |
|
323 |
handle the specification if its corrupted." |
|
324 |
||
325 |
" |
|
408 | 326 |
UIPainter new openOnClass:DataSetBuilder andSelector:#colorsEditSpec |
327 |
DataSetBuilder new openInterface:#colorsEditSpec |
|
332 | 328 |
" |
329 |
||
330 |
<resource: #canvas> |
|
331 |
||
332 |
^ |
|
333 |
||
334 |
#(#FullSpec |
|
687 | 335 |
#window: |
332 | 336 |
#(#WindowSpec |
687 | 337 |
#name: 'DataSet Misc' |
338 |
#layout: #(#LayoutFrame 383 0 282 0 751 0 581 0) |
|
339 |
#label: 'DataSet Misc' |
|
340 |
#min: #(#Point 10 10) |
|
341 |
#max: #(#Point 1280 1024) |
|
342 |
#bounds: #(#Rectangle 383 282 752 582) |
|
343 |
#usePreferredExtent: false |
|
332 | 344 |
) |
687 | 345 |
#component: |
332 | 346 |
#(#SpecCollection |
687 | 347 |
#collection: |
332 | 348 |
#( |
370 | 349 |
#(#FramedBoxSpec |
687 | 350 |
#name: 'ColorsBox' |
351 |
#layout: #(#LayoutFrame 0 0.0 3 0 0 1.0 88 0) |
|
352 |
#component: |
|
427 | 353 |
#(#SpecCollection |
687 | 354 |
#collection: |
427 | 355 |
#( |
505 | 356 |
#(#LabelSpec |
687 | 357 |
#name: 'label1' |
358 |
#layout: #(#AlignmentOrigin 107 0 27 0 1 0.5) |
|
359 |
#label: 'Foreground:' |
|
360 |
#adjust: #right |
|
361 |
#resizeForLabel: true |
|
505 | 362 |
) |
427 | 363 |
#(#ColorMenuSpec |
687 | 364 |
#name: 'colorMenu1' |
365 |
#layout: #(#LayoutFrame 110 0 15 0 12 1.0 37 0) |
|
366 |
#activeHelpKey: #colorsForegroundLabelColor |
|
367 |
#model: #labelForegroundColor |
|
368 |
#labelsAreColored: true |
|
427 | 369 |
) |
370 |
#(#LabelSpec |
|
687 | 371 |
#name: 'label2' |
372 |
#layout: #(#AlignmentOrigin 107 0 55 0 1 0.5) |
|
373 |
#label: 'Background:' |
|
374 |
#adjust: #right |
|
375 |
#resizeForLabel: true |
|
427 | 376 |
) |
377 |
#(#ColorMenuSpec |
|
687 | 378 |
#name: 'colorMenu2' |
379 |
#layout: #(#LayoutFrame 110 0 43 0 12 1.0 65 0) |
|
380 |
#activeHelpKey: #colorsBackgroundLabelColor |
|
381 |
#model: #labelBackgroundColor |
|
382 |
#labelsAreColored: false |
|
427 | 383 |
) |
384 |
) |
|
385 |
) |
|
687 | 386 |
#label: 'Label Colors:' |
387 |
#labelPosition: #topLeft |
|
427 | 388 |
) |
389 |
#(#FramedBoxSpec |
|
687 | 390 |
#name: 'defaultColorsBox' |
391 |
#layout: #(#LayoutFrame 0 0.0 88 0 0 1.0 230 0) |
|
392 |
#component: |
|
370 | 393 |
#(#SpecCollection |
687 | 394 |
#collection: |
370 | 395 |
#( |
396 |
#(#LabelSpec |
|
687 | 397 |
#name: 'fgLabel' |
398 |
#layout: #(#AlignmentOrigin 107 0 27 0 1 0.5) |
|
399 |
#label: 'Foreground:' |
|
400 |
#adjust: #right |
|
401 |
#resizeForLabel: true |
|
370 | 402 |
) |
505 | 403 |
#(#ColorMenuSpec |
687 | 404 |
#name: 'fgMenu' |
405 |
#layout: #(#LayoutFrame 110 0 15 0 12 1.0 37 0) |
|
406 |
#activeHelpKey: #colorsForegroundCellColor |
|
407 |
#model: #foregroundColor |
|
408 |
#labelsAreColored: true |
|
505 | 409 |
) |
370 | 410 |
#(#LabelSpec |
687 | 411 |
#name: 'bgLabel' |
412 |
#layout: #(#AlignmentOrigin 107 0 55 0 1 0.5) |
|
413 |
#label: 'Background:' |
|
414 |
#adjust: #right |
|
415 |
#resizeForLabel: true |
|
370 | 416 |
) |
417 |
#(#ColorMenuSpec |
|
687 | 418 |
#name: 'bgMenu' |
419 |
#layout: #(#LayoutFrame 110 0 43 0 12 1.0 65 0) |
|
420 |
#activeHelpKey: #colorsBackgroundCellColor |
|
421 |
#model: #backgroundColor |
|
422 |
#labelsAreColored: false |
|
370 | 423 |
) |
380 | 424 |
#(#LabelSpec |
687 | 425 |
#name: 'fgSelLabel' |
426 |
#layout: #(#AlignmentOrigin 107 0 89 0 1 0.5) |
|
427 |
#label: 'FG-Selector:' |
|
428 |
#adjust: #right |
|
429 |
#resizeForLabel: true |
|
380 | 430 |
) |
431 |
#(#InputFieldSpec |
|
687 | 432 |
#name: 'fgSelField' |
433 |
#layout: #(#LayoutFrame 110 0 78 0 15 1.0 100 0) |
|
434 |
#activeHelpKey: #colorsForegroundSelector |
|
435 |
#tabable: true |
|
436 |
#model: #foregroundSelector |
|
437 |
#type: #symbolOrNil |
|
470 | 438 |
) |
505 | 439 |
#(#LabelSpec |
687 | 440 |
#name: 'bgSelLabel' |
441 |
#layout: #(#AlignmentOrigin 107 0 114 0 1 0.5) |
|
442 |
#label: 'BG-Selector:' |
|
443 |
#adjust: #right |
|
444 |
#resizeForLabel: true |
|
505 | 445 |
) |
470 | 446 |
#(#InputFieldSpec |
687 | 447 |
#name: 'bgSelField' |
448 |
#layout: #(#LayoutFrame 110 0 103 0 15 1.0 125 0) |
|
449 |
#activeHelpKey: #colorsBackgroundSelector |
|
450 |
#tabable: true |
|
451 |
#model: #backgroundSelector |
|
452 |
#type: #symbolOrNil |
|
408 | 453 |
) |
380 | 454 |
) |
455 |
) |
|
687 | 456 |
#label: 'Cell Colors:' |
457 |
#labelPosition: #topLeft |
|
377 | 458 |
) |
332 | 459 |
) |
460 |
) |
|
461 |
) |
|
462 |
! |
|
463 |
||
528 | 464 |
defineClassNameSpec |
465 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
466 |
||
467 |
"do not manually edit this - the painter/builder may not be able to |
|
468 |
handle the specification if its corrupted." |
|
469 |
||
470 |
" |
|
471 |
UIPainter new openOnClass:DataSetBuilder andSelector:#defineClassNameSpec |
|
472 |
DataSetBuilder new openInterface:#defineClassNameSpec |
|
473 |
" |
|
474 |
||
475 |
<resource: #canvas> |
|
476 |
||
477 |
^ |
|
478 |
||
479 |
#(#FullSpec |
|
687 | 480 |
#window: |
528 | 481 |
#(#WindowSpec |
687 | 482 |
#name: 'Data Set Builder' |
483 |
#layout: #(#LayoutFrame 425 0 253 0 751 0 388 0) |
|
484 |
#label: 'Data Set Builder' |
|
485 |
#min: #(#Point 10 10) |
|
486 |
#max: #(#Point 1152 900) |
|
487 |
#bounds: #(#Rectangle 425 253 752 389) |
|
488 |
#usePreferredExtent: false |
|
528 | 489 |
) |
687 | 490 |
#component: |
528 | 491 |
#(#SpecCollection |
687 | 492 |
#collection: |
528 | 493 |
#( |
494 |
#(#FramedBoxSpec |
|
687 | 495 |
#name: 'framedBox1' |
496 |
#layout: #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -34 1.0) |
|
497 |
#label: 'Classes for code' |
|
498 |
#labelPosition: #topLeft |
|
528 | 499 |
) |
500 |
#(#LabelSpec |
|
687 | 501 |
#name: 'classLabel' |
502 |
#layout: #(#AlignmentOrigin 73 0.11 38 0 1 0.5) |
|
503 |
#label: 'Class:' |
|
504 |
#adjust: #right |
|
505 |
#resizeForLabel: true |
|
528 | 506 |
) |
507 |
#(#InputFieldSpec |
|
687 | 508 |
#name: 'classNameInputField' |
509 |
#layout: #(#LayoutFrame 77 0.11 27 0 -16 1.0 49 0) |
|
510 |
#tabable: true |
|
511 |
#model: #classNameChannel |
|
528 | 512 |
) |
513 |
#(#LabelSpec |
|
687 | 514 |
#name: 'superClassLabel' |
515 |
#layout: #(#AlignmentOrigin 73 0.11 65 0 1 0.5) |
|
516 |
#label: 'Superclass:' |
|
517 |
#adjust: #right |
|
518 |
#resizeForLabel: true |
|
528 | 519 |
) |
520 |
#(#InputFieldSpec |
|
687 | 521 |
#name: 'superclassNameInputField' |
522 |
#layout: #(#LayoutFrame 76 0.11 55 0 -16 1.0 77 0) |
|
523 |
#tabable: true |
|
524 |
#model: #superclassNameChannel |
|
528 | 525 |
) |
526 |
#(#UISubSpecification |
|
687 | 527 |
#name: 'SubSpecification' |
528 |
#layout: #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1.0) |
|
529 |
#majorKey: #ToolApplicationModel |
|
530 |
#minorKey: #windowSpecForCommitWithoutChannels |
|
528 | 531 |
) |
532 |
) |
|
533 |
) |
|
534 |
) |
|
535 |
! |
|
536 |
||
370 | 537 |
formatEditSpec |
332 | 538 |
"this window spec was automatically generated by the ST/X UIPainter" |
539 |
||
540 |
"do not manually edit this - the painter/builder may not be able to |
|
541 |
handle the specification if its corrupted." |
|
542 |
||
543 |
" |
|
370 | 544 |
UIPainter new openOnClass:DataSetBuilder andSelector:#formatEditSpec |
545 |
DataSetBuilder new openInterface:#formatEditSpec |
|
546 |
" |
|
547 |
||
548 |
<resource: #canvas> |
|
549 |
||
550 |
^ |
|
551 |
||
552 |
#(#FullSpec |
|
687 | 553 |
#window: |
370 | 554 |
#(#WindowSpec |
687 | 555 |
#name: 'DataSet Details' |
556 |
#layout: #(#LayoutFrame 415 0 266 0 802 0 557 0) |
|
557 |
#label: 'DataSet Details' |
|
558 |
#min: #(#Point 10 10) |
|
559 |
#max: #(#Point 1280 1024) |
|
560 |
#bounds: #(#Rectangle 415 266 803 558) |
|
561 |
#usePreferredExtent: false |
|
370 | 562 |
) |
687 | 563 |
#component: |
370 | 564 |
#(#SpecCollection |
687 | 565 |
#collection: |
370 | 566 |
#( |
408 | 567 |
#(#FramedBoxSpec |
687 | 568 |
#name: 'framedBox1' |
569 |
#layout: #(#LayoutFrame 0 0.0 3 0 0 1.0 114 0) |
|
570 |
#component: |
|
408 | 571 |
#(#SpecCollection |
687 | 572 |
#collection: |
408 | 573 |
#( |
574 |
#(#LabelSpec |
|
687 | 575 |
#name: 'typeLabel' |
576 |
#layout: #(#AlignmentOrigin 107 0 29 0 1 0.5) |
|
577 |
#label: 'Input Type:' |
|
578 |
#resizeForLabel: true |
|
408 | 579 |
) |
470 | 580 |
#(#ComboListSpec |
687 | 581 |
#name: 'typeCombo' |
582 |
#layout: #(#LayoutFrame 110 0 18 0 15 1.0 40 0) |
|
583 |
#activeHelpKey: #formatInputType |
|
584 |
#tabable: true |
|
585 |
#model: #type |
|
586 |
#comboList: |
|
470 | 587 |
#(#string |
588 |
#password #number |
|
589 |
#numberOrNil #symbolOrNil |
|
590 |
) |
|
687 | 591 |
#useIndex: false |
470 | 592 |
) |
408 | 593 |
#(#LabelSpec |
687 | 594 |
#name: 'sizeLabel' |
595 |
#layout: #(#AlignmentOrigin 107 0 55 0 1 0.5) |
|
596 |
#label: 'Max Size:' |
|
597 |
#resizeForLabel: true |
|
408 | 598 |
) |
599 |
#(#InputFieldSpec |
|
687 | 600 |
#name: 'sizeField' |
601 |
#layout: #(#LayoutFrame 110 0 44 0 15 1.0 66 0) |
|
602 |
#activeHelpKey: #formatMaxSize |
|
603 |
#tabable: true |
|
604 |
#model: #size |
|
605 |
#type: #numberOrNil |
|
408 | 606 |
) |
439 | 607 |
#(#LabelSpec |
687 | 608 |
#name: 'formatLabel' |
609 |
#layout: #(#AlignmentOrigin 107 0 80 0 1 0.5) |
|
610 |
#label: 'Text Format:' |
|
611 |
#resizeForLabel: true |
|
439 | 612 |
) |
470 | 613 |
#(#InputFieldSpec |
687 | 614 |
#name: 'formatField' |
615 |
#layout: #(#LayoutFrame 110 0 69 0 15 1.0 91 0) |
|
616 |
#activeHelpKey: #formatTextFormat |
|
617 |
#tabable: true |
|
618 |
#model: #formatString |
|
470 | 619 |
) |
408 | 620 |
) |
621 |
) |
|
687 | 622 |
#label: 'Input Format' |
623 |
#labelPosition: #topLeft |
|
370 | 624 |
) |
625 |
) |
|
626 |
) |
|
627 |
) |
|
628 |
! |
|
629 |
||
408 | 630 |
frameEditSpec |
391 | 631 |
"this window spec was automatically generated by the ST/X UIPainter" |
632 |
||
633 |
"do not manually edit this - the painter/builder may not be able to |
|
634 |
handle the specification if its corrupted." |
|
635 |
||
636 |
" |
|
408 | 637 |
UIPainter new openOnClass:DataSetBuilder andSelector:#frameEditSpec |
638 |
DataSetBuilder new openInterface:#frameEditSpec |
|
391 | 639 |
" |
640 |
||
641 |
<resource: #canvas> |
|
642 |
||
643 |
^ |
|
644 |
||
645 |
#(#FullSpec |
|
687 | 646 |
#window: |
391 | 647 |
#(#WindowSpec |
687 | 648 |
#name: 'DataSet Dimension' |
649 |
#layout: #(#LayoutFrame 354 0 262 0 644 0 475 0) |
|
650 |
#label: 'DataSet Dimension' |
|
651 |
#min: #(#Point 10 10) |
|
652 |
#max: #(#Point 1280 1024) |
|
653 |
#bounds: #(#Rectangle 354 262 645 476) |
|
654 |
#usePreferredExtent: false |
|
391 | 655 |
) |
687 | 656 |
#component: |
391 | 657 |
#(#SpecCollection |
687 | 658 |
#collection: |
391 | 659 |
#( |
660 |
#(#FramedBoxSpec |
|
687 | 661 |
#name: 'separatorBox' |
662 |
#layout: #(#LayoutFrame 0 0.0 3 0 0 1.0 86 0) |
|
663 |
#component: |
|
391 | 664 |
#(#SpecCollection |
687 | 665 |
#collection: |
391 | 666 |
#( |
408 | 667 |
#(#CheckBoxSpec |
687 | 668 |
#name: 'showRowSeparator' |
669 |
#layout: #(#LayoutFrame 18 0 19 0 194 0 42 0) |
|
670 |
#activeHelpKey: #frameShowRowSeparator |
|
671 |
#tabable: true |
|
672 |
#model: #showRowSeparator |
|
673 |
#label: 'Show Row-Separator' |
|
408 | 674 |
) |
675 |
#(#CheckBoxSpec |
|
687 | 676 |
#name: 'showColSeparator' |
677 |
#layout: #(#LayoutFrame 18 0 45 0 194 0 68 0) |
|
678 |
#activeHelpKey: #frameShowColumnSeparator |
|
679 |
#tabable: true |
|
680 |
#model: #showColSeparator |
|
681 |
#label: 'Show Column-Separator' |
|
408 | 682 |
) |
683 |
) |
|
684 |
) |
|
687 | 685 |
#label: 'Separators' |
686 |
#labelPosition: #topLeft |
|
408 | 687 |
) |
688 |
#(#FramedBoxSpec |
|
687 | 689 |
#name: 'framedBox1' |
690 |
#layout: #(#LayoutFrame 0 0.0 86 0 0 1.0 198 0) |
|
691 |
#component: |
|
408 | 692 |
#(#SpecCollection |
687 | 693 |
#collection: |
408 | 694 |
#( |
391 | 695 |
#(#LabelSpec |
687 | 696 |
#name: 'widthLabel' |
697 |
#layout: #(#AlignmentOrigin 107 0.0 28 0 1 0.5) |
|
698 |
#label: 'Column Width:' |
|
699 |
#adjust: #right |
|
700 |
#resizeForLabel: true |
|
391 | 701 |
) |
470 | 702 |
#(#InputFieldSpec |
687 | 703 |
#name: 'widthField' |
704 |
#layout: #(#LayoutFrame 110 0 17 0 15 1.0 39 0) |
|
705 |
#activeHelpKey: #frameColumnWidth |
|
706 |
#tabable: true |
|
707 |
#model: #width |
|
708 |
#type: #numberOrNil |
|
470 | 709 |
) |
391 | 710 |
#(#LabelSpec |
687 | 711 |
#name: 'minWidthLabel' |
712 |
#layout: #(#AlignmentOrigin 107 0.0 53 0 1 0.5) |
|
713 |
#label: 'Min Width:' |
|
714 |
#adjust: #right |
|
715 |
#resizeForLabel: true |
|
391 | 716 |
) |
408 | 717 |
#(#InputFieldSpec |
687 | 718 |
#name: 'minWidthField' |
719 |
#layout: #(#LayoutFrame 110 0 42 0 15 1.0 64 0) |
|
720 |
#activeHelpKey: #frameMinWidth |
|
721 |
#tabable: true |
|
722 |
#model: #minWidth |
|
723 |
#type: #numberOrNil |
|
408 | 724 |
) |
725 |
#(#LabelSpec |
|
687 | 726 |
#name: 'heightLabel' |
727 |
#layout: #(#AlignmentOrigin 107 0.0 84 0 1 0.5) |
|
728 |
#label: 'Row Height:' |
|
729 |
#adjust: #right |
|
730 |
#resizeForLabel: true |
|
408 | 731 |
) |
732 |
#(#InputFieldSpec |
|
687 | 733 |
#name: 'heightField' |
734 |
#layout: #(#LayoutFrame 110 0 73 0 15 1.0 95 0) |
|
735 |
#activeHelpKey: #frameRowHeight |
|
736 |
#tabable: true |
|
737 |
#model: #height |
|
738 |
#type: #numberOrNil |
|
391 | 739 |
) |
740 |
) |
|
741 |
) |
|
687 | 742 |
#label: 'Dimensions:' |
743 |
#labelPosition: #topLeft |
|
391 | 744 |
) |
745 |
) |
|
746 |
) |
|
747 |
) |
|
748 |
! |
|
749 |
||
408 | 750 |
selectionEditSpec |
370 | 751 |
"this window spec was automatically generated by the ST/X UIPainter" |
752 |
||
753 |
"do not manually edit this - the painter/builder may not be able to |
|
754 |
handle the specification if its corrupted." |
|
755 |
||
756 |
" |
|
408 | 757 |
UIPainter new openOnClass:DataSetBuilder andSelector:#selectionEditSpec |
758 |
DataSetBuilder new openInterface:#selectionEditSpec |
|
332 | 759 |
" |
760 |
||
761 |
<resource: #canvas> |
|
762 |
||
763 |
^ |
|
764 |
||
765 |
#(#FullSpec |
|
687 | 766 |
#window: |
332 | 767 |
#(#WindowSpec |
687 | 768 |
#name: 'DataSet Basic' |
769 |
#layout: #(#LayoutFrame 411 0 287 0 699 0 542 0) |
|
770 |
#label: 'DataSet Basic' |
|
771 |
#min: #(#Point 10 10) |
|
772 |
#max: #(#Point 1280 1024) |
|
773 |
#bounds: #(#Rectangle 411 287 700 543) |
|
774 |
#usePreferredExtent: false |
|
408 | 775 |
) |
687 | 776 |
#component: |
408 | 777 |
#(#SpecCollection |
687 | 778 |
#collection: |
408 | 779 |
#( |
780 |
#(#FramedBoxSpec |
|
687 | 781 |
#name: 'framedBox1' |
782 |
#layout: #(#LayoutFrame 0 0.0 3 0 0 1.0 85 0) |
|
783 |
#component: |
|
408 | 784 |
#(#SpecCollection |
687 | 785 |
#collection: |
408 | 786 |
#( |
787 |
#(#LabelSpec |
|
687 | 788 |
#name: 'ActionLabel' |
789 |
#layout: #(#AlignmentOrigin 107 0 28 0 1 0.5) |
|
790 |
#label: 'Selector:' |
|
791 |
#adjust: #left |
|
792 |
#resizeForLabel: true |
|
408 | 793 |
) |
794 |
#(#InputFieldSpec |
|
687 | 795 |
#name: 'ActionSelector' |
796 |
#layout: #(#LayoutFrame 110 0 17 0 15 1.0 39 0) |
|
797 |
#activeHelpKey: #selectionLabelClickSelector |
|
798 |
#tabable: true |
|
799 |
#model: #labelActionSelector |
|
800 |
#type: #symbolOrNil |
|
408 | 801 |
) |
427 | 802 |
#(#LabelSpec |
687 | 803 |
#name: 'ArgumentLabel' |
804 |
#layout: #(#AlignmentOrigin 107 0 53 0 1 0.5) |
|
805 |
#label: 'Argument:' |
|
806 |
#adjust: #left |
|
807 |
#resizeForLabel: true |
|
427 | 808 |
) |
809 |
#(#InputFieldSpec |
|
687 | 810 |
#name: 'ArgumentValue' |
811 |
#layout: #(#LayoutFrame 110 0 42 0 15 1.0 64 0) |
|
812 |
#activeHelpKey: #selectionLabelSelectorArgument |
|
813 |
#tabable: true |
|
814 |
#model: #labelActionArgument |
|
815 |
#type: #string |
|
427 | 816 |
) |
408 | 817 |
) |
818 |
) |
|
687 | 819 |
#label: 'Label Select Action:' |
820 |
#labelPosition: #topLeft |
|
408 | 821 |
) |
822 |
#(#FramedBoxSpec |
|
687 | 823 |
#name: 'framedBox2' |
824 |
#layout: #(#LayoutFrame 0 0.0 85 0 0 1.0 166 0) |
|
825 |
#component: |
|
470 | 826 |
#(#SpecCollection |
687 | 827 |
#collection: |
470 | 828 |
#( |
829 |
#(#CheckBoxSpec |
|
687 | 830 |
#name: 'canSelect' |
831 |
#layout: #(#Point 107 17) |
|
832 |
#activeHelpKey: #selectionIsSelectable |
|
833 |
#tabable: true |
|
834 |
#model: #canSelect |
|
835 |
#label: 'Is Selectable' |
|
470 | 836 |
) |
837 |
#(#LabelSpec |
|
687 | 838 |
#name: 'selectorLabel' |
839 |
#layout: #(#AlignmentOrigin 107 0 53 0 1 0.5) |
|
840 |
#label: 'Selector:' |
|
841 |
#adjust: #right |
|
842 |
#resizeForLabel: true |
|
470 | 843 |
) |
844 |
#(#InputFieldSpec |
|
687 | 845 |
#name: 'selectSelector' |
846 |
#layout: #(#LayoutFrame 110 0 42 0 15 1.0 64 0) |
|
847 |
#activeHelpKey: #selectionCellClickSelector |
|
848 |
#tabable: true |
|
849 |
#model: #selectSelector |
|
850 |
#type: #symbolOrNil |
|
470 | 851 |
) |
852 |
) |
|
853 |
) |
|
687 | 854 |
#label: 'Cell Selection:' |
855 |
#labelPosition: #topLeft |
|
470 | 856 |
) |
857 |
#(#FramedBoxSpec |
|
687 | 858 |
#name: 'framedBox3' |
859 |
#layout: #(#LayoutFrame 0 0.0 166 0 0 1.0 220 0) |
|
860 |
#component: |
|
408 | 861 |
#(#SpecCollection |
687 | 862 |
#collection: |
408 | 863 |
#( |
864 |
#(#LabelSpec |
|
687 | 865 |
#name: 'doubleLabel' |
866 |
#layout: #(#AlignmentOrigin 107 0 27 0 1 0.5) |
|
867 |
#label: 'Selector:' |
|
868 |
#adjust: #right |
|
869 |
#resizeForLabel: true |
|
408 | 870 |
) |
871 |
#(#InputFieldSpec |
|
687 | 872 |
#name: 'doubleClicked' |
873 |
#layout: #(#LayoutFrame 110 0 16 0 15 1.0 38 0) |
|
874 |
#activeHelpKey: #selectionCellDoubleClickSelector |
|
875 |
#tabable: true |
|
876 |
#model: #doubleClickedSelector |
|
877 |
#type: #symbolOrNil |
|
408 | 878 |
) |
879 |
) |
|
880 |
) |
|
687 | 881 |
#label: 'Cell Double Click:' |
882 |
#labelPosition: #topLeft |
|
408 | 883 |
) |
884 |
) |
|
885 |
) |
|
886 |
) |
|
887 |
! |
|
888 |
||
528 | 889 |
slices |
890 |
^#( |
|
891 |
(Basics basicsEditSpec) |
|
892 |
(Values valuesEditSpec) |
|
893 |
(Format formatEditSpec) |
|
894 |
(Selection selectionEditSpec) |
|
895 |
(Frame frameEditSpec) |
|
896 |
(Colors colorsEditSpec) |
|
897 |
) |
|
898 |
! |
|
899 |
||
408 | 900 |
valuesEditSpec |
901 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
902 |
||
903 |
"do not manually edit this - the painter/builder may not be able to |
|
904 |
handle the specification if its corrupted." |
|
905 |
||
906 |
" |
|
907 |
UIPainter new openOnClass:DataSetBuilder andSelector:#valuesEditSpec |
|
908 |
DataSetBuilder new openInterface:#valuesEditSpec |
|
909 |
" |
|
910 |
||
911 |
<resource: #canvas> |
|
912 |
||
913 |
^ |
|
914 |
||
915 |
#(#FullSpec |
|
687 | 916 |
#window: |
408 | 917 |
#(#WindowSpec |
687 | 918 |
#name: 'DataSet Basic' |
919 |
#layout: #(#LayoutFrame 385 0 286 0 680 0 591 0) |
|
920 |
#label: 'DataSet Basic' |
|
921 |
#min: #(#Point 10 10) |
|
922 |
#max: #(#Point 1280 1024) |
|
923 |
#bounds: #(#Rectangle 385 286 681 592) |
|
924 |
#usePreferredExtent: false |
|
332 | 925 |
) |
687 | 926 |
#component: |
332 | 927 |
#(#SpecCollection |
687 | 928 |
#collection: |
332 | 929 |
#( |
370 | 930 |
#(#FramedBoxSpec |
687 | 931 |
#name: 'valuesBox' |
932 |
#layout: #(#LayoutFrame 0 0.0 3 0 0 1.0 110 0) |
|
933 |
#component: |
|
370 | 934 |
#(#SpecCollection |
687 | 935 |
#collection: |
370 | 936 |
#( |
937 |
#(#LabelSpec |
|
687 | 938 |
#name: 'readLabel' |
939 |
#layout: #(#AlignmentOrigin 107 0 29 0 1 0.5) |
|
940 |
#label: 'Read:' |
|
941 |
#adjust: #right |
|
942 |
#resizeForLabel: true |
|
370 | 943 |
) |
944 |
#(#InputFieldSpec |
|
687 | 945 |
#name: 'readSelector' |
946 |
#layout: #(#LayoutFrame 110 0 18 0 15 1.0 40 0) |
|
947 |
#activeHelpKey: #valuesReadSelector |
|
948 |
#tabable: true |
|
949 |
#model: #readSelector |
|
950 |
#type: #symbolOrNil |
|
370 | 951 |
) |
470 | 952 |
#(#LabelSpec |
687 | 953 |
#name: 'writeLabel' |
954 |
#layout: #(#AlignmentOrigin 107 0 54 0 1 0.5) |
|
955 |
#label: 'Write:' |
|
956 |
#adjust: #right |
|
957 |
#resizeForLabel: true |
|
470 | 958 |
) |
379 | 959 |
#(#InputFieldSpec |
687 | 960 |
#name: 'writeSelector' |
961 |
#layout: #(#LayoutFrame 110 0 43 0 15 1.0 65 0) |
|
962 |
#activeHelpKey: #valuesWriteSelector |
|
963 |
#tabable: true |
|
964 |
#model: #writeSelector |
|
965 |
#type: #symbolOrNil |
|
379 | 966 |
) |
370 | 967 |
#(#LabelSpec |
687 | 968 |
#name: 'printLabel' |
969 |
#layout: #(#AlignmentOrigin 107 0 79 0 1 0.5) |
|
970 |
#label: 'Print:' |
|
971 |
#adjust: #right |
|
972 |
#resizeForLabel: true |
|
370 | 973 |
) |
974 |
#(#InputFieldSpec |
|
687 | 975 |
#name: 'printSelector' |
976 |
#layout: #(#LayoutFrame 110 0 68 0 15 1.0 90 0) |
|
977 |
#activeHelpKey: #valuesPrintSelector |
|
978 |
#tabable: true |
|
979 |
#model: #printSelector |
|
980 |
#type: #symbolOrNil |
|
370 | 981 |
) |
982 |
) |
|
983 |
) |
|
687 | 984 |
#label: 'Value Selectors:' |
985 |
#labelPosition: #topLeft |
|
332 | 986 |
) |
370 | 987 |
#(#FramedBoxSpec |
687 | 988 |
#name: 'menusBox' |
989 |
#layout: #(#LayoutFrame 0 0.0 110 0 0 1.0 167 0) |
|
990 |
#component: |
|
370 | 991 |
#(#SpecCollection |
687 | 992 |
#collection: |
370 | 993 |
#( |
994 |
#(#LabelSpec |
|
687 | 995 |
#name: 'menuLabel' |
996 |
#layout: #(#AlignmentOrigin 107 0 29 0 1 0.5) |
|
997 |
#label: 'Selector:' |
|
998 |
#adjust: #right |
|
999 |
#resizeForLabel: true |
|
370 | 1000 |
) |
1001 |
#(#InputFieldSpec |
|
687 | 1002 |
#name: 'menuSelector' |
1003 |
#layout: #(#LayoutFrame 110 0 18 0 15 1.0 40 0) |
|
1004 |
#activeHelpKey: #valuesMenuSelector |
|
1005 |
#tabable: true |
|
1006 |
#model: #menu |
|
1007 |
#type: #symbolOrNil |
|
370 | 1008 |
) |
597 | 1009 |
) |
1010 |
) |
|
687 | 1011 |
#label: 'Menu:' |
1012 |
#labelPosition: #topLeft |
|
597 | 1013 |
) |
1014 |
#(#FramedBoxSpec |
|
687 | 1015 |
#name: 'framedBox1' |
1016 |
#layout: #(#LayoutFrame 1 0.0 167 0 1 1.0 225 0) |
|
1017 |
#component: |
|
597 | 1018 |
#(#SpecCollection |
687 | 1019 |
#collection: |
597 | 1020 |
#( |
370 | 1021 |
#(#LabelSpec |
687 | 1022 |
#name: 'label2' |
1023 |
#layout: #(#AlignmentOrigin 107 0 29 0 1 0.5) |
|
1024 |
#activeHelpKey: #valuesChoiceSelector |
|
1025 |
#label: 'Selector:' |
|
1026 |
#adjust: #right |
|
1027 |
#resizeForLabel: true |
|
370 | 1028 |
) |
1029 |
#(#InputFieldSpec |
|
687 | 1030 |
#name: 'inputField2' |
1031 |
#layout: #(#LayoutFrame 110 0 18 0 15 1.0 40 0) |
|
1032 |
#activeHelpKey: #valuesChoiceSelector |
|
1033 |
#tabable: true |
|
1034 |
#model: #choices |
|
1035 |
#type: #symbolOrNil |
|
370 | 1036 |
) |
1037 |
) |
|
1038 |
) |
|
687 | 1039 |
#label: 'List Choice:' |
1040 |
#labelPosition: #topLeft |
|
391 | 1041 |
) |
332 | 1042 |
) |
1043 |
) |
|
1044 |
) |
|
1045 |
! |
|
1046 |
||
1047 |
windowSpec |
|
1048 |
"this window spec was automatically generated by the ST/X UIPainter" |
|
1049 |
||
1050 |
"do not manually edit this - the painter/builder may not be able to |
|
1051 |
handle the specification if its corrupted." |
|
1052 |
||
1053 |
" |
|
1054 |
UIPainter new openOnClass:DataSetBuilder andSelector:#windowSpec |
|
1055 |
DataSetBuilder new openInterface:#windowSpec |
|
1056 |
" |
|
1057 |
"DataSetBuilder open" |
|
1058 |
||
1059 |
<resource: #canvas> |
|
1060 |
||
1061 |
^ |
|
1062 |
||
1063 |
#(#FullSpec |
|
687 | 1064 |
#window: |
332 | 1065 |
#(#WindowSpec |
687 | 1066 |
#name: 'Data Set Builder' |
1067 |
#layout: #(#LayoutFrame 399 0 282 0 885 0 641 0) |
|
1068 |
#label: 'Data Set Builder' |
|
1069 |
#min: #(#Point 10 10) |
|
1070 |
#max: #(#Point 1152 900) |
|
1071 |
#bounds: #(#Rectangle 399 282 886 642) |
|
1072 |
#menu: #menu |
|
1073 |
#usePreferredExtent: false |
|
332 | 1074 |
) |
687 | 1075 |
#component: |
332 | 1076 |
#(#SpecCollection |
687 | 1077 |
#collection: |
332 | 1078 |
#( |
1079 |
#(#MenuPanelSpec |
|
687 | 1080 |
#name: 'menuToolbarView' |
1081 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 32 0) |
|
1082 |
#menu: #menuToolbar |
|
332 | 1083 |
) |
1084 |
#(#VariableHorizontalPanelSpec |
|
687 | 1085 |
#name: 'VariablePanel' |
1086 |
#layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0) |
|
1087 |
#component: |
|
332 | 1088 |
#(#SpecCollection |
687 | 1089 |
#collection: |
332 | 1090 |
#( |
1091 |
#(#ViewSpec |
|
687 | 1092 |
#name: 'labelsView' |
1093 |
#component: |
|
332 | 1094 |
#(#SpecCollection |
687 | 1095 |
#collection: |
332 | 1096 |
#( |
1097 |
#(#SequenceViewSpec |
|
687 | 1098 |
#name: 'columnView' |
1099 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
1100 |
#model: #selectedColumnModel |
|
1101 |
#menu: #menuEdit |
|
1102 |
#hasHorizontalScrollBar: true |
|
1103 |
#hasVerticalScrollBar: true |
|
1104 |
#miniScrollerHorizontal: true |
|
1105 |
#useIndex: true |
|
1106 |
#sequenceList: #seqList |
|
332 | 1107 |
) |
1108 |
) |
|
1109 |
) |
|
1110 |
) |
|
1111 |
#(#ViewSpec |
|
687 | 1112 |
#name: 'specView' |
1113 |
#component: |
|
332 | 1114 |
#(#SpecCollection |
687 | 1115 |
#collection: |
332 | 1116 |
#( |
1117 |
#(#TabViewSpec |
|
687 | 1118 |
#name: 'tabView' |
1119 |
#layout: #(#LayoutFrame 1 0.0 0 0 0 1.0 35 0) |
|
1120 |
#model: #tabModel |
|
1121 |
#menu: #tabList |
|
1122 |
#useIndex: true |
|
332 | 1123 |
) |
1124 |
#(#SubCanvasSpec |
|
687 | 1125 |
#name: 'specCanvas' |
1126 |
#layout: #(#LayoutFrame 1 0.0 35 0.0 0 1.0 -30 1.0) |
|
1127 |
#specHolder: #specChannel |
|
332 | 1128 |
) |
421 | 1129 |
#(#UISubSpecification |
687 | 1130 |
#name: 'SubSpecification' |
1131 |
#layout: #(#LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0) |
|
1132 |
#majorKey: #ToolApplicationModel |
|
1133 |
#minorKey: #windowSpecForCommit |
|
332 | 1134 |
) |
1135 |
) |
|
1136 |
) |
|
687 | 1137 |
#level: -1 |
332 | 1138 |
) |
1139 |
) |
|
1140 |
) |
|
687 | 1141 |
#handles: #(#Any 0.265905 1.0) |
332 | 1142 |
) |
483 | 1143 |
#(#UISubSpecification |
687 | 1144 |
#name: 'infoBarSubSpec' |
1145 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
1146 |
#majorKey: #ToolApplicationModel |
|
1147 |
#minorKey: #windowSpecForInfoBar |
|
408 | 1148 |
) |
332 | 1149 |
) |
1150 |
) |
|
1151 |
) |
|
1152 |
! ! |
|
1153 |
||
1154 |
!DataSetBuilder class methodsFor:'menu specs'! |
|
1155 |
||
408 | 1156 |
menu |
332 | 1157 |
"this window spec was automatically generated by the ST/X MenuEditor" |
1158 |
||
1159 |
"do not manually edit this - the builder may not be able to |
|
1160 |
handle the specification if its corrupted." |
|
1161 |
||
1162 |
" |
|
408 | 1163 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#menu |
1164 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder menu)) startUp |
|
332 | 1165 |
" |
1166 |
||
1167 |
<resource: #menu> |
|
1168 |
||
1169 |
^ |
|
1170 |
||
1171 |
#(#Menu |
|
1172 |
||
1173 |
#( |
|
1174 |
#(#MenuItem |
|
408 | 1175 |
#'label:' 'About' |
597 | 1176 |
#'activeHelpKey:' #about |
545 | 1177 |
#'labelImage:' #(#ResourceRetriever nil #menuIcon) |
408 | 1178 |
#'submenuChannel:' #menuAbout |
1179 |
) |
|
1180 |
#(#MenuItem |
|
1181 |
#'label:' 'File' |
|
597 | 1182 |
#'activeHelpKey:' #file |
332 | 1183 |
#'submenu:' |
1184 |
#(#Menu |
|
1185 |
||
1186 |
#( |
|
1187 |
#(#MenuItem |
|
408 | 1188 |
#'label:' 'Generate Code' |
1189 |
#'value:' #doGenerateCode |
|
1190 |
) |
|
1191 |
#(#MenuItem |
|
1192 |
#'label:' '-' |
|
1193 |
) |
|
1194 |
#(#MenuItem |
|
597 | 1195 |
#'label:' 'Define Class...' |
408 | 1196 |
#'value:' #doDefineClass |
597 | 1197 |
#'activeHelpKey:' #fileDefineClass |
408 | 1198 |
) |
1199 |
#(#MenuItem |
|
597 | 1200 |
#'label:' 'Browse Class' |
408 | 1201 |
#'value:' #doBrowseClass |
597 | 1202 |
#'activeHelpKey:' #fileBrowseClass |
408 | 1203 |
) |
1204 |
#(#MenuItem |
|
1205 |
#'label:' '-' |
|
1206 |
) |
|
1207 |
#(#MenuItem |
|
1208 |
#'label:' 'Exit' |
|
332 | 1209 |
#'value:' #closeRequest |
550 | 1210 |
#'activeHelpKey:' #fileExit |
332 | 1211 |
) |
1212 |
) nil |
|
1213 |
nil |
|
1214 |
) |
|
1215 |
) |
|
1216 |
#(#MenuItem |
|
408 | 1217 |
#'label:' 'Edit' |
597 | 1218 |
#'activeHelpKey:' #edit |
408 | 1219 |
#'submenuChannel:' #menuEdit |
332 | 1220 |
) |
521 | 1221 |
#(#MenuItem |
1222 |
#'label:' 'Add' |
|
597 | 1223 |
#'activeHelpKey:' #add |
521 | 1224 |
#'submenu:' |
1225 |
#(#Menu |
|
1226 |
||
1227 |
#( |
|
1228 |
#(#MenuItem |
|
1229 |
#'label:' 'Column' |
|
1230 |
#'value:' #doCreateColumn |
|
550 | 1231 |
#'activeHelpKey:' #addColumn |
521 | 1232 |
#'enabled:' #columnIsNotEditing |
1233 |
#'labelImage:' #(#ResourceRetriever nil #newColumnIcon 'Column') |
|
1234 |
) |
|
1235 |
) nil |
|
1236 |
nil |
|
1237 |
) |
|
1238 |
) |
|
1239 |
#(#MenuItem |
|
1240 |
#'label:' 'Help' |
|
545 | 1241 |
#'startGroup:' #right |
597 | 1242 |
#'activeHelpKey:' #help |
521 | 1243 |
#'submenuChannel:' #menuHelp |
1244 |
) |
|
332 | 1245 |
) nil |
1246 |
nil |
|
1247 |
) |
|
1248 |
! |
|
1249 |
||
408 | 1250 |
menuEdit |
332 | 1251 |
"this window spec was automatically generated by the ST/X MenuEditor" |
1252 |
||
1253 |
"do not manually edit this - the builder may not be able to |
|
1254 |
handle the specification if its corrupted." |
|
1255 |
||
1256 |
" |
|
408 | 1257 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#menuEdit |
1258 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder menuEdit)) startUp |
|
1259 |
" |
|
1260 |
||
1261 |
<resource: #menu> |
|
1262 |
||
1263 |
^ |
|
1264 |
||
1265 |
#(#Menu |
|
1266 |
||
1267 |
#( |
|
1268 |
#(#MenuItem |
|
1269 |
#'label:' 'Cut' |
|
1270 |
#'value:' #doCutColumn |
|
550 | 1271 |
#'activeHelpKey:' #editCut |
408 | 1272 |
#'enabled:' #isColumnSelected |
1273 |
) |
|
1274 |
#(#MenuItem |
|
1275 |
#'label:' 'Copy' |
|
1276 |
#'value:' #doCopyColumn |
|
550 | 1277 |
#'activeHelpKey:' #editCopy |
408 | 1278 |
#'enabled:' #isColumnSelected |
1279 |
) |
|
1280 |
#(#MenuItem |
|
1281 |
#'label:' 'Paste' |
|
1282 |
#'value:' #doPasteColumn |
|
550 | 1283 |
#'activeHelpKey:' #editPaste |
408 | 1284 |
#'enabled:' #valueOfHavingClipboard |
1285 |
) |
|
1286 |
#(#MenuItem |
|
1287 |
#'label:' '-' |
|
1288 |
) |
|
1289 |
#(#MenuItem |
|
521 | 1290 |
#'label:' 'Move Up' |
408 | 1291 |
#'value:' #'doMoveColumn:' |
550 | 1292 |
#'activeHelpKey:' #editMoveUp |
408 | 1293 |
#'enabled:' #isColumnSelected |
1294 |
#'argument:' #up |
|
521 | 1295 |
#'labelImage:' #(#ResourceRetriever #DataSetBuilder #upIcon 'Move Up') |
408 | 1296 |
) |
1297 |
#(#MenuItem |
|
521 | 1298 |
#'label:' 'Move Down' |
408 | 1299 |
#'value:' #'doMoveColumn:' |
550 | 1300 |
#'activeHelpKey:' #editMoveDown |
408 | 1301 |
#'enabled:' #isColumnSelected |
1302 |
#'argument:' #down |
|
521 | 1303 |
#'labelImage:' #(#ResourceRetriever #DataSetBuilder #downIcon 'Move Down') |
408 | 1304 |
) |
1305 |
) nil |
|
1306 |
nil |
|
1307 |
) |
|
1308 |
! |
|
1309 |
||
1310 |
menuToolbar |
|
1311 |
"this window spec was automatically generated by the ST/X MenuEditor" |
|
1312 |
||
1313 |
"do not manually edit this - the builder may not be able to |
|
1314 |
handle the specification if its corrupted." |
|
1315 |
||
1316 |
" |
|
1317 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#menuToolbar |
|
1318 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder menuToolbar)) startUp |
|
332 | 1319 |
" |
1320 |
||
1321 |
<resource: #menu> |
|
1322 |
||
1323 |
^ |
|
1324 |
||
1325 |
#(#Menu |
|
1326 |
||
1327 |
#( |
|
1328 |
#(#MenuItem |
|
550 | 1329 |
#'label:' 'Add Column' |
408 | 1330 |
#'isButton:' true |
332 | 1331 |
#'value:' #doCreateColumn |
550 | 1332 |
#'activeHelpKey:' #addColumn |
419 | 1333 |
#'enabled:' #columnIsNotEditing |
408 | 1334 |
#'labelImage:' #(#ResourceRetriever nil #newColumnIcon) |
332 | 1335 |
) |
1336 |
#(#MenuItem |
|
1337 |
#'label:' '' |
|
1338 |
) |
|
1339 |
#(#MenuItem |
|
550 | 1340 |
#'label:' 'Move Up' |
408 | 1341 |
#'isButton:' true |
332 | 1342 |
#'value:' #'doMoveColumn:' |
550 | 1343 |
#'activeHelpKey:' #editMoveUp |
408 | 1344 |
#'enabled:' #isColumnSelected |
332 | 1345 |
#'argument:' #up |
408 | 1346 |
#'labelImage:' #(#ResourceRetriever nil #upIcon) |
332 | 1347 |
) |
1348 |
#(#MenuItem |
|
550 | 1349 |
#'label:' 'Move Down' |
408 | 1350 |
#'isButton:' true |
332 | 1351 |
#'value:' #'doMoveColumn:' |
550 | 1352 |
#'activeHelpKey:' #editMoveDown |
408 | 1353 |
#'enabled:' #isColumnSelected |
332 | 1354 |
#'argument:' #down |
408 | 1355 |
#'labelImage:' #(#ResourceRetriever nil #downIcon) |
332 | 1356 |
) |
1357 |
) nil |
|
1358 |
nil |
|
1359 |
) |
|
1360 |
! ! |
|
1361 |
||
408 | 1362 |
!DataSetBuilder class methodsFor:'resources'! |
1363 |
||
1364 |
newColumnIcon |
|
489 | 1365 |
"Generated by the Image Editor" |
1366 |
" |
|
1367 |
ImageEditor openOnClass:self andSelector:#newColumnIcon |
|
1368 |
" |
|
408 | 1369 |
|
1370 |
<resource: #image> |
|
489 | 1371 |
|
1372 |
^Icon |
|
1373 |
constantNamed:#'DataSetBuilder newColumnIcon' |
|
1374 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UT@@@@UPUTUUUXUPUTZ**,UPUTZB",UPUTX*H,UYUTX*H,UPUTZB",UPQTZ**,UPUTX*H,UPUTX*H,UPUTX*H,UPUTXB@,UPUTZ**,UPUTZ**,UPUTX"H,UYUTXB@,UPUTX"@,UPUTX"H,UPUTZ**,UPUTZ**,UPUT/??<UPUT@@@@UP'); colorMap:(((Array new:4) at:1 put:((Color black)); at:2 put:((Color white)); at:3 put:((Color grey:66.9978)); at:4 put:((Color grey:49.9962)); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A??@A??@A??@A??@A??@A??@A??@A??@A??CA??@A??@A??@A??@A??CA??AA??@A??CA??@A??CA??@A??@A??A'); yourself); yourself]! ! |
|
408 | 1375 |
|
332 | 1376 |
!DataSetBuilder methodsFor:'accessing'! |
1377 |
||
1378 |
columns |
|
419 | 1379 |
"returns list of columns" |
1380 |
||
1381 |
^columns |
|
332 | 1382 |
! |
1383 |
||
1384 |
columns:aListOfColumns fromView:aColumnView |
|
419 | 1385 |
"setup columns from a column view" |
1386 |
||
332 | 1387 |
|list| |
1388 |
||
1389 |
columnView := aColumnView. |
|
1390 |
columns := OrderedCollection new. |
|
1391 |
list := self seqList. |
|
1392 |
hasChanged := false. |
|
1393 |
||
1394 |
list removeAll. |
|
1395 |
||
419 | 1396 |
aListOfColumns size ~~ 0 |
1397 |
ifTrue: |
|
1398 |
[ |
|
1399 |
aListOfColumns do: |
|
1400 |
[:aColumn| |
|
1401 |
columns add: aColumn copy. |
|
1402 |
aColumn rendererType == #rowSelector |
|
1403 |
ifFalse:[list add: aColumn label] |
|
1404 |
ifTrue: [list add:'Row Selector'] |
|
332 | 1405 |
] |
419 | 1406 |
] |
333 | 1407 |
! |
1408 |
||
1409 |
rowClassName |
|
419 | 1410 |
|
1411 |
^(Smalltalk resolveName:className inClass:self class) notNil ifTrue:[className] ifFalse:[nil] |
|
333 | 1412 |
! |
1413 |
||
1414 |
rowClassName:aClassName |
|
419 | 1415 |
|
333 | 1416 |
|cls| |
1417 |
||
1418 |
superclassName := nil. |
|
1419 |
||
419 | 1420 |
(className := aClassName) notNil |
1421 |
ifTrue: |
|
1422 |
[ |
|
1423 |