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