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