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