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