author | Stefan Vogel <sv@exept.de> |
Tue, 20 Feb 2018 21:52:40 +0100 | |
changeset 3541 | 23028559b7b2 |
parent 3540 | 1fb95ce50ce4 |
child 3565 | 16978aaed2f6 |
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 |
" |
|
1382 | 12 |
"{ Package: 'stx:libtool2' }" |
13 |
||
3181 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
818 | 16 |
ResourceSpecEditor subclass:#DataSetBuilder |
825 | 17 |
instanceVariableNames:'rowClass rowSuperClass columnView columns selectedColumnIndex |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
18 |
modalOpened listOfSpecViews listOfItemsView editingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
19 |
acceptedColumns' |
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 |
2166 | 85 |
activeHelpKey |
2385
b7dafe79bd7c
allow for separate activeHelp for the label area
Claus Gittinger <cg@exept.de>
parents:
2382
diff
changeset
|
86 |
activeHelpKeyForLabel |
825 | 87 |
label |
88 |
canSelect |
|
89 |
choices |
|
1944 | 90 |
translatedChoices |
825 | 91 |
editorType |
92 |
formatString |
|
2475 | 93 |
formatSelector |
825 | 94 |
labelIsImage |
1262 | 95 |
labelButtonType |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
96 |
translateLabel |
1666 | 97 |
longStringCompression |
825 | 98 |
size |
99 |
type |
|
100 |
width |
|
101 |
minWidth |
|
1216 | 102 |
usePreferredWidth |
1452 | 103 |
isResizeable |
825 | 104 |
height |
105 |
menu |
|
2816 | 106 |
menuFromApplication |
825 | 107 |
foregroundSelector |
108 |
backgroundSelector |
|
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
109 |
selectedForegroundSelector |
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
110 |
selectedBackgroundSelector |
825 | 111 |
doubleClickedSelector |
983 | 112 |
rowSeparatorSelector |
825 | 113 |
selectSelector |
1261 | 114 |
converterSelector |
1009 | 115 |
showComboFieldSelector |
825 | 116 |
printSelector |
117 |
readSelector |
|
118 |
writeSelector |
|
1731 | 119 |
visibilitySelector |
825 | 120 |
rendererType |
121 |
showColSeparator |
|
983 | 122 |
showSelectionHighLighted |
825 | 123 |
showRowSeparator |
124 |
backgroundColor |
|
125 |
foregroundColor |
|
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
126 |
selectedBackgroundColor |
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
127 |
selectedForegroundColor |
825 | 128 |
labelForegroundColor |
129 |
labelBackgroundColor |
|
130 |
labelFont |
|
131 |
labelActionSelector |
|
132 |
labelActionArgument |
|
133 |
labelAlignment |
|
134 |
columnAlignment |
|
1822 | 135 |
minValue |
136 |
maxValue |
|
2475 | 137 |
isSortable |
2626 | 138 |
sortSelector |
2789 | 139 |
sortBlockSelector |
825 | 140 |
) |
141 |
||
2816 | 142 |
"Modified: / 25-10-2010 / 10:31:51 / cg" |
799
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
143 |
! ! |
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
144 |
|
528 | 145 |
!DataSetBuilder class methodsFor:'help specs'! |
146 |
||
147 |
helpSpec |
|
818 | 148 |
"This resource specification was automatically generated |
149 |
by the UIHelpTool of ST/X." |
|
150 |
||
151 |
"Do not manually edit this!! If it is corrupted, |
|
152 |
the UIHelpTool may not be able to read the specification." |
|
528 | 153 |
|
154 |
" |
|
818 | 155 |
UIHelpTool openOnClass:DataSetBuilder |
528 | 156 |
" |
157 |
||
818 | 158 |
<resource: #help> |
159 |
||
1731 | 160 |
^ super helpSpec addPairsFrom:#( |
528 | 161 |
|
550 | 162 |
#addColumn |
2903 | 163 |
'Adds a new colum' |
550 | 164 |
|
2262 | 165 |
#addNonSelectableColumn |
2903 | 166 |
'Adds a new non-selectable column' |
2262 | 167 |
|
597 | 168 |
#basicsEditor |
2903 | 169 |
'Default widget type or a selector returning an instance of a user defined widget opened in the cell' |
528 | 170 |
|
597 | 171 |
#basicsFont |
2903 | 172 |
'Sets the font of the labeled text' |
528 | 173 |
|
597 | 174 |
#basicsJustification |
2903 | 175 |
'Aligns the label to the left, right, or center in the cell' |
528 | 176 |
|
1064 | 177 |
#basicsJustificationEditor |
2903 | 178 |
'Aligns the column editor to the left, right, or center in the cell' |
1064 | 179 |
|
597 | 180 |
#basicsLabel |
2903 | 181 |
'The label of the column, a String or an array of Strings' |
1004 | 182 |
|
183 |
#basicsLabelId |
|
2903 | 184 |
'Unique identifier of the column (optional)' |
597 | 185 |
|
186 |
#basicsLabelIsImage |
|
2903 | 187 |
'Label is actually the selector of a message providing an image-label' |
1004 | 188 |
|
189 |
#basicsLabelTranslate |
|
2903 | 190 |
'Translate the label via the resource mechanism to a national language string' |
528 | 191 |
|
597 | 192 |
#basicsRenderer |
2903 | 193 |
'Specifies displaying cell as Text, CheckToggle, ComboBox, ComboList or as a RowSelector' |
528 | 194 |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
195 |
#browseRowClass |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
196 |
'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
|
197 |
|
597 | 198 |
#colorsBackgroundCellColor |
2903 | 199 |
'The background color of the cell' |
597 | 200 |
|
201 |
#colorsBackgroundLabelColor |
|
2903 | 202 |
'The background color of the label' |
528 | 203 |
|
597 | 204 |
#colorsBackgroundSelector |
2903 | 205 |
'Optional selector returning the background color for the cell (with optional row/column args)' |
528 | 206 |
|
597 | 207 |
#colorsForegroundCellColor |
2903 | 208 |
'The foreground color of the cell (with optional row/column args)' |
597 | 209 |
|
210 |
#colorsForegroundLabelColor |
|
2903 | 211 |
'The foreground color of the label' |
528 | 212 |
|
597 | 213 |
#colorsForegroundSelector |
2903 | 214 |
'Optional selector returning the foreground color for a cell' |
528 | 215 |
|
1261 | 216 |
#converterSelector |
2903 | 217 |
'Selector returning a TypeConverter on the model the argument or nil' |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
218 |
|
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
219 |
#fileLoad |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
220 |
'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
|
221 |
|
1261 | 222 |
#fileNew |
223 |
'Discard changes and continue with a new, empty column description' |
|
224 |
||
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
225 |
#fileSave |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
226 |
'Install the column description' |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
227 |
|
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
228 |
#fileSaveAs |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
229 |
'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
|
230 |
|
1824 | 231 |
#formatFormatSelector |
2903 | 232 |
'Selector sent to the row to get the format string' |
1824 | 233 |
|
597 | 234 |
#formatInputType |
2903 | 235 |
'A type converter symbol used by the input field' |
528 | 236 |
|
597 | 237 |
#formatMaxSize |
2903 | 238 |
'Maximum size of the string which can be typed in. 0 or nil means unlimited' |
528 | 239 |
|
597 | 240 |
#formatTextFormat |
3390 | 241 |
'Format string specifying the output format of the cell text.\For numbers: printf-format - for example: %5.4f gives 0.0000\For time&date: time-formatting; for example: %(day)-%(monthName) %h:%m:%s\\More info in the online doc.' |
597 | 242 |
|
243 |
#frameColumnWidth |
|
2903 | 244 |
'Width (fixed or relative) of a column (optional)' |
528 | 245 |
|
597 | 246 |
#frameMinWidth |
2903 | 247 |
'Minimum width of the column (optional)' |
528 | 248 |
|
597 | 249 |
#frameRowHeight |
3047 | 250 |
'Height of the row (0 -> ask some rows; -1 / #fontHeight -> font; #heightOfFirstRow -> ask first row; >0 -> constant)' |
597 | 251 |
|
252 |
#frameShowColumnSeparator |
|
2903 | 253 |
'Turns on/off displaying column separators' |
528 | 254 |
|
597 | 255 |
#frameShowRowSeparator |
2903 | 256 |
'Turns on/off displaying row separators' |
528 | 257 |
|
983 | 258 |
#frameShowRowSeparatorSelector |
2903 | 259 |
'Message selector to test if the bottom separator is shown' |
983 | 260 |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
261 |
#generateCode |
2903 | 262 |
'Generate code and install in the selected class/selector' |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
263 |
|
1580 | 264 |
#isResizable |
2903 | 265 |
'Column can be resized by user' |
1580 | 266 |
|
2625 | 267 |
#isSortable |
2903 | 268 |
'Adds indicator to allow user to sort rows based on this column' |
2625 | 269 |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
270 |
#pickColumns |
2903 | 271 |
'Select an open view and readOut the column specification from it' |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
272 |
|
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
273 |
#selectedBackgroundCellColor |
2903 | 274 |
'Optional background color of a selected cell' |
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
275 |
|
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
276 |
#selectedBackgroundCellColorSelector |
2903 | 277 |
'Optional selector returning the background color for a selected cell' |
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
278 |
|
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
279 |
#selectedForegroundCellColor |
2903 | 280 |
'Optional foreground color of a selected cell' |
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
281 |
|
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
282 |
#selectedForegroundCellColorSelector |
2903 | 283 |
'Optional selector returning the foreground color for a selected cell' |
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
284 |
|
597 | 285 |
#selectionCellClickSelector |
1753 | 286 |
'Message sent if cell is about to be selected - return boolean to en/disable editing' |
528 | 287 |
|
597 | 288 |
#selectionCellDoubleClickSelector |
1753 | 289 |
'Message sent if cell is double clicked' |
528 | 290 |
|
597 | 291 |
#selectionCellSelector |
2903 | 292 |
'Name of the message sent to the row to validate a selection' |
528 | 293 |
|
597 | 294 |
#selectionIsSelectable |
2903 | 295 |
'Turns on/off selection behavior of a column' |
597 | 296 |
|
297 |
#selectionLabelClickSelector |
|
1754 | 298 |
'Message sent if a columns label was clicked on' |
528 | 299 |
|
597 | 300 |
#selectionLabelSelectorArgument |
2903 | 301 |
'An optional argument passed with the message above' |
528 | 302 |
|
1009 | 303 |
#showComboFieldSelector |
2903 | 304 |
'Selector which returns true if the editor on the ComboBox/List has an input field' |
1009 | 305 |
|
983 | 306 |
#showSelectionHighLighted |
2903 | 307 |
'Show selected cell highligthened (change fg/bg color)' |
983 | 308 |
|
2789 | 309 |
#sortBlockSelector |
2903 | 310 |
'Sent to the row to retrieve a selector which is sent to the application to provide a block for sorting' |
2789 | 311 |
|
2625 | 312 |
#sortSelector |
2903 | 313 |
'Sent to the row to extract the value used for sorting. If a block is returned, that one is used as sortBlock' |
2625 | 314 |
|
1580 | 315 |
#usePreferredWidth |
2903 | 316 |
'Compute width from first 10 row items' |
1580 | 317 |
|
1944 | 318 |
#valuesChoicesSelector |
2903 | 319 |
'Selector to get a collection of choices for a cell having a ComboBox or a ComboList widget' |
528 | 320 |
|
2816 | 321 |
#valuesMenuFromApplication |
322 |
'Fetch the menu from the application (instead of the row)' |
|
323 |
||
597 | 324 |
#valuesMenuSelector |
2903 | 325 |
'Selector to retrieve the middle button menu' |
597 | 326 |
|
327 |
#valuesPrintSelector |
|
2903 | 328 |
'Selector used to register images on a DSVColumnView (the arg). For more detailed info see #register... methods in DSVColumnView' |
528 | 329 |
|
597 | 330 |
#valuesReadSelector |
2903 | 331 |
'Selector returning the label to be displayed (string, bitmap or a collection)' |
1731 | 332 |
|
333 |
#valuesVisibilitySelector |
|
2903 | 334 |
'Boolean message selector controlling the columns visibility' |
528 | 335 |
|
597 | 336 |
#valuesWriteSelector |
2903 | 337 |
'Selector used to set the value derived from the editor' |
528 | 338 |
|
1944 | 339 |
#valuesXChoicesSelector |
2903 | 340 |
'Selector to get a collection of translated choices for a cell having a ComboBox or a ComboList widget' |
1944 | 341 |
|
3515 | 342 |
|
343 |
#fileSaveMethod |
|
344 |
'Save Column Description as Method' |
|
345 |
||
346 |
#fileSaveAsMethod |
|
347 |
'Save Column Description as Method (ask for Class/Selector)' |
|
348 |
||
349 |
#editCut |
|
350 |
'Cut Column' |
|
351 |
||
352 |
#editCopy |
|
353 |
'Copy Column' |
|
354 |
||
355 |
#editPaste |
|
356 |
'Paste Column' |
|
357 |
||
528 | 358 |
) |
2840 | 359 |
|
2903 | 360 |
"Modified: / 09-08-2012 / 09:36:06 / cg" |
528 | 361 |
! ! |
362 |
||
881 | 363 |
!DataSetBuilder class methodsFor:'image specs'! |
364 |
||
365 |
newColumnIcon |
|
366 |
"This resource specification was automatically generated |
|
367 |
by the ImageEditor of ST/X." |
|
368 |
||
369 |
"Do not manually edit this!! If it is corrupted, |
|
370 |
the ImageEditor may not be able to read the specification." |
|
371 |
||
372 |
" |
|
373 |
self newColumnIcon inspect |
|
374 |
ImageEditor openOnClass:self andSelector:#newColumnIcon |
|
2262 | 375 |
Icon flushCachedIcons |
881 | 376 |
" |
377 |
||
378 |
<resource: #image> |
|
379 |
||
380 |
^Icon |
|
2262 | 381 |
constantNamed:#'DataSetBuilder class newColumnIcon' |
382 |
ifAbsentPut:[(Depth2Image new) width: 19; height: 22; photometric:(#palette); bitsPerSample:(#[2]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
383 |
U@@@@EQTUUUXUEQ***1TUF (+EQTX*H,UEQ"("1TUF (+EQTZ**,UEQ"("1TUFJ"KEQTX*H,UEQ HB1TUF**+EQTZ**,UEQ"H"1TUF@ KEQTX"@,UEQ"H"1T |
|
3114
618593c66e30
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
3096
diff
changeset
|
384 |
UF**+EQTZ**,UER???1TU@@@@EPb') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((ImageMask new) width: 19; height: 22; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@') ; yourself); yourself] |
2262 | 385 |
! |
386 |
||
387 |
newColumnNonSelectableIcon |
|
388 |
"This resource specification was automatically generated |
|
389 |
by the ImageEditor of ST/X." |
|
390 |
||
391 |
"Do not manually edit this!! If it is corrupted, |
|
392 |
the ImageEditor may not be able to read the specification." |
|
393 |
||
394 |
" |
|
395 |
self newColumnNonSelectableIcon inspect |
|
396 |
ImageEditor openOnClass:self andSelector:#newColumnNonSelectableIcon |
|
397 |
Icon flushCachedIcons |
|
398 |
" |
|
399 |
||
400 |
<resource: #image> |
|
401 |
||
402 |
^Icon |
|
403 |
constantNamed:#'DataSetBuilder class newColumnNonSelectableIcon' |
|
404 |
ifAbsentPut:[(Depth2Image new) width: 19; height: 22; photometric:(#palette); bitsPerSample:(#[2]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
405 |
U@@@@EQTUUUXUEQ***1TUF**+EQTX*(,UEQ"*"1TUFB(KEQTZJ",UEQ(HJ1TUF("+EQTZ J,UEQ*@*1TUF("+EQTZBB,UEQ(*J1TUFB(KEQTX*(,UEQ"*"1T |
|
3114
618593c66e30
Change images to use ImageMask instances instead of Depth1Image instances as
Stefan Vogel <sv@exept.de>
parents:
3096
diff
changeset
|
406 |
UF**+EQTZ**,UER???1TU@@@@EPb') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((ImageMask new) width: 19; height: 22; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@G?<@') ; yourself); yourself] |
1452 | 407 |
! ! |
881 | 408 |
|
528 | 409 |
!DataSetBuilder class methodsFor:'interface specs'! |
332 | 410 |
|
411 |
basicsEditSpec |
|
817 | 412 |
"This resource specification was automatically generated |
413 |
by the UIPainter of ST/X." |
|
332 | 414 |
|
817 | 415 |
"Do not manually edit this!! If it is corrupted, |
416 |
the UIPainter may not be able to read the specification." |
|
332 | 417 |
|
418 |
" |
|
419 |
UIPainter new openOnClass:DataSetBuilder andSelector:#basicsEditSpec |
|
420 |
DataSetBuilder new openInterface:#basicsEditSpec |
|
421 |
" |
|
422 |
||
423 |
<resource: #canvas> |
|
424 |
||
1156 | 425 |
^ |
3247 | 426 |
#(FullSpec |
427 |
name: basicsEditSpec |
|
428 |
window: |
|
429 |
(WindowSpec |
|
430 |
label: 'DataSet Basic' |
|
431 |
name: 'DataSet Basic' |
|
432 |
min: (Point 10 10) |
|
433 |
bounds: (Rectangle 0 0 389 473) |
|
434 |
) |
|
435 |
component: |
|
436 |
(SpecCollection |
|
437 |
collection: ( |
|
438 |
(VerticalPanelViewSpec |
|
439 |
name: 'VerticalPanel1' |
|
440 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
441 |
horizontalLayout: fit |
|
442 |
verticalLayout: top |
|
443 |
horizontalSpace: 3 |
|
444 |
verticalSpace: 3 |
|
445 |
component: |
|
446 |
(SpecCollection |
|
447 |
collection: ( |
|
448 |
(FramedBoxSpec |
|
449 |
label: 'Header:' |
|
450 |
name: 'headerFrame' |
|
451 |
labelPosition: topLeft |
|
452 |
translateLabel: true |
|
453 |
component: |
|
454 |
(SpecCollection |
|
455 |
collection: ( |
|
456 |
(LabelSpec |
|
457 |
label: 'ID:' |
|
458 |
name: 'idLabel' |
|
459 |
layout: (AlignmentOrigin 94 0 14 0 1 0.5) |
|
460 |
translateLabel: true |
|
461 |
resizeForLabel: true |
|
462 |
) |
|
463 |
(InputFieldSpec |
|
464 |
name: 'idField' |
|
465 |
layout: (LayoutFrame 97 0 0 0 2 1.0 22 0) |
|
466 |
activeHelpKey: basicsLabelId |
|
467 |
tabable: true |
|
468 |
model: id |
|
469 |
group: inputGroup |
|
470 |
acceptOnLostFocus: false |
|
471 |
acceptChannel: acceptChannel |
|
472 |
modifiedChannel: modifiedChannel |
|
473 |
acceptOnPointerLeave: false |
|
474 |
) |
|
475 |
(LabelSpec |
|
476 |
label: 'Label:' |
|
477 |
name: 'label1' |
|
478 |
layout: (AlignmentOrigin 94 0 39 0 1 0.5) |
|
479 |
translateLabel: true |
|
480 |
resizeForLabel: true |
|
481 |
) |
|
482 |
(InputFieldSpec |
|
483 |
name: 'labelField' |
|
484 |
layout: (LayoutFrame 97 0 28 0 2 1.0 50 0) |
|
485 |
activeHelpKey: basicsLabel |
|
486 |
tabable: true |
|
487 |
model: label |
|
488 |
group: inputGroup |
|
489 |
type: smalltalkObject |
|
490 |
immediateAccept: false |
|
491 |
acceptOnLeave: false |
|
492 |
acceptOnLostFocus: false |
|
493 |
acceptChannel: acceptChannel |
|
494 |
modifiedChannel: modifiedChannel |
|
495 |
acceptOnPointerLeave: false |
|
496 |
) |
|
497 |
(LabelSpec |
|
498 |
label: 'Font:' |
|
499 |
name: 'LabelFont' |
|
500 |
layout: (AlignmentOrigin 94 0 68 0 1 0.5) |
|
501 |
translateLabel: true |
|
502 |
resizeForLabel: true |
|
503 |
adjust: left |
|
504 |
) |
|
505 |
(FontMenuSpec |
|
506 |
name: 'fontMenu' |
|
507 |
layout: (LayoutFrame 97 0 56 0 0 1.0 78 0) |
|
508 |
activeHelpKey: labelFont |
|
509 |
model: style |
|
510 |
allowSymbolicFonts: true |
|
511 |
) |
|
512 |
(LabelSpec |
|
513 |
label: 'Type:' |
|
514 |
name: 'Type' |
|
515 |
layout: (AlignmentOrigin 52 0 100 0 1 0.5) |
|
516 |
translateLabel: true |
|
517 |
resizeForLabel: true |
|
518 |
adjust: right |
|
519 |
) |
|
520 |
(ComboListSpec |
|
521 |
name: 'labelButtonType' |
|
522 |
layout: (LayoutFrame 57 0 91 0 158 0 111 0) |
|
523 |
tabable: true |
|
524 |
model: labelButtonType |
|
525 |
comboList: |
|
526 |
(Array |
|
527 |
None Button |
|
528 |
Group |
|
529 |
) |
|
530 |
useIndex: false |
|
531 |
hidePullDownMenuButton: false |
|
532 |
) |
|
533 |
(LabelSpec |
|
534 |
label: 'Align:' |
|
535 |
name: 'JustificationLabel' |
|
536 |
layout: (AlignmentOrigin 243 0 100 0 1 0.5) |
|
537 |
translateLabel: true |
|
538 |
resizeForLabel: true |
|
539 |
adjust: right |
|
540 |
) |
|
541 |
(PopUpListSpec |
|
542 |
label: 'Alignment' |
|
543 |
name: 'Alignment' |
|
544 |
layout: (LayoutFrame 248 0 91 0 2 1.0 113 0) |
|
545 |
activeHelpKey: basicsJustification |
|
546 |
translateLabel: true |
|
547 |
tabable: true |
|
548 |
model: labelAlignment |
|
549 |
menu: |
|
550 |
(Array |
|
551 |
left right |
|
552 |
center |
|
553 |
) |
|
554 |
) |
|
555 |
(CheckBoxSpec |
|
556 |
label: 'Label Is Image' |
|
557 |
name: 'labelIsImage' |
|
558 |
layout: (LayoutOrigin -3 0 120 0) |
|
559 |
activeHelpKey: basicsLabelIsImage |
|
560 |
tabable: true |
|
561 |
model: labelIsImage |
|
562 |
translateLabel: true |
|
563 |
) |
|
564 |
(CheckBoxSpec |
|
565 |
label: 'Translate Label' |
|
566 |
name: 'CheckBox2' |
|
567 |
layout: (LayoutOrigin 200 0 120 0) |
|
568 |
activeHelpKey: basicsLabelTranslate |
|
569 |
tabable: true |
|
570 |
model: translateLabel |
|
571 |
translateLabel: true |
|
2475 | 572 |
) |
3247 | 573 |
) |
574 |
||
575 |
) |
|
576 |
extent: (Point 389 190) |
|
577 |
) |
|
578 |
(FramedBoxSpec |
|
579 |
label: 'Cell Type:' |
|
580 |
name: 'typesFrame' |
|
581 |
labelPosition: topLeft |
|
582 |
translateLabel: true |
|
583 |
component: |
|
584 |
(SpecCollection |
|
585 |
collection: ( |
|
586 |
(LabelSpec |
|
587 |
label: 'Renderer:' |
|
588 |
name: 'rendererLabel' |
|
589 |
layout: (AlignmentOrigin 94 0 16 0 1 0.5) |
|
590 |
translateLabel: true |
|
591 |
resizeForLabel: true |
|
592 |
) |
|
593 |
(ComboListSpec |
|
594 |
name: 'rendererField' |
|
595 |
layout: (LayoutFrame 97 0 5 0 2 1.0 27 0) |
|
596 |
activeHelpKey: basicsRenderer |
|
597 |
tabable: true |
|
598 |
model: rendererType |
|
599 |
comboList: rendererTypeList |
|
600 |
useIndex: false |
|
601 |
hidePullDownMenuButton: false |
|
602 |
) |
|
603 |
(LabelSpec |
|
604 |
label: 'Editor:' |
|
605 |
name: 'editorLabel' |
|
606 |
layout: (AlignmentOrigin 94 0 42 0 1 0.5) |
|
607 |
translateLabel: true |
|
608 |
resizeForLabel: true |
|
609 |
) |
|
610 |
(ComboBoxSpec |
|
611 |
name: 'editorField' |
|
612 |
layout: (LayoutFrame 97 0 31 0 2 1.0 53 0) |
|
613 |
activeHelpKey: basicsEditor |
|
614 |
tabable: true |
|
615 |
model: editorType |
|
616 |
type: symbolOrNil |
|
617 |
acceptOnLostFocus: false |
|
618 |
acceptChannel: acceptChannel |
|
619 |
modifiedChannel: modifiedChannel |
|
620 |
acceptOnPointerLeave: false |
|
621 |
comboList: editorTypeList |
|
622 |
useIndex: false |
|
623 |
isFilenameBox: false |
|
624 |
) |
|
625 |
(LabelSpec |
|
626 |
label: 'Align:' |
|
627 |
name: 'JustificationC' |
|
628 |
layout: (LayoutFrame -194 1 58 0 -114 1 79 0) |
|
629 |
translateLabel: true |
|
630 |
resizeForLabel: true |
|
631 |
adjust: right |
|
2475 | 632 |
) |
3247 | 633 |
(PopUpListSpec |
634 |
label: 'Alignment' |
|
635 |
name: 'AlignmentC' |
|
636 |
layout: (LayoutFrame -115 1 58 0 2 1.0 80 0) |
|
637 |
activeHelpKey: basicsJustificationEditor |
|
638 |
translateLabel: true |
|
639 |
tabable: true |
|
640 |
model: columnAlignment |
|
641 |
menu: |
|
642 |
(Array |
|
643 |
left right |
|
644 |
center decimal |
|
645 |
decimalRight |
|
646 |
) |
|
647 |
) |
|
648 |
(CheckBoxSpec |
|
649 |
label: 'Compress Long Strings' |
|
650 |
name: 'LongStringCompressionCheckBox' |
|
651 |
layout: (LayoutFrame -3 0 58 0 188 0 79 0) |
|
652 |
activeHelpKey: basicsLabelTranslate |
|
653 |
tabable: true |
|
654 |
model: longStringCompression |
|
655 |
translateLabel: true |
|
656 |
) |
|
657 |
) |
|
658 |
||
659 |
) |
|
660 |
extent: (Point 389 120) |
|
661 |
) |
|
662 |
(FramedBoxSpec |
|
663 |
label: 'Active Help:' |
|
664 |
name: 'activeHelpFrame' |
|
665 |
labelPosition: topLeft |
|
666 |
translateLabel: true |
|
667 |
component: |
|
668 |
(SpecCollection |
|
669 |
collection: ( |
|
670 |
(LabelSpec |
|
671 |
label: 'Key:' |
|
672 |
name: 'Label1' |
|
673 |
layout: (AlignmentOrigin 94 0 14 0 1 0.5) |
|
674 |
translateLabel: true |
|
675 |
resizeForLabel: true |
|
2475 | 676 |
) |
3247 | 677 |
(InputFieldSpec |
678 |
name: 'EntryField1' |
|
679 |
layout: (LayoutFrame 97 0 0 0 2 1.0 22 0) |
|
680 |
activeHelpKey: basicsLabelId |
|
681 |
tabable: true |
|
682 |
model: activeHelpKey |
|
683 |
group: inputGroup |
|
684 |
acceptOnLostFocus: false |
|
685 |
acceptChannel: acceptChannel |
|
686 |
modifiedChannel: modifiedChannel |
|
687 |
acceptOnPointerLeave: false |
|
688 |
) |
|
689 |
(LabelSpec |
|
690 |
label: 'Key for Label:' |
|
691 |
name: 'Label2' |
|
692 |
layout: (AlignmentOrigin 94 0 42 0 1 0.5) |
|
693 |
translateLabel: true |
|
694 |
resizeForLabel: true |
|
695 |
) |
|
696 |
(InputFieldSpec |
|
697 |
name: 'EntryField2' |
|
698 |
layout: (LayoutFrame 97 0 28 0 2 1.0 50 0) |
|
699 |
activeHelpKey: basicsLabelId |
|
700 |
tabable: true |
|
701 |
model: activeHelpKeyForLabel |
|
702 |
group: inputGroup |
|
703 |
acceptOnLostFocus: false |
|
704 |
acceptChannel: acceptChannel |
|
705 |
modifiedChannel: modifiedChannel |
|
706 |
acceptOnPointerLeave: false |
|
707 |
) |
|
708 |
) |
|
709 |
||
710 |
) |
|
711 |
extent: (Point 389 95) |
|
2166 | 712 |
) |
3247 | 713 |
) |
714 |
||
715 |
) |
|
1156 | 716 |
) |
3247 | 717 |
) |
718 |
||
719 |
) |
|
720 |
) |
|
391 | 721 |
! |
722 |
||
408 | 723 |
colorsEditSpec |
825 | 724 |
"This resource specification was automatically generated |
725 |
by the UIPainter of ST/X." |
|
332 | 726 |
|
825 | 727 |
"Do not manually edit this!! If it is corrupted, |
728 |
the UIPainter may not be able to read the specification." |
|
332 | 729 |
|
730 |
" |
|
408 | 731 |
UIPainter new openOnClass:DataSetBuilder andSelector:#colorsEditSpec |
732 |
DataSetBuilder new openInterface:#colorsEditSpec |
|
332 | 733 |
" |
734 |
||
735 |
<resource: #canvas> |
|
736 |
||
1156 | 737 |
^ |
3247 | 738 |
#(FullSpec |
739 |
name: colorsEditSpec |
|
740 |
window: |
|
741 |
(WindowSpec |
|
742 |
label: 'DataSet Misc' |
|
743 |
name: 'DataSet Misc' |
|
744 |
min: (Point 10 10) |
|
745 |
bounds: (Rectangle 0 0 369 451) |
|
746 |
) |
|
747 |
component: |
|
748 |
(SpecCollection |
|
749 |
collection: ( |
|
750 |
(FramedBoxSpec |
|
751 |
label: 'Label Colors:' |
|
752 |
name: 'ColorsBox' |
|
753 |
layout: (LayoutFrame 0 0.0 3 0 0 1.0 95 0) |
|
754 |
labelPosition: topLeft |
|
755 |
translateLabel: true |
|
756 |
component: |
|
757 |
(SpecCollection |
|
758 |
collection: ( |
|
759 |
(LabelSpec |
|
760 |
label: 'Foreground:' |
|
761 |
name: 'label1' |
|
762 |
layout: (AlignmentOrigin 112 0 14 0 1 0.5) |
|
763 |
translateLabel: true |
|
764 |
resizeForLabel: true |
|
765 |
adjust: right |
|
766 |
) |
|
767 |
(ColorMenuSpec |
|
768 |
name: 'colorMenu1' |
|
769 |
layout: (LayoutFrame 115 0 2 0 -3 1.0 24 0) |
|
770 |
activeHelpKey: colorsForegroundLabelColor |
|
771 |
model: labelForegroundColor |
|
772 |
labelsAreColored: true |
|
773 |
) |
|
774 |
(LabelSpec |
|
775 |
label: 'Background:' |
|
776 |
name: 'label2' |
|
777 |
layout: (AlignmentOrigin 112 0 42 0 1 0.5) |
|
778 |
translateLabel: true |
|
779 |
resizeForLabel: true |
|
780 |
adjust: right |
|
781 |
) |
|
782 |
(ColorMenuSpec |
|
783 |
name: 'colorMenu2' |
|
784 |
layout: (LayoutFrame 115 0 30 0 -3 1.0 52 0) |
|
785 |
activeHelpKey: colorsBackgroundLabelColor |
|
786 |
model: labelBackgroundColor |
|
787 |
) |
|
788 |
) |
|
789 |
||
790 |
) |
|
791 |
) |
|
792 |
(FramedBoxSpec |
|
793 |
label: 'Cell Colors:' |
|
794 |
name: 'defaultColorsBox' |
|
795 |
layout: (LayoutFrame 0 0.0 95 0 0 1.0 245 0) |
|
796 |
labelPosition: topLeft |
|
797 |
translateLabel: true |
|
798 |
component: |
|
799 |
(SpecCollection |
|
800 |
collection: ( |
|
801 |
(LabelSpec |
|
802 |
label: 'Foreground:' |
|
803 |
name: 'fgLabel' |
|
804 |
layout: (AlignmentOrigin 112 0 11 0 1 0.5) |
|
805 |
translateLabel: true |
|
806 |
resizeForLabel: true |
|
807 |
adjust: right |
|
808 |
) |
|
809 |
(ColorMenuSpec |
|
810 |
name: 'fgMenu' |
|
811 |
layout: (LayoutFrame 115 0 -1 0 -3 1.0 21 0) |
|
812 |
activeHelpKey: colorsForegroundCellColor |
|
813 |
model: foregroundColor |
|
814 |
labelsAreColored: true |
|
815 |
) |
|
816 |
(LabelSpec |
|
817 |
label: 'Background:' |
|
818 |
name: 'bgLabel' |
|
819 |
layout: (AlignmentOrigin 112 0 39 0 1 0.5) |
|
820 |
translateLabel: true |
|
821 |
resizeForLabel: true |
|
822 |
adjust: right |
|
823 |
) |
|
824 |
(ColorMenuSpec |
|
825 |
name: 'bgMenu' |
|
826 |
layout: (LayoutFrame 115 0 27 0 -3 1.0 49 0) |
|
827 |
activeHelpKey: colorsBackgroundCellColor |
|
828 |
model: backgroundColor |
|
829 |
) |
|
830 |
(LabelSpec |
|
831 |
label: 'FG-Selector:' |
|
832 |
name: 'fgSelLabel' |
|
833 |
layout: (AlignmentOrigin 112 0 73 0 1 0.5) |
|
834 |
translateLabel: true |
|
835 |
resizeForLabel: true |
|
836 |
adjust: right |
|
837 |
) |
|
838 |
(InputFieldSpec |
|
839 |
name: 'fgSelField' |
|
840 |
layout: (LayoutFrame 115 0 62 0 0 1.0 84 0) |
|
841 |
activeHelpKey: colorsForegroundSelector |
|
842 |
tabable: true |
|
843 |
model: foregroundSelector |
|
844 |
group: inputGroup |
|
845 |
type: symbolOrNil |
|
846 |
acceptOnLostFocus: false |
|
847 |
acceptChannel: acceptChannel |
|
848 |
modifiedChannel: modifiedChannel |
|
849 |
acceptOnPointerLeave: false |
|
1156 | 850 |
) |
3247 | 851 |
(LabelSpec |
852 |
label: 'BG-Selector:' |
|
853 |
name: 'bgSelLabel' |
|
854 |
layout: (AlignmentOrigin 112 0 98 0 1 0.5) |
|
855 |
translateLabel: true |
|
856 |
resizeForLabel: true |
|
857 |
adjust: right |
|
858 |
) |
|
859 |
(InputFieldSpec |
|
860 |
name: 'bgSelField' |
|
861 |
layout: (LayoutFrame 115 0 87 0 0 1.0 109 0) |
|
862 |
activeHelpKey: colorsBackgroundSelector |
|
863 |
tabable: true |
|
864 |
model: backgroundSelector |
|
865 |
group: inputGroup |
|
866 |
type: symbolOrNil |
|
867 |
acceptOnLostFocus: false |
|
868 |
acceptChannel: acceptChannel |
|
869 |
modifiedChannel: modifiedChannel |
|
870 |
acceptOnPointerLeave: false |
|
871 |
) |
|
872 |
) |
|
873 |
||
874 |
) |
|
875 |
) |
|
876 |
(FramedBoxSpec |
|
877 |
label: 'Selected Cell Colors:' |
|
878 |
name: 'selectedCellColorsBox' |
|
879 |
layout: (LayoutFrame 0 0.0 245 0 0 1.0 390 0) |
|
880 |
labelPosition: topLeft |
|
881 |
translateLabel: true |
|
882 |
component: |
|
883 |
(SpecCollection |
|
884 |
collection: ( |
|
885 |
(LabelSpec |
|
886 |
label: 'Foreground:' |
|
887 |
name: 'selFgLabel' |
|
888 |
layout: (AlignmentOrigin 112 0 11 0 1 0.5) |
|
889 |
translateLabel: true |
|
890 |
resizeForLabel: true |
|
891 |
adjust: right |
|
892 |
) |
|
893 |
(ColorMenuSpec |
|
894 |
name: 'selFgMenu' |
|
895 |
layout: (LayoutFrame 115 0 -1 0 -3 1.0 21 0) |
|
896 |
activeHelpKey: selectedForegroundCellColor |
|
897 |
model: selectedForegroundColor |
|
898 |
labelsAreColored: true |
|
899 |
) |
|
900 |
(LabelSpec |
|
901 |
label: 'Background:' |
|
902 |
name: 'selBgLabel' |
|
903 |
layout: (AlignmentOrigin 112 0 39 0 1 0.5) |
|
904 |
translateLabel: true |
|
905 |
resizeForLabel: true |
|
906 |
adjust: right |
|
1156 | 907 |
) |
3247 | 908 |
(ColorMenuSpec |
909 |
name: 'selBgMenu' |
|
910 |
layout: (LayoutFrame 115 0 27 0 -3 1.0 49 0) |
|
911 |
activeHelpKey: colorsBackgroundCellColor |
|
912 |
model: selectedBackgroundColor |
|
913 |
) |
|
914 |
(LabelSpec |
|
915 |
label: 'FG-Selector:' |
|
916 |
name: 'Label3' |
|
917 |
layout: (AlignmentOrigin 112 0 73 0 1 0.5) |
|
918 |
translateLabel: true |
|
919 |
resizeForLabel: true |
|
920 |
adjust: right |
|
921 |
) |
|
922 |
(InputFieldSpec |
|
923 |
name: 'EntryField1' |
|
924 |
layout: (LayoutFrame 115 0 62 0 0 1.0 84 0) |
|
925 |
activeHelpKey: colorsForegroundSelector |
|
926 |
tabable: true |
|
927 |
model: selectedForegroundSelector |
|
928 |
group: inputGroup |
|
929 |
type: symbolOrNil |
|
930 |
acceptOnLostFocus: false |
|
931 |
acceptChannel: acceptChannel |
|
932 |
modifiedChannel: modifiedChannel |
|
933 |
acceptOnPointerLeave: false |
|
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
934 |
) |
3247 | 935 |
(LabelSpec |
936 |
label: 'BG-Selector:' |
|
937 |
name: 'Label4' |
|
938 |
layout: (AlignmentOrigin 112 0 98 0 1 0.5) |
|
939 |
translateLabel: true |
|
940 |
resizeForLabel: true |
|
941 |
adjust: right |
|
942 |
) |
|
943 |
(InputFieldSpec |
|
944 |
name: 'EntryField2' |
|
945 |
layout: (LayoutFrame 115 0 87 0 0 1.0 109 0) |
|
946 |
activeHelpKey: colorsBackgroundSelector |
|
947 |
tabable: true |
|
948 |
model: selectedBackgroundSelector |
|
949 |
group: inputGroup |
|
950 |
type: symbolOrNil |
|
951 |
acceptOnLostFocus: false |
|
952 |
acceptChannel: acceptChannel |
|
953 |
modifiedChannel: modifiedChannel |
|
954 |
acceptOnPointerLeave: false |
|
955 |
) |
|
956 |
) |
|
957 |
||
958 |
) |
|
1156 | 959 |
) |
3247 | 960 |
) |
961 |
||
962 |
) |
|
963 |
) |
|
332 | 964 |
! |
965 |
||
528 | 966 |
defineClassNameSpec |
825 | 967 |
"This resource specification was automatically generated |
968 |
by the UIPainter of ST/X." |
|
528 | 969 |
|
825 | 970 |
"Do not manually edit this!! If it is corrupted, |
971 |
the UIPainter may not be able to read the specification." |
|
528 | 972 |
|
973 |
" |
|
974 |
UIPainter new openOnClass:DataSetBuilder andSelector:#defineClassNameSpec |
|
975 |
DataSetBuilder new openInterface:#defineClassNameSpec |
|
976 |
" |
|
977 |
||
978 |
<resource: #canvas> |
|
979 |
||
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1731
diff
changeset
|
980 |
^ |
3247 | 981 |
#(FullSpec |
982 |
name: defineClassNameSpec |
|
983 |
window: |
|
984 |
(WindowSpec |
|
985 |
label: 'Data Set Builder' |
|
986 |
name: 'Data Set Builder' |
|
987 |
min: (Point 10 10) |
|
988 |
bounds: (Rectangle 0 0 327 136) |
|
989 |
) |
|
990 |
component: |
|
991 |
(SpecCollection |
|
992 |
collection: ( |
|
993 |
(FramedBoxSpec |
|
994 |
label: 'Class for code' |
|
995 |
name: 'framedBox1' |
|
996 |
layout: (LayoutFrame 0 0.0 3 0.0 0 1.0 -34 1.0) |
|
997 |
labelPosition: topLeft |
|
998 |
translateLabel: true |
|
999 |
) |
|
1000 |
(LabelSpec |
|
1001 |
label: 'Class:' |
|
1002 |
name: 'classLabel' |
|
1003 |
layout: (AlignmentOrigin 73 0.11 38 0 1 0.5) |
|
1004 |
translateLabel: true |
|
1005 |
resizeForLabel: true |
|
1006 |
adjust: right |
|
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1731
diff
changeset
|
1007 |
) |
3247 | 1008 |
(InputFieldSpec |
1009 |
name: 'classNameInputField' |
|
1010 |
layout: (LayoutFrame 77 0.11 27 0 -16 1.0 49 0) |
|
1011 |
tabable: true |
|
1012 |
model: classNameChannel |
|
1013 |
acceptOnPointerLeave: false |
|
1014 |
) |
|
1015 |
(LabelSpec |
|
1016 |
label: 'Superclass:' |
|
1017 |
name: 'superClassLabel' |
|
1018 |
layout: (AlignmentOrigin 73 0.11 65 0 1 0.5) |
|
1019 |
translateLabel: true |
|
1020 |
resizeForLabel: true |
|
1021 |
adjust: right |
|
1022 |
) |
|
1023 |
(InputFieldSpec |
|
1024 |
name: 'superclassNameInputField' |
|
1025 |
layout: (LayoutFrame 76 0.11 55 0 -16 1.0 77 0) |
|
1026 |
tabable: true |
|
1027 |
model: superclassNameChannel |
|
1028 |
acceptOnPointerLeave: false |
|
1029 |
) |
|
1030 |
(UISubSpecification |
|
1031 |
name: 'SubSpecification' |
|
1032 |
layout: (LayoutFrame 0 0.0 -35 1 0 1.0 -5 1.0) |
|
1033 |
majorKey: ToolApplicationModel |
|
1034 |
minorKey: windowSpecForCommitWithoutChannels |
|
1035 |
keepSpaceForOSXResizeHandleH: true |
|
1036 |
) |
|
1037 |
) |
|
1038 |
||
1039 |
) |
|
1040 |
) |
|
528 | 1041 |
! |
1042 |
||
370 | 1043 |
formatEditSpec |
825 | 1044 |
"This resource specification was automatically generated |
1045 |
by the UIPainter of ST/X." |
|
332 | 1046 |
|
825 | 1047 |
"Do not manually edit this!! If it is corrupted, |
1048 |
the UIPainter may not be able to read the specification." |
|
332 | 1049 |
|
1050 |
" |
|
370 | 1051 |
UIPainter new openOnClass:DataSetBuilder andSelector:#formatEditSpec |
1052 |
DataSetBuilder new openInterface:#formatEditSpec |
|
1053 |
" |
|
1054 |
||
1055 |
<resource: #canvas> |
|
1056 |
||
1156 | 1057 |
^ |
3247 | 1058 |
#(FullSpec |
1059 |
name: formatEditSpec |
|
1060 |
window: |
|
1061 |
(WindowSpec |
|
1062 |
label: 'DataSet Details' |
|
1063 |
name: 'DataSet Details' |
|
1064 |
min: (Point 10 10) |
|
1065 |
bounds: (Rectangle 0 0 388 149) |
|
1066 |
) |
|
1067 |
component: |
|
1068 |
(SpecCollection |
|
1069 |
collection: ( |
|
1070 |
(FramedBoxSpec |
|
1071 |
label: 'Column Format' |
|
1072 |
name: 'framedBox1' |
|
1073 |
layout: (LayoutFrame 0 0.0 3 0 0 1.0 155 0) |
|
1074 |
labelPosition: topLeft |
|
1075 |
translateLabel: true |
|
1076 |
component: |
|
1077 |
(SpecCollection |
|
1078 |
collection: ( |
|
1079 |
(LabelSpec |
|
1080 |
label: 'Type:' |
|
1081 |
name: 'typeLabel' |
|
1082 |
layout: (AlignmentOrigin 115 0 21 0 1 0.5) |
|
1083 |
activeHelpKey: formatInputType |
|
1084 |
translateLabel: true |
|
1085 |
resizeForLabel: true |
|
1086 |
) |
|
1087 |
(ComboListSpec |
|
1088 |
name: 'typeCombo' |
|
1089 |
layout: (LayoutFrame 118 0 10 0 3 1.0 32 0) |
|
1090 |
activeHelpKey: formatInputType |
|
1091 |
tabable: true |
|
1092 |
model: type |
|
1093 |
comboList: possiblePrintConverterTypes |
|
1094 |
useIndex: false |
|
1095 |
hidePullDownMenuButton: false |
|
1096 |
) |
|
1097 |
(LabelSpec |
|
1098 |
label: 'Max Size:' |
|
1099 |
name: 'sizeLabel' |
|
1100 |
layout: (AlignmentOrigin 115 0 47 0 1 0.5) |
|
1101 |
activeHelpKey: formatMaxSize |
|
1102 |
translateLabel: true |
|
1103 |
resizeForLabel: true |
|
1156 | 1104 |
) |
3247 | 1105 |
(InputFieldSpec |
1106 |
name: 'sizeField' |
|
1107 |
layout: (LayoutFrame 118 0 36 0 3 1.0 58 0) |
|
1108 |
activeHelpKey: formatMaxSize |
|
1109 |
tabable: true |
|
1110 |
model: size |
|
1111 |
group: inputGroup |
|
1112 |
type: numberOrNil |
|
1113 |
acceptOnLostFocus: false |
|
1114 |
acceptChannel: acceptChannel |
|
1115 |
modifiedChannel: modifiedChannel |
|
1116 |
acceptOnPointerLeave: false |
|
1117 |
) |
|
1118 |
(LabelSpec |
|
1119 |
label: 'Text Format:' |
|
1120 |
name: 'formatLabel' |
|
1121 |
layout: (AlignmentOrigin 115 0 72 0 1 0.5) |
|
1122 |
activeHelpKey: formatTextFormat |
|
1123 |
translateLabel: true |
|
1124 |
resizeForLabel: true |
|
1125 |
) |
|
1126 |
(InputFieldSpec |
|
1127 |
name: 'formatField' |
|
1128 |
layout: (LayoutFrame 118 0 61 0 3 1.0 83 0) |
|
1129 |
activeHelpKey: formatTextFormat |
|
1130 |
tabable: true |
|
1131 |
model: formatString |
|
1132 |
group: inputGroup |
|
1133 |
acceptOnLostFocus: false |
|
1134 |
acceptChannel: acceptChannel |
|
1135 |
modifiedChannel: modifiedChannel |
|
1136 |
acceptOnPointerLeave: false |
|
1137 |
) |
|
1138 |
(LabelSpec |
|
1139 |
label: 'Format Selector:' |
|
1140 |
name: 'formatSelectorLabel' |
|
1141 |
layout: (AlignmentOrigin 115 0 98 0 1 0.5) |
|
1142 |
activeHelpKey: formatFormatSelector |
|
1143 |
translateLabel: true |
|
1144 |
resizeForLabel: true |
|
1145 |
) |
|
1146 |
(InputFieldSpec |
|
1147 |
name: 'formatSelector' |
|
1148 |
layout: (LayoutFrame 118 0 87 0 3 1.0 109 0) |
|
1149 |
activeHelpKey: formatFormatSelector |
|
1150 |
tabable: true |
|
1151 |
model: formatSelector |
|
1152 |
group: inputGroup |
|
1153 |
acceptOnLostFocus: false |
|
1154 |
acceptChannel: acceptChannel |
|
1155 |
modifiedChannel: modifiedChannel |
|
1156 |
acceptOnPointerLeave: false |
|
1157 |
) |
|
1158 |
) |
|
1159 |
||
1160 |
) |
|
1156 | 1161 |
) |
3247 | 1162 |
) |
1163 |
||
1164 |
) |
|
1165 |
) |
|
370 | 1166 |
! |
1167 |
||
408 | 1168 |
frameEditSpec |
825 | 1169 |
"This resource specification was automatically generated |
1170 |
by the UIPainter of ST/X." |
|
391 | 1171 |
|
825 | 1172 |
"Do not manually edit this!! If it is corrupted, |
1173 |
the UIPainter may not be able to read the specification." |
|
391 | 1174 |
|
1175 |
" |
|
408 | 1176 |
UIPainter new openOnClass:DataSetBuilder andSelector:#frameEditSpec |
1177 |
DataSetBuilder new openInterface:#frameEditSpec |
|
391 | 1178 |
" |
1179 |
||
1180 |
<resource: #canvas> |
|
1181 |
||
1156 | 1182 |
^ |
3048 | 1183 |
#(FullSpec |
1184 |
name: frameEditSpec |
|
1185 |
window: |
|
1186 |
(WindowSpec |
|
1187 |
label: 'DataSet Dimension' |
|
1188 |
name: 'DataSet Dimension' |
|
1189 |
min: (Point 10 10) |
|
1190 |
bounds: (Rectangle 0 0 396 313) |
|
1191 |
) |
|
1192 |
component: |
|
1193 |
(SpecCollection |
|
1194 |
collection: ( |
|
1195 |
(FramedBoxSpec |
|
1196 |
label: 'Separators' |
|
1197 |
name: 'separatorBox' |
|
1198 |
layout: (LayoutFrame 0 0.0 3 0 0 1.0 132 0) |
|
1199 |
labelPosition: topLeft |
|
1200 |
translateLabel: true |
|
1201 |
component: |
|
1202 |
(SpecCollection |
|
1203 |
collection: ( |
|
1204 |
(CheckBoxSpec |
|
1205 |
label: 'Show Row-Separator' |
|
1206 |
name: 'showRowSeparator' |
|
1207 |
layout: (LayoutFrame 5 0 15 0 293 0 38 0) |
|
1208 |
activeHelpKey: frameShowRowSeparator |
|
1209 |
tabable: true |
|
1210 |
model: showRowSeparator |
|
1211 |
translateLabel: true |
|
1212 |
) |
|
1213 |
(InputFieldSpec |
|
1214 |
name: 'rowSeparatorSelector' |
|
1215 |
layout: (LayoutFrame 142 0 41 0 2 1.0 63 0) |
|
1216 |
activeHelpKey: frameShowRowSeparatorSelector |
|
1217 |
tabable: true |
|
1218 |
model: rowSeparatorSelector |
|
1219 |
group: inputGroup |
|
1220 |
type: symbolOrNil |
|
1221 |
acceptOnLostFocus: false |
|
1222 |
acceptChannel: acceptChannel |
|
1223 |
modifiedChannel: modifiedChannel |
|
1224 |
acceptOnPointerLeave: false |
|
1225 |
) |
|
1226 |
(CheckBoxSpec |
|
1227 |
label: 'Show Column-Separator' |
|
1228 |
name: 'showColSeparator' |
|
1229 |
layout: (LayoutFrame 5 0 70 0 294 0 93 0) |
|
1230 |
activeHelpKey: frameShowColumnSeparator |
|
1231 |
tabable: true |
|
1232 |
model: showColSeparator |
|
1233 |
translateLabel: true |
|
1234 |
) |
|
1235 |
(LabelSpec |
|
1236 |
label: 'Selector:' |
|
1237 |
name: 'Label1' |
|
1238 |
layout: (LayoutFrame 80 0.0 44 0 140 0.0 61 0) |
|
1239 |
activeHelpKey: frameShowRowSeparatorSelector |
|
1240 |
translateLabel: true |
|
1241 |
resizeForLabel: true |
|
1242 |
adjust: right |
|
1243 |
) |
|
1244 |
) |
|
1245 |
||
1246 |
) |
|
1247 |
) |
|
1248 |
(FramedBoxSpec |
|
1249 |
label: 'Dimensions:' |
|
1250 |
name: 'framedBox1' |
|
3247 | 1251 |
layout: (LayoutFrame 0 0.0 133 0 0 1.0 315 0) |
304 |