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