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