author | Claus Gittinger <cg@exept.de> |
Wed, 26 Jul 2000 13:59:33 +0200 | |
changeset 1382 | bf0c6d52d103 |
parent 1318 | 36a86b5d48a7 |
child 1390 | 36383f7e61b6 |
permissions | -rw-r--r-- |
332 | 1 |
" |
825 | 2 |
COPYRIGHT (c) 1997 by eXept Software AG |
332 | 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 |
||
1382 | 17 |
"{ Package: 'stx:libtool2' }" |
18 |
||
818 | 19 |
ResourceSpecEditor subclass:#DataSetBuilder |
825 | 20 |
instanceVariableNames:'rowClass rowSuperClass columnView columns selectedColumnIndex |
1300 | 21 |
modalOpened listOfSpecViews' |
816 | 22 |
classVariableNames:'' |
332 | 23 |
poolDictionaries:'' |
24 |
category:'Interface-UIPainter' |
|
25 |
! |
|
26 |
||
1033
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
27 |
Array variableSubclass:#Row |
1004 | 28 |
instanceVariableNames:'' |
29 |
classVariableNames:'' |
|
30 |
poolDictionaries:'' |
|
31 |
privateIn:DataSetBuilder |
|
32 |
! |
|
33 |
||
332 | 34 |
!DataSetBuilder class methodsFor:'documentation'! |
35 |
||
36 |
copyright |
|
37 |
" |
|
825 | 38 |
COPYRIGHT (c) 1997 by eXept Software AG |
332 | 39 |
All Rights Reserved |
40 |
||
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
" |
|
48 |
||
49 |
||
50 |
||
51 |
||
52 |
! |
|
53 |
||
54 |
documentation |
|
55 |
" |
|
56 |
create and modify or inspect dataset columns; used by UIPainter (DataSetColumnSpec) |
|
57 |
||
58 |
[see also:] |
|
59 |
DataSetColumnSpec |
|
60 |
DataSetSpec |
|
61 |
DataSetView |
|
62 |
DataSetColumn |
|
63 |
||
64 |
[author:] |
|
545 | 65 |
Claus Atzkern, eXept Software AG |
332 | 66 |
" |
67 |
||
68 |
! ! |
|
69 |
||
825 | 70 |
!DataSetBuilder class methodsFor:'accessing'! |
799
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
71 |
|
818 | 72 |
resourceType |
73 |
"get the type of resource of the method generated by the MenuEditor" |
|
74 |
||
825 | 75 |
^#tableColumns |
76 |
||
77 |
||
78 |
! ! |
|
79 |
||
80 |
!DataSetBuilder class methodsFor:'aspects'! |
|
81 |
||
82 |
aspects |
|
83 |
"get the aspects for the attributes of the table columns" |
|
84 |
||
85 |
^#( |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
86 |
id |
825 | 87 |
label |
88 |
canSelect |
|
89 |
choices |
|
90 |
editorType |
|
91 |
formatString |
|
92 |
labelIsImage |
|
1262 | 93 |
labelButtonType |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
94 |
translateLabel |
825 | 95 |
size |
96 |
type |
|
97 |
width |
|
98 |
minWidth |
|
1216 | 99 |
usePreferredWidth |
825 | 100 |
height |
101 |
menu |
|
102 |
foregroundSelector |
|
103 |
backgroundSelector |
|
104 |
doubleClickedSelector |
|
983 | 105 |
rowSeparatorSelector |
825 | 106 |
selectSelector |
1261 | 107 |
converterSelector |
1009 | 108 |
showComboFieldSelector |
825 | 109 |
printSelector |
110 |
readSelector |
|
111 |
writeSelector |
|
112 |
rendererType |
|
113 |
showColSeparator |
|
983 | 114 |
showSelectionHighLighted |
825 | 115 |
showRowSeparator |
116 |
backgroundColor |
|
117 |
foregroundColor |
|
118 |
labelForegroundColor |
|
119 |
labelBackgroundColor |
|
120 |
labelFont |
|
121 |
labelActionSelector |
|
122 |
labelActionArgument |
|
123 |
labelAlignment |
|
124 |
columnAlignment |
|
125 |
) |
|
126 |
||
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
127 |
"Modified: / 19.5.1998 / 21:27:06 / cg" |
799
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
128 |
! ! |
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
129 |
|
528 | 130 |
!DataSetBuilder class methodsFor:'help specs'! |
131 |
||
132 |
helpSpec |
|
818 | 133 |
"This resource specification was automatically generated |
134 |
by the UIHelpTool of ST/X." |
|
135 |
||
136 |
"Do not manually edit this!! If it is corrupted, |
|
137 |
the UIHelpTool may not be able to read the specification." |
|
528 | 138 |
|
139 |
" |
|
818 | 140 |
UIHelpTool openOnClass:DataSetBuilder |
528 | 141 |
" |
142 |
||
818 | 143 |
<resource: #help> |
144 |
||
1261 | 145 |
^super helpSpec addPairsFrom:#( |
528 | 146 |
|
550 | 147 |
#addColumn |
148 |
'Adds a new column.' |
|
149 |
||
597 | 150 |
#basicsEditor |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
151 |
'Default widget type or a selector returning an instance of a user defined widget opened in the cell.' |
528 | 152 |
|
597 | 153 |
#basicsFont |
1004 | 154 |
'Sets the font of the labeled text.' |
528 | 155 |
|
597 | 156 |
#basicsJustification |
1004 | 157 |
'Aligns the label to the left, right, or center in the cell.' |
528 | 158 |
|
1064 | 159 |
#basicsJustificationEditor |
160 |
'Aligns the column editor to the left, right, or center in the cell.' |
|
161 |
||
597 | 162 |
#basicsLabel |
1004 | 163 |
'The label of the column (String or StringCollection) or a selector returning the label.' |
164 |
||
165 |
#basicsLabelId |
|
166 |
'Unique identifier of the column (optional).' |
|
597 | 167 |
|
168 |
#basicsLabelIsImage |
|
1064 | 169 |
'Label is actually the selector of a message providing an image-label.' |
1004 | 170 |
|
171 |
#basicsLabelTranslate |
|
172 |
'Translate the label via the resource mechanism to a national language string.' |
|
528 | 173 |
|
597 | 174 |
#basicsRenderer |
175 |
'Specifies displaying cell as Text, CheckToggle, ComboBox, ComboList or as a RowSelector.' |
|
528 | 176 |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
177 |
#browseRowClass |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
178 |
'Open a browser on the row class' |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
179 |
|
597 | 180 |
#colorsBackgroundCellColor |
181 |
'Sets the background color of the column.' |
|
182 |
||
183 |
#colorsBackgroundLabelColor |
|
184 |
'Sets the background color of the label.' |
|
528 | 185 |
|
597 | 186 |
#colorsBackgroundSelector |
187 |
'Selector returning the background color for a cell (optional).' |
|
528 | 188 |
|
597 | 189 |
#colorsForegroundCellColor |
190 |
'Sets the foreground color of the column.' |
|
191 |
||
192 |
#colorsForegroundLabelColor |
|
193 |
'Sets the foreground color of the label.' |
|
528 | 194 |
|
597 | 195 |
#colorsForegroundSelector |
196 |
'Selector returning the foreground color for a cell (optional).' |
|
528 | 197 |
|
1261 | 198 |
#converterSelector |
199 |
'Selector returning a TypeConverter on the model the argument or nil.' |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
200 |
|
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
201 |
#fileLoad |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
202 |
'Specify class/selector and edit that column description' |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
203 |
|
1261 | 204 |
#fileNew |
205 |
'Discard changes and continue with a new, empty column description' |
|
206 |
||
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
207 |
#fileSave |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
208 |
'Install the column description' |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
209 |
|
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
210 |
#fileSaveAs |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
211 |
'Specify class/selector and install the column description' |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
212 |
|
597 | 213 |
#formatInputType |
214 |
'A type converter symbol used by the input field.' |
|
528 | 215 |
|
597 | 216 |
#formatMaxSize |
217 |
'Maximum size of the string which can be typed in. 0 or nil means unlimited.' |
|
528 | 218 |
|
597 | 219 |
#formatTextFormat |
220 |
'Format string specifying the output format of the cell text. In this release, only numbers are supported (for example: 0.0000).' |
|
221 |
||
222 |
#frameColumnWidth |
|
1202 | 223 |
'Width (fixed or relative) of a column (optional).' |
528 | 224 |
|
597 | 225 |
#frameMinWidth |
226 |
'Minimum width of the column (optional).' |
|
528 | 227 |
|
597 | 228 |
#frameRowHeight |
229 |
'Height of the row (optional).' |
|
230 |
||
231 |
#frameShowColumnSeparator |
|
232 |
'Turns on/off displaying column separators.' |
|
528 | 233 |
|
597 | 234 |
#frameShowRowSeparator |
235 |
'Turns on/off displaying row separators.' |
|
528 | 236 |
|
983 | 237 |
#frameShowRowSeparatorSelector |
238 |
'An optional selector, which is used to test whether the row separator at the bottom is shown.' |
|
239 |
||
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
240 |
#generateCode |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
241 |
'Generate code and install in the selected class/selector.' |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
242 |
|
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
243 |
#pickColumns |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
244 |
'Select an open view and readOut the column specification from it.' |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
245 |
|
597 | 246 |
#selectionCellClickSelector |
818 | 247 |
'A selector called if cell was selected.' |
528 | 248 |
|
597 | 249 |
#selectionCellDoubleClickSelector |
250 |
'A selector called if cell was double clicked.' |
|
528 | 251 |
|
597 | 252 |
#selectionCellSelector |
1004 | 253 |
'Name of the message sent to the row to validate a selection.' |
528 | 254 |
|
597 | 255 |
#selectionIsSelectable |
256 |
'Turns on/off selection behavior of a column.' |
|
257 |
||
258 |
#selectionLabelClickSelector |
|
1004 | 259 |
'A selector called if a cell was clicked.' |
528 | 260 |
|
597 | 261 |
#selectionLabelSelectorArgument |
1064 | 262 |
'An optional argument passed with the message above.' |
528 | 263 |
|
1009 | 264 |
#showComboFieldSelector |
265 |
'Selector which returns true if the editor on the ComboBox/List has an input field.' |
|
266 |
||
983 | 267 |
#showSelectionHighLighted |
268 |
'Show selected cell highligthened (change fg/bg color).' |
|
269 |
||
597 | 270 |
#valuesChoiceSelector |
1004 | 271 |
'Selector to get a collection of choices for a cell having a ComboBox or a ComboList widget.' |
528 | 272 |
|
597 | 273 |
#valuesMenuSelector |
1004 | 274 |
'Selector to retrive the middle button menu.' |
597 | 275 |
|
276 |
#valuesPrintSelector |
|
1004 | 277 |
'Selector used to register images on a DSVColumnView (the arg). For more detailed info see #register... methods in DSVColumnView.' |
528 | 278 |
|
597 | 279 |
#valuesReadSelector |
1004 | 280 |
'Selector returning the label to be displayed(string, bitmap or a collection).' |
528 | 281 |
|
597 | 282 |
#valuesWriteSelector |
1004 | 283 |
'Selector used to set the value derived from the editor.' |
528 | 284 |
|
285 |
) |
|
286 |
! ! |
|
287 |
||
881 | 288 |
!DataSetBuilder class methodsFor:'image specs'! |
289 |
||
290 |
newColumnIcon |
|
291 |
"This resource specification was automatically generated |
|
292 |
by the ImageEditor of ST/X." |
|
293 |
||
294 |
"Do not manually edit this!! If it is corrupted, |
|
295 |
the ImageEditor may not be able to read the specification." |
|
296 |
||
297 |
" |
|
298 |
self newColumnIcon inspect |
|
299 |
ImageEditor openOnClass:self andSelector:#newColumnIcon |
|
300 |
" |
|
301 |
||
302 |
<resource: #image> |
|
303 |
||
304 |
^Icon |
|
305 |
constantNamed:#'DataSetBuilder newColumnIcon' |
|
306 |
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') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; 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]! ! |
|
307 |
||
528 | 308 |
!DataSetBuilder class methodsFor:'interface specs'! |
332 | 309 |
|
310 |
basicsEditSpec |
|
817 | 311 |
"This resource specification was automatically generated |
312 |
by the UIPainter of ST/X." |
|
332 | 313 |
|
817 | 314 |
"Do not manually edit this!! If it is corrupted, |
315 |
the UIPainter may not be able to read the specification." |
|
332 | 316 |
|
317 |
" |
|
318 |
UIPainter new openOnClass:DataSetBuilder andSelector:#basicsEditSpec |
|
319 |
DataSetBuilder new openInterface:#basicsEditSpec |
|
320 |
" |
|
321 |
||
322 |
<resource: #canvas> |
|
323 |
||
1156 | 324 |
^ |
325 |
#(#FullSpec |
|
326 |
#name: #basicsEditSpec |
|
327 |
#window: |
|
328 |
#(#WindowSpec |
|
329 |
#label: 'DataSet Basic' |
|
330 |
#name: 'DataSet Basic' |
|
331 |
#min: #(#Point 10 10) |
|
332 |
#max: #(#Point 1280 1024) |
|
1300 | 333 |
#bounds: #(#Rectangle 10 149 399 475) |
1156 | 334 |
) |
335 |
#component: |
|
336 |
#(#SpecCollection |
|
337 |
#collection: #( |
|
338 |
#(#FramedBoxSpec |
|
339 |
#label: 'Header:' |
|
340 |
#name: 'framedBox1' |
|
1215
02d29dd7a0ed
show label as button(enable/disable)
Claus Gittinger <cg@exept.de>
parents:
1203
diff
changeset
|
341 |
#layout: #(#LayoutFrame 0 0.0 3 0 0 1.0 189 0) |
1156 | 342 |
#labelPosition: #topLeft |
343 |
#component: |
|
344 |
#(#SpecCollection |
|
345 |
#collection: #( |
|
346 |
#(#LabelSpec |
|
1300 | 347 |
#label: 'ID:' |
348 |
#name: 'idLabel' |
|
349 |
#layout: #(#AlignmentOrigin 94 0 14 0 1 0.5) |
|
350 |
#resizeForLabel: true |
|
351 |
) |
|
352 |
#(#InputFieldSpec |
|
353 |
#attributes: |
|
354 |
#(#tabable |
|
355 |
true |
|
356 |
) |
|
357 |
#name: 'idField' |
|
358 |
#layout: #(#LayoutFrame 97 0 0 0 2 1.0 22 0) |
|
359 |
#activeHelpKey: #basicsLabelId |
|
360 |
#tabable: true |
|
361 |
#model: #id |
|
362 |
#group: #inputGroup |
|
363 |
#acceptOnLostFocus: false |
|
364 |
#acceptChannel: #acceptChannel |
|
365 |
#modifiedChannel: #modifiedChannel |
|
366 |
#acceptOnPointerLeave: false |
|
367 |
) |
|
368 |
#(#LabelSpec |
|
1156 | 369 |
#label: 'Label:' |
370 |
#name: 'label1' |
|
371 |
#layout: #(#AlignmentOrigin 94 0 39 0 1 0.5) |
|
372 |
#resizeForLabel: true |
|
373 |
) |
|
374 |
#(#InputFieldSpec |
|
1300 | 375 |
#attributes: |
376 |
#(#tabable |
|
377 |
true |
|
378 |
) |
|
1156 | 379 |
#name: 'labelField' |
380 |
#layout: #(#LayoutFrame 97 0 28 0 2 1.0 50 0) |
|
381 |
#activeHelpKey: #basicsLabel |
|
382 |
#tabable: true |
|
383 |
#model: #label |
|
384 |
#group: #inputGroup |
|
385 |
#type: #smalltalkObject |
|
386 |
#immediateAccept: false |
|
387 |
#acceptOnLeave: false |
|
388 |
#acceptOnLostFocus: false |
|
389 |
#acceptChannel: #acceptChannel |
|
390 |
#modifiedChannel: #modifiedChannel |
|
391 |
#acceptOnPointerLeave: false |
|
392 |
) |
|
393 |
#(#LabelSpec |
|
394 |
#label: 'Font:' |
|
395 |
#name: 'LabelFont' |
|
396 |
#layout: #(#AlignmentOrigin 94 0 68 0 1 0.5) |
|
397 |
#resizeForLabel: true |
|
398 |
#adjust: #left |
|
399 |
) |
|
400 |
#(#FontMenuSpec |
|
401 |
#name: 'fontMenu' |
|
402 |
#layout: #(#LayoutFrame 97 0 56 0 0 1.0 78 0) |
|
403 |
#activeHelpKey: #labelFont |
|
404 |
#model: #style |
|
405 |
) |
|
1300 | 406 |
#(#LabelSpec |
407 |
#label: 'Type:' |
|
408 |
#name: 'Type' |
|
409 |
#layout: #(#AlignmentOrigin 52 0 105 0 1 0.5) |
|
410 |
#translateLabel: true |
|
411 |
#resizeForLabel: true |
|
412 |
) |
|
413 |
#(#ComboListSpec |
|
414 |
#attributes: |
|
415 |
#(#tabable |
|
416 |
true |
|
417 |
) |
|
418 |
#name: 'labelButtonType' |
|
419 |
#layout: #(#LayoutFrame 57 0 96 0 182 0 116 0) |
|
420 |
#tabable: true |
|
421 |
#model: #labelButtonType |
|
422 |
#comboList: |
|
423 |
#(#None |
|
424 |
#Button #Group |
|
408 | 425 |
) |
1156 | 426 |
#useIndex: false |
427 |
) |
|
428 |
#(#LabelSpec |
|
1259 | 429 |
#label: 'Align:' |
1156 | 430 |
#name: 'JustificationLabel' |
1259 | 431 |
#layout: #(#LayoutFrame 191 0 97 0 236 0 118 0) |
1156 | 432 |
#resizeForLabel: true |
433 |
#adjust: #left |
|
434 |
) |
|
1300 | 435 |
#(#PopUpListSpec |
436 |
#attributes: |
|
437 |
#(#tabable |
|
438 |
true |
|
439 |
) |
|
440 |
#label: 'Alignment' |
|
441 |
#name: 'Alignment' |
|
442 |
#layout: #(#LayoutFrame 248 0 97 0 2 1.0 119 0) |
|
443 |
#activeHelpKey: #basicsJustification |
|
444 |
#tabable: true |
|
445 |
#model: #labelAlignment |
|
446 |
#menu: |
|
447 |
#(#left |
|
448 |
#right #center |
|
449 |
) |
|
450 |
#useIndex: false |
|
451 |
) |
|
1156 | 452 |
#(#CheckBoxSpec |
1300 | 453 |
#attributes: |
454 |
#(#tabable |
|
455 |
true |
|
456 |
) |
|
1156 | 457 |
#label: 'Label Is Image' |
458 |
#name: 'labelIsImage' |
|
1259 | 459 |
#layout: #(#LayoutOrigin -3 0 122 0) |
1156 | 460 |
#activeHelpKey: #basicsLabelIsImage |
461 |
#tabable: true |
|
462 |
#model: #labelIsImage |
|
463 |
) |
|
464 |
#(#CheckBoxSpec |
|
1300 | 465 |
#attributes: |
466 |
#(#tabable |
|
467 |
true |
|
468 |
) |
|
1156 | 469 |
#label: 'Translate Label' |
470 |
#name: 'CheckBox2' |
|
1262 | 471 |
#layout: #(#LayoutOrigin 160 0 122 0) |
1156 | 472 |
#activeHelpKey: #basicsLabelTranslate |
473 |
#tabable: true |
|
474 |
#model: #translateLabel |
|
475 |
) |
|
476 |
) |
|
477 |
||
478 |
) |
|
479 |
) |
|
480 |
#(#FramedBoxSpec |
|
481 |
#label: 'Cell Type:' |
|
482 |
#name: 'typesFrame' |
|
1259 | 483 |
#layout: #(#LayoutFrame 0 0.0 193 0 0 1.0 305 0) |
1156 | 484 |
#labelPosition: #topLeft |
485 |
#component: |
|
486 |
#(#SpecCollection |
|
487 |
#collection: #( |
|
488 |
#(#LabelSpec |
|
489 |
#label: 'Renderer:' |
|
490 |
#name: 'rendererLabel' |
|
491 |
#layout: #(#AlignmentOrigin 94 0 16 0 1 0.5) |
|
492 |
#resizeForLabel: true |
|
493 |
) |
|
494 |
#(#ComboListSpec |
|
1300 | 495 |
#attributes: |
496 |
#(#tabable |
|
497 |
true |
|
498 |
) |
|
1156 | 499 |
#name: 'rendererField' |
500 |
#layout: #(#LayoutFrame 97 0 5 0 2 1.0 27 0) |
|
501 |
#activeHelpKey: #basicsRenderer |
|
502 |
#tabable: true |
|
503 |
#model: #rendererType |
|
504 |
#comboList: #rendererTypeList |
|
505 |
#useIndex: false |
|
506 |
) |
|
507 |
#(#LabelSpec |
|
508 |
#label: 'Editor:' |
|
509 |
#name: 'editorLabel' |
|
510 |
#layout: #(#AlignmentOrigin 94 0 42 0 1 0.5) |
|
511 |
#resizeForLabel: true |
|
512 |
) |
|
513 |
#(#ComboBoxSpec |
|
1300 | 514 |
#attributes: |
515 |
#(#tabable |
|
516 |
true |
|
517 |
) |
|
1156 | 518 |
#name: 'editorField' |
519 |
#layout: #(#LayoutFrame 97 0 31 0 2 1.0 53 0) |
|
520 |
#activeHelpKey: #basicsEditor |
|
521 |
#tabable: true |
|
522 |
#model: #editorType |
|
523 |
#type: #symbolOrNil |
|
524 |
#acceptOnLostFocus: false |
|
525 |
#acceptChannel: #acceptChannel |
|
526 |
#modifiedChannel: #modifiedChannel |
|
527 |
#acceptOnPointerLeave: false |
|
528 |
#comboList: #editorTypeList |
|
529 |
#useIndex: false |
|
530 |
) |
|
531 |
#(#LabelSpec |
|
1259 | 532 |
#label: 'Align:' |
1156 | 533 |
#name: 'JustificationC' |
1259 | 534 |
#layout: #(#LayoutFrame 191 0 58 0 236 0 79 0) |
1156 | 535 |
#resizeForLabel: true |
536 |
#adjust: #left |
|
537 |
) |
|
538 |
#(#PopUpListSpec |
|
1300 | 539 |
#attributes: |
540 |
#(#tabable |
|
541 |
true |
|
542 |
) |
|
1156 | 543 |
#label: 'Alignment' |
544 |
#name: 'AlignmentC' |
|
1259 | 545 |
#layout: #(#LayoutFrame 248 0 58 0 2 1.0 80 0) |
1156 | 546 |
#activeHelpKey: #basicsJustificationEditor |
1300 | 547 |
#tabable: true |
1156 | 548 |
#model: #columnAlignment |
549 |
#menu: |
|
550 |
#(#left |
|
551 |
#right #center |
|
332 | 552 |
) |
1156 | 553 |
#useIndex: false |
554 |
) |
|
555 |
) |
|
556 |
||
391 | 557 |
) |
1156 | 558 |
) |
559 |
) |
|
560 |
||
561 |
) |
|
391 | 562 |
) |
563 |
! |
|
564 |
||
408 | 565 |
colorsEditSpec |
825 | 566 |
"This resource specification was automatically generated |
567 |
by the UIPainter of ST/X." |
|
332 | 568 |
|
825 | 569 |
"Do not manually edit this!! If it is corrupted, |
570 |
the UIPainter may not be able to read the specification." |
|
332 | 571 |
|
572 |
" |
|
408 | 573 |
UIPainter new openOnClass:DataSetBuilder andSelector:#colorsEditSpec |
574 |
DataSetBuilder new openInterface:#colorsEditSpec |
|
332 | 575 |
" |
576 |
||
577 |
<resource: #canvas> |
|
578 |
||
1156 | 579 |
^ |
580 |
#(#FullSpec |
|
581 |
#name: #colorsEditSpec |
|
582 |
#window: |
|
583 |
#(#WindowSpec |
|
584 |
#label: 'DataSet Misc' |
|
585 |
#name: 'DataSet Misc' |
|
586 |
#layout: #(#LayoutFrame 699 0 270 0 1067 0 569 0) |
|
587 |
#level: 0 |
|
588 |
#min: #(#Point 10 10) |
|
589 |
#max: #(#Point 1280 1024) |
|
590 |
#bounds: #(#Rectangle 699 270 1068 570) |
|
591 |
#usePreferredExtent: false |
|
592 |
#returnIsOKInDialog: true |
|
593 |
#escapeIsCancelInDialog: true |
|
594 |
) |
|
595 |
#component: |
|
596 |
#(#SpecCollection |
|
597 |
#collection: #( |
|
598 |
#(#FramedBoxSpec |
|
599 |
#label: 'Label Colors:' |
|
600 |
#name: 'ColorsBox' |
|
601 |
#layout: #(#LayoutFrame 0 0.0 3 0 0 1.0 95 0) |
|
602 |
#labelPosition: #topLeft |
|
603 |
#component: |
|
604 |
#(#SpecCollection |
|
605 |
#collection: #( |
|
606 |
#(#LabelSpec |
|
607 |
#label: 'Foreground:' |
|
608 |
#name: 'label1' |
|
609 |
#layout: #(#AlignmentOrigin 112 0 24 0 1 0.5) |
|
610 |
#resizeForLabel: true |
|
611 |
#adjust: #right |
|
612 |
) |
|
613 |
#(#ColorMenuSpec |
|
614 |
#name: 'colorMenu1' |
|
615 |
#layout: #(#LayoutFrame 115 0 12 0 -3 1.0 34 0) |
|
616 |
#activeHelpKey: #colorsForegroundLabelColor |
|
617 |
#model: #labelForegroundColor |
|
618 |
#labelsAreColored: true |
|
619 |
) |
|
620 |
#(#LabelSpec |
|
621 |
#label: 'Background:' |
|
622 |
#name: 'label2' |
|
623 |
#layout: #(#AlignmentOrigin 112 0 52 0 1 0.5) |
|
624 |
#resizeForLabel: true |
|
625 |
#adjust: #right |
|
626 |
) |
|
627 |
#(#ColorMenuSpec |
|
628 |
#name: 'colorMenu2' |
|
629 |
#layout: #(#LayoutFrame 115 0 40 0 -3 1.0 62 0) |
|
630 |
#activeHelpKey: #colorsBackgroundLabelColor |
|
631 |
#model: #labelBackgroundColor |
|
632 |
#labelsAreColored: false |
|
633 |
) |
|
634 |
) |
|
635 |
||
332 | 636 |
) |
1156 | 637 |
) |
638 |
#(#FramedBoxSpec |
|
639 |
#label: 'Cell Colors:' |
|
640 |
#name: 'defaultColorsBox' |
|
641 |
#layout: #(#LayoutFrame 0 0.0 108 0 0 1.0 263 0) |
|
642 |
#labelPosition: #topLeft |
|
643 |
#component: |
|
644 |
#(#SpecCollection |
|
645 |
#collection: #( |
|
646 |
#(#LabelSpec |
|
647 |
#label: 'Foreground:' |
|
648 |
#name: 'fgLabel' |
|
649 |
#layout: #(#AlignmentOrigin 112 0 28 0 1 0.5) |
|
650 |
#resizeForLabel: true |
|
651 |
#adjust: #right |
|
652 |
) |
|
653 |
#(#ColorMenuSpec |
|
654 |
#name: 'fgMenu' |
|
655 |
#layout: #(#LayoutFrame 115 0 16 0 -3 1.0 38 0) |
|
656 |
#activeHelpKey: #colorsForegroundCellColor |
|
657 |
#model: #foregroundColor |
|
658 |
#labelsAreColored: true |
|
659 |
) |
|
660 |
#(#LabelSpec |
|
661 |
#label: 'Background:' |
|
662 |
#name: 'bgLabel' |
|
663 |
#layout: #(#AlignmentOrigin 112 0 56 0 1 0.5) |
|
664 |
#resizeForLabel: true |
|
665 |
#adjust: #right |
|
666 |
) |
|
667 |
#(#ColorMenuSpec |
|
668 |
#name: 'bgMenu' |
|
669 |
#layout: #(#LayoutFrame 115 0 44 0 -3 1.0 66 0) |
|
670 |
#activeHelpKey: #colorsBackgroundCellColor |
|
671 |
#model: #backgroundColor |
|
672 |
#labelsAreColored: false |
|
673 |
) |
|
674 |
#(#LabelSpec |
|
675 |
#label: 'FG-Selector:' |
|
676 |
#name: 'fgSelLabel' |
|
677 |
#layout: #(#AlignmentOrigin 112 0 90 0 1 0.5) |
|
678 |
#resizeForLabel: true |
|
679 |
#adjust: #right |
|
680 |
) |
|
681 |
#(#InputFieldSpec |
|
682 |
#name: 'fgSelField' |
|
683 |
#layout: #(#LayoutFrame 115 0 79 0 0 1.0 101 0) |
|
684 |
#activeHelpKey: #colorsForegroundSelector |
|
685 |
#tabable: true |
|
686 |
#model: #foregroundSelector |
|
687 |
#group: #inputGroup |
|
688 |
#type: #symbolOrNil |
|
689 |
#acceptOnLostFocus: false |
|
690 |
#acceptChannel: #acceptChannel |
|
691 |
#modifiedChannel: #modifiedChannel |
|
692 |
#acceptOnPointerLeave: false |
|
693 |
) |
|
694 |
#(#LabelSpec |
|
695 |
#label: 'BG-Selector:' |
|
696 |
#name: 'bgSelLabel' |
|
697 |
#layout: #(#AlignmentOrigin 112 0 115 0 1 0.5) |
|
698 |
#resizeForLabel: true |
|
699 |
#adjust: #right |
|
700 |
) |
|
701 |
#(#InputFieldSpec |
|
702 |
#name: 'bgSelField' |
|
703 |
#layout: #(#LayoutFrame 115 0 104 0 0 1.0 126 0) |
|
704 |
#activeHelpKey: #colorsBackgroundSelector |
|
705 |
#tabable: true |
|
706 |
#model: #backgroundSelector |
|
707 |
#group: #inputGroup |
|
708 |
#type: #symbolOrNil |
|
709 |
#acceptOnLostFocus: false |
|
710 |
#acceptChannel: #acceptChannel |
|
711 |
#modifiedChannel: #modifiedChannel |
|
712 |
#acceptOnPointerLeave: false |
|
713 |
) |
|
714 |
) |
|
715 |
||
716 |
) |
|
717 |
) |
|
718 |
) |
|
719 |
||
720 |
) |
|
332 | 721 |
) |
722 |
! |
|
723 |
||
528 | 724 |
defineClassNameSpec |
825 | 725 |
"This resource specification was automatically generated |
726 |
by the UIPainter of ST/X." |
|
528 | 727 |
|
825 | 728 |
"Do not manually edit this!! If it is corrupted, |
729 |
the UIPainter may not be able to read the specification." |
|
528 | 730 |
|
731 |
" |
|
732 |
UIPainter new openOnClass:DataSetBuilder andSelector:#defineClassNameSpec |
|
733 |
DataSetBuilder new openInterface:#defineClassNameSpec |
|
734 |
" |
|
735 |
||
736 |
<resource: #canvas> |
|
737 |
||
738 |
^ |
|
739 |
||
740 |
#(#FullSpec |
|
687 | 741 |
#window: |
528 | 742 |
#(#WindowSpec |
687 | 743 |
#name: 'Data Set Builder' |
825 | 744 |
#layout: #(#LayoutFrame 414 0 336 0 740 0 471 0) |
687 | 745 |
#label: 'Data Set Builder' |
746 |
#min: #(#Point 10 10) |
|
747 |
#max: #(#Point 1152 900) |
|
825 | 748 |
#bounds: #(#Rectangle 414 336 741 472) |
687 | 749 |
#usePreferredExtent: false |
528 | 750 |
) |
687 | 751 |
#component: |
528 | 752 |
#(#SpecCollection |
687 | 753 |
#collection: |
528 | 754 |
#( |
755 |
#(#FramedBoxSpec |
|
687 | 756 |
#name: 'framedBox1' |
757 |
#layout: #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -34 1.0) |
|
842 | 758 |
#label: 'Class for code' |
759 |
#translateLabel: true |
|
687 | 760 |
#labelPosition: #topLeft |
528 | 761 |
) |
762 |
#(#LabelSpec |
|
687 | 763 |
#name: 'classLabel' |
764 |
#layout: #(#AlignmentOrigin 73 0.11 38 0 1 0.5) |
|
765 |
#label: 'Class:' |
|
842 | 766 |
#translateLabel: true |
687 | 767 |
#adjust: #right |
768 |
#resizeForLabel: true |
|
528 | 769 |
) |
770 |
#(#InputFieldSpec |
|
687 | 771 |
#name: 'classNameInputField' |
772 |
#layout: #(#LayoutFrame 77 0.11 27 0 -16 1.0 49 0) |
|
773 |
#tabable: true |
|
774 |
#model: #classNameChannel |
|
528 | 775 |
) |
776 |
#(#LabelSpec |
|
687 | 777 |
#name: 'superClassLabel' |
778 |
#layout: #(#AlignmentOrigin 73 0.11 65 0 1 0.5) |
|
779 |
#label: 'Superclass:' |
|
842 | 780 |
#translateLabel: true |
687 | 781 |
#adjust: #right |
782 |
#resizeForLabel: true |
|
528 | 783 |
) |
784 |
#(#InputFieldSpec |
|
687 | 785 |
#name: 'superclassNameInputField' |
786 |
#layout: #(#LayoutFrame 76 0.11 55 0 -16 1.0 77 0) |
|
787 |
#tabable: true |
|
788 |
#model: #superclassNameChannel |
|
528 | 789 |
) |
790 |
#(#UISubSpecification |
|
687 | 791 |
#name: 'SubSpecification' |
792 |
#layout: #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1.0) |
|
793 |
#majorKey: #ToolApplicationModel |
|
794 |
#minorKey: #windowSpecForCommitWithoutChannels |
|
528 | 795 |
) |
796 |
) |
|
797 |
) |
|
798 |
) |
|
842 | 799 |
|
800 |
"Modified: / 20.5.1998 / 03:46:17 / cg" |
|
528 | 801 |
! |
802 |
||
370 | 803 |
formatEditSpec |
825 | 804 |
"This resource specification was automatically generated |
805 |
by the UIPainter of ST/X." |
|
332 | 806 |
|
825 | 807 |
"Do not manually edit this!! If it is corrupted, |
808 |
the UIPainter may not be able to read the specification." |
|
332 | 809 |
|
810 |
" |
|
370 | 811 |
UIPainter new openOnClass:DataSetBuilder andSelector:#formatEditSpec |
812 |
DataSetBuilder new openInterface:#formatEditSpec |
|
813 |
" |
|
814 |
||
815 |
<resource: #canvas> |
|
816 |
||
1156 | 817 |
^ |
818 |
#(#FullSpec |
|
819 |
#name: #formatEditSpec |
|
820 |
#window: |
|
821 |
#(#WindowSpec |
|
822 |
#label: 'DataSet Details' |
|
823 |
#name: 'DataSet Details' |
|
824 |
#layout: #(#LayoutFrame 699 0 270 0 1086 0 561 0) |
|
825 |
#level: 0 |
|
826 |
#min: #(#Point 10 10) |
|
827 |
#max: #(#Point 1280 1024) |
|
828 |
#bounds: #(#Rectangle 699 270 1087 562) |
|
829 |
#usePreferredExtent: false |
|
830 |
#returnIsOKInDialog: true |
|
831 |
#escapeIsCancelInDialog: true |
|
832 |
) |
|
833 |
#component: |
|
834 |
#(#SpecCollection |
|
835 |
#collection: #( |
|
836 |
#(#FramedBoxSpec |
|
837 |
#label: 'Input Format' |
|
838 |
#name: 'framedBox1' |
|
839 |
#layout: #(#LayoutFrame 0 0.0 3 0 0 1.0 127 0) |
|
840 |
#labelPosition: #topLeft |
|
841 |
#component: |
|
842 |
#(#SpecCollection |
|
843 |
#collection: #( |
|
844 |
#(#LabelSpec |
|
845 |
#label: 'Input Type:' |
|
846 |
#name: 'typeLabel' |
|
847 |
#layout: #(#AlignmentOrigin 115 0 26 0 1 0.5) |
|
848 |
#resizeForLabel: true |
|
849 |
) |
|
850 |
#(#ComboListSpec |
|
851 |
#name: 'typeCombo' |
|
852 |
#layout: #(#LayoutFrame 118 0 15 0 3 1.0 37 0) |
|
853 |
#activeHelpKey: #formatInputType |
|
854 |
#tabable: true |
|
855 |
#model: #type |
|
856 |
#comboList: |
|
857 |
#(#string |
|
858 |
#password #number |
|
859 |
#numberOrNil #symbolOrNil |
|
408 | 860 |
) |
1156 | 861 |
#useIndex: false |
862 |
) |
|
863 |
#(#LabelSpec |
|
864 |
#label: 'Max Size:' |
|
865 |
#name: 'sizeLabel' |
|
866 |
#layout: #(#AlignmentOrigin 115 0 52 0 1 0.5) |
|
867 |
#resizeForLabel: true |
|
868 |
) |
|
869 |
#(#InputFieldSpec |
|
870 |
#name: 'sizeField' |
|
871 |
#layout: #(#LayoutFrame 118 0 41 0 3 1.0 63 0) |
|
872 |
#activeHelpKey: #formatMaxSize |
|
873 |
#tabable: true |
|
874 |
#model: #size |
|
875 |
#group: #inputGroup |
|
876 |
#type: #numberOrNil |
|
877 |
#acceptOnLostFocus: false |
|
878 |
#acceptChannel: #acceptChannel |
|
879 |
#modifiedChannel: #modifiedChannel |
|
880 |
#acceptOnPointerLeave: false |
|
881 |
) |
|
882 |
#(#LabelSpec |
|
883 |
#label: 'Text Format:' |
|
884 |
#name: 'formatLabel' |
|
885 |
#layout: #(#AlignmentOrigin 115 0 77 0 1 0.5) |
|
886 |
#resizeForLabel: true |
|
887 |
) |
|
888 |
#(#InputFieldSpec |
|
889 |
#name: 'formatField' |
|
890 |
#layout: #(#LayoutFrame 118 0 66 0 3 1.0 88 0) |
|
891 |
#activeHelpKey: #formatTextFormat |
|
892 |
#tabable: true |
|
893 |
#model: #formatString |
|
894 |
#group: #inputGroup |
|
895 |
#acceptOnLostFocus: false |
|
896 |
#acceptChannel: #acceptChannel |
|
897 |
#modifiedChannel: #modifiedChannel |
|
898 |
#acceptOnPointerLeave: false |
|
899 |
) |
|
900 |
) |
|
901 |
||
370 | 902 |
) |
1156 | 903 |
) |
904 |
) |
|
905 |
||
906 |
) |
|
370 | 907 |
) |
908 |
! |
|
909 |
||
408 | 910 |
frameEditSpec |
825 | 911 |
"This resource specification was automatically generated |
912 |
by the UIPainter of ST/X." |
|
391 | 913 |
|
825 | 914 |
"Do not manually edit this!! If it is corrupted, |
915 |
the UIPainter may not be able to read the specification." |
|
391 | 916 |
|
917 |
" |
|
408 | 918 |
UIPainter new openOnClass:DataSetBuilder andSelector:#frameEditSpec |
919 |
DataSetBuilder new openInterface:#frameEditSpec |
|
391 | 920 |
" |
921 |
||
922 |
<resource: #canvas> |
|
923 |
||
1156 | 924 |
^ |
925 |
#(#FullSpec |
|
926 |
#name: #frameEditSpec |
|
927 |
#window: |
|
928 |
#(#WindowSpec |
|
929 |
#label: 'DataSet Dimension' |
|
930 |
#name: 'DataSet Dimension' |
|
931 |
#min: #(#Point 10 10) |
|
932 |
#max: #(#Point 1280 1024) |
|
1300 | 933 |
#bounds: #(#Rectangle 132 132 457 480) |
1156 | 934 |
) |
935 |
#component: |
|
936 |
#(#SpecCollection |
|
937 |
#collection: #( |
|
938 |
#(#FramedBoxSpec |
|
939 |
#label: 'Separators' |
|
940 |
#name: 'separatorBox' |
|
941 |
#layout: #(#LayoutFrame 0 0.0 3 0 0 1.0 132 0) |
|
942 |
#labelPosition: #topLeft |
|
943 |
#component: |
|
944 |
#(#SpecCollection |
|
945 |
#collection: #( |
|
946 |
#(#CheckBoxSpec |
|
1300 | 947 |
#attributes: |
948 |
#(#tabable |
|
949 |
true |
|
950 |
) |
|
1156 | 951 |
#label: 'Show Row-Separator' |
952 |
#name: 'showRowSeparator' |
|
953 |
#layout: #(#LayoutFrame 5 0 15 0 293 0 38 0) |
|
954 |
#activeHelpKey: #frameShowRowSeparator |
|
955 |
#tabable: true |
|
956 |
#model: #showRowSeparator |
|
957 |
) |
|
958 |
#(#InputFieldSpec |
|
1300 | 959 |
#attributes: |
960 |
#(#tabable |
|
961 |
true |
|
962 |
) |
|
1156 | 963 |
#name: 'rowSeparatorSelector' |
964 |
#layout: #(#LayoutFrame 29 0 41 0 2 1.0 63 0) |
|
965 |
#activeHelpKey: #frameShowRowSeparatorSelector |
|
966 |
#tabable: true |
|
967 |
#model: #rowSeparatorSelector |
|
968 |
#group: #inputGroup |
|
969 |
#type: #symbolOrNil |
|
970 |
#acceptOnLostFocus: false |
|
971 |
#acceptChannel: #acceptChannel |
|
972 |
#modifiedChannel: #modifiedChannel |
|
973 |
#acceptOnPointerLeave: false |
|
974 |
) |
|
975 |
#(#CheckBoxSpec |
|
1300 | 976 |
#attributes: |
977 |
#(#tabable |
|
978 |
true |
|
979 |
) |
|
1156 | 980 |
#label: 'Show Column-Separator' |
981 |
#name: 'showColSeparator' |
|
982 |
#layout: #(#LayoutFrame 5 0 70 0 294 0 93 0) |
|
983 |
#activeHelpKey: #frameShowColumnSeparator |
|
984 |
#tabable: true |
|
985 |
#model: #showColSeparator |
|
986 |
) |
|
987 |
) |
|
988 |
||
391 | 989 |
) |
1156 | 990 |
) |
991 |
#(#FramedBoxSpec |
|
992 |
#label: 'Dimensions:' |
|
993 |
#name: 'framedBox1' |
|
1216 | 994 |
#layout: #(#LayoutFrame 0 0.0 151 0 0 1.0 297 0) |
1156 | 995 |
#labelPosition: #topLeft |
996 |
#component: |
|
997 |
#(#SpecCollection |
|
998 |
#collection: #( |
|
999 |
#(#LabelSpec |
|
1000 |
#label: 'Column Width:' |
|
1001 |
#name: 'widthLabel' |
|
1002 |
#layout: #(#AlignmentOrigin 140 0.0 23 0 1 0.5) |
|
1003 |
#resizeForLabel: true |
|
1004 |
#adjust: #right |
|
1005 |
) |
|
1006 |
#(#InputFieldSpec |
|
1300 | 1007 |
#attributes: |
1008 |
#(#tabable |
|
1009 |
true |
|
1010 |
) |
|
1156 | 1011 |
#name: 'widthField' |
1012 |
#layout: #(#LayoutFrame 142 0 12 0 2 1.0 34 0) |
|
1013 |
#activeHelpKey: #frameColumnWidth |
|
1014 |
#tabable: true |
|
1015 |
#model: #width |
|
1016 |
#group: #inputGroup |
|
1017 |
#type: #numberOrNil |
|
1018 |
#acceptOnLostFocus: false |
|
1019 |
#acceptChannel: #acceptChannel |
|
1020 |
#modifiedChannel: #modifiedChannel |
|
1021 |
#acceptOnPointerLeave: false |
|
1022 |
) |
|
1023 |
#(#LabelSpec |
|
1024 |
#label: 'Min Width:' |
|
1025 |
#name: 'minWidthLabel' |
|
1026 |
#layout: #(#AlignmentOrigin 140 0.0 51 0 1 0.5) |
|
1027 |
#resizeForLabel: true |
|
1028 |
#adjust: #right |
|
1029 |
) |
|
1030 |
#(#InputFieldSpec |
|
1300 | 1031 |
#attributes: |
1032 |
#(#tabable |
|
1033 |
true |
|
1034 |
) |
|
1156 | 1035 |
#name: 'minWidthField' |
1036 |
#layout: #(#LayoutFrame 142 0 40 0 2 1.0 62 0) |
|
1037 |
#activeHelpKey: #frameMinWidth |
|
1038 |
#tabable: true |
|
1039 |
#model: #minWidth |
|
1040 |
#group: #inputGroup |
|
1041 |
#type: #numberOrNil |
|
1042 |
#acceptOnLostFocus: false |
|
1043 |
#acceptChannel: #acceptChannel |
|
1044 |
#modifiedChannel: #modifiedChannel |
|
1045 |
#acceptOnPointerLeave: false |
|
1046 |
) |
|
1047 |
#(#LabelSpec |
|
1048 |
#label: 'Row Height:' |
|
1049 |
#name: 'heightLabel' |
|
1050 |
#layout: #(#AlignmentOrigin 140 0.0 79 0 1 0.5) |
|
1051 |
#resizeForLabel: true |
|
1052 |
#adjust: #right |
|
1053 |
) |
|
1054 |
#(#InputFieldSpec |
|
1300 | 1055 |
#attributes: |
1056 |
#(#tabable |
|
1057 |
true |
|
1058 |
) |
|
1156 | 1059 |
#name: 'heightField' |
1060 |
#layout: #(#LayoutFrame 142 0 68 0 2 1.0 90 0) |
|
1061 |
#activeHelpKey: #frameRowHeight |
|
1062 |
#tabable: true |
|
1063 |
#model: #height |
|
1064 |
#group: #inputGroup |
|
1065 |
#type: #numberOrNil |
|
1066 |
#acceptOnLostFocus: false |
|
1067 |
#acceptChannel: #acceptChannel |
|
1068 |
#modifiedChannel: #modifiedChannel |
|
1069 |
#acceptOnPointerLeave: false |
|
1070 |
) |
|
1216 | 1071 |
#(#CheckBoxSpec |
1300 | 1072 |
#attributes: |
1073 |
#(#tabable |
|
1074 |
true |
|
1075 |
) |
|
1216 | 1076 |
#label: 'Use Preferred Width' |
1077 |
#name: 'usePreferredWidth' |
|
1078 |
#layout: #(#LayoutFrame 5 0 96 0 141 0 118 0) |
|
1300 | 1079 |
#tabable: true |
1216 | 1080 |
#model: #usePreferredWidth |
1081 |
) |
|
1156 | 1082 |
) |
1083 |
||
1084 |
) |
|
1085 |
) |
|
1086 |
) |
|
1087 |
||
1088 |
) |
|
391 | 1089 |
) |
1090 |
! |
|
1091 |
||
408 | 1092 |
selectionEditSpec |
825 | 1093 |
"This resource specification was automatically generated |
1094 |
by the UIPainter of ST/X." |
|
370 | 1095 |
|
825 | 1096 |
"Do not manually edit this!! If it is corrupted, |
1097 |
the UIPainter may not be able to read the specification." |
|
370 | 1098 |
|
1099 |
" |
|
408 | 1100 |
UIPainter new openOnClass:DataSetBuilder andSelector:#selectionEditSpec |
1101 |
DataSetBuilder new openInterface:#selectionEditSpec |
|
332 | 1102 |
" |
1103 |
||
1104 |
<resource: #canvas> |
|
1105 |
||
1156 | 1106 |
^ |
1107 |
#(#FullSpec |
|
1108 |
#name: #selectionEditSpec |
|
1109 |
#window: |
|
1110 |
#(#WindowSpec |
|
1111 |
#label: 'DataSet Basic' |
|
1112 |
#name: 'DataSet Basic' |
|
1113 |
#min: #(#Point 10 10) |
|
1114 |
#max: #(#Point 1280 1024) |
|
1215
02d29dd7a0ed
show label as button(enable/disable)
Claus Gittinger <cg@exept.de>
parents:
1203
diff
changeset
|
1115 |
#bounds: #(#Rectangle 67 116 398 444) |
1156 | 1116 |
) |
1117 |
#component: |
|
1118 |
#(#SpecCollection |
|
1119 |
#collection: #( |
|
1120 |
#(#FramedBoxSpec |
|
1121 |
#label: 'Label Select Action:' |
|
1215
02d29dd7a0ed
show label as button(enable/disable)
Claus Gittinger <cg@exept.de>
parents:
1203
diff
changeset
|
1122 |
#name: 'LabelSelectAction' |
02d29dd7a0ed
show label as button(enable/disable)
Claus Gittinger <cg@exept.de>
parents:
1203
diff
changeset
|
1123 |
#layout: #(#LayoutFrame 0 0.0 3 0 0 1.0 97 0) |
1156 | 1124 |
#labelPosition: #topLeft |
1125 |
#component: |
|
1126 |
#(#SpecCollection |
|
1127 |
#collection: #( |
|
1128 |
#(#LabelSpec |
|
1129 |
#label: 'Selector:' |
|
1130 |
#name: 'ActionLabel' |
|
1131 |
#layout: #(#AlignmentOrigin 95 0 20 0 1 0.5) |
|
1132 |
#resizeForLabel: true |
|
1133 |
#adjust: #left |
|
1134 |
) |
|
1135 |
#(#InputFieldSpec |
|
1136 |
#name: 'ActionSelector' |
|
1137 |
#layout: #(#LayoutFrame 98 0 9 0 3 1.0 31 0) |
|
1138 |
#activeHelpKey: #selectionLabelClickSelector |
|
1139 |
#tabable: true |
|
1140 |
#model: #labelActionSelector |
|
1141 |
#group: #inputGroup |
|
1142 |
#type: #symbolOrNil |
|
1143 |
#acceptOnLostFocus: false |
|
1144 |
#acceptChannel: #acceptChannel |
|
1145 |
#modifiedChannel: #modifiedChannel |
|
1146 |
#acceptOnPointerLeave: false |
|
1147 |
) |
|
1148 |
#(#LabelSpec |
|
1149 |
#label: 'Argument:' |
|
1150 |
#name: 'ArgumentLabel' |
|
1215
02d29dd7a0ed
show label as button(enable/disable)
Claus Gittinger <cg@exept.de>
parents:
1203
diff
changeset
|
1151 |
#layout: #(#AlignmentOrigin 95 0 48 0 1 0.5) |
1156 | 1152 |
#resizeForLabel: true |
1153 |
#adjust: #left |
|
1154 |
) |
|
1155 |
#(#InputFieldSpec |
|
1156 |
#name: 'ArgumentValue' |
|
1215
02d29dd7a0ed
show label as button(enable/disable)
Claus Gittinger <cg@exept.de>
parents:
1203
diff
changeset
|
1157 |
#layout: #(#LayoutFrame 98 0 37 0 3 1.0 59 0) |
1156 | 1158 |
#activeHelpKey: #selectionLabelSelectorArgument |
1159 |
#tabable: true |
|
1160 |
#model: #labelActionArgument |
|
1161 |
#group: #inputGroup |
|
1162 |
#type: #string |
|
1163 |
#acceptOnLostFocus: false |
|
1164 |
#acceptChannel: #acceptChannel |
|
1165 |
#modifiedChannel: #modifiedChannel |
|
1166 |
#acceptOnPointerLeave: false |
|
1167 |
) |
|
1168 |
) |
|
1169 |
||
408 | 1170 |
) |
1156 | 1171 |
) |
1172 |
#(#FramedBoxSpec |
|
1173 |
#label: 'Cell Selection:' |
|
1215
02d29dd7a0ed
show label as button(enable/disable)
Claus Gittinger <cg@exept.de>
parents:
1203
diff
changeset
|
1174 |
#name: 'CellSelection' |
02d29dd7a0ed
show label as button(enable/disable)
Claus Gittinger <cg@exept.de>
parents:
1203
diff
changeset
|
1175 |
#layout: #(#LayoutFrame 0 0.0 105 0 0 1.0 215 0) |
1156 | 1176 |
#labelPosition: #topLeft |
1177 |
#component: |
|
1178 |
#(#SpecCollection |
|
1179 |
#collection: #( |
|
1180 |
#(#CheckBoxSpec |
|
1181 |
#label: 'Is Selectable' |
|
1182 |
#name: 'canSelect' |
|
1183 |
#layout: #(#Point 95 1) |
|
1184 |
#activeHelpKey: #selectionIsSelectable |
|
1185 |
#tabable: true |
|
1186 |
#model: #canSelect |
|
1187 |
) |
|
1188 |
#(#LabelSpec |
|
1189 |
#label: 'Selector:' |
|
1190 |
#name: 'selectorLabel' |
|
1191 |
#layout: #(#AlignmentOrigin 95 0 37 0 1 0.5) |
|
1192 |
#resizeForLabel: true |
|
1193 |
#adjust: #right |
|
1194 |
) |
|
1195 |
#(#InputFieldSpec |
|
1196 |
#name: 'selectSelector' |
|
1197 |
#layout: #(#LayoutFrame 98 0 26 0 3 1.0 48 0) |
|
1198 |
#activeHelpKey: #selectionCellClickSelector |
|
1199 |
#tabable: true |
|
1200 |
#model: #selectSelector |
|
1201 |
#group: #inputGroup |
|
1202 |
#type: #symbolOrNil |
|
1203 |
#acceptOnLostFocus: false |
|
1204 |
#acceptChannel: #acceptChannel |
|
1205 |
#modifiedChannel: #modifiedChannel |
|
1206 |
#acceptOnPointerLeave: false |
|
1207 |
) |
|
1208 |
#(#CheckBoxSpec |
|
1209 |
#label: 'Show Selection HighLightened' |
|
1210 |
#name: 'showSelectionHighLightened' |
|
1211 |
#layout: #(#LayoutFrame 95 0 53 0 3 1.0 77 0) |
|
1212 |
#activeHelpKey: #showSelectionHighLighted |
|
1213 |
#tabable: true |
|
1214 |
#model: #showSelectionHighLighted |
|
1215 |
) |
|
1216 |
) |
|
1217 |
||
1218 |
) |
|
1219 |
) |
|
1220 |
#(#FramedBoxSpec |
|
1221 |
#label: 'Cell Double Click:' |
|
1215
02d29dd7a0ed
show label as button(enable/disable)
Claus Gittinger <cg@exept.de>
parents:
1203
diff
changeset
|
1222 |
#name: 'CellDoubleClick' |
02d29dd7a0ed
show label as button(enable/disable)
Claus Gittinger <cg@exept.de>
parents:
1203
diff
changeset
|
1223 |
#layout: #(#LayoutFrame 0 0.0 227 0 0 1.0 293 0) |
1156 | 1224 |
#labelPosition: #topLeft |
1225 |
#component: |
|
1226 |
#(#SpecCollection |
|
1227 |
#collection: #( |
|
1228 |
#(#LabelSpec |
|
1229 |
#label: 'Selector:' |
|
1230 |
#name: 'doubleLabel' |
|
1231 |
#layout: #(#AlignmentOrigin 95 0 19 0 1 0.5) |
|
1232 |
#resizeForLabel: true |
|
1233 |
#adjust: #right |
|
1234 |
) |
|
1235 |
#(#InputFieldSpec |
|
1236 |
#name: 'doubleClicked' |
|
1237 |
#layout: #(#LayoutFrame 98 0 8 0 3 1.0 30 0) |
|
1238 |
#activeHelpKey: #selectionCellDoubleClickSelector |
|
1239 |
#tabable: true |
|
1240 |
#model: #doubleClickedSelector |
|
1241 |
#group: #inputGroup |
|
1242 |
#type: #symbolOrNil |
|
1243 |
#acceptOnLostFocus: false |
|
1244 |
#acceptChannel: #acceptChannel |
|
1245 |
#modifiedChannel: #modifiedChannel |
|
1246 |
#acceptOnPointerLeave: false |
|
1247 |
) |
|
1248 |
) |
|
1249 |
||
1250 |
) |
|
1251 |
) |
|
1252 |
) |
|
1253 |
||
1254 |
) |
|
408 | 1255 |
) |
1256 |
! |
|
1257 |
||
528 | 1258 |
slices |
1259 |
^#( |
|
1260 |
(Basics basicsEditSpec) |
|
1261 |
(Values valuesEditSpec) |
|
1262 |
(Format formatEditSpec) |
|
1263 |
(Selection selectionEditSpec) |
|
1264 |
(Frame frameEditSpec) |
|
1265 |
(Colors colorsEditSpec) |
|
1266 |
) |
|
1267 |
! |
|
1268 |
||
408 | 1269 |
valuesEditSpec |
825 | 1270 |
"This resource specification was automatically generated |
1271 |
by the UIPainter of ST/X." |
|
408 | 1272 |
|
825 | 1273 |
"Do not manually edit this!! If it is corrupted, |
1274 |
the UIPainter may not be able to read the specification." |
|
408 | 1275 |
|
1276 |
" |
|
1277 |
UIPainter new openOnClass:DataSetBuilder andSelector:#valuesEditSpec |
|
1278 |
DataSetBuilder new openInterface:#valuesEditSpec |
|
1279 |
" |
|
1280 |
||
1281 |
<resource: #canvas> |
|
1282 |
||
1156 | 1283 |
^ |
1284 |
#(#FullSpec |
|
1285 |
#name: #valuesEditSpec |
|
1286 |
#window: |
|
1287 |
#(#WindowSpec |
|
1288 |
#label: 'DataSet Basic' |
|
1289 |
#name: 'DataSet Basic' |
|
1290 |
#min: #(#Point 10 10) |
|
1291 |
#max: #(#Point 1280 1024) |
|
1318 | 1292 |
#bounds: #(#Rectangle 13 23 309 329) |
1156 | 1293 |
) |
1294 |
#component: |
|
1295 |
#(#SpecCollection |
|
1296 |
#collection: #( |
|
1297 |
#(#FramedBoxSpec |
|
1298 |
#label: 'Value Selectors:' |
|
1299 |
#name: 'valuesBox' |
|
1261 | 1300 |
#layout: #(#LayoutFrame 0 0.0 3 0 0 1.0 138 0) |
1156 | 1301 |
#labelPosition: #topLeft |
1302 |
#component: |
|
1303 |
#(#SpecCollection |
|
1304 |
#collection: #( |
|
1305 |
#(#LabelSpec |
|
1306 |
#label: 'Read:' |
|
1307 |
#name: 'readLabel' |
|
1308 |
#layout: #(#AlignmentOrigin 94 0 15 0 1 0.5) |
|
1309 |
#resizeForLabel: true |
|
1310 |
#adjust: #right |
|
1311 |
) |
|
1312 |
#(#InputFieldSpec |
|
1318 | 1313 |
#attributes: |
1314 |
#(#tabable |
|
1315 |
true |
|
1316 |
) |
|
1156 | 1317 |
#name: 'readSelector' |
1318 |
#layout: #(#LayoutFrame 97 0 4 0 2 1.0 26 0) |
|
1319 |
#activeHelpKey: #valuesReadSelector |
|
1320 |
#tabable: true |
|
1321 |
#model: #readSelector |
|
1322 |
#group: #inputGroup |
|
1323 |
#type: #symbolOrNil |
|
1324 |
#acceptOnLostFocus: false |
|
1325 |
#acceptChannel: #acceptChannel |
|
1326 |
#modifiedChannel: #modifiedChannel |
|
1327 |
#acceptOnPointerLeave: false |
|
1328 |
) |
|
1329 |
#(#LabelSpec |
|
1330 |
#label: 'Write:' |
|
1331 |
#name: 'writeLabel' |
|
1332 |
#layout: #(#AlignmentOrigin 94 0 40 0 1 0.5) |
|
1333 |
#resizeForLabel: true |
|
1334 |
#adjust: #right |
|
1335 |
) |
|
1336 |
#(#InputFieldSpec |
|
1318 | 1337 |
#attributes: |
1338 |
#(#tabable |
|
1339 |
true |
|
1340 |
) |
|
1156 | 1341 |
#name: 'writeSelector' |
1342 |
#layout: #(#LayoutFrame 97 0 29 0 2 1.0 51 0) |
|
1343 |
#activeHelpKey: #valuesWriteSelector |
|
1344 |
#tabable: true |
|
1345 |
#model: #writeSelector |
|
1346 |
#group: #inputGroup |
|
1347 |
#type: #symbolOrNil |
|
1348 |
#acceptOnLostFocus: false |
|
1349 |
#acceptChannel: #acceptChannel |
|
1350 |
#modifiedChannel: #modifiedChannel |
|
1351 |
#acceptOnPointerLeave: false |
|
1352 |
) |
|
1353 |
#(#LabelSpec |
|
1261 | 1354 |
#label: 'Converter:' |
1355 |
#name: 'converterLabel' |
|
1156 | 1356 |
#layout: #(#AlignmentOrigin 94 0 65 0 1 0.5) |
1357 |
#resizeForLabel: true |
|
1358 |
#adjust: #right |
|
1359 |
) |
|
1360 |
#(#InputFieldSpec |
|
1318 | 1361 |
#attributes: |
1362 |
#(#tabable |
|
1363 |
true |
|
1364 |
) |
|
1261 | 1365 |
#name: 'converterField' |
1366 |
#layout: #(#LayoutFrame 97 0 54 0 2 1.0 76 0) |
|
1367 |
#activeHelpKey: #converterSelector |
|
1368 |
#tabable: true |
|
1369 |
#model: #converterSelector |
|
1370 |
#group: #inputGroup |
|
1371 |
#type: #symbolOrNil |
|
1372 |
#acceptOnLostFocus: false |
|
1373 |
#acceptChannel: #acceptChannel |
|
1374 |
#modifiedChannel: #modifiedChannel |
|
1375 |
#acceptOnPointerLeave: false |
|
1376 |
) |
|
1377 |
#(#LabelSpec |
|
1378 |
#label: 'Print:' |
|
1379 |
#name: 'printLabel' |
|
1318 | 1380 |
#layout: #(#AlignmentOrigin 94 0 90 0 1 0.5) |
1261 | 1381 |
#resizeForLabel: true |
1382 |
#adjust: #right |
|
1383 |
) |
|
1384 |
#(#InputFieldSpec |
|
1318 | 1385 |
#attributes: |
1386 |
#(#tabable |
|
1387 |
true |
|
1388 |
) |
|
1156 | 1389 |
#name: 'printSelector' |
1318 | 1390 |
#layout: #(#LayoutFrame 97 0 79 0 2 1.0 101 0) |
1156 | 1391 |
#activeHelpKey: #valuesPrintSelector |
1392 |
#tabable: true |
|
1393 |
#model: #printSelector |
|
1394 |
#group: #inputGroup |
|
1395 |
#type: #symbolOrNil |
|
1396 |
#acceptOnLostFocus: false |
|
1397 |
#acceptChannel: #acceptChannel |
|
1398 |
#modifiedChannel: #modifiedChannel |
|
1399 |
#acceptOnPointerLeave: false |
|
1400 |
) |
|
1401 |
) |
|
1402 |
||
332 | 1403 |
) |
1156 | 1404 |
) |
1405 |
#(#FramedBoxSpec |
|
1406 |
#label: 'Menu:' |
|
1407 |
#name: 'menusBox' |
|
1261 | 1408 |
#layout: #(#LayoutFrame 0 0.0 143 0 0 1.0 200 0) |
1156 | 1409 |
#labelPosition: #topLeft |
1410 |
#component: |
|
1411 |
#(#SpecCollection |
|
1412 |
#collection: #( |
|
1413 |
#(#LabelSpec |
|
1414 |
#label: 'Selector:' |
|
1415 |
#name: 'menuLabel' |
|
1318 | 1416 |
#layout: #(#AlignmentOrigin 94 0 12 0 1 0.5) |
1156 | 1417 |
#resizeForLabel: true |
1418 |
#adjust: #right |
|
1419 |
) |
|
1420 |
#(#InputFieldSpec |
|
1318 | 1421 |
#attributes: |
1422 |
#(#tabable |
|
1423 |
true |
|
1424 |
) |
|
1156 | 1425 |
#name: 'menuSelector' |
1318 | 1426 |
#layout: #(#LayoutFrame 97 0 1 0 2 1.0 23 0) |
1156 | 1427 |
#activeHelpKey: #valuesMenuSelector |
1428 |
#tabable: true |
|
1429 |
#model: #menu |
|
1430 |
#group: #inputGroup |
|
1431 |
#type: #symbolOrNil |
|
1432 |
#acceptOnLostFocus: false |
|
1433 |
#acceptChannel: #acceptChannel |
|
1434 |
#modifiedChannel: #modifiedChannel |
|
1435 |
#acceptOnPointerLeave: false |
|
1436 |
) |
|
1437 |
) |
|
1438 |
||
1439 |
) |
|
1440 |
) |
|
1441 |
#(#FramedBoxSpec |
|
1442 |
#label: 'Combo List/Box Selectors:' |
|
1443 |
#name: 'framedBox1' |
|
1261 | 1444 |
#layout: #(#LayoutFrame 1 0.0 205 0 1 1.0 293 0) |
1156 | 1445 |
#labelPosition: #topLeft |
1446 |
#component: |
|
1447 |
#(#SpecCollection |
|
1448 |
#collection: #( |
|
1449 |
#(#LabelSpec |
|
1450 |
#label: 'Choices:' |
|
1451 |
#name: 'ChoicesLabel' |
|
1452 |
#layout: #(#AlignmentOrigin 94 0 15 0 1 0.5) |
|
1453 |
#activeHelpKey: #valuesChoiceSelector |
|
1454 |
#resizeForLabel: true |
|
1455 |
#adjust: #right |
|
1456 |
) |
|
1457 |
#(#InputFieldSpec |
|
1318 | 1458 |
#attributes: |
1459 |
#(#tabable |
|
1460 |
true |
|
1461 |
) |
|
1156 | 1462 |
#name: 'ChoicesField' |
1463 |
#layout: #(#LayoutFrame 97 0 4 0 2 1.0 26 0) |
|
1464 |
#activeHelpKey: #valuesChoiceSelector |
|
1465 |
#tabable: true |
|
1466 |
#model: #choices |
|
1467 |
#group: #inputGroup |
|
1468 |
#type: #symbolOrNil |
|
1469 |
#acceptOnLeave: false |
|
1470 |
#acceptOnLostFocus: false |
|
1471 |
#acceptChannel: #acceptChannel |
|
1472 |
#modifiedChannel: #modifiedChannel |
|
1473 |
#acceptOnPointerLeave: false |
|
1474 |
) |
|
1475 |
#(#LabelSpec |
|
1476 |
#label: 'Editable:' |
|
1477 |
#name: 'ShowInputFieldLabel' |
|
1478 |
#layout: #(#AlignmentOrigin 94 0 41 0 1 0.5) |
|
1479 |
#activeHelpKey: #showComboFieldSelector |
|
1480 |
#resizeForLabel: true |
|
1481 |
#adjust: #right |
|
1482 |
) |
|
1483 |
#(#InputFieldSpec |
|
1318 | 1484 |
#attributes: |
1485 |
#(#tabable |
|
1486 |
true |
|
1487 |
) |
|
1156 | 1488 |
#name: 'ShowInputFieldField' |
1489 |
#layout: #(#LayoutFrame 97 0 30 0 2 1.0 52 0) |
|
1490 |
#activeHelpKey: #showComboFieldSelector |
|
1491 |
#tabable: true |
|
1492 |
#model: #showComboFieldSelector |
|
1493 |
#group: #inputGroup |
|
1494 |
#type: #symbolOrNil |
|
1495 |
#acceptOnLeave: false |
|
1496 |
#acceptOnLostFocus: false |
|
1497 |
#acceptChannel: #acceptChannel |
|
1498 |
#modifiedChannel: #modifiedChannel |
|
1499 |
#acceptOnPointerLeave: false |
|
1500 |
) |
|
1501 |
) |
|
1502 |
||
1503 |
) |
|
1504 |
) |
|
1505 |
) |
|
1506 |
||
1507 |
) |
|
332 | 1508 |
) |
1318 | 1509 |
|
1510 |
"Modified: / 30.1.2000 / 02:39:03 / cg" |
|
332 | 1511 |
! |
1512 |
||
1513 |
windowSpec |
|
817 | 1514 |
"This resource specification was automatically generated |
1515 |
by the UIPainter of ST/X." |
|
332 | 1516 |
|
817 | 1517 |
"Do not manually edit this!! If it is corrupted, |
1518 |
the UIPainter may not be able to read the specification." |
|
332 | 1519 |
|
1520 |
" |
|
1521 |
UIPainter new openOnClass:DataSetBuilder andSelector:#windowSpec |
|
1522 |
DataSetBuilder new openInterface:#windowSpec |
|
817 | 1523 |
DataSetBuilder open |
332 | 1524 |
" |
1525 |
||
1526 |
<resource: #canvas> |
|
1527 |
||
1156 | 1528 |
^ |
1529 |
#(#FullSpec |
|
1530 |
#name: #windowSpec |
|
1531 |
#window: |
|
1532 |
#(#WindowSpec |
|
1533 |
#label: 'Data Set Builder' |
|
1534 |
#name: 'Data Set Builder' |
|
1535 |
#min: #(#Point 10 10) |
|
1536 |
#max: #(#Point 1152 900) |
|
1312 | 1537 |
#bounds: #(#Rectangle 12 22 645 589) |
1156 | 1538 |
#menu: #menu |
1539 |
) |
|
1540 |
#component: |
|
1541 |
#(#SpecCollection |
|
1542 |
#collection: #( |
|
1543 |
#(#MenuPanelSpec |
|
1312 | 1544 |
#attributes: |
1545 |
#(#tabable |
|
1546 |
true |
|
1547 |
) |
|
1156 | 1548 |
#name: 'menuToolbarView' |
1549 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 32 0) |
|
1312 | 1550 |
#tabable: true |
1156 | 1551 |
#menu: #menuToolbar |
1552 |
) |
|
1553 |
#(#VariableVerticalPanelSpec |
|
1554 |
#name: 'VariableVerticalPanel1' |
|
1555 |
#layout: #(#LayoutFrame 0 0.0 38 0.0 0 1.0 -26 1.0) |
|
1556 |
#component: |
|
1557 |
#(#SpecCollection |
|
1558 |
#collection: #( |
|
1559 |
#(#FramedBoxSpec |
|
1560 |
#label: 'Table Columns' |
|
1561 |
#name: 'FramedBox' |
|
1562 |
#labelPosition: #topLeft |
|
687 | 1563 |
#component: |
1156 | 1564 |
#(#SpecCollection |
1565 |
#collection: #( |
|
1566 |
#(#DataSetSpec |
|
1567 |
#name: 'columnView' |
|
1568 |
#layout: #(#LayoutFrame 2 0.0 6 0.0 2 1.0 6 1.0) |
|
1569 |
#hasHorizontalScrollBar: true |
|
1570 |
#hasVerticalScrollBar: false |
|
1571 |
#miniScrollerHorizontal: true |
|
1572 |
#useIndex: false |
|
1573 |
#has3Dsepartors: true |
|
1574 |
#has3Dseparators: true |
|
1575 |
) |
|
1576 |
) |
|
1577 |
||
1578 |
) |
|
1579 |
) |
|
1580 |
#(#VariableHorizontalPanelSpec |
|
1581 |
#name: 'VariablePanel' |
|
1582 |
#level: -1 |
|
1583 |
#component: |
|
1584 |
#(#SpecCollection |
|
1585 |
#collection: #( |
|
1586 |
#(#ViewSpec |
|
1587 |
#name: 'labelsView' |
|
1588 |
#component: |
|
1589 |
#(#SpecCollection |
|
1590 |
#collection: #( |
|
1591 |
#(#SequenceViewSpec |
|
1592 |
#name: 'labelAndColumns' |
|
1593 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
1312 | 1594 |
#tabable: true |
1156 | 1595 |
#model: #selectedColumnModel |
1596 |
#menu: #menuEdit |
|
1597 |
#hasHorizontalScrollBar: true |
|
1598 |
#hasVerticalScrollBar: true |
|
1599 |
#miniScrollerHorizontal: true |
|
1600 |
#useIndex: true |
|
1601 |
#sequenceList: #seqList |
|
825 | 1602 |
) |
1156 | 1603 |
) |
1604 |
||
332 | 1605 |
) |
1606 |
) |
|
1156 | 1607 |
#(#ViewSpec |
1608 |
#name: 'specView' |
|
1609 |
#level: -1 |
|
1610 |
#component: |
|
1611 |
#(#SpecCollection |
|
1612 |
#collection: #( |
|
1613 |
#(#NoteBookViewSpec |
|
1312 | 1614 |
#attributes: |
1615 |
#(#tabable |
|
1616 |
true |
|
1617 |
) |
|
1156 | 1618 |
#name: 'NoteBook' |
1619 |
#layout: #(#LayoutFrame 1 0.0 0 0.0 0 1.0 -30 1.0) |
|
1312 | 1620 |
#tabable: true |
1156 | 1621 |
#model: #tabModel |
1622 |
#menu: #tabList |
|
1623 |
#useIndex: true |
|
1300 | 1624 |
#canvas: #canvasHolder |
1625 |
#keepCanvasAlive: true |
|
1156 | 1626 |
) |
1627 |
#(#UISubSpecification |
|
1628 |
#name: 'SubSpecification' |
|
1629 |
#layout: #(#LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0) |
|
1630 |
#majorKey: #ToolApplicationModel |
|
1631 |
#minorKey: #windowSpecForCommit |
|
1632 |
) |
|
1633 |
) |
|
1634 |
||
1635 |
) |
|
1636 |
) |
|
1637 |
) |
|
1638 |
||
332 | 1639 |
) |
1300 | 1640 |
#handles: #(#Any 0.235387 1.0) |
1156 | 1641 |
) |
1642 |
) |
|
1643 |
||
332 | 1644 |
) |
1300 | 1645 |
#handles: #(#Any 0.25 1.0) |
1156 | 1646 |
) |
1647 |
#(#UISubSpecification |
|
1648 |
#name: 'infoBarSubSpec' |
|
1649 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
1650 |
#majorKey: #ToolApplicationModel |
|
1651 |
#minorKey: #windowSpecForInfoBar |
|
1652 |
) |
|
1653 |
) |
|
1654 |
||
1655 |
) |
|
332 | 1656 |
) |
1657 |
! ! |
|
1658 |
||
1659 |
!DataSetBuilder class methodsFor:'menu specs'! |
|
1660 |
||
408 | 1661 |
menu |
818 | 1662 |
"This resource specification was automatically generated |
1663 |
by the MenuEditor of ST/X." |
|
332 | 1664 |
|
818 | 1665 |
"Do not manually edit this!! If it is corrupted, |
1666 |
the MenuEditor may not be able to read the specification." |
|
332 | 1667 |
|
1668 |
" |
|
408 | 1669 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#menu |
1670 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder menu)) startUp |
|
332 | 1671 |
" |
1672 |
||
1673 |
<resource: #menu> |
|
1674 |
||
1675 |
^ |
|
1676 |
||
1677 |
#(#Menu |
|
1678 |
||
1679 |
#( |
|
1680 |
#(#MenuItem |
|
818 | 1681 |
#label: 'About' |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1682 |
#translateLabel: true |
818 | 1683 |
#accessCharacterPosition: 1 |
1684 |
#labelImage: #(#ResourceRetriever nil #menuIcon) |
|
1685 |
#submenuChannel: #menuAbout |
|
408 | 1686 |
) |
1687 |
#(#MenuItem |
|
818 | 1688 |
#label: 'File' |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1689 |
#translateLabel: true |
818 | 1690 |
#activeHelpKey: #file |
1691 |
#submenu: |
|
332 | 1692 |
#(#Menu |
1693 |
||
1694 |
#( |
|
1695 |
#(#MenuItem |
|
818 | 1696 |
#label: 'New' |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1697 |
#translateLabel: true |
818 | 1698 |
#value: #doNew |
1699 |
#activeHelpKey: #fileNew |
|
1700 |
) |
|
1701 |
#(#MenuItem |
|
1702 |
#label: '-' |
|
408 | 1703 |
) |
1704 |
#(#MenuItem |
|
818 | 1705 |
#label: 'Load...' |
1706 |
#translateLabel: true |
|
1707 |
#value: #doLoad |
|
1708 |
#activeHelpKey: #fileLoad |
|
408 | 1709 |
) |
1710 |
#(#MenuItem |
|
818 | 1711 |
#label: '-' |
1712 |
) |
|
1713 |
#(#MenuItem |
|
1714 |
#label: 'Save' |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1715 |
#translateLabel: true |
818 | 1716 |
#value: #doSave |
1717 |
#activeHelpKey: #fileSave |
|
408 | 1718 |
) |
1719 |
#(#MenuItem |
|
818 | 1720 |
#label: 'Save As...' |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1721 |
#translateLabel: true |
818 | 1722 |
#value: #doSaveAs |
1723 |
#activeHelpKey: #fileSaveAs |
|
1724 |
) |
|
1725 |
#(#MenuItem |
|
1726 |
#label: '-' |
|
1727 |
) |
|
1728 |
#(#MenuItem |
|
1729 |
#label: 'Pick Columns...' |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1730 |
#translateLabel: true |
818 | 1731 |
#value: #doPickColumns |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1732 |
#activeHelpKey: #pickColumns |
408 | 1733 |
) |
1734 |
#(#MenuItem |
|
818 | 1735 |
#label: '-' |
1736 |
) |
|
1737 |
#(#MenuItem |
|
1738 |
#label: 'Browse Class' |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1739 |
#translateLabel: true |
818 | 1740 |
#value: #doBrowseClass |
1741 |
#activeHelpKey: #fileBrowseClass |
|
408 | 1742 |
) |
1743 |
#(#MenuItem |
|
818 | 1744 |
#label: '-' |
1745 |
) |
|
1746 |
#(#MenuItem |
|
1747 |
#label: 'Exit' |
|
1748 |
#translateLabel: true |
|
1749 |
#value: #closeRequest |
|
1750 |
#activeHelpKey: #fileExit |
|
332 | 1751 |
) |
1752 |
) nil |
|
1753 |
nil |
|
1754 |
) |
|
1755 |
) |
|
1756 |
#(#MenuItem |
|
818 | 1757 |
#label: 'Edit' |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1758 |
#translateLabel: true |
818 | 1759 |
#activeHelpKey: #edit |
1760 |
#submenuChannel: #menuEdit |
|
332 | 1761 |
) |
521 | 1762 |
#(#MenuItem |
818 | 1763 |
#label: 'Add' |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1764 |
#translateLabel: true |
818 | 1765 |
#submenu: |
521 | 1766 |
#(#Menu |
1767 |
||
1768 |
#( |
|
1769 |
#(#MenuItem |
|
818 | 1770 |
#label: 'Column' |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1771 |
#translateLabel: true |
818 | 1772 |
#value: #doCreateColumn |
1773 |
#activeHelpKey: #addColumn |
|
1774 |
#enabled: #columnIsNotEditing |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1775 |
#labelImage: #(#ResourceRetriever nil #newColumnIcon 'Column') |
521 | 1776 |
) |
1777 |
) nil |
|
1778 |
nil |
|
1779 |
) |
|
1780 |
) |
|
1781 |
#(#MenuItem |
|
818 | 1782 |
#label: 'Generate' |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1783 |
#translateLabel: true |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1784 |
#activeHelpKey: #generate |
818 | 1785 |
#submenu: |
1786 |
#(#Menu |
|
1787 |
||
1788 |
#( |
|
1789 |
#(#MenuItem |
|
1790 |
#label: 'Define Row Class...' |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1791 |
#translateLabel: true |
818 | 1792 |
#value: #doDefineRowClass |
1793 |
#activeHelpKey: #fileDefineClass |
|
1794 |
) |
|
1795 |
#(#MenuItem |
|
1796 |
#label: 'Browse Row Class' |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1797 |
#translateLabel: true |
818 | 1798 |
#value: #doBrowseRowClass |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1799 |
#activeHelpKey: #browseRowClass |
818 | 1800 |
) |
1801 |
#(#MenuItem |
|
1802 |
#label: '-' |
|
1803 |
) |
|
1804 |
#(#MenuItem |
|
1805 |
#label: 'Generate Code' |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1806 |
#translateLabel: true |
818 | 1807 |
#value: #doGenerateCode |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1808 |
#activeHelpKey: #generateCode |
818 | 1809 |
) |
1810 |
) nil |
|
1811 |
nil |
|
1812 |
) |
|
1813 |
) |
|
1033
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1814 |
"/ #(#MenuItem |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1815 |
"/ #label: 'Settings' |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1816 |
"/ #translateLabel: true |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1817 |
"/ #activeHelpKey: #settings |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1818 |
"/ #submenu: |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1819 |
"/ #(#Menu |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1820 |
"/ |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1821 |
"/ #( |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1822 |
"/ #(#MenuItem |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1823 |
"/ #label: 'Fonts' |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1824 |
"/ #translateLabel: true |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1825 |
"/ #submenuChannel: #menuFont |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1826 |
"/ ) |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1827 |
"/ ) nil |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1828 |
"/ nil |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1829 |
"/ ) |
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
1830 |
"/ ) |
825 | 1831 |
#(#MenuItem |
818 | 1832 |
#label: 'History' |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1833 |
#translateLabel: true |
818 | 1834 |
#activeHelpKey: #history |
1835 |
#submenuChannel: #menuHistory |
|
1836 |
) |
|
1837 |
#(#MenuItem |
|
1838 |
#label: 'Help' |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1839 |
#translateLabel: true |
818 | 1840 |
#startGroup: #right |
825 | 1841 |
#submenuChannel: #menuHelp |
521 | 1842 |
) |
332 | 1843 |
) nil |
1844 |
nil |
|
1845 |
) |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1846 |
|
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1847 |
"Modified: / 19.5.1998 / 23:10:01 / cg" |
332 | 1848 |
! |
1849 |
||
408 | 1850 |
menuEdit |
825 | 1851 |
"This resource specification was automatically generated |
1852 |
by the MenuEditor of ST/X." |
|
332 | 1853 |
|
825 | 1854 |
"Do not manually edit this!! If it is corrupted, |
1855 |
the MenuEditor may not be able to read the specification." |
|
332 | 1856 |
|
1857 |
" |
|
408 | 1858 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#menuEdit |
1859 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder menuEdit)) startUp |
|
1860 |
" |
|
1861 |
||
1862 |
<resource: #menu> |
|
1863 |
||
1864 |
^ |
|
1865 |
||
1866 |
#(#Menu |
|
1867 |
||
1868 |
#( |
|
1869 |
#(#MenuItem |
|
825 | 1870 |
#label: 'Cut' |
881 | 1871 |
#translateLabel: true |
825 | 1872 |
#value: #doCut |
1873 |
#activeHelpKey: #editCut |
|
1874 |
#enabled: #isColumnSelected |
|
408 | 1875 |
) |
1876 |
#(#MenuItem |
|
825 | 1877 |
#label: 'Copy' |
881 | 1878 |
#translateLabel: true |
825 | 1879 |
#value: #doCopy |
1880 |
#activeHelpKey: #editCopy |
|
1881 |
#enabled: #isColumnSelected |
|
408 | 1882 |
) |
1883 |
#(#MenuItem |
|
825 | 1884 |
#label: 'Paste' |
881 | 1885 |
#translateLabel: true |
825 | 1886 |
#value: #doPaste |
1887 |
#activeHelpKey: #editPaste |
|
1888 |
#enabled: #valueOfHavingClipboard |
|
408 | 1889 |
) |
1890 |
#(#MenuItem |
|
825 | 1891 |
#label: 'Delete' |
881 | 1892 |
#translateLabel: true |
825 | 1893 |
#value: #doDelete |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
1894 |
#activeHelpKey: #editDelete |
825 | 1895 |
#enabled: #valueOfHavingClipboard |
1896 |
) |
|
1897 |
#(#MenuItem |
|
1898 |
#label: '-' |
|
408 | 1899 |
) |
1900 |
#(#MenuItem |
|
825 | 1901 |
#label: 'Move Up' |
881 | 1902 |
#translateLabel: true |
825 | 1903 |
#value: #doMoveColumn: |
1904 |
#activeHelpKey: #editMoveUp |
|
1905 |
#enabled: #isColumnSelected |
|
1906 |
#argument: #up |
|
881 | 1907 |
#labelImage: #(#ResourceRetriever #Icon #upIcon 'Move Up') |
408 | 1908 |
) |
1909 |
#(#MenuItem |
|
825 | 1910 |
#label: 'Move Down' |
881 | 1911 |
#translateLabel: true |
825 | 1912 |
#value: #doMoveColumn: |
1913 |
#activeHelpKey: #editMoveDown |
|
1914 |
#enabled: #isColumnSelected |
|
1915 |
#argument: #down |
|
881 | 1916 |
#labelImage: #(#ResourceRetriever #Icon #downIcon 'Move Down') |
408 | 1917 |
) |
1918 |
) nil |
|
1919 |
nil |
|
1920 |
) |
|
1921 |
! |
|
1922 |
||
1923 |
menuToolbar |
|
825 | 1924 |
"This resource specification was automatically generated |
1925 |
by the MenuEditor of ST/X." |
|
408 | 1926 |
|
825 | 1927 |
"Do not manually edit this!! If it is corrupted, |
1928 |
the MenuEditor may not be able to read the specification." |
|
408 | 1929 |
|
1930 |
" |
|
1931 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#menuToolbar |
|
1932 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder menuToolbar)) startUp |
|
332 | 1933 |
" |
1934 |
||
1935 |
<resource: #menu> |
|
1936 |
||
1937 |
^ |
|
1938 |
||
1939 |
#(#Menu |
|
1940 |
||
1941 |
#( |
|
1942 |
#(#MenuItem |
|
825 | 1943 |
#label: 'New' |
1944 |
#isButton: true |
|
1945 |
#value: #doNew |
|
1946 |
#activeHelpKey: #fileNew |
|
881 | 1947 |
#labelImage: #(#ResourceRetriever #Icon #newIcon) |
825 | 1948 |
) |
1949 |
#(#MenuItem |
|
1950 |
#label: 'Load' |
|
1951 |
#isButton: true |
|
1952 |
#value: #doLoad |
|
1953 |
#activeHelpKey: #fileLoad |
|
881 | 1954 |
#labelImage: #(#ResourceRetriever #Icon #loadIcon) |
332 | 1955 |
) |
1956 |
#(#MenuItem |
|
825 | 1957 |
#label: 'Save' |
1958 |
#isButton: true |
|
1959 |
#value: #doSave |
|
1960 |
#activeHelpKey: #fileSave |
|
881 | 1961 |
#labelImage: #(#ResourceRetriever #Icon #saveIcon) |
825 | 1962 |
) |
1963 |
#(#MenuItem |
|
1964 |
#label: '' |
|
1965 |
) |
|
1966 |
#(#MenuItem |
|
1967 |
#label: 'Cut' |
|
1968 |
#isButton: true |
|
1969 |
#value: #doCut |
|
1970 |
#activeHelpKey: #editCut |
|
1971 |
#enabled: #isColumnSelected |
|
881 | 1972 |
#labelImage: #(#ResourceRetriever #Icon #cutIcon) |
825 | 1973 |
) |
1974 |
#(#MenuItem |
|
1975 |
#label: 'Copy' |
|
1976 |
#isButton: true |
|
1977 |
#value: #doCopy |
|
1978 |
#activeHelpKey: #editCopy |
|
1979 |
#enabled: #isColumnSelected |
|
881 | 1980 |
#labelImage: #(#ResourceRetriever #Icon #copyIcon) |
332 | 1981 |
) |
1982 |
#(#MenuItem |
|
825 | 1983 |
#label: 'Paste' |
1984 |
#isButton: true |
|
1985 |
#value: #doPaste |
|
1986 |
#activeHelpKey: #editPaste |
|
1987 |
#enabled: #valueOfCanPaste |
|
881 | 1988 |
#labelImage: #(#ResourceRetriever #Icon #pasteIcon) |
825 | 1989 |
) |
1990 |
#(#MenuItem |
|
1991 |
#label: 'Delete' |
|
1992 |
#isButton: true |
|
1993 |
#value: #doDelete |
|
1994 |
#activeHelpKey: #editDelete |
|
1995 |
#enabled: #isColumnSelected |
|
881 | 1996 |
#labelImage: #(#ResourceRetriever #Icon #deleteIcon) |
825 | 1997 |
) |
1998 |
#(#MenuItem |
|
1999 |
#label: '' |
|
332 | 2000 |
) |
2001 |
#(#MenuItem |
|
825 | 2002 |
#label: 'Add Column' |
2003 |
#isButton: true |
|
2004 |
#value: #doCreateColumn |
|
2005 |
#activeHelpKey: #addColumn |
|
2006 |
#enabled: #columnIsNotEditing |
|
2007 |
#labelImage: #(#ResourceRetriever nil #newColumnIcon) |
|
2008 |
) |
|
2009 |
#(#MenuItem |
|
2010 |
#label: '' |
|
2011 |
) |
|
2012 |
#(#MenuItem |
|
2013 |
#label: 'Move Up' |
|
2014 |
#isButton: true |
|
2015 |
#value: #doMoveColumn: |
|
2016 |
#activeHelpKey: #editMoveUp |
|
2017 |
#enabled: #isColumnSelected |
|
2018 |
#argument: #up |
|
881 | 2019 |
#labelImage: #(#ResourceRetriever #Icon #upIcon) |
825 | 2020 |
) |
2021 |
#(#MenuItem |
|
2022 |
#label: 'Move Down' |
|
2023 |
#isButton: true |
|
2024 |
#value: #doMoveColumn: |
|
2025 |
#activeHelpKey: #editMoveDown |
|
2026 |
#enabled: #isColumnSelected |
|
2027 |
#argument: #down |
|
881 | 2028 |
#labelImage: #(#ResourceRetriever #Icon #downIcon) |
332 | 2029 |
) |
2030 |
) nil |
|
2031 |
nil |
|
2032 |
) |
|
2033 |
! ! |
|
2034 |
||
2035 |
!DataSetBuilder methodsFor:'accessing'! |
|
2036 |
||
2037 |
columns |
|
419 | 2038 |
"returns list of columns" |
2039 |
||
818 | 2040 |
^ columns |
332 | 2041 |
! |
2042 |
||
818 | 2043 |
columns:aListOfColumns |
419 | 2044 |
"setup columns from a column view" |
2045 |
||
332 | 2046 |
|list| |
2047 |
||
2048 |
columns := OrderedCollection new. |
|
2049 |
list := self seqList. |
|
2050 |
||
2051 |
list removeAll. |
|
2052 |
||
818 | 2053 |
aListOfColumns size ~~ 0 ifTrue:[ |
2054 |
aListOfColumns do:[:aColumn||column| |
|
2055 |
(column := aColumn) isSequenceable ifTrue:[ |
|
2056 |
column := DataSetColumnSpec new fromLiteralArrayEncoding:aColumn |
|
2057 |
] ifFalse:[ |
|
2058 |
column := aColumn copy |
|
2059 |
]. |
|
2060 |
columns add:column. |
|
825 | 2061 |
list add:(self labelFromColumn:column). |
332 | 2062 |
] |
818 | 2063 |
]. |
2064 |
self updateColumnView. |
|
2065 |
||
333 | 2066 |
! |
2067 |
||
983 | 2068 |
resolveRowClass |
2069 |
"returns the resolved row class |
|
2070 |
" |
|
2071 |
^ Smalltalk resolveName:rowClass inClass:self class |
|
2072 |
! |
|
2073 |
||
333 | 2074 |
rowClassName |
419 | 2075 |
|
983 | 2076 |
^ self resolveRowClass notNil ifTrue:[rowClass] ifFalse:[nil] |
333 | 2077 |
! |
2078 |
||
2079 |
rowClassName:aClassName |
|
419 | 2080 |
|
333 | 2081 |
|cls| |
2082 |
||
818 | 2083 |
rowSuperClass := nil. |
333 | 2084 |
|
818 | 2085 |
(rowClass := aClassName) notNil ifTrue:[ |
983 | 2086 |
(cls := self resolveRowClass) notNil |
818 | 2087 |
ifTrue: [rowSuperClass := cls superclass name asString] |
2088 |
ifFalse:[rowSuperClass := 'Object'] |
|
333 | 2089 |
] |
2090 |
||
332 | 2091 |
! ! |
2092 |
||
419 | 2093 |
!DataSetBuilder methodsFor:'aspects'! |
332 | 2094 |
|
1300 | 2095 |
canvasHolder |
2096 |
"returns a value holder which keeps selected column" |
|
2097 |
||
2098 |
|holder| |
|
2099 |
||
2100 |
(holder := builder bindingAt:#canvasHolder) isNil ifTrue:[ |
|
2101 |
builder aspectAt:#canvasHolder put:(holder := ValueHolder new). |
|
2102 |
]. |
|
2103 |
^ holder |
|
2104 |
! |
|
2105 |
||
419 | 2106 |
columnIsNotEditing |
2107 |
"returns a boolean value holder which is set to true if column is not editing" |
|
332 | 2108 |
|
1311 | 2109 |
|holder| |
2110 |
||
2111 |
(holder := builder bindingAt:#columnIsNotEditing) isNil ifTrue:[ |
|
2112 |
holder := BlockValue forLogicalNot:(self modifiedChannel). |
|
2113 |
builder aspectAt:#columnIsNotEditing put:holder. |
|
2114 |
]. |
|
2115 |
^ holder |
|
332 | 2116 |
|
2117 |
! |
|
2118 |
||
419 | 2119 |
editorTypeList |
2120 |
"generate list of supported editor types" |
|
332 | 2121 |
|
2122 |
|list| |
|
2123 |
||
419 | 2124 |
(list := builder bindingAt:#editorTypeList) isNil |
2125 |
ifTrue: |
|
2126 |
[ |
|
332 | 2127 |
list := OrderedCollection new. |
419 | 2128 |
DataSetColumnSpec slices do: |
2129 |
[:aSlice||type| |
|
332 | 2130 |
type := aSlice at:1. |
419 | 2131 |
(list includes:type) ifFalse:[list add:type] |
332 | 2132 |
]. |
419 | 2133 |
builder aspectAt:#editorTypeList put:list |
332 | 2134 |
]. |
419 | 2135 |
^list |
332 | 2136 |
! |
2137 |
||
408 | 2138 |
isColumnSelected |
332 | 2139 |
"returns a boolean value holder which is set to true if something is modified |
419 | 2140 |
and not accepted" |
2141 |
||
2142 |
^builder valueAspectFor:#isColumnSelected initialValue: false |
|
332 | 2143 |
|
2144 |
||
2145 |
||
2146 |
! |
|
2147 |
||
2148 |
rendererTypeList |
|
419 | 2149 |
"generate list of supported renderer types" |
2150 |
||
332 | 2151 |
|list| |
2152 |
||
419 | 2153 |
(list := builder bindingAt:#rendererTypeList) isNil |
2154 |
ifTrue: |
|
2155 |
[ |
|
332 | 2156 |
list := OrderedCollection new. |
419 | 2157 |
DataSetColumnSpec slices do: |
2158 |
[:aSlice||type| |
|
332 | 2159 |
type := aSlice at:2. |
419 | 2160 |
(list includes:type) ifFalse:[list add:type] |
332 | 2161 |
]. |
419 | 2162 |
builder aspectAt:#rendererTypeList put:list |
332 | 2163 |
]. |
419 | 2164 |
^list |
332 | 2165 |
! |
2166 |
||
2167 |
selectedColumnModel |
|
419 | 2168 |
"returns a value holder which keeps selected column" |
332 | 2169 |
|
2170 |
|holder| |
|
2171 |
||
2172 |
(holder := builder bindingAt:#selectedColumnModel) isNil ifTrue:[ |
|
2173 |
holder := AspectAdaptor new subject:self; forAspect:#selectedColumnIndex. |
|
2174 |
builder aspectAt:#selectedColumnModel put:holder. |
|
2175 |
]. |
|
2176 |
^ holder |
|
2177 |
! |
|
2178 |
||
2179 |
seqList |
|
1182 | 2180 |
^ builder listAspectFor:#seqList |
332 | 2181 |
! |
2182 |
||
391 | 2183 |
style |
419 | 2184 |
|
2185 |
^self aspectFor:#labelFont |
|
391 | 2186 |
! |
2187 |
||
332 | 2188 |
tabList |
2189 |
||
419 | 2190 |
^self class slices collect:[:aSlice|aSlice first] |
332 | 2191 |
|
2192 |
! ! |
|
2193 |
||
818 | 2194 |
!DataSetBuilder methodsFor:'building'! |
2195 |
||
2196 |
buildFromClass:aClass andSelector:aSelector |
|
825 | 2197 |
|
2198 |
|updateBlock cls list| |
|
2199 |
||
2200 |
selectedColumnIndex := 0. |
|
2201 |
||
2202 |
updateBlock := [ |
|
2203 |
columns notEmpty ifTrue: [ |
|
1187 | 2204 |
self tabModel value:0; value:1. "/ toggle to force change |
2205 |
self selectedColumnModel value:nil; value:1. "/ toggle to force change |
|
825 | 2206 |
self updateColumnView. |
2207 |
self updateInputFields. |
|
2208 |
self updateInfoLabel. |
|
1156 | 2209 |
self updateHistory. |
1187 | 2210 |
self clearModifiedFlag. |
1156 | 2211 |
self valueOfEnablingCommitButtons value:false. |
825 | 2212 |
] |
2213 |
]. |
|
2214 |
||
2215 |
"if opened on table columns" |
|
2216 |
||
2217 |
aClass isNil ifTrue: [ |
|
2218 |
self tabModel value: 0. |
|
2219 |
self columns removeAll. |
|
2220 |
self seqList removeAll. |
|
2221 |
self updateColumnView. |
|
2222 |
self updateInfoLabel. |
|
1158 | 2223 |
^ self isColumnSelected value: false. |
825 | 2224 |
]. |
2225 |
||
2226 |
specSelector isNil ifTrue: [updateBlock value. ^self]. |
|
818 | 2227 |
|
2228 |
list := nil. |
|
2229 |
||
2230 |
(aClass notNil or:[self isStandAlone or:[self window shown]]) ifTrue:[ |
|
2231 |
||
2232 |
(aClass notNil and:[aSelector notNil]) ifTrue:[ |
|
2233 |
cls := self resolveName:aClass. |
|
2234 |
||
2235 |
(cls respondsTo:aSelector) ifTrue:[ |
|
2236 |
list := cls perform:aSelector |
|
2237 |
] |
|
2238 |
] |
|
2239 |
] ifFalse:[ |
|
2240 |
list := columns |
|
2241 |
]. |
|
825 | 2242 |
self columns:list. |
1156 | 2243 |
updateBlock value. |
825 | 2244 |
|
818 | 2245 |
! |
2246 |
||
2247 |
buildFromResourceSpec:aResourceSpec |
|
2248 |
||
825 | 2249 |
self columns:aResourceSpec. |
2250 |
||
2251 |
columns notEmpty ifTrue: [ |
|
2252 |
self tabModel value: 1. |
|
1187 | 2253 |
self selectedColumnModel value:nil; value:1. "/ toggle to force change |
825 | 2254 |
self updateInputFields. |
2255 |
self updateInfoLabel. |
|
2256 |
self updateHistory |
|
1156 | 2257 |
]. |
2258 |
||
818 | 2259 |
! ! |
2260 |
||
332 | 2261 |
!DataSetBuilder methodsFor:'code generation'! |
2262 |
||
2263 |
compile:aCode forClass:aClass inCategory:aCategory |
|
419 | 2264 |
"compile method for class in a category" |
2265 |
||
332 | 2266 |
ByteCodeCompiler compile:aCode withCRs forClass:aClass inCategory:aCategory |
2267 |
! |
|
2268 |
||
380 | 2269 |
generateBackgroundSelectorIn:aClass |
419 | 2270 |
"generate code for #backgroundSelector" |
2271 |
||
380 | 2272 |
|sel catg code bCode| |
2273 |
||
391 | 2274 |
catg := 'accessing look' asSymbol. |
380 | 2275 |
code := '\' |
2276 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
2277 |
, '\' |
|
2278 |
, ' "specific background color for a cell"\' |
|
2279 |
, '\' |
|
2280 |
. |
|
2281 |
||
419 | 2282 |
columns do: |
2283 |
[:aColumn| |
|
2284 |
((sel := aColumn backgroundSelector) notNil and:[(aClass implements:sel) not]) |
|
2285 |
ifTrue: |
|
2286 |
[ |
|
2287 |
bCode := sel asString, code, ' ^nil'. |
|
380 | 2288 |
self compile:bCode forClass:aClass inCategory:catg |
2289 |
] |
|
2290 |
] |
|
2291 |
||
2292 |
||
2293 |
! |
|
2294 |
||
332 | 2295 |
generateChoicesIn:aClass |
419 | 2296 |
"generate code for #choices" |
2297 |
||
1009 | 2298 |
|sel catg code edt| |
332 | 2299 |
|
391 | 2300 |
catg := 'accessing menu' asSymbol. |
332 | 2301 |
code := '\' |
2302 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
2303 |
, '\' |
|
983 | 2304 |
, ' "get choices for visual editor; (a list of labels)..."\' |
332 | 2305 |
, '\' |
983 | 2306 |
, ' ^ #( foo bar baz )' |
332 | 2307 |
. |
2308 |
||
1009 | 2309 |
columns do:[:aColumn| |
2310 |
edt := aColumn editorType. |
|
2311 |
||
2312 |
( aColumn canSelect |
|
2313 |
and:[(sel := aColumn choices) notNil |
|
2314 |
and:[(edt == #ComboBox or:[edt == #ComboList]) |
|
2315 |
and:[(aClass implements:sel) not]]] |
|
2316 |
) ifTrue:[ |
|
332 | 2317 |
self compile:(sel asString, code) forClass:aClass inCategory:catg |
2318 |
] |
|
2319 |
] |
|
2320 |
! |
|
2321 |
||
391 | 2322 |
generateDoubleClickSelectorIn:aClass |
419 | 2323 |
"generate code for #foregroundSelector" |
2324 |
||
391 | 2325 |
|sel catg code bCode| |
2326 |
||
2327 |
catg := 'accessing action' asSymbol. |
|
2328 |
code := '\' |
|
2329 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
2330 |
, '\' |
|
2331 |
, ' "specific selector to be called on double click"\' |
|
2332 |
, '\' |
|
2333 |
. |
|
2334 |
||
419 | 2335 |
columns do: |
2336 |
[:aColumn| |
|
2337 |
((sel := aColumn doubleClickedSelector) notNil |
|
2338 |
and:[(aClass implements:sel) not]) |
|
2339 |
ifTrue: |
|
2340 |
[ |
|
391 | 2341 |
bCode := sel asString, code. |
2342 |
self compile:bCode forClass:aClass inCategory:catg |
|
2343 |
] |
|
2344 |
] |
|
2345 |
||
2346 |
||
2347 |
! |
|
2348 |
||
380 | 2349 |
generateForegroundSelectorIn:aClass |
2350 |
"generate code for #foregroundSelector |
|
2351 |
" |
|
2352 |
|sel catg code bCode| |
|
2353 |
||
391 | 2354 |
catg := 'accessing look' asSymbol. |
380 | 2355 |
code := '\' |
2356 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
2357 |
, '\' |
|
2358 |
, ' "specific foreground color for a cell"\' |
|
2359 |
, '\' |
|
2360 |
. |
|
2361 |
||
419 | 2362 |
columns do: |
2363 |
[:aColumn| |
|
2364 |
((sel := aColumn foregroundSelector) notNil |
|
2365 |
and:[(aClass implements:sel) not]) |
|
2366 |
ifTrue: |
|
2367 |
[ |
|
2368 |
bCode := sel asString, code, ' ^nil'. |
|
380 | 2369 |
self compile:bCode forClass:aClass inCategory:catg |
2370 |
] |
|
2371 |
] |
|
2372 |
||
2373 |
||
2374 |
! |
|
2375 |
||
332 | 2376 |
generateMenuIn:aClass |
419 | 2377 |
"generate code for #menu" |
2378 |
||
332 | 2379 |
|sel catg code| |
2380 |
||
391 | 2381 |
catg := 'accessing menu' asSymbol. |
332 | 2382 |
code := '\' |
2383 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
2384 |
, '\' |
|
2385 |
, ' "get middleButton menu for selected cell in column"\' |
|
2386 |
, '\' |
|
419 | 2387 |
, ' ^nil' |
332 | 2388 |
. |
2389 |
||
419 | 2390 |
columns do: |
2391 |
[:aColumn| |
|
2392 |
(aColumn canSelect |
|
2393 |
and:[(sel := aColumn menu) notNil |
|
2394 |
and:[(aClass implements:sel) not]]) |
|
2395 |
ifTrue: |
|
2396 |
[ |
|
332 | 2397 |
self compile:(sel asString, code) forClass:aClass inCategory:catg |
2398 |
] |
|
2399 |
] |
|
2400 |
! |
|
2401 |
||
2402 |
generatePrintSelectorIn:aClass |
|
419 | 2403 |
"generate code for #printSelector" |
2404 |
||
332 | 2405 |
|sel catg code| |
2406 |
||
391 | 2407 |
catg := 'accessing' asSymbol. |
1004 | 2408 |
code := '\' |
332 | 2409 |
, ' "automatically generated by DataSetBuilder ..."\' |
2410 |
, '\' |
|
2411 |
, ' "get drawable image or text on a gc"\' |
|
2412 |
, '\' |
|
1004 | 2413 |
, ' ^ ' |
332 | 2414 |
. |
2415 |
||
1004 | 2416 |
columns do:[:aColumn| |
2417 |
( aColumn rendererType ~~ #rowSelector |
|
2418 |
and:[(sel := aColumn printSelector) notNil |
|
2419 |
and:[(aClass implements:sel) not]] |
|
2420 |
) ifTrue:[ |
|
2421 |
|args bcode keys| |
|
2422 |
bcode := sel asString. |
|
2423 |
args := sel numArgs. |
|
2424 |
||
2425 |
args ~~ 0 ifTrue:[ |
|
2426 |
args == 1 ifTrue:[ |
|
2427 |
bcode := bcode, 'aGC' |
|
2428 |
] ifFalse:[ |
|
2429 |
keys := sel keywords. |
|
2430 |
bcode := (keys at:1), 'aGC ', (keys at:2), 'aColNr'. |
|
2431 |
] |
|
2432 |
]. |
|
2433 |
self compile:(bcode, code, '''', bcode, '''') forClass:aClass inCategory:catg |
|
332 | 2434 |
] |
2435 |
] |
|
2436 |
! |
|
2437 |
||
2438 |
generateReadSelectorIn:aClass |
|
419 | 2439 |
"generate code for #readSelector" |
2440 |
||
332 | 2441 |
|sel catg code bCode| |
2442 |
||
391 | 2443 |
catg := 'accessing' asSymbol. |
332 | 2444 |
code := '\' |
2445 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
2446 |
, '\' |
|
2447 |
, ' "get value"\' |
|
2448 |
, '\' |
|
2449 |
. |
|
2450 |
||
419 | 2451 |
columns do: |
2452 |
[:aColumn| |
|
2453 |
(aColumn rendererType ~~ #rowSelector |
|
2454 |
and:[(sel := aColumn readSelector) notNil |
|
2455 |
and:[(aClass implements:sel) not]]) |
|
2456 |
ifTrue: |
|
2457 |
[ |
|
2458 |
(aColumn printSelector isNil or:[aColumn canSelect]) |
|
2459 |
ifTrue: |
|
2460 |
[ |
|
1004 | 2461 |
|selName| |
2462 |
selName := sel asString. |
|
2463 |
||
419 | 2464 |
sel numArgs == 0 |
1004 | 2465 |
ifTrue: [bCode := selName, code] |
2466 |
ifFalse:[bCode := selName, 'anIndex\', code]. |
|
419 | 2467 |
aColumn rendererType == #CheckToggle |
1004 | 2468 |
ifFalse:[bCode := bCode, ' ^ ''', selName, ''''] |
419 | 2469 |
ifTrue: [bCode := bCode, ' ^true']. |
332 | 2470 |
self compile:bCode forClass:aClass inCategory:catg |
2471 |
] |
|
2472 |
] |
|
2473 |
] |
|
2474 |
! |
|
2475 |
||
983 | 2476 |
generateRowSeparatorSelectorIn:aClass |
2477 |
"generate code for #rowSeparatorSelector" |
|
2478 |
||
2479 |
|sel catg code bCode| |
|
2480 |
||
2481 |
catg := 'accessing look' asSymbol. |
|
2482 |
code := '\' |
|
2483 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
2484 |
, '\' |
|
2485 |
, ' "specific row separator visibility for a cell"\' |
|
2486 |
, '\' |
|
2487 |
. |
|
2488 |
||
2489 |
columns do: |
|
2490 |
[:aColumn| |
|
2491 |
((sel := aColumn rowSeparatorSelector) notNil and:[(aClass implements:sel) not]) |
|
2492 |
ifTrue: |
|
2493 |
[ |
|
2494 |
bCode := sel asString, code, ' ^true'. |
|
2495 |
self compile:bCode forClass:aClass inCategory:catg |
|
2496 |
] |
|
2497 |
] |
|
2498 |
||
2499 |
||
2500 |
! |
|
2501 |
||
377 | 2502 |
generateSelectSelectorIn:aClass |
2503 |
"generate code for #selectSelector |
|
2504 |
" |
|
2505 |
|sel catg code bCode| |
|
2506 |
||
391 | 2507 |
catg := 'accessing selection' asSymbol. |
377 | 2508 |
code := '\' |
2509 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
2510 |
, '\' |
|
2511 |
, ' "can select cell in column"\' |
|
2512 |
, '\' |
|
2513 |
. |
|
2514 |
||
419 | 2515 |
columns do: |
2516 |
[:aColumn| |
|
2517 |
(aColumn rendererType ~~ #rowSelector |
|
377 | 2518 |
and:[(sel := aColumn selectSelector) notNil |
419 | 2519 |
and:[(aClass implements:sel) not]]) |
2520 |
ifTrue: |
|
2521 |
[ |
|
2522 |
aColumn canSelect |
|
2523 |
ifTrue: |
|
2524 |
[ |
|
2525 |
bCode := sel asString, code, ' ^true'. |
|
377 | 2526 |
self compile:bCode forClass:aClass inCategory:catg |
2527 |
] |
|
2528 |
] |
|
2529 |
] |
|
2530 |
! |
|
2531 |
||
1009 | 2532 |
generateShowComboFieldSelectorIn:aClass |
2533 |
"generate code for #showComboFieldSelector |
|
2534 |
" |
|
2535 |
|sel catg code bCode edt state| |
|
2536 |
||
2537 |
catg := 'accessing menu' asSymbol. |
|
2538 |
code := '\' |
|
2539 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
2540 |
, '\' |
|
2541 |
, ' "open an editField on a combo list or box"\' |
|
2542 |
, '\' |
|
2543 |
. |
|
2544 |
||
2545 |
columns do:[:aColumn| |
|
2546 |
edt := aColumn editorType. |
|
2547 |
||
2548 |
( aColumn canSelect |
|
2549 |
and:[(sel := aColumn showComboFieldSelector) notNil |
|
2550 |
and:[(edt == #ComboBox or:[edt == #ComboList]) |
|
2551 |
and:[(aClass implements:sel) not]]] |
|
2552 |
) ifTrue:[ |
|
2553 |
state := edt == #ComboBoxView. |
|
2554 |
||
2555 |
bCode := sel asString, code, ' ^ ', state printString. |
|
2556 |
self compile:bCode forClass:aClass inCategory:catg |
|
2557 |
] |
|
2558 |
] |
|
2559 |
||
2560 |
||
2561 |
! |
|
2562 |
||
332 | 2563 |
generateWriteSelectorIn:aClass |
419 | 2564 |
"generate code for #writeSelector" |
2565 |
||
379 | 2566 |
|sel catg code bCode sz| |
332 | 2567 |
|
391 | 2568 |
catg := 'accessing' asSymbol. |
332 | 2569 |
code := 'aValue\' |
2570 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
2571 |
, '\' |
|
2572 |
, ' "set value"\' |
|
2573 |
. |
|
2574 |
||
419 | 2575 |
columns do: |
2576 |
[:aColumn| |
|
2577 |
((sel := aColumn writeSelector) notNil |
|
983 | 2578 |
and:[aColumn editorType ~~ #None |
419 | 2579 |
and:[aColumn canSelect |
983 | 2580 |
and:[(aClass implements:sel) not]]]) |
419 | 2581 |
ifTrue: |
2582 |
[ |
|
2583 |
sel numArgs == 1 |
|
2584 |
ifTrue: |
|
2585 |
[ |
|
379 | 2586 |
bCode := sel asString |
419 | 2587 |
] |
2588 |
ifFalse: |
|
2589 |
[ |
|
379 | 2590 |
sz := sel indexOf:$:. |
2591 |
bCode := sel copyTo:sz. |
|
419 | 2592 |
bCode := bCode, 'anIndex ', (sel copyFrom:sz + 1) |
379 | 2593 |
]. |
2594 |
self compile:(bCode, code) forClass:aClass inCategory:catg |
|
332 | 2595 |
] |
2596 |
] |
|
2597 |
! ! |
|
2598 |
||
2599 |
!DataSetBuilder methodsFor:'initialization'! |
|
2600 |
||
2601 |
initialize |
|
825 | 2602 |
"initializes" |
332 | 2603 |
|
2604 |
super initialize. |
|
2605 |
||
825 | 2606 |
selectedColumnIndex := 0. |
1156 | 2607 |
columns := OrderedCollection new. |
2608 |
modalOpened := false. |
|
1300 | 2609 |
listOfSpecViews := Array new:(self class slices size). |
332 | 2610 |
|
2611 |
! ! |
|
2612 |
||
2613 |
!DataSetBuilder methodsFor:'private'! |
|
2614 |
||
825 | 2615 |
askForListModification |
2616 |
"asks for resource modification" |
|
408 | 2617 |
|
1004 | 2618 |
modalOpened ifFalse:[ |
2619 |
^ super askForListModification |
|
408 | 2620 |
]. |
2621 |
^true |
|
2622 |
||
2623 |
! |
|
2624 |
||
818 | 2625 |
labelFromColumn:aColumn |
2626 |
||
1004 | 2627 |
^ aColumn rendererType == #rowSelector ifFalse:[aColumn label] |
2628 |
ifTrue: ['Row Selector']. |
|
2629 |
! |
|
2630 |
||
2631 |
labelInPreviewPressed:anIndex |
|
2632 |
(builder componentAt:#labelAndColumns) selection:anIndex |
|
332 | 2633 |
! |
2634 |
||
2635 |
updateColumnView |
|
1004 | 2636 |
"updates column view from column descriptions |
2637 |
" |
|
2638 |
|size| |
|
825 | 2639 |
|
2640 |
columnView notNil ifTrue:[ |
|
2641 |
|previewColumns columnItems columnList| |
|
2642 |
columnList := List new. |
|
1019 | 2643 |
previewColumns := OrderedCollection new. |
2644 |
||
2645 |
(size := columns size) ~~ 0 ifTrue:[ |
|
2646 |
columns do:[:aCol| |
|
2647 |
previewColumns add:(aCol copy) |
|
2648 |
]. |
|
1004 | 2649 |
previewColumns keysAndValuesDo:[:anIndex :column| |
857 | 2650 |
column readSelector: #at:; |
2651 |
writeSelector: #at:put:; |
|
2652 |
backgroundSelector:nil; |
|
2653 |
foregroundSelector:nil; |
|
983 | 2654 |
rowSeparatorSelector:nil; |
857 | 2655 |
selectSelector: nil; |
1009 | 2656 |
showComboFieldSelector: nil; |
1261 | 2657 |
selectSelector: nil; |
857 | 2658 |
doubleClickedSelector: nil; |
2659 |
printSelector: nil; |
|
2660 |
menu: nil; |
|
1004 | 2661 |
labelActionSelector:#labelInPreviewPressed:; |
2662 |
labelActionArgument:anIndex; |
|
2663 |
choices:#choices |
|
825 | 2664 |
]. |
1004 | 2665 |
#(' 1' ' 2' ' x') do:[:suffix| |
2666 |
columnItems := Row new:size. |
|
2667 |
1 to:size do:[:i| columnItems at: i put: ('Cell', suffix)]. |
|
825 | 2668 |
columnList add: columnItems. |
2669 |
] |
|
2670 |
]. |
|
2671 |
columnView list: #(). |
|
2672 |
columnView columnDescriptors: previewColumns. |
|
2673 |
columnView list: columnList. |
|
1156 | 2674 |
]. |
1014
9ddf012eba3e
need a deepCopy for previewColumns
Claus Gittinger <cg@exept.de>
parents:
1012
diff
changeset
|
2675 |
|
9ddf012eba3e
need a deepCopy for previewColumns
Claus Gittinger <cg@exept.de>
parents:
1012
diff
changeset
|
2676 |
"Modified: / 27.10.1998 / 14:41:16 / cg" |
419 | 2677 |
! |
2678 |
||
2679 |
updateInputFields |
|
825 | 2680 |
"reloads item value into input fields" |
419 | 2681 |
|
2682 |
|column| |
|
2683 |
||
1004 | 2684 |
(column := self selectedColumn) isNil ifTrue:[ |
419 | 2685 |
self tabModel value:0. |
1004 | 2686 |
] ifFalse:[ |
1156 | 2687 |
aspects do:[:anAspect| anAspect value:'' ]. |
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2688 |
aspects keysAndValuesDo:[:aKey :aModel | |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2689 |
aModel value:(column perform:aKey) withoutNotifying: self |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2690 |
]. |
1311 | 2691 |
|
2692 |
"/ REPALCE nil by empty string for specific inputFields without an adapter |
|
2693 |
#( #labelActionArgument #formatString #id ) do:[:aKey| |model| |
|
2694 |
model := aspects at:aKey. |
|
2695 |
model value isNil ifTrue:[model value:'' withoutNotifying: self] |
|
2696 |
]. |
|
2697 |
||
1156 | 2698 |
tabSelection == 0 ifTrue:[self tabModel value:1]. |
2699 |
]. |
|
2700 |
||
332 | 2701 |
! ! |
2702 |
||
2703 |
!DataSetBuilder methodsFor:'selection'! |
|
2704 |
||
2705 |
selectedColumn |
|
419 | 2706 |
"returns selected column or nil" |
2707 |
||
2708 |
^selectedColumnIndex == 0 |
|
825 | 2709 |
ifFalse:[columns at:selectedColumnIndex ifAbsent: nil] |
419 | 2710 |
ifTrue: [nil] |
332 | 2711 |
! |
2712 |
||
2713 |
selectedColumnIndex |
|
419 | 2714 |
"returns selected column index or 0" |
2715 |
||
2716 |
^selectedColumnIndex |
|
332 | 2717 |
! |
2718 |
||
2719 |
selectedColumnIndex:something |
|
825 | 2720 |
"changes selected column and update specifications" |
419 | 2721 |
|
1004 | 2722 |
something == selectedColumnIndex ifFalse:[ |
332 | 2723 |
selectedColumnIndex := something ? 0. |
408 | 2724 |
self isColumnSelected value: true |
1156 | 2725 |
]. |
332 | 2726 |
! |
2727 |
||
825 | 2728 |
tabSelection:something |
2729 |
"changes selected tab and set corresponding specification" |
|
419 | 2730 |
|
1300 | 2731 |
|view spec| |
2732 |
||
2733 |
something == tabSelection ifTrue:[^self]. |
|
2734 |
||
2735 |
(tabSelection := something) isNil ifTrue:[ |
|
2736 |
tabSelection == 0 ifTrue:[^ self]. |
|
2737 |
tabSelection := 0. |
|
2738 |
]. |
|
1004 | 2739 |
|
2740 |
self selectedColumn isNil ifTrue:[ |
|
1300 | 2741 |
tabSelection ~~ 0 ifTrue:[ |
2742 |
self tabModel value:0 |
|
2743 |
] ifFalse:[ |
|
2744 |
self canvasHolder value:nil |
|
2745 |
]. |
|
2746 |
^ self |
|
332 | 2747 |
]. |
1300 | 2748 |
|
2749 |
tabSelection == 0 ifTrue:[ |
|
2750 |
^ self tabModel value:1. |
|
1158 | 2751 |
]. |
1300 | 2752 |
|
2753 |
(view := listOfSpecViews at:tabSelection) isNil ifTrue:[ |
|
2754 |
view := SimpleView new. |
|
2755 |
spec := (self class slices at:tabSelection) last. |
|
2756 |
view client:self spec:spec builder:(self builder). |
|
2757 |
listOfSpecViews at:tabSelection put:view. |
|
2758 |
]. |
|
2759 |
self canvasHolder value:view |
|
332 | 2760 |
! ! |
2761 |
||
408 | 2762 |
!DataSetBuilder methodsFor:'startup / release'! |
2763 |
||
826 | 2764 |
openModal |
2765 |
"sets the modalOpened flag, so later, |
|
2766 |
there is no need to ask for saving into a class" |
|
2767 |
||
2768 |
modalOpened := true. |
|
2769 |
||
2770 |
super openModal |
|
2771 |
||
2772 |
||
2773 |
! |
|
2774 |
||
825 | 2775 |
openModalOnResourceSpec: aListSpec |
2776 |
"sets the modalOpened flag, so later, |
|
2777 |
there is no need to ask for saving into a class" |
|
419 | 2778 |
|
825 | 2779 |
modalOpened := true. |
2780 |
||
2781 |
super openModalOnResourceSpec: aListSpec |
|
2782 |
||
2783 |
||
409 | 2784 |
! |
2785 |
||
408 | 2786 |
postBuildWith:builder |
2787 |
||
818 | 2788 |
columnView := self builder componentAt:#columnView. |
1004 | 2789 |
"/ columnView labelView enabled:false. |
818 | 2790 |
|
408 | 2791 |
super postBuildWith:builder. |
2792 |
||
818 | 2793 |
(builder componentAt: #labelAndColumns) |
825 | 2794 |
selectConditionBlock: [:i|self askForItemModification]; |
419 | 2795 |
action: [:i|self cancel]; |
818 | 2796 |
selection: 1. |
408 | 2797 |
|
2798 |
||
825 | 2799 |
|
1250 | 2800 |
! |
2801 |
||
2802 |
postOpenWith:aBuilder |
|
2803 |
"reset keyboardProcessor for menuBar |
|
2804 |
" |
|
2805 |
super postOpenWith: aBuilder. |
|
2806 |
aBuilder keyboardProcessor menuBar:nil. |
|
2807 |
||
408 | 2808 |
! ! |
2809 |
||
419 | 2810 |
!DataSetBuilder methodsFor:'user actions'! |
2811 |
||
2812 |
accept |
|
2813 |
"accept changes made" |
|
2814 |
||
2815 |
|column type| |
|
2816 |
||
825 | 2817 |
super accept. |
419 | 2818 |
|
2819 |
(column := self selectedColumn) isNil ifTrue: [^self cancel]. |
|
2820 |
||
2821 |
type := (aspects at:#rendererType) value. |
|
2822 |
||
818 | 2823 |
type == #rowSelector ifTrue:[ |
1216 | 2824 |
#(label width minWidth usePreferredWidth editorType choices readSelector writeSelector printSelector |
1261 | 2825 |
formatString type converterSelector size height canSelect selectSelector showComboFieldSelector |
818 | 2826 |
) do:[:aKey| |
2827 |
(aspects at:aKey) value:nil |
|
2828 |
] |
|
419 | 2829 |
]. |
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2830 |
aspects keysAndValuesDo:[:aKey :aModel| |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2831 |
column perform:(aKey , ':') asSymbol with: aModel value |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2832 |
]. |
818 | 2833 |
self seqList at:selectedColumnIndex put:(self labelFromColumn:column). |
419 | 2834 |
self updateColumnView. |
825 | 2835 |
self cancel. |
2836 |
modified := true. |
|
2837 |
||
419 | 2838 |
! |
2839 |
||
2840 |
cancel |
|
2841 |
"remove all changes and reload selected column values" |
|
2842 |
||
2843 |
self updateInputFields. |
|
421 | 2844 |
self valueOfEnablingCommitButtons value:false. |
1187 | 2845 |
self clearModifiedFlag. |
1156 | 2846 |
self valueOfEnablingCommitButtons value:false. |
1014
9ddf012eba3e
need a deepCopy for previewColumns
Claus Gittinger <cg@exept.de>
parents:
1012
diff
changeset
|
2847 |
|
9ddf012eba3e
need a deepCopy for previewColumns
Claus Gittinger <cg@exept.de>
parents:
1012
diff
changeset
|
2848 |
"Modified: / 27.10.1998 / 14:41:41 / cg" |
419 | 2849 |
! |
2850 |
||
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2851 |
cutOrDelete:isCut |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2852 |
"remove selected column and optionally put it to the clipboard" |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2853 |
|
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2854 |
|idx| |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2855 |
|
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2856 |
((idx := selectedColumnIndex) ~~ 0 and: [self askForItemModification]) |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2857 |
ifTrue: |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2858 |
[ |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2859 |
self selectedColumnModel value:0. |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2860 |
isCut ifTrue:[self clipboard: (columns at: idx)]. |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2861 |
columns removeIndex:idx. |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2862 |
self seqList removeIndex:idx. |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2863 |
columns size > 0 ifTrue: [self selectedColumnModel value: ((idx - 1) max: 1)]. |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2864 |
self updateColumnView. |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2865 |
self updateInputFields. |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2866 |
columns isEmpty ifTrue: [self isColumnSelected value: false]. |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2867 |
self cancel. |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2868 |
modified := true. |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2869 |
] |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2870 |
! |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2871 |
|
818 | 2872 |
doBrowseRowClass |
419 | 2873 |
"browse class of columns spec" |
2874 |
||
2875 |
|cls| |
|
2876 |
||
983 | 2877 |
(cls := self resolveRowClass) notNil |
419 | 2878 |
ifTrue: [SystemBrowser openInClass:cls] |
842 | 2879 |
ifFalse:[self information:'No class defined !!'] |
2880 |
||
2881 |
"Modified: / 20.5.1998 / 03:48:04 / cg" |
|
419 | 2882 |
! |
2883 |
||
825 | 2884 |
doCopy |
419 | 2885 |
"copy selected column to the clipboard" |
2886 |
||
2887 |
|idx| |
|
2888 |
||
2889 |
(idx := selectedColumnIndex) ~~ 0 |
|
2890 |
ifTrue: |
|
2891 |
[ |
|
2892 |
self clipboard: (columns at: idx) deepCopy |
|
2893 |
] |
|
2894 |
! |
|
2895 |
||
2896 |
doCreateColumn |
|
2897 |
"create a new column after selected column or at left (nothing selected)" |
|
2898 |
||
2899 |
|label list| |
|
2900 |
||
2901 |
list := self seqList. |
|
554 | 2902 |
label := 'Column ', (list size + 1) printString. |
419 | 2903 |
columns add:(DataSetColumnSpec label:label selector:nil) afterIndex:selectedColumnIndex. |
2904 |
self seqList add:label afterIndex:selectedColumnIndex. |
|
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2905 |
self valueOfEnablingCommitButtons value ifFalse:[ |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2906 |
self selectedColumnModel value:selectedColumnIndex + 1 |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2907 |
]. |
818 | 2908 |
self cancel. |
825 | 2909 |
self updateColumnView. |
2910 |
modified := true. |
|
419 | 2911 |
|
2912 |
! |
|
2913 |
||
825 | 2914 |
doCut |
419 | 2915 |
"remove selected column and put it to the clipboard" |
2916 |
||
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2917 |
self cutOrDelete:true |
419 | 2918 |
! |
2919 |
||
818 | 2920 |
doDefineRowClass |
419 | 2921 |
"launch a dialog to define class and superclass" |
2922 |
||
1382 | 2923 |
|aspects cls oldClass oldSuper val classNameChannel superclassNameChannel| |
419 | 2924 |
|
2925 |
aspects := IdentityDictionary new. |
|
818 | 2926 |
oldClass := rowClass. |
2927 |
oldSuper := rowSuperClass. |
|
419 | 2928 |
|
2929 |
[true] |
|
2930 |
whileTrue: |
|
2931 |
[ |
|
1382 | 2932 |
rowClass notNil ifTrue:[ |
2933 |
(cls := self resolveRowClass) notNil ifTrue:[ |
|
818 | 2934 |
rowSuperClass := cls superclass name asString |
419 | 2935 |
]. |
1382 | 2936 |
val := rowClass |
2937 |
] ifFalse:[ |
|
2938 |
val := 'DSVRow' |
|
419 | 2939 |
]. |
1382 | 2940 |
aspects at:#classNameChannel put:(classNameChannel := ValueHolder with:val). |
419 | 2941 |
|
818 | 2942 |
rowSuperClass notNil |
1382 | 2943 |
ifTrue: [val := rowSuperClass] |
2944 |
ifFalse:[val := 'Object']. |
|
2945 |
aspects at:#superclassNameChannel put:(superclassNameChannel := ValueHolder with:val). |
|
419 | 2946 |
|
2947 |
(self openDialogInterface:#defineClassNameSpec withBindings:aspects) |
|
2948 |
ifFalse: |
|
2949 |
[ |
|
818 | 2950 |
rowClass := oldClass. |
2951 |
rowSuperClass := oldSuper. |
|
419 | 2952 |
^self |
2953 |
]. |
|
1382 | 2954 |
rowClass := (classNameChannel value) withoutSeparators. |
2955 |
rowSuperClass := (superclassNameChannel value) withoutSeparators. |
|
419 | 2956 |
|
818 | 2957 |
rowClass size == 0 |
419 | 2958 |
ifTrue: |
2959 |
[ |
|
818 | 2960 |
rowClass := nil. |
419 | 2961 |
self information:'no valid className' |
2962 |
] |
|
2963 |
ifFalse: |
|
2964 |
[ |
|
983 | 2965 |
cls := self resolveRowClass. |
419 | 2966 |
|
2967 |
cls notNil ifTrue:[cls := cls superclass name asString]. |
|
2968 |
||
818 | 2969 |
rowSuperClass size == 0 |
419 | 2970 |
ifTrue: |
2971 |
[ |
|
2972 |
cls notNil ifTrue:[ |
|
818 | 2973 |
rowSuperClass := cls |
419 | 2974 |
] ifFalse:[ |
818 | 2975 |
rowSuperClass := 'Object' |
419 | 2976 |
]. |
2977 |
self information: 'set superclassName' |
|
2978 |
] |
|
2979 |
ifFalse: |
|
2980 |
[ |
|
825 | 2981 |
(cls isNil or:[rowSuperClass = cls]) ifTrue:[^self]. |
818 | 2982 |
self information:('A global named ' , rowClass , ' exists,\' , |
2983 |
'but is not a subclass of ' , rowSuperClass, '.\\' , |
|
419 | 2984 |
'Check and try again if that is not what you want.') withCRs. |
2985 |
||
818 | 2986 |
rowSuperClass := cls |
419 | 2987 |
] |
2988 |
] |
|
2989 |
] |
|
846 | 2990 |
|
2991 |
"Modified: / 21.5.1998 / 03:08:42 / cg" |
|
419 | 2992 |
! |
2993 |
||
825 | 2994 |
doDelete |
2995 |
"remove selected column and put it to the clipboard" |
|
2996 |
||
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2997 |
self cutOrDelete:false |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
2998 |
|
825 | 2999 |
! |
3000 |
||
419 | 3001 |
doGenerateCode |
3002 |
"generate code for column values" |
|
3003 |
||
3004 |
|cls superclass| |
|
3005 |
||
818 | 3006 |
rowClass isNil ifTrue:[^self information:'No class defined!!']. |
983 | 3007 |
cls := self resolveRowClass. |
419 | 3008 |
|
3009 |
cls isNil |
|
3010 |
ifTrue: |
|
3011 |
[ |
|
818 | 3012 |
superclass := Smalltalk resolveName:rowSuperClass inClass:self class. |
419 | 3013 |
|
3014 |
superclass isNil ifTrue:[^self information:'No superclass defined!!']. |
|
818 | 3015 |
(self confirm:'create ' , rowClass , ' ?') ifFalse:[^self]. |
3016 |
cls := superclass subclass:rowClass asSymbol |
|
419 | 3017 |
instanceVariableNames:'' |
3018 |
classVariableNames:'' |
|
3019 |
poolDictionaries:'' |
|
3020 |
category:'Applications'. |
|
3021 |
]. |
|
3022 |
||
3023 |
self generateChoicesIn:cls. |
|
3024 |
self generateMenuIn:cls. |
|
3025 |
self generatePrintSelectorIn:cls. |
|
3026 |
self generateReadSelectorIn:cls. |
|
3027 |
self generateBackgroundSelectorIn:cls. |
|
3028 |
self generateForegroundSelectorIn:cls. |
|
3029 |
self generateSelectSelectorIn:cls. |
|
3030 |
self generateWriteSelectorIn:cls. |
|
3031 |
self generateDoubleClickSelectorIn:cls. |
|
983 | 3032 |
self generateRowSeparatorSelectorIn:cls. |
1009 | 3033 |
self generateShowComboFieldSelectorIn:cls. |
3034 |
||
419 | 3035 |
! |
3036 |
||
3037 |
doMoveColumn:upOrDown |
|
3038 |
"move selected column up or down" |
|
3039 |
||
3040 |
|idx list label col size| |
|
3041 |
||
3042 |
(idx := selectedColumnIndex) == 0 ifTrue:[^self]. |
|
3043 |
list := self seqList. |
|
3044 |
size := list size. |
|
3045 |
||
3046 |
size == 1 ifTrue:[^self]. |
|
3047 |
selectedColumnIndex := 0. |
|
3048 |
label := list at:idx. |
|
3049 |
col := columns at:idx. |
|
3050 |
list removeIndex:idx. |
|
3051 |
columns removeIndex:idx. |
|
3052 |
||
3053 |
upOrDown == #up |
|
3054 |
ifTrue: |
|
3055 |
[ |
|
3056 |
idx == 1 ifTrue:[idx := size] |
|
3057 |
ifFalse:[idx := idx - 1] |
|
3058 |
] |
|
3059 |
ifFalse: |
|
3060 |
[ |
|
3061 |
idx == size ifTrue:[idx := 1] |
|
3062 |
ifFalse:[idx := idx + 1] |
|
3063 |
]. |
|
3064 |
columns add:col beforeIndex:idx. |
|
3065 |
list add:label beforeIndex:idx. |
|
3066 |
self selectedColumnModel value:idx. |
|
3067 |
self updateColumnView. |
|
856 | 3068 |
modified := true. |
3069 |
||
419 | 3070 |
! |
3071 |
||
825 | 3072 |
doPaste |
419 | 3073 |
"paste clipboard copy column after selected column or at left (nothing selected)" |
3074 |
||
818 | 3075 |
|col lbl| |
419 | 3076 |
|
825 | 3077 |
self askForItemModification ifFalse: [^nil]. |
818 | 3078 |
col := self class clipboard deepCopy. |
3079 |
lbl := self labelFromColumn:col. |
|
3080 |
||
3081 |
columns add:col afterIndex:selectedColumnIndex. |
|
3082 |
self seqList add:lbl afterIndex:selectedColumnIndex. |
|
419 | 3083 |
|
818 | 3084 |
self valueOfEnablingCommitButtons value ifFalse:[ |
3085 |
self selectedColumnModel value:selectedColumnIndex + 1 |
|
3086 |
]. |
|
419 | 3087 |
self updateColumnView. |
556 | 3088 |
self updateInputFields. |
825 | 3089 |
modified := true. |
3090 |
||
818 | 3091 |
! |
3092 |
||
3093 |
doPickColumns |
|
3094 |
||
3095 |
|view cls| |
|
3096 |
||
3097 |
view := Screen current viewFromUser. |
|
3098 |
cls := view class. |
|
3099 |
||
3100 |
(cls == DSVColumnView or:[cls == DataSetView or:[cls == DSVLabelView]]) ifTrue:[ |
|
3101 |
self columns:(view columnView columnDescriptors) |
|
3102 |
] |
|
3103 |
! |
|
3104 |
||
3105 |
doSave |
|
1144 | 3106 |
|cls dst spc category mthd excla code resourceType| |
818 | 3107 |
|
3108 |
(columns size ~~ 0 and:[super doSave]) ifFalse:[ |
|
3109 |
^ nil |
|
3110 |
]. |
|
983 | 3111 |
|
818 | 3112 |
cls := self resolveName:specClass. |
3113 |
dst := columns collect:[:aCol| aCol literalArrayEncoding ]. |
|
3114 |
spc := WriteStream on:String new. |
|
1105
a19cdc769750
stupid code-generation from Thomas fixed.
Claus Gittinger <cg@exept.de>
parents:
1073
diff
changeset
|
3115 |
spc nextPutAll:' ^'. |
818 | 3116 |
UISpecification prettyPrintSpecArray:dst asArray on:spc indent:4. |
3117 |
spc := spc contents. |
|
3118 |
||
3119 |
"/ if that method already exists, do not overwrite the category |
|
3120 |
||
3121 |
resourceType := self class resourceType. |
|
3122 |
category := resourceType, ' specs'. |
|
3123 |
||
3124 |
(mthd := cls class compiledMethodAt:specSelector) notNil ifTrue:[ |
|
3125 |
category := mthd category. |
|
3126 |
]. |
|
3127 |
||
3128 |
excla := Character excla asString. |
|
3129 |
||
3130 |
code := excla |
|
3131 |
, (cls name , ' class methodsFor:' , category storeString) |
|
3132 |
, excla , '\\' |
|
3133 |
||
3134 |
, specSelector , '\' |
|
3135 |
, (self class codeGenerationComment replChar:$!! withString:'!!!!') |
|
3136 |
, '\\ "\' |
|
3137 |
, (' DataSetBuilder new openOnClass:' , cls name , ' andSelector:#' , specSelector , '\') |
|
3138 |
, ' "\'. |
|
3139 |
||
3140 |
code := code |
|
3141 |
, '\' |
|
3142 |
, ' <resource: #', resourceType, '>\\' |
|
3143 |
, spc |
|
3144 |
, '\' |
|
3145 |
, (excla , ' ' , excla) |
|
3146 |
, '\\'. |
|
3147 |
||
3148 |
code := code withCRs. |
|
3149 |
(ReadStream on:code) fileIn. |
|
3150 |
||
3151 |
"/ self isStandAlone ifTrue: [self helpTool installHelpSpecsOnClass:self specClass]. |
|
3152 |
||
3153 |
self updateHistory. |
|
3154 |
self updateInfoLabel. |
|
3155 |
||
3156 |
hasSaved := true. |
|
3157 |
modified := false. |
|
3158 |
||
419 | 3159 |
! ! |
3160 |
||
1004 | 3161 |
!DataSetBuilder::Row methodsFor:'accessing'! |
3162 |
||
3163 |
choices |
|
3164 |
^ #( 'foo' 'bar' 'baz' ) |
|
3165 |
||
3166 |
||
3167 |
! ! |
|
3168 |
||
3169 |
!DataSetBuilder::Row methodsFor:'message handling'! |
|
3170 |
||
3171 |
doesNotUnderstand:aMessage |
|
3172 |
"does not understand message; delegate to column view |
|
3173 |
" |
|
3174 |
^ nil |
|
3175 |
||
3176 |
! ! |
|
3177 |
||
332 | 3178 |
!DataSetBuilder class methodsFor:'documentation'! |
3179 |
||
3180 |
version |
|
3181 |
^ '$Header$' |
|
3182 |
! ! |