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