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