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