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