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