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