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