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