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