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