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