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