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