author | Claus Gittinger <cg@exept.de> |
Mon, 07 May 2018 14:40:56 +0200 | |
changeset 3556 | 5513f508bcf2 |
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) |
3048 | 1252 |
labelPosition: topLeft |
1253 |
translateLabel: true |
|
1254 |
component: |
|
1255 |
(SpecCollection |
|
1256 |
collection: ( |
|
1257 |
(LabelSpec |
|
1258 |
label: 'Column Width:' |
|
1259 |
name: 'widthLabel' |
|
1260 |
layout: (AlignmentOrigin 140 0.0 23 0 1 0.5) |
|
1261 |
activeHelpKey: frameColumnWidth |
|
1262 |
translateLabel: true |
|
1263 |
resizeForLabel: true |
|
1264 |
adjust: right |
|
1156 | 1265 |
) |
3048 | 1266 |
(InputFieldSpec |
1267 |
name: 'widthField' |
|
1268 |
layout: (LayoutFrame 142 0 12 0 2 1.0 34 0) |
|
1269 |
activeHelpKey: frameColumnWidth |
|
1270 |
tabable: true |
|
1271 |
model: width |
|
1272 |
group: inputGroup |
|
1273 |
type: numberOrNil |
|
1274 |
acceptOnLostFocus: false |
|
1275 |
acceptChannel: acceptChannel |
|
1276 |
modifiedChannel: modifiedChannel |
|
1277 |
acceptOnPointerLeave: false |
|
1278 |
) |
|
1279 |
(LabelSpec |
|
1280 |
label: 'Min. Width:' |
|
1281 |
name: 'minWidthLabel' |
|
1282 |
layout: (AlignmentOrigin 140 0.0 51 0 1 0.5) |
|
1283 |
activeHelpKey: frameMinWidth |
|
1284 |
translateLabel: true |
|
1285 |
resizeForLabel: true |
|
1286 |
adjust: right |
|
1287 |
) |
|
1288 |
(InputFieldSpec |
|
1289 |
name: 'minWidthField' |
|
1290 |
layout: (LayoutFrame 142 0 40 0 2 1.0 62 0) |
|
1291 |
activeHelpKey: frameMinWidth |
|
1292 |
tabable: true |
|
1293 |
model: minWidth |
|
1294 |
group: inputGroup |
|
1295 |
type: numberOrNil |
|
1296 |
acceptOnLostFocus: false |
|
1297 |
acceptChannel: acceptChannel |
|
1298 |
modifiedChannel: modifiedChannel |
|
1299 |
acceptOnPointerLeave: false |
|
1156 | 1300 |
) |
3048 | 1301 |
(LabelSpec |
1302 |
label: 'Row Height:' |
|
1303 |
name: 'heightLabel' |
|
1304 |
layout: (AlignmentOrigin 140 0.0 79 0 1 0.5) |
|
1305 |
activeHelpKey: frameRowHeight |
|
1306 |
translateLabel: true |
|
1307 |
resizeForLabel: true |
|
1308 |
adjust: right |
|
1309 |
) |
|
1310 |
(InputFieldSpec |
|
1311 |
name: 'heightField' |
|
1312 |
layout: (LayoutFrame 142 0 68 0 2 1.0 90 0) |
|
1313 |
activeHelpKey: frameRowHeight |
|
1314 |
tabable: true |
|
1315 |
model: height |
|
1316 |
group: inputGroup |
|
1317 |
type: symbolOrNumberOrNil |
|
1318 |
acceptOnLostFocus: false |
|
1319 |
acceptChannel: acceptChannel |
|
1320 |
modifiedChannel: modifiedChannel |
|
1321 |
acceptOnPointerLeave: false |
|
1322 |
) |
|
1323 |
(CheckBoxSpec |
|
1324 |
label: 'Compute Width from Items' |
|
1325 |
name: 'usePreferredWidth' |
|
1326 |
layout: (LayoutFrame 5 0 96 0 -5 1 118 0) |
|
1327 |
activeHelpKey: usePreferredWidth |
|
1328 |
tabable: true |
|
1329 |
model: usePreferredWidth |
|
1330 |
translateLabel: true |
|
1331 |
) |
|
1332 |
(CheckBoxSpec |
|
1333 |
label: 'Is Resizeable' |
|
1334 |
name: 'isResizeable' |
|
1335 |
layout: (LayoutFrame 5 0 121 0 -5 1.0 144 0) |
|
1336 |
activeHelpKey: isResizeable |
|
1337 |
tabable: true |
|
1338 |
model: isResizeable |
|
1339 |
translateLabel: true |
|
1340 |
) |
|
1341 |
) |
|
1342 |
||
1343 |
) |
|
1156 | 1344 |
) |
3048 | 1345 |
) |
1346 |
||
1347 |
) |
|
1348 |
) |
|
391 | 1349 |
! |
1350 |
||
408 | 1351 |
selectionEditSpec |
825 | 1352 |
"This resource specification was automatically generated |
1353 |
by the UIPainter of ST/X." |
|
370 | 1354 |
|
825 | 1355 |
"Do not manually edit this!! If it is corrupted, |
1356 |
the UIPainter may not be able to read the specification." |
|
370 | 1357 |
|
1358 |
" |
|
408 | 1359 |
UIPainter new openOnClass:DataSetBuilder andSelector:#selectionEditSpec |
1360 |
DataSetBuilder new openInterface:#selectionEditSpec |
|
332 | 1361 |
" |
1362 |
||
1363 |
<resource: #canvas> |
|
1364 |
||
1156 | 1365 |
^ |
3247 | 1366 |
#(FullSpec |
1367 |
name: selectionEditSpec |
|
1368 |
window: |
|
1369 |
(WindowSpec |
|
1370 |
label: 'DataSet Basic' |
|
1371 |
name: 'DataSet Basic' |
|
1372 |
min: (Point 10 10) |
|
1373 |
bounds: (Rectangle 0 0 331 328) |
|
1374 |
) |
|
1375 |
component: |
|
1376 |
(SpecCollection |
|
1377 |
collection: ( |
|
1378 |
(FramedBoxSpec |
|
1379 |
label: 'Label Select Action:' |
|
1380 |
name: 'LabelSelectAction' |
|
1381 |
layout: (LayoutFrame 0 0.0 3 0 0 1.0 100 0) |
|
1382 |
labelPosition: topLeft |
|
1383 |
translateLabel: true |
|
1384 |
component: |
|
1385 |
(SpecCollection |
|
1386 |
collection: ( |
|
1387 |
(LabelSpec |
|
1388 |
label: 'Selector:' |
|
1389 |
name: 'ActionLabel' |
|
1390 |
layout: (AlignmentOrigin 95 0 20 0 1 0.5) |
|
1391 |
translateLabel: true |
|
1392 |
resizeForLabel: true |
|
1393 |
adjust: left |
|
1394 |
) |
|
1395 |
(InputFieldSpec |
|
1396 |
name: 'ActionSelector' |
|
1397 |
layout: (LayoutFrame 98 0 9 0 3 1.0 31 0) |
|
1398 |
activeHelpKey: selectionLabelClickSelector |
|
1399 |
tabable: true |
|
1400 |
model: labelActionSelector |
|
1401 |
group: inputGroup |
|
1402 |
type: symbolOrNil |
|
1403 |
acceptOnLostFocus: false |
|
1404 |
acceptChannel: acceptChannel |
|
1405 |
modifiedChannel: modifiedChannel |
|
1406 |
acceptOnPointerLeave: false |
|
1407 |
) |
|
1408 |
(LabelSpec |
|
1409 |
label: 'Argument:' |
|
1410 |
name: 'ArgumentLabel' |
|
1411 |
layout: (AlignmentOrigin 95 0 48 0 1 0.5) |
|
1412 |
translateLabel: true |
|
1413 |
resizeForLabel: true |
|
1414 |
adjust: left |
|
1415 |
) |
|
1416 |
(InputFieldSpec |
|
1417 |
name: 'ArgumentValue' |
|
1418 |
layout: (LayoutFrame 98 0 37 0 3 1.0 59 0) |
|
1419 |
activeHelpKey: selectionLabelSelectorArgument |
|
1420 |
tabable: true |
|
1421 |
model: labelActionArgument |
|
1422 |
group: inputGroup |
|
1423 |
type: string |
|
1424 |
acceptOnLostFocus: false |
|
1425 |
acceptChannel: acceptChannel |
|
1426 |
modifiedChannel: modifiedChannel |
|
1427 |
acceptOnPointerLeave: false |
|
1156 | 1428 |
) |
3247 | 1429 |
) |
1430 |
||
1431 |
) |
|
1432 |
) |
|
1433 |
(FramedBoxSpec |
|
1434 |
label: 'Cell Selection:' |
|
1435 |
name: 'CellSelection' |
|
1436 |
layout: (LayoutFrame 0 0.0 105 0 0 1.0 225 0) |
|
1437 |
labelPosition: topLeft |
|
1438 |
translateLabel: true |
|
1439 |
component: |
|
1440 |
(SpecCollection |
|
1441 |
collection: ( |
|
1442 |
(CheckBoxSpec |
|
1443 |
label: 'Is Selectable' |
|
1444 |
name: 'canSelect' |
|
1445 |
layout: (Point 95 -4) |
|
1446 |
activeHelpKey: selectionIsSelectable |
|
1447 |
tabable: true |
|
1448 |
model: canSelect |
|
1449 |
translateLabel: true |
|
1450 |
) |
|
1451 |
(LabelSpec |
|
1452 |
label: 'Selector:' |
|
1453 |
name: 'selectorLabel' |
|
1454 |
layout: (AlignmentOrigin 95 0 37 0 1 0.5) |
|
1455 |
activeHelpKey: selectionCellClickSelector |
|
1456 |
translateLabel: true |
|
1457 |
resizeForLabel: true |
|
1458 |
adjust: right |
|
1459 |
) |
|
1460 |
(InputFieldSpec |
|
1461 |
name: 'selectSelector' |
|
1462 |
layout: (LayoutFrame 98 0 26 0 3 1.0 48 0) |
|
1463 |
activeHelpKey: selectionCellClickSelector |
|
1464 |
tabable: true |
|
1465 |
model: selectSelector |
|
1466 |
group: inputGroup |
|
1467 |
type: symbolOrNil |
|
1468 |
acceptOnLostFocus: false |
|
1469 |
acceptChannel: acceptChannel |
|
1470 |
modifiedChannel: modifiedChannel |
|
1471 |
acceptOnPointerLeave: false |
|
1156 | 1472 |
) |
3247 | 1473 |
(CheckBoxSpec |
1474 |
label: 'Show Selection HighLightened' |
|
1475 |
name: 'showSelectionHighLightened' |
|
1476 |
layout: (LayoutFrame 95 0 53 0 3 1.0 77 0) |
|
1477 |
activeHelpKey: showSelectionHighLighted |
|
1478 |
tabable: true |
|
1479 |
model: showSelectionHighLighted |
|
1480 |
translateLabel: true |
|
1156 | 1481 |
) |
3247 | 1482 |
) |
1483 |
||
1484 |
) |
|
1156 | 1485 |
) |
3247 | 1486 |
(FramedBoxSpec |
1487 |
label: 'Cell Double Click:' |
|
1488 |
name: 'CellDoubleClick' |
|
1489 |
layout: (LayoutFrame 0 0.0 227 0 0 1.0 300 0) |
|
1490 |
labelPosition: topLeft |
|
1491 |
translateLabel: true |
|
1492 |
component: |
|
1493 |
(SpecCollection |
|
1494 |
collection: ( |
|
1495 |
(LabelSpec |
|
1496 |
label: 'Selector:' |
|
1497 |
name: 'doubleLabel' |
|
1498 |
layout: (AlignmentOrigin 95 0 19 0 1 0.5) |
|
1499 |
activeHelpKey: selectionCellDoubleClickSelector |
|
1500 |
translateLabel: true |
|
1501 |
resizeForLabel: true |
|
1502 |
adjust: right |
|
1503 |
) |
|
1504 |
(InputFieldSpec |
|
1505 |
name: 'doubleClicked' |
|
1506 |
layout: (LayoutFrame 98 0 8 0 3 1.0 30 0) |
|
1507 |
activeHelpKey: selectionCellDoubleClickSelector |
|
1508 |
tabable: true |
|
1509 |
model: doubleClickedSelector |
|
1510 |
group: inputGroup |
|
1511 |
type: symbolOrNil |
|
1512 |
acceptOnLostFocus: false |
|
1513 |
acceptChannel: acceptChannel |
|
1514 |
modifiedChannel: modifiedChannel |
|
1515 |
acceptOnPointerLeave: false |
|
1516 |
) |
|
1517 |
) |
|
1518 |
||
1519 |
) |
|
1520 |
) |
|
1521 |
) |
|
1522 |
||
1523 |
) |
|
1524 |
) |
|
408 | 1525 |
! |
1526 |
||
528 | 1527 |
slices |
1528 |
^#( |
|
1529 |
(Basics basicsEditSpec) |
|
1530 |
(Values valuesEditSpec) |
|
1531 |
(Format formatEditSpec) |
|
2475 | 1532 |
(Sort sortEditSpec) |
528 | 1533 |
(Selection selectionEditSpec) |
1534 |
(Frame frameEditSpec) |
|
1535 |
(Colors colorsEditSpec) |
|
1536 |
) |
|
1537 |
! |
|
1538 |
||
2475 | 1539 |
sortEditSpec |
1540 |
"This resource specification was automatically generated |
|
1541 |
by the UIPainter of ST/X." |
|
1542 |
||
1543 |
"Do not manually edit this!! If it is corrupted, |
|
1544 |
the UIPainter may not be able to read the specification." |
|
1545 |
||
1546 |
" |
|
1547 |
UIPainter new openOnClass:DataSetBuilder andSelector:#sortEditSpec |
|
1548 |
DataSetBuilder new openInterface:#sortEditSpec |
|
1549 |
" |
|
1550 |
||
1551 |
<resource: #canvas> |
|
1552 |
||
1553 |
^ |
|
3046 | 1554 |
#(FullSpec |
1555 |
name: sortEditSpec |
|
1556 |
window: |
|
1557 |
(WindowSpec |
|
1558 |
label: 'DataSet Basic' |
|
1559 |
name: 'DataSet Basic' |
|
1560 |
min: (Point 10 10) |
|
1561 |
bounds: (Rectangle 0 0 430 473) |
|
1562 |
) |
|
1563 |
component: |
|
1564 |
(SpecCollection |
|
1565 |
collection: ( |
|
1566 |
(VerticalPanelViewSpec |
|
1567 |
name: 'VerticalPanel1' |
|
1568 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
1569 |
horizontalLayout: fit |
|
1570 |
verticalLayout: top |
|
1571 |
horizontalSpace: 3 |
|
1572 |
verticalSpace: 3 |
|
1573 |
component: |
|
1574 |
(SpecCollection |
|
1575 |
collection: ( |
|
1576 |
(FramedBoxSpec |
|
1577 |
label: 'Sorting:' |
|
1578 |
name: 'sortFrame' |
|
1579 |
labelPosition: topLeft |
|
1580 |
translateLabel: true |
|
1581 |
component: |
|
1582 |
(SpecCollection |
|
1583 |
collection: ( |
|
1584 |
(CheckBoxSpec |
|
1585 |
label: 'Sortable' |
|
1586 |
name: 'isSortable' |
|
1587 |
layout: (LayoutOrigin -3 0 0 0) |
|
1588 |
activeHelpKey: isSortable |
|
1589 |
tabable: true |
|
1590 |
model: isSortable |
|
1591 |
translateLabel: true |
|
1592 |
) |
|
1593 |
(LabelSpec |
|
1594 |
label: 'Sort Selector:' |
|
1595 |
name: 'sortSelector' |
|
3247 | 1596 |
layout: (AlignmentOrigin 142 0 55 0 1 0.5) |
3046 | 1597 |
activeHelpKey: sortSelector |
1598 |
translateLabel: true |
|
1599 |
resizeForLabel: true |
|
1600 |
adjust: right |
|
2475 | 1601 |
) |
3046 | 1602 |
(InputFieldSpec |
1603 |
name: 'EntryField3' |
|
3247 | 1604 |
layout: (LayoutFrame 141 0 43 0 8 1 69 0) |
3046 | 1605 |
activeHelpKey: sortSelector |
1606 |
enableChannel: isSortable |
|
1607 |
tabable: true |
|
1608 |
model: sortSelector |
|
1609 |
group: inputGroup |
|
1610 |
type: symbolOrNil |
|
1611 |
immediateAccept: false |
|
1612 |
acceptOnLeave: false |
|
1613 |
acceptOnLostFocus: false |
|
1614 |
acceptChannel: acceptChannel |
|
1615 |
modifiedChannel: modifiedChannel |
|
1616 |
acceptOnPointerLeave: false |
|
1617 |
) |
|
1618 |
(LabelSpec |
|
1619 |
label: 'Sort Block Selector:' |
|
1620 |
name: 'Label1' |
|
3247 | 1621 |
layout: (AlignmentOrigin 142 0 85 0 1 0.5) |
3046 | 1622 |
activeHelpKey: sortBlockSelector |
1623 |
translateLabel: true |
|
1624 |
resizeForLabel: true |
|
1625 |
adjust: right |
|
1626 |
) |
|
1627 |
(InputFieldSpec |
|
1628 |
name: 'EntryField4' |
|
3247 | 1629 |
layout: (LayoutFrame 141 0 73 0 8 1 99 0) |
3046 | 1630 |
activeHelpKey: sortBlockSelector |
1631 |
enableChannel: isSortable |
|
1632 |
tabable: true |
|
1633 |
model: sortBlockSelector |
|
1634 |
group: inputGroup |
|
1635 |
type: symbolOrNil |
|
1636 |
immediateAccept: false |
|
1637 |
acceptOnLeave: false |
|
1638 |
acceptOnLostFocus: false |
|
1639 |
acceptChannel: acceptChannel |
|
1640 |
modifiedChannel: modifiedChannel |
|
1641 |
acceptOnPointerLeave: false |
|
1642 |
) |
|
1643 |
) |
|
1644 |
||
1645 |
) |
|
3247 | 1646 |
extent: (Point 430 140) |
2475 | 1647 |
) |
3046 | 1648 |
) |
1649 |
||
1650 |
) |
|
2475 | 1651 |
) |
3046 | 1652 |
) |
1653 |
||
1654 |
) |
|
1655 |
) |
|
2475 | 1656 |
! |
1657 |
||
408 | 1658 |
valuesEditSpec |
825 | 1659 |
"This resource specification was automatically generated |
1660 |
by the UIPainter of ST/X." |
|
408 | 1661 |
|
825 | 1662 |
"Do not manually edit this!! If it is corrupted, |
1663 |
the UIPainter may not be able to read the specification." |
|
408 | 1664 |
|
1665 |
" |
|
1666 |
UIPainter new openOnClass:DataSetBuilder andSelector:#valuesEditSpec |
|
1667 |
DataSetBuilder new openInterface:#valuesEditSpec |
|
1668 |
" |
|
1669 |
||
1670 |
<resource: #canvas> |
|
1671 |
||
1156 | 1672 |
^ |
3046 | 1673 |
#(FullSpec |
1674 |
name: valuesEditSpec |
|
1675 |
window: |
|
1676 |
(WindowSpec |
|
1677 |
label: 'DataSet Basic' |
|
1678 |
name: 'DataSet Basic' |
|
1679 |
min: (Point 10 10) |
|
3247 | 1680 |
bounds: (Rectangle 0 0 472 460) |
3046 | 1681 |
) |
1682 |
component: |
|
1683 |
(SpecCollection |
|
1684 |
collection: ( |
|
1685 |
(VerticalPanelViewSpec |
|
1686 |
name: 'VerticalPanel1' |
|
1687 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
1688 |
horizontalLayout: fit |
|
1689 |
verticalLayout: top |
|
1690 |
horizontalSpace: 3 |
|
1691 |
verticalSpace: 3 |
|
1692 |
component: |
|
1693 |
(SpecCollection |
|
1694 |
collection: ( |
|
1695 |
(FramedBoxSpec |
|
1696 |
label: 'Value Selectors:' |
|
1697 |
name: 'valuesBox' |
|
1698 |
labelPosition: topLeft |
|
1699 |
translateLabel: true |
|
1700 |
component: |
|
1701 |
(SpecCollection |
|
1702 |
collection: ( |
|
1703 |
(LabelSpec |
|
1704 |
label: 'Read:' |
|
1705 |
name: 'readLabel' |
|
1706 |
layout: (AlignmentOrigin 116 0 15 0 1 0.5) |
|
1707 |
activeHelpKey: valuesReadSelector |
|
1708 |
translateLabel: true |
|
1709 |
resizeForLabel: true |
|
1710 |
adjust: right |
|
1711 |
) |
|
1712 |
(InputFieldSpec |
|
1713 |
name: 'readSelector' |
|
1714 |
layout: (LayoutFrame 116 0 4 0 2 1.0 26 0) |
|
1715 |
activeHelpKey: valuesReadSelector |
|
1716 |
tabable: true |
|
1717 |
model: readSelector |
|
1718 |
group: inputGroup |
|
1719 |
type: symbolOrNil |
|
1720 |
acceptOnLostFocus: false |
|
1721 |
acceptChannel: acceptChannel |
|
1722 |
modifiedChannel: modifiedChannel |
|
1723 |
acceptOnPointerLeave: false |
|
1724 |
) |
|
1725 |
(LabelSpec |
|
1726 |
label: 'Write:' |
|
1727 |
name: 'writeLabel' |
|
1728 |
layout: (AlignmentOrigin 116 0 40 0 1 0.5) |
|
1729 |
activeHelpKey: valuesWriteSelector |
|
1730 |
translateLabel: true |
|
1731 |
resizeForLabel: true |
|
1732 |
adjust: right |
|
1733 |
) |
|
1734 |
(InputFieldSpec |
|
1735 |
name: 'writeSelector' |
|
1736 |
layout: (LayoutFrame 116 0 29 0 2 1.0 51 0) |
|
1737 |
activeHelpKey: valuesWriteSelector |
|
1738 |
tabable: true |
|
1739 |
model: writeSelector |
|
1740 |
group: inputGroup |
|
1741 |
type: symbolOrNil |
|
1742 |
acceptOnLostFocus: false |
|
1743 |
acceptChannel: acceptChannel |
|
1744 |
modifiedChannel: modifiedChannel |
|
1745 |
acceptOnPointerLeave: false |
|
1746 |
) |
|
1747 |
(LabelSpec |
|
1748 |
label: 'Converter:' |
|
1749 |
name: 'converterLabel' |
|
1750 |
layout: (AlignmentOrigin 116 0 65 0 1 0.5) |
|
1751 |
activeHelpKey: converterSelector |
|
1752 |
translateLabel: true |
|
1753 |
resizeForLabel: true |
|
1754 |
adjust: right |
|
1755 |
) |
|
1756 |
(InputFieldSpec |
|
1757 |
name: 'converterField' |
|
1758 |
layout: (LayoutFrame 116 0 54 0 2 1.0 76 0) |
|
1759 |
activeHelpKey: converterSelector |
|
1760 |
tabable: true |
|
1761 |
model: converterSelector |
|
1762 |
group: inputGroup |
|
1763 |
type: symbolOrNil |
|
1764 |
acceptOnLostFocus: false |
|
1765 |
acceptChannel: acceptChannel |
|
1766 |
modifiedChannel: modifiedChannel |
|
1767 |
acceptOnPointerLeave: false |
|
1768 |
) |
|
1769 |
(LabelSpec |
|
1770 |
label: 'Print:' |
|
1771 |
name: 'printLabel' |
|
1772 |
layout: (AlignmentOrigin 116 0 90 0 1 0.5) |
|
1773 |
activeHelpKey: valuesPrintSelector |
|
1774 |
translateLabel: true |
|
1775 |
resizeForLabel: true |
|
1776 |
adjust: right |
|
1777 |
) |
|
1778 |
(InputFieldSpec |
|
1779 |
name: 'printSelector' |
|
1780 |
layout: (LayoutFrame 116 0 79 0 2 1.0 101 0) |
|
1781 |
activeHelpKey: valuesPrintSelector |
|
1782 |
tabable: true |
|
1783 |
model: printSelector |
|
1784 |
group: inputGroup |
|
1785 |
type: symbolOrNil |
|
1786 |
acceptOnLostFocus: false |
|
1787 |
acceptChannel: acceptChannel |
|
1788 |
modifiedChannel: modifiedChannel |
|
1789 |
acceptOnPointerLeave: false |
|
1790 |
) |
|
1791 |
(LabelSpec |
|
1792 |
label: 'Visibility:' |
|
1793 |
name: 'visibilityLabel' |
|
1794 |
layout: (AlignmentOrigin 116 0 115 0 1 0.5) |
|
1795 |
activeHelpKey: valuesVisibilitySelector |
|
1796 |
translateLabel: true |
|
1797 |
resizeForLabel: true |
|
1798 |
adjust: right |
|
1799 |
) |
|
1800 |
(InputFieldSpec |
|
1801 |
name: 'visibilitySelector' |
|
1802 |
layout: (LayoutFrame 116 0 104 0 2 1.0 126 0) |
|
1803 |
activeHelpKey: valuesVisibilitySelector |
|
1804 |
tabable: true |
|
1805 |
model: visibilitySelector |
|
1806 |
group: inputGroup |
|
1807 |
type: symbolOrNil |
|
1808 |
acceptOnLostFocus: false |
|
1809 |
acceptChannel: acceptChannel |
|
1810 |
modifiedChannel: modifiedChannel |
|
1811 |
acceptOnPointerLeave: false |
|
1812 |
) |
|
1813 |
) |
|
1814 |
||
1815 |
) |
|
3247 | 1816 |
extent: (Point 472 170) |
3046 | 1817 |
) |
1818 |
(FramedBoxSpec |
|
1819 |
label: 'Range:' |
|
1820 |
name: 'rangeBox' |
|
1821 |
labelPosition: topLeft |
|
1822 |
translateLabel: true |
|
1823 |
component: |
|
1824 |
(SpecCollection |
|
1825 |
collection: ( |
|
1826 |
(LabelSpec |
|
1827 |
label: 'Min:' |
|
1828 |
name: 'Label1' |
|
1829 |
layout: (LayoutFrame 33 0 3 0 116 0 20 0) |
|
1830 |
activeHelpKey: minValue |
|
1831 |
translateLabel: true |
|
1832 |
resizeForLabel: true |
|
1833 |
adjust: right |
|
2816 | 1834 |
) |
3046 | 1835 |
(InputFieldSpec |
1836 |
name: 'EntryField1' |
|
1837 |
layout: (LayoutFrame 116 0 1 0 21 0.5 23 0) |
|
1838 |
activeHelpKey: minValue |
|
1839 |
tabable: true |
|
1840 |
model: minValue |
|
1841 |
group: inputGroup |
|
1842 |
type: numberOrNil |
|
1843 |
acceptOnLeave: true |
|
1844 |
acceptOnLostFocus: true |
|
1845 |
acceptChannel: acceptChannel |
|
1846 |
modifiedChannel: modifiedChannel |
|
1847 |
acceptOnPointerLeave: true |
|
1848 |
) |
|
1849 |
(LabelSpec |
|
1850 |
label: 'Max:' |
|
1851 |
name: 'Label2' |
|
1852 |
layout: (LayoutFrame 21 0.5 3 0 70 0.5 20 0) |
|
1853 |
activeHelpKey: maxValue |
|
1854 |
translateLabel: true |
|
1855 |
resizeForLabel: true |
|
1856 |
adjust: right |
|
1857 |
) |
|
1858 |
(InputFieldSpec |
|
1859 |
name: 'EntryField2' |
|
1860 |
layout: (LayoutFrame 70 0.5 1 0 -2 1.0 23 0) |
|
1861 |
activeHelpKey: maxValue |
|
1862 |
tabable: true |
|
1863 |
model: maxValue |
|
1864 |
group: inputGroup |
|
1865 |
type: numberOrNil |
|
1866 |
acceptOnLeave: true |
|
1867 |
acceptOnLostFocus: true |
|
1868 |
acceptChannel: acceptChannel |
|
1869 |
modifiedChannel: modifiedChannel |
|
1870 |
acceptOnPointerLeave: true |
|
1871 |
) |
|
1872 |
) |
|
1873 |
||
1874 |
) |
|
3247 | 1875 |
extent: (Point 472 65) |
3046 | 1876 |
) |
1877 |
(FramedBoxSpec |
|
1878 |
label: 'Popup Menu:' |
|
1879 |
name: 'menusBox' |
|
1880 |
labelPosition: topLeft |
|
1881 |
translateLabel: true |
|
1882 |
component: |
|
1883 |
(SpecCollection |
|
1884 |
collection: ( |
|
1885 |
(LabelSpec |
|
1886 |
label: 'Selector:' |
|
1887 |
name: 'menuLabel' |
|
1888 |
layout: (AlignmentOrigin 116 0 12 0 1 0.5) |
|
1889 |
activeHelpKey: valuesMenuSelector |
|
1890 |
translateLabel: true |
|
1891 |
resizeForLabel: true |
|
1892 |
adjust: right |
|
1893 |
) |
|
1894 |
(InputFieldSpec |
|
1895 |
name: 'menuSelector' |
|
1896 |
layout: (LayoutFrame 116 0 1 0 2 1.0 23 0) |
|
1897 |
activeHelpKey: valuesMenuSelector |
|
1898 |
tabable: true |
|
1899 |
model: menu |
|
1900 |
group: inputGroup |
|
1901 |
type: symbolOrNil |
|
1902 |
acceptOnLostFocus: false |
|
1903 |
acceptChannel: acceptChannel |
|
1904 |
modifiedChannel: modifiedChannel |
|
1905 |
acceptOnPointerLeave: false |
|
1906 |
) |
|
1907 |
(CheckBoxSpec |
|
1908 |
label: 'Fetch Menu from Application' |
|
1909 |
name: 'CheckBox1' |
|
1910 |
layout: (LayoutFrame 116 0 28 0 398 0 50 0) |
|
1911 |
activeHelpKey: valuesMenuFromApplication |
|
1912 |
model: menuFromApplication |
|
1913 |
translateLabel: true |
|
1914 |
valueChangeSelector: setModified |
|
2816 | 1915 |
) |
3046 | 1916 |
) |
1917 |
||
1918 |
) |
|
3247 | 1919 |
extent: (Point 472 90) |
3046 | 1920 |
) |
1921 |
(FramedBoxSpec |
|
1922 |
label: 'Combo List/Box Selectors:' |
|
1923 |
name: 'comboSelectorsBox' |
|
1924 |
labelPosition: topLeft |
|
1925 |
translateLabel: true |
|
1926 |
component: |
|
1927 |
(SpecCollection |
|
1928 |
collection: ( |
|
1929 |
(LabelSpec |
|
1930 |
label: 'Choices:' |
|
1931 |
name: 'ChoicesLabel' |
|
1932 |
layout: (AlignmentOrigin 116 0 15 0 1 0.5) |
|
1933 |
activeHelpKey: valuesChoicesSelector |
|
1934 |
translateLabel: true |
|
1935 |
resizeForLabel: true |
|
1936 |
adjust: right |
|
1937 |
) |
|
1938 |
(InputFieldSpec |
|
1939 |
name: 'ChoicesField' |
|
1940 |
layout: (LayoutFrame 116 0 4 0 2 1.0 26 0) |
|
1941 |
activeHelpKey: valuesChoicesSelector |
|
1942 |
tabable: true |
|
1943 |
model: choices |
|
1944 |
group: inputGroup |
|
1945 |
type: symbolOrNil |
|
1946 |
acceptOnLeave: false |
|
1947 |
acceptOnLostFocus: false |
|
1948 |
acceptChannel: acceptChannel |
|
1949 |
modifiedChannel: modifiedChannel |
|
1950 |
acceptOnPointerLeave: false |
|
1951 |
) |
|
1952 |
(LabelSpec |
|
1953 |
label: 'Xlated Choices:' |
|
1954 |
name: 'XChoicesLabel' |
|
1955 |
layout: (AlignmentOrigin 116 0 40 0 1 0.5) |
|
1956 |
activeHelpKey: valuesXChoicesSelector |
|
1957 |
translateLabel: true |
|
1958 |
resizeForLabel: true |
|
1959 |
adjust: right |
|
2816 | 1960 |
) |
3046 | 1961 |
(InputFieldSpec |
1962 |
name: 'XChoicesField' |
|
1963 |
layout: (LayoutFrame 116 0 29 0 2 1.0 51 0) |
|
1964 |
activeHelpKey: valuesXChoicesSelector |
|
1965 |
tabable: true |
|
1966 |
model: translatedChoices |
|
1967 |
group: inputGroup |
|
1968 |
type: symbolOrNil |
|
1969 |
acceptOnLeave: false |
|
1970 |
acceptOnLostFocus: false |
|
1971 |
acceptChannel: acceptChannel |
|
1972 |
modifiedChannel: modifiedChannel |
|
1973 |
acceptOnPointerLeave: false |
|
1974 |
) |
|
1975 |
(LabelSpec |
|
1976 |
label: 'Editable:' |
|
1977 |
name: 'EditableLabel' |
|
1978 |
layout: (AlignmentOrigin 116 0 65 0 1 0.5) |
|
1979 |
activeHelpKey: showComboFieldSelector |
|
1980 |
translateLabel: true |
|
1981 |
resizeForLabel: true |
|
1982 |
adjust: right |
|
2816 | 1983 |
) |
3046 | 1984 |
(InputFieldSpec |
1985 |
name: 'EditableField' |
|
1986 |
layout: (LayoutFrame 116 0 54 0 2 1.0 76 0) |
|
1987 |
activeHelpKey: showComboFieldSelector |
|
1988 |
tabable: true |
|
1989 |
model: showComboFieldSelector |
|
1990 |
group: inputGroup |
|
1991 |
type: symbolOrNil |
|
1992 |
acceptOnLeave: false |
|
1993 |
acceptOnLostFocus: false |
|
1994 |
acceptChannel: acceptChannel |
|
1995 |
modifiedChannel: modifiedChannel |
|
1996 |
acceptOnPointerLeave: false |
|
1997 |
) |
|
1998 |
) |
|
1999 |
||
2000 |
) |
|
3247 | 2001 |
extent: (Point 472 120) |
1156 | 2002 |
) |
3046 | 2003 |
) |
2004 |
||
2005 |
) |
|
1156 | 2006 |
) |
3046 | 2007 |
) |
2008 |
||
2009 |
) |
|
2010 |
) |
|
332 | 2011 |
! |
2012 |
||
2013 |
windowSpec |
|
817 | 2014 |
"This resource specification was automatically generated |
2015 |
by the UIPainter of ST/X." |
|
332 | 2016 |
|
817 | 2017 |
"Do not manually edit this!! If it is corrupted, |
2018 |
the UIPainter may not be able to read the specification." |
|
332 | 2019 |
|
2020 |
" |
|
2021 |
UIPainter new openOnClass:DataSetBuilder andSelector:#windowSpec |
|
2022 |
DataSetBuilder new openInterface:#windowSpec |
|
817 | 2023 |
DataSetBuilder open |
332 | 2024 |
" |
2025 |
||
2026 |
<resource: #canvas> |
|
2027 |
||
1156 | 2028 |
^ |
3247 | 2029 |
#(FullSpec |
2030 |
name: windowSpec |
|
2031 |
window: |
|
2032 |
(WindowSpec |
|
2033 |
label: 'Data Set Builder' |
|
2034 |
name: 'Data Set Builder' |
|
2035 |
min: (Point 10 10) |
|
2036 |
bounds: (Rectangle 0 0 633 658) |
|
2037 |
menu: menu |
|
2038 |
) |
|
2039 |
component: |
|
2040 |
(SpecCollection |
|
2041 |
collection: ( |
|
2042 |
(MenuPanelSpec |
|
2043 |
name: 'menuToolbarView' |
|
2044 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 32 0) |
|
2045 |
tabable: true |
|
2046 |
menu: menuToolbar |
|
2047 |
) |
|
2048 |
(VariableVerticalPanelSpec |
|
2049 |
name: 'mainPanel' |
|
2050 |
layout: (LayoutFrame 0 0.0 38 0.0 0 1.0 -26 1.0) |
|
2051 |
component: |
|
2052 |
(SpecCollection |
|
2053 |
collection: ( |
|
2054 |
(FramedBoxSpec |
|
2055 |
label: 'Table Columns' |
|
2056 |
name: 'FramedBox' |
|
2057 |
labelPosition: topLeft |
|
2058 |
translateLabel: true |
|
2059 |
component: |
|
2060 |
(SpecCollection |
|
2061 |
collection: ( |
|
2062 |
(DataSetSpec |
|
2063 |
name: 'columnView' |
|
2064 |
layout: (LayoutFrame -2 0.0 0 0.0 2 1.0 4 1.0) |
|
2065 |
hasHorizontalScrollBar: true |
|
2066 |
hasVerticalScrollBar: false |
|
2067 |
miniScrollerHorizontal: true |
|
2068 |
useIndex: false |
|
2069 |
has3Dseparators: true |
|
1156 | 2070 |
) |
3247 | 2071 |
) |
2072 |
||
2073 |
) |
|
2074 |
) |
|
2075 |
(VariableHorizontalPanelSpec |
|
2076 |
name: 'VariablePanel' |
|
2077 |
level: -1 |
|
2078 |
component: |
|
2079 |
(SpecCollection |
|
2080 |
collection: ( |
|
2081 |
(ViewSpec |
|
2082 |
name: 'labelsView' |
|
2083 |
component: |
|
2084 |
(SpecCollection |
|
2085 |
collection: ( |
|
2086 |
(SequenceViewSpec |
|
2087 |
name: 'labelAndColumns' |
|
2088 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
2089 |
tabable: true |
|
2090 |
model: selectedColumnModel |
|
2091 |
menu: menuEdit |
|
2092 |
hasHorizontalScrollBar: true |
|
2093 |
hasVerticalScrollBar: true |
|
2094 |
miniScrollerHorizontal: true |
|
2095 |
isMultiSelect: true |
|
2096 |
useIndex: true |
|
2097 |
sequenceList: seqList |
|
1156 | 2098 |
) |
3247 | 2099 |
) |
2100 |
||
2101 |
) |
|
2102 |
postBuildCallback: postBuildListOfItemsView: |
|
2103 |
) |
|
2104 |
(ViewSpec |
|
2105 |
name: 'specView' |
|
2106 |
level: -1 |
|
2107 |
component: |
|
2108 |
(SpecCollection |
|
2109 |
collection: ( |
|
2110 |
(NoteBookViewSpec |
|
2111 |
name: 'NoteBook' |
|
2112 |
layout: (LayoutFrame 1 0.0 0 0.0 0 1.0 -30 1.0) |
|
2113 |
tabable: true |
|
2114 |
model: tabModel |
|
2115 |
menu: tabList |
|
2116 |
useIndex: true |
|
2117 |
translateLabel: true |
|
2118 |
canvas: canvasHolder |
|
2119 |
keepCanvasAlive: true |
|
1156 | 2120 |
) |
3247 | 2121 |
(UISubSpecification |
2122 |
name: 'SubSpecification' |
|
2123 |
layout: (LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0) |
|
2124 |
majorKey: ToolApplicationModel |
|
2125 |
minorKey: windowSpecForCommit |
|
2126 |
) |
|
2127 |
) |
|
2128 |
||
2129 |
) |
|
2130 |
postBuildCallback: postBuildSpecView: |
|
1156 | 2131 |
) |
3247 | 2132 |
) |
2133 |
||
2134 |
) |
|
2135 |
handles: (Any 0.23538700000000001 1.0) |
|
1156 | 2136 |
) |
3247 | 2137 |
) |
2138 |
||
2139 |
) |
|
2140 |
handles: (Any 0.20874799999999999 1.0) |
|
1156 | 2141 |
) |
3247 | 2142 |
(UISubSpecification |
2143 |
name: 'infoBarSubSpec' |
|
2144 |
layout: (LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
2145 |
majorKey: ToolApplicationModel |
|
2146 |
minorKey: windowSpecForInfoBar |
|
2147 |
) |
|
2148 |
) |
|
2149 |
||
2150 |
) |
|
2151 |
) |
|
332 | 2152 |
! ! |
2153 |
||
2154 |
!DataSetBuilder class methodsFor:'menu specs'! |
|
2155 |
||
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2156 |
fileMenu |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2157 |
"This resource specification was automatically generated |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2158 |
by the MenuEditor of ST/X." |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2159 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2160 |
"Do not manually edit this!! If it is corrupted, |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2161 |
the MenuEditor may not be able to read the specification." |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2162 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2163 |
" |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2164 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#fileMenu |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2165 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder fileMenu)) startUp |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2166 |
" |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2167 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2168 |
<resource: #menu> |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2169 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2170 |
^ |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2171 |
#(Menu |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2172 |
( |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2173 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2174 |
activeHelpKey: fileNew |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2175 |
label: 'New' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2176 |
itemValue: doNew |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2177 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2178 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2179 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2180 |
label: '-' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2181 |
isVisible: notEditingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2182 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2183 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2184 |
activeHelpKey: fileLoad |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2185 |
label: 'Load...' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2186 |
itemValue: doLoad |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2187 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2188 |
isVisible: notEditingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2189 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2190 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2191 |
label: '-' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2192 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2193 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2194 |
activeHelpKey: fileSave |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2195 |
label: 'Save' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2196 |
itemValue: doSave |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2197 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2198 |
isVisible: editingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2199 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2200 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2201 |
activeHelpKey: fileSaveMethod |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2202 |
label: 'Save' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2203 |
itemValue: doSave |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2204 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2205 |
isVisible: notEditingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2206 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2207 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2208 |
activeHelpKey: fileSaveAsMethod |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2209 |
label: 'Save As...' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2210 |
itemValue: doSaveAs |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2211 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2212 |
isVisible: notEditingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2213 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2214 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2215 |
label: '-' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2216 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2217 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2218 |
activeHelpKey: pickColumns |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2219 |
label: 'Pick Columns...' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2220 |
itemValue: doPickColumns |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2221 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2222 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2223 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2224 |
label: '-' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2225 |
isVisible: isStandAlone |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2226 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2227 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2228 |
activeHelpKey: fileBrowseClass |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2229 |
label: 'Browse Class' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2230 |
itemValue: doBrowseClass |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2231 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2232 |
isVisible: isStandAlone |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2233 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2234 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2235 |
label: '-' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2236 |
isVisible: isStandAlone |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2237 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2238 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2239 |
activeHelpKey: fileExit |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2240 |
label: 'Exit' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2241 |
itemValue: closeRequest |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2242 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2243 |
isVisible: isStandAlone |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2244 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2245 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2246 |
nil |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2247 |
nil |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2248 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2249 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2250 |
|
408 | 2251 |
menu |
818 | 2252 |
"This resource specification was automatically generated |
2253 |
by the MenuEditor of ST/X." |
|
332 | 2254 |
|
818 | 2255 |
"Do not manually edit this!! If it is corrupted, |
2256 |
the MenuEditor may not be able to read the specification." |
|
332 | 2257 |
|
2258 |
" |
|
408 | 2259 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#menu |
2260 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder menu)) startUp |
|
332 | 2261 |
" |
2262 |
||
2263 |
<resource: #menu> |
|
2264 |
||
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2265 |
^ |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2266 |
#(Menu |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2267 |
( |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2268 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2269 |
label: 'File' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2270 |
translateLabel: true |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2271 |
submenuChannel: fileMenu |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2272 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2273 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2274 |
label: 'Edit' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2275 |
translateLabel: true |
2262 | 2276 |
submenuChannel: menuEditWithoutAccelerators |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2277 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2278 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2279 |
label: 'Add' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2280 |
translateLabel: true |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2281 |
submenu: |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2282 |
(Menu |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2283 |
( |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2284 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2285 |
activeHelpKey: addColumn |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2286 |
enabled: columnIsNotEditing |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2287 |
label: 'Column' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2288 |
itemValue: doCreateColumn |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2289 |
translateLabel: true |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2290 |
labelImage: (ResourceRetriever nil newColumnIcon 'Column') |
521 | 2291 |
) |
2262 | 2292 |
(MenuItem |
2293 |
activeHelpKey: addNonSelectableColumn |
|
2294 |
enabled: columnIsNotEditing |
|
2295 |
label: 'Column (Non-Selectable)' |
|
2296 |
itemValue: doCreateNonSelectableColumn |
|
2297 |
translateLabel: true |
|
2298 |
labelImage: (ResourceRetriever DataSetBuilder newColumnNonSelectableIcon 'Column (Non-Selectable)') |
|
2299 |
) |
|
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2300 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2301 |
nil |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2302 |
nil |
521 | 2303 |
) |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2304 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2305 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2306 |
label: 'Generate' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2307 |
translateLabel: true |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2308 |
isVisible: notEditingSpecOnly |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2309 |
submenu: |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2310 |
(Menu |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2311 |
( |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2312 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2313 |
activeHelpKey: fileDefineClass |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2314 |
label: 'Define Row Class...' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2315 |
itemValue: doDefineRowClass |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2316 |
translateLabel: true |
818 | 2317 |
) |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2318 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2319 |
activeHelpKey: browseRowClass |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2320 |
label: 'Browse Row Class' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2321 |
itemValue: doBrowseRowClass |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2322 |
translateLabel: true |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2323 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2324 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2325 |
label: '-' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2326 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2327 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2328 |
activeHelpKey: generateCode |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2329 |
label: 'Generate Code' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2330 |
itemValue: doGenerateCode |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2331 |
translateLabel: true |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2332 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2333 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2334 |
nil |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2335 |
nil |
818 | 2336 |
) |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2337 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2338 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2339 |
label: 'History' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2340 |
translateLabel: true |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2341 |
isVisible: isStandAlone |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2342 |
submenuChannel: menuHistory |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2343 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2344 |
(MenuItem |
2262 | 2345 |
label: 'MENU_Help' |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2346 |
translateLabel: true |
2126
312bad3ba846
conditionalRight in startGroup
Claus Gittinger <cg@exept.de>
parents:
2074
diff
changeset
|
2347 |
startGroup: conditionalRight |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2348 |
submenuChannel: menuHelp |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2349 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2350 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2351 |
nil |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2352 |
nil |
332 | 2353 |
) |
2354 |
! |
|
2355 |
||
408 | 2356 |
menuEdit |
825 | 2357 |
"This resource specification was automatically generated |
2358 |
by the MenuEditor of ST/X." |
|
332 | 2359 |
|
825 | 2360 |
"Do not manually edit this!! If it is corrupted, |
2361 |
the MenuEditor may not be able to read the specification." |
|
332 | 2362 |
|
2363 |
" |
|
408 | 2364 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#menuEdit |
2365 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder menuEdit)) startUp |
|
2366 |
" |
|
2367 |
||
2368 |
<resource: #menu> |
|
2369 |
||
2262 | 2370 |
^ |
2371 |
#(Menu |
|
2372 |
( |
|
2373 |
(MenuItem |
|
2374 |
activeHelpKey: editCut |
|
2375 |
enabled: isColumnSelected |
|
2376 |
label: 'Cut' |
|
2377 |
itemValue: doCut |
|
2378 |
translateLabel: true |
|
2379 |
shortcutKey: Cut |
|
2380 |
) |
|
2381 |
(MenuItem |
|
2382 |
activeHelpKey: editCopy |
|
2383 |
enabled: isColumnSelected |
|
2384 |
label: 'Copy' |
|
2385 |
itemValue: doCopy |
|
2386 |
translateLabel: true |
|
2387 |
shortcutKey: Copy |
|
2388 |
) |
|
2389 |
(MenuItem |
|
2390 |
activeHelpKey: editPaste |
|
2391 |
enabled: valueOfHavingClipboard |
|
2392 |
label: 'Paste' |
|
2393 |
itemValue: doPaste |
|
2394 |
translateLabel: true |
|
2395 |
shortcutKey: Paste |
|
2396 |
) |
|
2397 |
(MenuItem |
|
2398 |
label: '-' |
|
2399 |
) |
|
2400 |
(MenuItem |
|
2401 |
activeHelpKey: editMoveUp |
|
2402 |
enabled: isColumnSelected |
|
2403 |
label: 'Move Up' |
|
2404 |
itemValue: doMoveColumn: |
|
2405 |
translateLabel: true |
|
2406 |
shortcutKey: CtrlCursorUp |
|
2407 |
labelImage: (ResourceRetriever Icon upIcon 'Move Up') |
|
2408 |
argument: up |
|
2409 |
) |
|
2410 |
(MenuItem |
|
2411 |
activeHelpKey: editMoveDown |
|
2412 |
enabled: isColumnSelected |
|
2413 |
label: 'Move Down' |
|
2414 |
itemValue: doMoveColumn: |
|
2415 |
translateLabel: true |
|
2416 |
shortcutKey: CtrlCursorDown |
|
2417 |
labelImage: (ResourceRetriever Icon downIcon 'Move Down') |
|
2418 |
argument: down |
|
2419 |
) |
|
2420 |
(MenuItem |
|
2421 |
label: '-' |
|
2422 |
) |
|
2423 |
(MenuItem |
|
2424 |
label: 'Separators' |
|
2425 |
translateLabel: true |
|
2426 |
submenu: |
|
2427 |
(Menu |
|
2428 |
( |
|
2429 |
(MenuItem |
|
2430 |
label: 'Label Columns' |
|
2431 |
translateLabel: true |
|
2432 |
submenu: |
|
2433 |
(Menu |
|
2434 |
( |
|
2435 |
(MenuItem |
|
2436 |
enabled: hasSelection |
|
2437 |
label: 'Add Separators' |
|
2438 |
itemValue: addLabelColumnSeparators |
|
2439 |
translateLabel: true |
|
2440 |
) |
|
2441 |
(MenuItem |
|
2442 |
enabled: hasSelection |
|
2443 |
label: 'Remove Separators' |
|
2444 |
itemValue: removeLabelColumnSeparators |
|
2445 |
translateLabel: true |
|
2446 |
) |
|
2447 |
) |
|
2448 |
nil |
|
2449 |
nil |
|
2450 |
) |
|
2451 |
) |
|
2452 |
(MenuItem |
|
2453 |
label: 'Label Row && Columns' |
|
2454 |
translateLabel: true |
|
2455 |
submenu: |
|
2456 |
(Menu |
|
2457 |
( |
|
2458 |
(MenuItem |
|
2459 |
enabled: hasSelection |
|
2460 |
label: 'Add Separators' |
|
2461 |
itemValue: addLabelSeparators |
|
2462 |
translateLabel: true |
|
2463 |
) |
|
2464 |
(MenuItem |
|
2465 |
enabled: hasSelection |
|
2466 |
label: 'Remove Separators' |
|
2467 |
itemValue: removeLabelSeparators |
|
2468 |
translateLabel: true |
|
2469 |
) |
|
2470 |
) |
|
2471 |
nil |
|
2472 |
nil |
|
2473 |
) |
|
2474 |
) |
|
2475 |
(MenuItem |
|
2476 |
label: '-' |
|
2477 |
) |
|
2478 |
(MenuItem |
|
2479 |
label: 'Cell Rows' |
|
2480 |
translateLabel: true |
|
2481 |
submenu: |
|
2482 |
(Menu |
|
2483 |
( |
|
2484 |
(MenuItem |
|
2485 |
enabled: hasSelection |
|
2486 |
label: 'Add Separators' |
|
2487 |
itemValue: addRowSeparators |
|
2488 |
translateLabel: true |
|
2489 |
) |
|
2490 |
(MenuItem |
|
2491 |
enabled: hasSelection |
|
2492 |
label: 'Remove Separators' |
|
2493 |
itemValue: removeRowSeparators |
|
2494 |
translateLabel: true |
|
2495 |
) |
|
2496 |
) |
|
2497 |
nil |
|
2498 |
nil |
|
2499 |
) |
|
2500 |
) |
|
2501 |
(MenuItem |
|
2502 |
label: 'Cell Columns' |
|
2503 |
translateLabel: true |
|
2504 |
submenu: |
|
2505 |
(Menu |
|
2506 |
( |
|
2507 |
(MenuItem |
|
2508 |
enabled: hasSelection |
|
2509 |
label: 'Add Separators' |
|
2510 |
itemValue: addLabelColumnSeparators |
|
2511 |
translateLabel: true |
|
2512 |
) |
|
2513 |
(MenuItem |
|
2514 |
enabled: hasSelection |
|
2515 |
label: 'Remove' |
|
2516 |
itemValue: removeLabelColumnSeparators |
|
2517 |
translateLabel: true |
|
2518 |
) |
|
2519 |
) |
|
2520 |
nil |
|
2521 |
nil |
|
2522 |
) |
|
2523 |
) |
|
2524 |
(MenuItem |
|
2525 |
label: 'Cell Rows && Columns' |
|
2526 |
translateLabel: true |
|
2527 |
submenu: |
|
2528 |
(Menu |
|
2529 |
( |
|
2530 |
(MenuItem |
|
2531 |
enabled: hasSelection |
|
2532 |
label: 'Add Separators' |
|
2533 |
itemValue: addCellSeparators |
|
2534 |
translateLabel: true |
|
2535 |
) |
|
2536 |
(MenuItem |
|
2537 |
enabled: hasSelection |
|
2538 |
label: 'Remove Separators' |
|
2539 |
itemValue: removeCellSeparators |
|
2540 |
translateLabel: true |
|
2541 |
) |
|
2542 |
) |
|
2543 |
nil |
|
2544 |
nil |
|
2545 |
) |
|
2546 |
) |
|
2547 |
) |
|
2548 |
nil |
|
2549 |
nil |
|
408 | 2550 |
) |
2262 | 2551 |
) |
2380
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2552 |
(MenuItem |
2262 | 2553 |
label: 'Alignment' |
2554 |
translateLabel: true |
|
2555 |
submenu: |
|
2556 |
(Menu |
|
2557 |
( |
|
2558 |
(MenuItem |
|
2559 |
enabled: hasSelection |
|
2560 |
label: 'Make Labels Left Aligned' |
|
2561 |
itemValue: alignLabelsLeft |
|
2562 |
translateLabel: true |
|
2563 |
) |
|
2564 |
(MenuItem |
|
2565 |
enabled: hasSelection |
|
2566 |
label: 'Make Labels Centered' |
|
2567 |
itemValue: alignLabelsCentered |
|
2568 |
translateLabel: true |
|
2569 |
) |
|
2570 |
(MenuItem |
|
2571 |
enabled: hasSelection |
|
2572 |
label: 'Make Labels Right Aligned' |
|
2573 |
itemValue: alignLabelsRight |
|
2574 |
translateLabel: true |
|
2575 |
) |
|
2576 |
(MenuItem |
|
2577 |
label: '-' |
|
2578 |
) |
|
2579 |
(MenuItem |
|
2580 |
enabled: hasSelection |
|
2581 |
label: 'Make Cell Left Aligned' |
|
2582 |
itemValue: alignColumnsLeft |
|
2583 |
translateLabel: true |
|
2584 |
) |
|
2585 |
(MenuItem |
|
2586 |
enabled: hasSelection |
|
2587 |
label: 'Make Cell Centered' |
|
2588 |
itemValue: alignColumnsCentered |
|
2589 |
translateLabel: true |
|
2590 |
) |
|
2591 |
(MenuItem |
|
2592 |
enabled: hasSelection |
|
2593 |
label: 'Make Cell Right Aligned' |
|
2594 |
itemValue: alignColumnsRight |
|
2595 |
translateLabel: true |
|
2596 |
) |
|
2597 |
) |
|
2598 |
nil |
|
2599 |
nil |
|
408 | 2600 |
) |
2262 | 2601 |
) |
2602 |
(MenuItem |
|
2371
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2603 |
label: 'Colors' |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2604 |
translateLabel: true |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2605 |
submenu: |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2606 |
(Menu |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2607 |
( |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2608 |
(MenuItem |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2609 |
enabled: hasSelection |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2610 |
label: 'Set Cell Color Selectors' |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2611 |
itemValue: setCellColorSelectors |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2612 |
translateLabel: true |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2613 |
) |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2614 |
(MenuItem |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2615 |
enabled: hasSelection |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2616 |
label: 'Set Selected Cell Color Selectors' |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2617 |
itemValue: setSelectedCellColorSelectors |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2618 |
translateLabel: true |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2619 |
) |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2620 |
) |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2621 |
nil |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2622 |
nil |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2623 |
) |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2624 |
) |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2625 |
(MenuItem |
2380
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2626 |
label: 'Behavior' |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2627 |
translateLabel: true |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2628 |
submenu: |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2629 |
(Menu |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2630 |
( |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2631 |
(MenuItem |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2632 |
enabled: hasSelection |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2633 |
label: 'Make Selected Cells Unselectable' |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2634 |
itemValue: makeSelectedCellsUnselectable |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2635 |
translateLabel: true |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2636 |
) |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2637 |
(MenuItem |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2638 |
enabled: hasSelection |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2639 |
label: 'Make Selected Cells Selectable' |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2640 |
itemValue: makeSelectedCellsSelectable |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2641 |
translateLabel: true |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2642 |
) |
3045 | 2643 |
(MenuItem |
2644 |
label: '-' |
|
2645 |
) |
|
2646 |
||
2647 |
(MenuItem |
|
3181 | 2648 |
label: 'Make all Cells Unselectable' |
3045 | 2649 |
itemValue: makeAllCellsUnselectable |
2650 |
translateLabel: true |
|
2651 |
) |
|
2652 |
(MenuItem |
|
3181 | 2653 |
label: 'Make all Cells Selectable' |
3045 | 2654 |
itemValue: makeAllCellsSelectable |
2655 |
translateLabel: true |
|
2656 |
) |
|
2380
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2657 |
) |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2658 |
nil |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2659 |
nil |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2660 |
) |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2661 |
) |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2662 |
(MenuItem |
2262 | 2663 |
label: '-' |
2664 |
) |
|
2665 |
(MenuItem |
|
2666 |
enabled: hasSelection |
|
2667 |
label: 'Make Selectable' |
|
2668 |
itemValue: makeColumnsSelectable |
|
2669 |
translateLabel: true |
|
2670 |
) |
|
2671 |
(MenuItem |
|
2672 |
enabled: hasSelection |
|
2673 |
label: 'Make Unselectable' |
|
2674 |
itemValue: makeColumnsUnselectable |
|
2675 |
translateLabel: true |
|
2676 |
) |
|
2677 |
) |
|
2678 |
nil |
|
2679 |
nil |
|
408 | 2680 |
) |
2681 |
! |
|
2682 |
||
2262 | 2683 |
menuEditWithoutAccelerators |
2321 | 2684 |
^ self menuEdit decodeAsLiteralArray removeAllAccelerators |
2262 | 2685 |
! |
2686 |
||
408 | 2687 |
menuToolbar |
825 | 2688 |
"This resource specification was automatically generated |
2689 |
by the MenuEditor of ST/X." |
|
408 | 2690 |
|
825 | 2691 |
"Do not manually edit this!! If it is corrupted, |
2692 |
the MenuEditor may not be able to read the specification." |
|
408 | 2693 |
|
2694 |
" |
|
2695 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#menuToolbar |
|
2696 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder menuToolbar)) startUp |
|
332 | 2697 |
" |
2698 |
||
2699 |
<resource: #menu> |
|
2700 |
||
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2701 |
^ |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2702 |
#(Menu |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2703 |
( |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2704 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2705 |
activeHelpKey: fileNew |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2706 |
label: 'New' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2707 |
itemValue: doNew |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2708 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2709 |
isButton: true |
1887 | 2710 |
labelImage: (ResourceRetriever ToolbarIconLibrary newDataSetIcon) |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2711 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2712 |
(MenuItem |
2262 | 2713 |
label: '-' |
2714 |
) |
|
2715 |
(MenuItem |
|
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2716 |
activeHelpKey: fileLoad |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2717 |
label: 'Load' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2718 |
itemValue: doLoad |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2719 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2720 |
isButton: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2721 |
submenuChannel: menuHistory |
1887 | 2722 |
labelImage: (ResourceRetriever ToolbarIconLibrary loadFromMethodIcon) |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2723 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2724 |
(MenuItem |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2725 |
activeHelpKey: fileSaveMethod |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2726 |
label: 'Save' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2727 |
itemValue: doSave |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2728 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2729 |
isButton: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2730 |
isVisible: notEditingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2731 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveAsMethodIcon) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2732 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2733 |
(MenuItem |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2734 |
activeHelpKey: fileSave |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2735 |
label: 'Save' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2736 |
itemValue: doSave |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2737 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2738 |
isButton: true |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2739 |
isVisible: editingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2740 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveToFileIcon) |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2741 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2742 |
(MenuItem |
1887 | 2743 |
label: '-' |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2744 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2745 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2746 |
activeHelpKey: editCut |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2747 |
enabled: isColumnSelected |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2748 |
label: 'Cut' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2749 |
itemValue: doCut |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2750 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2751 |
isButton: true |
1887 | 2752 |
labelImage: (ResourceRetriever ToolbarIconLibrary cutWidgetIcon) |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2753 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2754 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2755 |
activeHelpKey: editCopy |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2756 |
enabled: isColumnSelected |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2757 |
label: 'Copy' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2758 |
itemValue: doCopy |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2759 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2760 |
isButton: true |
1887 | 2761 |
labelImage: (ResourceRetriever ToolbarIconLibrary copyWidgetIcon) |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2762 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2763 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2764 |
activeHelpKey: editPaste |
1990 | 2765 |
enabled: canPasteHolder |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2766 |
label: 'Paste' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2767 |
itemValue: doPaste |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2768 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2769 |
isButton: true |
1887 | 2770 |
labelImage: (ResourceRetriever ToolbarIconLibrary pasteWidgetIcon) |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2771 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2772 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2773 |
activeHelpKey: editDelete |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2774 |
enabled: isColumnSelected |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2775 |
label: 'Delete' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2776 |
itemValue: doDelete |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2777 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2778 |
isButton: true |
1887 | 2779 |
isVisible: false |
2780 |
labelImage: (ResourceRetriever ToolbarIconLibrary deleteWidgetIcon) |
|
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2781 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2782 |
(MenuItem |
1887 | 2783 |
label: '-' |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2784 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2785 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2786 |
activeHelpKey: addColumn |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2787 |
enabled: columnIsNotEditing |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2788 |
label: 'Add Column' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2789 |
itemValue: doCreateColumn |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2790 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2791 |
isButton: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2792 |
labelImage: (ResourceRetriever nil newColumnIcon) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2793 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2794 |
(MenuItem |
2262 | 2795 |
activeHelpKey: addNonSelectableColumn |
2796 |
enabled: columnIsNotEditing |
|
2797 |
label: 'Add Column (Non Selectable)' |
|
2798 |
itemValue: doCreateNonSelectableColumn |
|
2799 |
translateLabel: true |
|
2800 |
isButton: true |
|
2801 |
labelImage: (ResourceRetriever DataSetBuilder newColumnNonSelectableIcon) |
|
2802 |
) |
|
2803 |
(MenuItem |
|
2804 |
label: '' |
|
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2805 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2806 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2807 |
activeHelpKey: editMoveUp |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2808 |
enabled: isColumnSelected |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2809 |
label: 'Move Up' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2810 |
itemValue: doMoveColumn: |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2811 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2812 |
isButton: true |
2262 | 2813 |
startGroup: right |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2814 |
labelImage: (ResourceRetriever Icon upIcon) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2815 |
argument: up |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2816 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2817 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2818 |
activeHelpKey: editMoveDown |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2819 |
enabled: isColumnSelected |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2820 |
label: 'Move Down' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2821 |
itemValue: doMoveColumn: |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2822 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2823 |
isButton: true |
2262 | 2824 |
startGroup: right |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2825 |
labelImage: (ResourceRetriever Icon downIcon) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2826 |
argument: down |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2827 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2828 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2829 |
nil |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2830 |
nil |
332 | 2831 |
) |
2832 |
! ! |
|
2833 |
||
2834 |
!DataSetBuilder methodsFor:'accessing'! |
|
2835 |
||
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2836 |
acceptedColumns |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2837 |
"returns the last saved columns (internal, for specOnly edit mode)" |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2838 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2839 |
^ acceptedColumns |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2840 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2841 |
|
332 | 2842 |
columns |
419 | 2843 |
"returns list of columns" |
2844 |
||
818 | 2845 |
^ columns |
332 | 2846 |
! |
2847 |
||
818 | 2848 |
columns:aListOfColumns |
419 | 2849 |
"setup columns from a column view" |
2850 |
||
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2851 |
|list newColumns| |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2852 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2853 |
newColumns := OrderedCollection new. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2854 |
list := self seqList. |
332 | 2855 |
list removeAll. |
2856 |
||
818 | 2857 |
aListOfColumns size ~~ 0 ifTrue:[ |
2858 |
aListOfColumns do:[:aColumn||column| |
|
2859 |
(column := aColumn) isSequenceable ifTrue:[ |
|
2167 | 2860 |
column := DataSetColumnSpec decodeFromLiteralArray:aColumn |
818 | 2861 |
] ifFalse:[ |
2862 |
column := aColumn copy |
|
2863 |
]. |
|
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2864 |
newColumns add:column. |
825 | 2865 |
list add:(self labelFromColumn:column). |
332 | 2866 |
] |
818 | 2867 |
]. |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2868 |
columns := newColumns. |
818 | 2869 |
self updateColumnView. |
2870 |
||
2167 | 2871 |
"Modified: / 27-03-2007 / 08:46:39 / cg" |
333 | 2872 |
! |
2873 |
||
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2874 |
editingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2875 |
^ editingSpecOnly ? false |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2876 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2877 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2878 |
editingSpecOnly:something |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2879 |
editingSpecOnly := something. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2880 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2881 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2882 |
notEditingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2883 |
^ self editingSpecOnly not |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2884 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2885 |
|
983 | 2886 |
resolveRowClass |
2887 |
"returns the resolved row class |
|
2888 |
" |
|
2889 |
^ Smalltalk resolveName:rowClass inClass:self class |
|
2890 |
! |
|
2891 |
||
333 | 2892 |
rowClassName |
419 | 2893 |
|
983 | 2894 |
^ self resolveRowClass notNil ifTrue:[rowClass] ifFalse:[nil] |
333 | 2895 |
! |
2896 |
||
2897 |
rowClassName:aClassName |
|
419 | 2898 |
|
333 | 2899 |
|cls| |
2900 |
||
818 | 2901 |
rowSuperClass := nil. |
333 | 2902 |
|
818 | 2903 |
(rowClass := aClassName) notNil ifTrue:[ |
983 | 2904 |
(cls := self resolveRowClass) notNil |
818 | 2905 |
ifTrue: [rowSuperClass := cls superclass name asString] |
2906 |
ifFalse:[rowSuperClass := 'Object'] |
|
333 | 2907 |
] |
2908 |
||
332 | 2909 |
! ! |
2910 |
||
419 | 2911 |
!DataSetBuilder methodsFor:'aspects'! |
332 | 2912 |
|
1300 | 2913 |
canvasHolder |
2914 |
"returns a value holder which keeps selected column" |
|
2915 |
||
2916 |
|holder| |
|
2917 |
||
2918 |
(holder := builder bindingAt:#canvasHolder) isNil ifTrue:[ |
|
2919 |
builder aspectAt:#canvasHolder put:(holder := ValueHolder new). |
|
2920 |
]. |
|
2921 |
^ holder |
|
2922 |
! |
|
2923 |
||
419 | 2924 |
columnIsNotEditing |
2262 | 2925 |
"returns a boolean value holder which returns true if a columns attributes have not |
2926 |
been modified (notebook fields)" |
|
332 | 2927 |
|
1311 | 2928 |
|holder| |
2929 |
||
2930 |
(holder := builder bindingAt:#columnIsNotEditing) isNil ifTrue:[ |
|
2931 |
holder := BlockValue forLogicalNot:(self modifiedChannel). |
|
2932 |
builder aspectAt:#columnIsNotEditing put:holder. |
|
2933 |
]. |
|
2934 |
^ holder |
|
332 | 2935 |
! |
2936 |
||
419 | 2937 |
editorTypeList |
2938 |
"generate list of supported editor types" |
|
332 | 2939 |
|
2940 |
|list| |
|
2941 |
||
1697 | 2942 |
(list := builder bindingAt:#editorTypeList) isNil ifTrue:[ |
2991 | 2943 |
list := DataSetColumnSpec slices collect:[:eachSlice | eachSlice at:1] as:Set. |
1700 | 2944 |
list := list asOrderedCollection sort. |
419 | 2945 |
builder aspectAt:#editorTypeList put:list |
332 | 2946 |
]. |
419 | 2947 |
^list |
332 | 2948 |
! |
2949 |
||
2262 | 2950 |
hasColumns |
2951 |
"returns a boolean value holder which is set to true if there are any columns" |
|
2952 |
||
2953 |
^ BlockValue |
|
2954 |
with:[:m | m notEmptyOrNil] |
|
2955 |
argument:(self seqList) |
|
2956 |
! |
|
2957 |
||
2958 |
hasSelection |
|
2959 |
^ (selectedColumnIndex isCollection not and:[ selectedColumnIndex ~~ 0 ]) |
|
3406 | 2960 |
or:[ selectedColumnIndex notEmptyOrNil ] |
2961 |
||
2962 |
"Modified: / 17-02-2017 / 08:35:26 / cg" |
|
2262 | 2963 |
! |
2964 |
||
408 | 2965 |
isColumnSelected |
2262 | 2966 |
"returns a boolean value holder which is set to true if some col is selected" |
419 | 2967 |
|
2968 |
^builder valueAspectFor:#isColumnSelected initialValue: false |
|
332 | 2969 |
! |
2970 |
||
1836 | 2971 |
menuEdit |
2371
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2972 |
"redefined to access my menu and not the one of the UIPainter" |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2973 |
|
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2974 |
^ [self class menuEdit] |
1836 | 2975 |
! |
2976 |
||
2262 | 2977 |
possiblePrintConverterTypes |
2978 |
^ UISpecification possiblePrintConverterTypes |
|
2979 |
! |
|
2980 |
||
332 | 2981 |
rendererTypeList |
419 | 2982 |
"generate list of supported renderer types" |
2983 |
||
332 | 2984 |
|list| |
2985 |
||
1697 | 2986 |
(list := builder bindingAt:#rendererTypeList) isNil ifTrue:[ |
2991 | 2987 |
list := DataSetColumnSpec slices collect:[:eachSlice | eachSlice at:2] as:Set. |
1701 | 2988 |
list := list asOrderedCollection sort. |
419 | 2989 |
builder aspectAt:#rendererTypeList put:list |
332 | 2990 |
]. |
419 | 2991 |
^list |
332 | 2992 |
! |
2993 |
||
2994 |
selectedColumnModel |
|
419 | 2995 |
"returns a value holder which keeps selected column" |
332 | 2996 |
|
2997 |
|holder| |
|
2998 |
||
2999 |
(holder := builder bindingAt:#selectedColumnModel) isNil ifTrue:[ |
|
3000 |
holder := AspectAdaptor new subject:self; forAspect:#selectedColumnIndex. |
|
3001 |
builder aspectAt:#selectedColumnModel put:holder. |
|
3002 |
]. |
|
3003 |
^ holder |
|
3004 |
! |
|
3005 |
||
3006 |
seqList |
|
1182 | 3007 |
^ builder listAspectFor:#seqList |
332 | 3008 |
! |
3009 |
||
391 | 3010 |
style |
419 | 3011 |
|
3012 |
^self aspectFor:#labelFont |
|
391 | 3013 |
! |
3014 |
||
332 | 3015 |
tabList |
3016 |
||
419 | 3017 |
^self class slices collect:[:aSlice|aSlice first] |
332 | 3018 |
|
3019 |
! ! |
|
3020 |
||
818 | 3021 |
!DataSetBuilder methodsFor:'building'! |
3022 |
||
1974 | 3023 |
buildFromResourceSpec:aResourceSpec |
3024 |
||
3025 |
self columns:aResourceSpec. |
|
3026 |
||
3027 |
"/ columns notEmpty ifTrue: [ |
|
3028 |
"/ self tabModel value: 1. |
|
3029 |
"/ self selectedColumnModel value:nil; value:1. "/ toggle to force change |
|
3030 |
"/ self updateInputFields. |
|
3031 |
"/ self updateInfoLabel. |
|
3032 |
"/ self updateHistory |
|
3033 |
"/ ]. |
|
3034 |
||
3035 |
! |
|
3036 |
||
3037 |
loadFromClass:aClass andSelector:aSelector |
|
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3038 |
|cls list| |
825 | 3039 |
|
1974 | 3040 |
self assert:(aClass isNil or:[aClass isClass]). |
3041 |
||
825 | 3042 |
selectedColumnIndex := 0. |
3043 |
||
3044 |
"if opened on table columns" |
|
3045 |
||
3046 |
aClass isNil ifTrue: [ |
|
3047 |
self tabModel value: 0. |
|
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3048 |
"/ self columns removeAll. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3049 |
"/ self seqList removeAll. |
825 | 3050 |
self updateColumnView. |
3051 |
self updateInfoLabel. |
|
1974 | 3052 |
self isColumnSelected value: false. |
3053 |
^ self. |
|
825 | 3054 |
]. |
3055 |
||
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3056 |
specSelector isNil ifTrue: [ |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3057 |
self updateAfterColumnChange. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3058 |
^ self |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3059 |
]. |
818 | 3060 |
|
3061 |
list := nil. |
|
3062 |
||
3063 |
(aClass notNil or:[self isStandAlone or:[self window shown]]) ifTrue:[ |
|
3064 |
(aClass notNil and:[aSelector notNil]) ifTrue:[ |
|
1974 | 3065 |
cls := aClass isBehavior ifTrue:[ aClass ] ifFalse:[ self resolveName:aClass]. |
3066 |
||
3067 |
(cls respondsTo: aSelector) ifTrue:[ |
|
3068 |
list := cls perform: aSelector. |
|
3069 |
]. |
|
818 | 3070 |
] |
3071 |
] ifFalse:[ |
|
3072 |
list := columns |
|
3073 |
]. |
|
825 | 3074 |
self columns:list. |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3075 |
self updateAfterColumnChange. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3076 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3077 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3078 |
updateAfterColumnChange |
2557 | 3079 |
self tabModel changed "value:0; value:1". "/ toggle to force change |
3080 |
self selectedColumnModel changed "value:nil; value:1". "/ toggle to force change |
|
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3081 |
self updateColumnView. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3082 |
self updateInputFields. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3083 |
self updateInfoLabel. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3084 |
self updateHistory. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3085 |
self clearModifiedFlag. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3086 |
self enablingCommitButtonsHolder value:false. |
818 | 3087 |
! ! |
3088 |
||
332 | 3089 |
!DataSetBuilder methodsFor:'code generation'! |
3090 |
||
3091 |
compile:aCode forClass:aClass inCategory:aCategory |
|
419 | 3092 |
"compile method for class in a category" |
3093 |
||
1569 | 3094 |
aClass |
3095 |
compile:(aCode withCRs) |
|
3096 |
classified:aCategory |
|
332 | 3097 |
! |
3098 |
||
380 | 3099 |
generateBackgroundSelectorIn:aClass |
419 | 3100 |
"generate code for #backgroundSelector" |
3101 |
||
380 | 3102 |
|sel catg code bCode| |
3103 |
||
1771 | 3104 |
catg := #'accessing look'. |
380 | 3105 |
code := '\' |
3106 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3107 |
, '\' |
|
3108 |
, ' "specific background color for a cell"\' |
|
3109 |
, '\' |
|
3110 |
. |
|
3111 |
||
419 | 3112 |
columns do: |
3113 |
[:aColumn| |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3114 |
((sel := aColumn backgroundSelector) notNil and:[(aClass includesSelector:sel) not]) |
419 | 3115 |
ifTrue: |
3116 |
[ |
|
3117 |
bCode := sel asString, code, ' ^nil'. |
|
380 | 3118 |
self compile:bCode forClass:aClass inCategory:catg |
3119 |
] |
|
3120 |
] |
|
3121 |
! |
|
3122 |
||
332 | 3123 |
generateChoicesIn:aClass |
419 | 3124 |
"generate code for #choices" |
3125 |
||
1009 | 3126 |
|sel catg code edt| |
332 | 3127 |
|
1771 | 3128 |
catg := #'accessing menu'. |
332 | 3129 |
code := '\' |
3130 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3131 |
, '\' |
|
983 | 3132 |
, ' "get choices for visual editor; (a list of labels)..."\' |
332 | 3133 |
, '\' |
983 | 3134 |
, ' ^ #( foo bar baz )' |
332 | 3135 |
. |
3136 |
||
1009 | 3137 |
columns do:[:aColumn| |
3138 |
edt := aColumn editorType. |
|
3139 |
||
3140 |
( aColumn canSelect |
|
3141 |
and:[(sel := aColumn choices) notNil |
|
3142 |
and:[(edt == #ComboBox or:[edt == #ComboList]) |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3143 |
and:[(aClass includesSelector:sel) not]]] |
1009 | 3144 |
) ifTrue:[ |
332 | 3145 |
self compile:(sel asString, code) forClass:aClass inCategory:catg |
3146 |
] |
|
3147 |
] |
|
3148 |
! |
|
3149 |
||
391 | 3150 |
generateDoubleClickSelectorIn:aClass |
419 | 3151 |
"generate code for #foregroundSelector" |
3152 |
||
391 | 3153 |
|sel catg code bCode| |
3154 |
||
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
3155 |
catg := #'accessing-action'. |
391 | 3156 |
code := '\' |
3157 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3158 |
, '\' |
|
3159 |
, ' "specific selector to be called on double click"\' |
|
3160 |
, '\' |
|
3161 |
. |
|
3162 |
||
419 | 3163 |
columns do: |
3164 |
[:aColumn| |
|
3165 |
((sel := aColumn doubleClickedSelector) notNil |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3166 |
and:[(aClass includesSelector:sel) not]) |
419 | 3167 |
ifTrue: |
3168 |
[ |
|
391 | 3169 |
bCode := sel asString, code. |
3170 |
self compile:bCode forClass:aClass inCategory:catg |
|
3171 |
] |
|
3172 |
] |
|
3173 |
! |
|
3174 |
||
380 | 3175 |
generateForegroundSelectorIn:aClass |
3176 |
"generate code for #foregroundSelector |
|
3177 |
" |
|
3178 |
|sel catg code bCode| |
|
3179 |
||
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
3180 |
catg := #'accessing-look'. |
380 | 3181 |
code := '\' |
3182 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3183 |
, '\' |
|
3184 |
, ' "specific foreground color for a cell"\' |
|
3185 |
, '\' |
|
3186 |
. |
|
3187 |
||
419 | 3188 |
columns do: |
3189 |
[:aColumn| |
|
3190 |
((sel := aColumn foregroundSelector) notNil |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3191 |
and:[(aClass includesSelector:sel) not]) |
419 | 3192 |
ifTrue: |
3193 |
[ |
|
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
3194 |
bCode := sel asString, code, ' ^ nil'. |
380 | 3195 |
self compile:bCode forClass:aClass inCategory:catg |
3196 |
] |
|
3197 |
] |
|
3198 |
! |
|
3199 |
||
332 | 3200 |
generateMenuIn:aClass |
419 | 3201 |
"generate code for #menu" |
3202 |
||
332 | 3203 |
|sel catg code| |
3204 |
||
1771 | 3205 |
catg := #'accessing menu'. |
332 | 3206 |
code := '\' |
3207 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3208 |
, '\' |
|
3209 |
, ' "get middleButton menu for selected cell in column"\' |
|
3210 |
, '\' |
|
419 | 3211 |
, ' ^nil' |
332 | 3212 |
. |
3213 |
||
419 | 3214 |
columns do: |
3215 |
[:aColumn| |
|
3216 |
(aColumn canSelect |
|
3217 |
and:[(sel := aColumn menu) notNil |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3218 |
and:[(aClass includesSelector:sel) not]]) |
419 | 3219 |
ifTrue: |
3220 |
[ |
|
332 | 3221 |
self compile:(sel asString, code) forClass:aClass inCategory:catg |
3222 |
] |
|
3223 |
] |
|
3224 |
! |
|
3225 |
||
3226 |
generatePrintSelectorIn:aClass |
|
419 | 3227 |
"generate code for #printSelector" |
3228 |
||
332 | 3229 |
|sel catg code| |
3230 |
||
1771 | 3231 |
catg := #'accessing'. |
1004 | 3232 |
code := '\' |
332 | 3233 |
, ' "automatically generated by DataSetBuilder ..."\' |
3234 |
, '\' |
|
3235 |
, ' "get drawable image or text on a gc"\' |
|
3236 |
, '\' |
|
1004 | 3237 |
, ' ^ ' |
332 | 3238 |
. |
3239 |
||
1004 | 3240 |
columns do:[:aColumn| |
3241 |
( aColumn rendererType ~~ #rowSelector |
|
3242 |
and:[(sel := aColumn printSelector) notNil |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3243 |
and:[(aClass includesSelector:sel) not]] |
1004 | 3244 |
) ifTrue:[ |
1548 | 3245 |
|numArgs bcode keys| |
1004 | 3246 |
bcode := sel asString. |
1548 | 3247 |
numArgs := sel numArgs. |
3248 |
||
3249 |
numArgs ~~ 0 ifTrue:[ |
|
3250 |
numArgs == 1 ifTrue:[ |
|
1004 | 3251 |
bcode := bcode, 'aGC' |
3252 |
] ifFalse:[ |
|
3253 |
keys := sel keywords. |
|
3254 |
bcode := (keys at:1), 'aGC ', (keys at:2), 'aColNr'. |
|
3255 |
] |
|
3256 |
]. |
|
3257 |
self compile:(bcode, code, '''', bcode, '''') forClass:aClass inCategory:catg |
|
332 | 3258 |
] |
3259 |
] |
|
3260 |
! |
|
3261 |
||
3262 |
generateReadSelectorIn:aClass |
|
419 | 3263 |
"generate code for #readSelector" |
3264 |
||
332 | 3265 |
|sel catg code bCode| |
3266 |
||
1771 | 3267 |
catg := #'accessing'. |
332 | 3268 |
code := '\' |
3269 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3270 |
, '\' |
|
3271 |
, ' "get value"\' |
|
3272 |
, '\' |
|
3273 |
. |
|
3274 |
||
419 | 3275 |
columns do: |
3276 |
[:aColumn| |
|
3277 |
(aColumn rendererType ~~ #rowSelector |
|
3278 |
and:[(sel := aColumn readSelector) notNil |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3279 |
and:[(aClass includesSelector:sel) not]]) |
419 | 3280 |
ifTrue: |
3281 |
[ |
|
3282 |
(aColumn printSelector isNil or:[aColumn canSelect]) |
|
3283 |
ifTrue: |
|
3284 |
[ |
|
1004 | 3285 |
|selName| |
3286 |
selName := sel asString. |
|
3287 |
||
419 | 3288 |
sel numArgs == 0 |
1004 | 3289 |
ifTrue: [bCode := selName, code] |
3290 |
ifFalse:[bCode := selName, 'anIndex\', code]. |
|
419 | 3291 |
aColumn rendererType == #CheckToggle |
1004 | 3292 |
ifFalse:[bCode := bCode, ' ^ ''', selName, ''''] |
419 | 3293 |
ifTrue: [bCode := bCode, ' ^true']. |
332 | 3294 |
self compile:bCode forClass:aClass inCategory:catg |
3295 |
] |
|
3296 |
] |
|
3297 |
] |
|
3298 |
! |
|
3299 |
||
983 | 3300 |
generateRowSeparatorSelectorIn:aClass |
3301 |
"generate code for #rowSeparatorSelector" |
|
3302 |
||
3303 |
|sel catg code bCode| |
|
3304 |
||
1771 | 3305 |
catg := #'accessing look'. |
983 | 3306 |
code := '\' |
3307 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3308 |
, '\' |
|
3309 |
, ' "specific row separator visibility for a cell"\' |
|
3310 |
, '\' |
|
3311 |
. |
|
3312 |
||
3313 |
columns do: |
|
3314 |
[:aColumn| |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3315 |
((sel := aColumn rowSeparatorSelector) notNil and:[(aClass includesSelector:sel) not]) |
983 | 3316 |
ifTrue: |
3317 |
[ |
|
3318 |
bCode := sel asString, code, ' ^true'. |
|
3319 |
self compile:bCode forClass:aClass inCategory:catg |
|
3320 |
] |
|
3321 |
] |
|
3322 |
! |
|
3323 |
||
377 | 3324 |
generateSelectSelectorIn:aClass |
3325 |
"generate code for #selectSelector |
|
3326 |
" |
|
3327 |
|sel catg code bCode| |
|
3328 |
||
1771 | 3329 |
catg := #'accessing selection'. |
377 | 3330 |
code := '\' |
3331 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3332 |
, '\' |
|
3333 |
, ' "can select cell in column"\' |
|
3334 |
, '\' |
|
3335 |
. |
|
3336 |
||
419 | 3337 |
columns do: |
3338 |
[:aColumn| |
|
3339 |
(aColumn rendererType ~~ #rowSelector |
|
377 | 3340 |
and:[(sel := aColumn selectSelector) notNil |
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3341 |
and:[(aClass includesSelector:sel) not]]) |
419 | 3342 |
ifTrue: |
3343 |
[ |
|
3344 |
aColumn canSelect |
|
3345 |
ifTrue: |
|
3346 |
[ |
|
3347 |
bCode := sel asString, code, ' ^true'. |
|
377 | 3348 |
self compile:bCode forClass:aClass inCategory:catg |
3349 |
] |
|
3350 |
] |
|
3351 |
] |
|
3352 |
! |
|
3353 |
||
1009 | 3354 |
generateShowComboFieldSelectorIn:aClass |
3355 |
"generate code for #showComboFieldSelector |
|
3356 |
" |
|
3357 |
|sel catg code bCode edt state| |
|
3358 |
||
1771 | 3359 |
catg := #'accessing menu'. |
1009 | 3360 |
code := '\' |
3361 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3362 |
, '\' |
|
3363 |
, ' "open an editField on a combo list or box"\' |
|
3364 |
, '\' |
|
3365 |
. |
|
3366 |
||
3367 |
columns do:[:aColumn| |
|
3368 |
edt := aColumn editorType. |
|
3369 |
||
3370 |
( aColumn canSelect |
|
3371 |
and:[(sel := aColumn showComboFieldSelector) notNil |
|
3372 |
and:[(edt == #ComboBox or:[edt == #ComboList]) |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3373 |
and:[(aClass includesSelector:sel) not]]] |
1009 | 3374 |
) ifTrue:[ |
3375 |
state := edt == #ComboBoxView. |
|
3376 |
||
3377 |
bCode := sel asString, code, ' ^ ', state printString. |
|
3378 |
self compile:bCode forClass:aClass inCategory:catg |
|
3379 |
] |
|
3380 |
] |
|
3381 |
! |
|
3382 |
||
332 | 3383 |
generateWriteSelectorIn:aClass |
419 | 3384 |
"generate code for #writeSelector" |
3385 |
||
379 | 3386 |
|sel catg code bCode sz| |
332 | 3387 |
|
1771 | 3388 |
catg := #'accessing'. |
332 | 3389 |
code := 'aValue\' |
3390 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3391 |
, '\' |
|
3392 |
, ' "set value"\' |
|
3393 |
. |
|
3394 |
||
419 | 3395 |
columns do: |
3396 |
[:aColumn| |
|
3397 |
((sel := aColumn writeSelector) notNil |
|
983 | 3398 |
and:[aColumn editorType ~~ #None |
419 | 3399 |
and:[aColumn canSelect |
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3400 |
and:[(aClass includesSelector:sel) not]]]) |
419 | 3401 |
ifTrue: |
3402 |
[ |
|
3403 |
sel numArgs == 1 |
|
3404 |
ifTrue: |
|
3405 |
[ |
|
379 | 3406 |
bCode := sel asString |
419 | 3407 |
] |
3408 |
ifFalse: |
|
3409 |
[ |
|
379 | 3410 |
sz := sel indexOf:$:. |
3411 |
bCode := sel copyTo:sz. |
|
419 | 3412 |
bCode := bCode, 'anIndex ', (sel copyFrom:sz + 1) |
379 | 3413 |
]. |
3414 |
self compile:(bCode, code) forClass:aClass inCategory:catg |
|
332 | 3415 |
] |
3416 |
] |
|
3417 |
! ! |
|
3418 |
||
2262 | 3419 |
!DataSetBuilder methodsFor:'event handling'! |
3420 |
||
3421 |
processEvent:anEvent |
|
3422 |
"filter keyboard edit-events typed into the listOfItemsView. |
|
3423 |
Return true, if I have eaten the event" |
|
3424 |
||
2944 | 3425 |
<resource: #keyboard (#Delete #BackSPace #Cut #Copy #Paste #CtrlCursorDown #CtrlCursorUp )> |
3426 |
||
2262 | 3427 |
|evView inView rawKey key| |
3428 |
||
3429 |
anEvent isKeyPressEvent ifFalse:[^ false]. |
|
3430 |
||
3431 |
evView := anEvent targetView. |
|
3432 |
evView isNil ifTrue:[ ^ false ]. |
|
3433 |
||
3434 |
inView := evView isSameOrComponentOf:listOfItemsView. |
|
3435 |
inView ifTrue:[^ false]. |
|
3436 |
||
3437 |
key := anEvent key. |
|
3438 |
rawKey := anEvent rawKey. |
|
3439 |
||
3440 |
( key == #Delete |
|
3441 |
or:[key == #BackSpace |
|
3442 |
or:[key == #Cut]] |
|
3443 |
) ifTrue:[ |
|
3444 |
self doCut. |
|
3445 |
^ true. |
|
3446 |
]. |
|
3447 |
||
3448 |
key == #Copy ifTrue:[ self doCopy. ^ true ]. |
|
3449 |
key == #Paste ifTrue:[ self doPaste. ^ true ]. |
|
3450 |
||
3451 |
(rawKey == #CtrlCursorUp) ifTrue:[ |
|
3452 |
self doMoveUp. |
|
3453 |
^ true. |
|
3454 |
]. |
|
3455 |
(rawKey == #CtrlCursorDown) ifTrue:[ |
|
3456 |
self doMoveDown. |
|
3457 |
^ true. |
|
3458 |
]. |
|
3459 |
||
3460 |
^ false. |
|
3461 |
! ! |
|
3462 |
||
332 | 3463 |
!DataSetBuilder methodsFor:'initialization'! |
3464 |
||
3465 |
initialize |
|
825 | 3466 |
"initializes" |
332 | 3467 |
|
3468 |
super initialize. |
|
3469 |
||
825 | 3470 |
selectedColumnIndex := 0. |
1156 | 3471 |
columns := OrderedCollection new. |
3472 |
modalOpened := false. |
|
1300 | 3473 |
listOfSpecViews := Array new:(self class slices size). |
2557 | 3474 |
editingSpecOnly := false. |
1824 | 3475 |
! |
3476 |
||
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3477 |
loadFromResourceSpec: aResourceSpec |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3478 |
self columns:aResourceSpec copy. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3479 |
modified := false. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3480 |
hasSaved := false. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3481 |
self updateAfterColumnChange. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3482 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3483 |
|
1824 | 3484 |
setDefaultValuesInNewColumn:aDataSetColumnSpec |
1825 | 3485 |
"/ aDataSetColumnSpec readSelector: #'valueAtColumnIndex:'. |
3486 |
"/ aDataSetColumnSpec writeSelector: #'valueAtColumnIndex:put:'. |
|
3487 |
"/ aDataSetColumnSpec backgroundSelector: #'bgAtRowIndex:columnIndex:'. |
|
3488 |
"/ aDataSetColumnSpec foregroundSelector: #'fgAtRowIndex:columnIndex:'. |
|
3489 |
"/ aDataSetColumnSpec selectSelector: #'selectAtColumnIndex:'. |
|
3490 |
"/ aDataSetColumnSpec editorType: #InputField. |
|
332 | 3491 |
! ! |
3492 |
||
3045 | 3493 |
!DataSetBuilder methodsFor:'menu & user actions'! |
419 | 3494 |
|
3495 |
accept |
|
3496 |
"accept changes made" |
|
3497 |
||
3498 |
|column type| |
|
3499 |
||
825 | 3500 |
super accept. |
419 | 3501 |
|
3502 |
(column := self selectedColumn) isNil ifTrue: [^self cancel]. |
|
3503 |
||
3504 |
type := (aspects at:#rendererType) value. |
|
3505 |
||
818 | 3506 |
type == #rowSelector ifTrue:[ |
1731 | 3507 |
#(label |
1944 | 3508 |
width minWidth usePreferredWidth editorType choices translatedChoices |
1731 | 3509 |
readSelector writeSelector printSelector visibilitySelector |
2816 | 3510 |
formatString formatSelector type converterSelector size height |
3511 |
canSelect selectSelector showComboFieldSelector |
|
1822 | 3512 |
minValue maxValue |
818 | 3513 |
) do:[:aKey| |
3514 |
(aspects at:aKey) value:nil |
|
3515 |
] |
|
419 | 3516 |
]. |
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3517 |
aspects keysAndValuesDo:[:aKey :aModel| |
3096 | 3518 |
column perform:aKey asMutator with: aModel value |
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3519 |
]. |
2262 | 3520 |
self seqList at:self singleSelectedColumnIndex put:(self labelFromColumn:column). |
419 | 3521 |
self updateColumnView. |
825 | 3522 |
self cancel. |
1974 | 3523 |
self clearModified. |
2816 | 3524 |
|
3525 |
"Modified: / 25-10-2010 / 10:41:55 / cg" |
|
419 | 3526 |
! |
3527 |
||
3528 |
cancel |
|
3529 |
"remove all changes and reload selected column values" |
|
3530 |
||
3531 |
self updateInputFields. |
|
1990 | 3532 |
self enablingCommitButtonsHolder value:false. |
1187 | 3533 |
self clearModifiedFlag. |
1990 | 3534 |
self enablingCommitButtonsHolder value:false. |
1014
9ddf012eba3e
need a deepCopy for previewColumns
Claus Gittinger <cg@exept.de>
parents:
1012
diff
changeset
|
3535 |
|
9ddf012eba3e
need a deepCopy for previewColumns
Claus Gittinger <cg@exept.de>
parents:
1012
diff
changeset
|
3536 |
"Modified: / 27.10.1998 / 14:41:41 / cg" |
419 | 3537 |
! |
3538 |
||
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3539 |
cutOrDelete:isCut |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3540 |
"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
|
3541 |
|
2262 | 3542 |
|indices selectionModel| |
3543 |
||
3544 |
((indices := self selectedColumnIndices) notEmpty and:[self askForItemModification]) ifFalse:[ |
|
1390 | 3545 |
^ self |
3546 |
]. |
|
3547 |
isCut ifTrue:[ |
|
2262 | 3548 |
self clipboard: (self selectedColumns) |
1390 | 3549 |
]. |
2262 | 3550 |
|
3551 |
selectionModel := self selectedColumnModel. |
|
3552 |
selectionModel value:0. |
|
3553 |
||
3554 |
indices sort reverseDo:[:idx | |
|
3555 |
columns removeIndex:idx. |
|
3556 |
self seqList removeIndex:idx. |
|
3557 |
]. |
|
3558 |
||
3559 |
selectionModel value:((indices max) min:(columns size)). |
|
3560 |
self updateColumnView. |
|
3561 |
self updateInputFields. |
|
1390 | 3562 |
|
3563 |
columns isEmpty ifTrue:[ |
|
3564 |
self isColumnSelected value: false |
|
3565 |
]. |
|
3566 |
self cancel. |
|
1974 | 3567 |
self setModified. |
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3568 |
! |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3569 |
|
2262 | 3570 |
doAddColumn:descr |
3571 |
"adds a new column after the selected column or at the left (if nothing is selected)" |
|
3572 |
||
2557 | 3573 |
columns add:descr afterIndex:(self singleSelectedColumnIndex min:columns size). |
2262 | 3574 |
self setDefaultValuesInNewColumn:descr. |
3575 |
self seqList add:(descr label) afterIndex:self singleSelectedColumnIndex. |
|
3576 |
self enablingCommitButtonsHolder value ifFalse:[ |
|
3577 |
self selectedColumnModel value:self singleSelectedColumnIndex + 1 |
|
3578 |
]. |
|
3579 |
self cancel. |
|
3580 |
self updateColumnView. |
|
3581 |
self setModified. |
|
3582 |
! |
|
3583 |
||
818 | 3584 |
doBrowseRowClass |
419 | 3585 |
"browse class of columns spec" |
3586 |
||
3587 |
|cls| |
|
3588 |
||
983 | 3589 |
(cls := self resolveRowClass) notNil |
2401 | 3590 |
ifTrue: [Smalltalk browseInClass:cls] |
842 | 3591 |
ifFalse:[self information:'No class defined !!'] |
3592 |
||
3593 |
"Modified: / 20.5.1998 / 03:48:04 / cg" |
|
419 | 3594 |
! |
3595 |
||
825 | 3596 |
doCopy |
2262 | 3597 |
"copy selected columns to the clipboard" |
3598 |
||
3599 |
|cols| |
|
3600 |
||
3601 |
cols := self selectedColumns. |
|
3602 |
cols notEmptyOrNil ifTrue:[ |
|
3603 |
self clipboard:(cols deepCopy) |
|
419 | 3604 |
] |
3605 |
! |
|
3606 |
||
3607 |
doCreateColumn |
|
3608 |
"create a new column after selected column or at left (nothing selected)" |
|
3609 |
||
2262 | 3610 |
|label list dscs descr| |
3611 |
||
3612 |
"/ list := self seqList. |
|
3613 |
"/ label := 'Column ', (list size + 1) printString. |
|
3614 |
"/ columns add:(dscs := DataSetColumnSpec label:label selector:nil) afterIndex:selectedColumnIndex. |
|
3615 |
"/ self setDefaultValuesInNewColumn:dscs. |
|
3616 |
"/ self seqList add:label afterIndex:selectedColumnIndex. |
|
3617 |
"/ self enablingCommitButtonsHolder value ifFalse:[ |
|
3618 |
"/ self selectedColumnModel value:selectedColumnIndex + 1 |
|
3619 |
"/ ]. |
|
3620 |
"/ self cancel. |
|
3621 |
"/ self updateColumnView. |
|
3622 |
"/ self setModified. |
|
3623 |
"/ |
|
3624 |
||
3625 |
label := 'Column ', (self seqList size + 1) printString. |
|
3626 |
descr := DataSetColumnSpec label:label selector:nil. |
|
3627 |
self doAddColumn:descr |
|
3628 |
! |
|
3629 |
||
3630 |
doCreateNonSelectableColumn |
|
3631 |
"create a new column after selected column or at left (nothing selected)" |
|
3632 |
||
3633 |
|label list dscs descr| |
|
3634 |
||
3635 |
"/ list := self seqList. |
|
3636 |
"/ label := 'Column ', (list size + 1) printString. |
|
3637 |
"/ columns add:(dscs := DataSetColumnSpec label:label selector:nil) afterIndex:selectedColumnIndex. |
|
3638 |
"/ self setDefaultValuesInNewColumn:dscs. |
|
3639 |
"/ self seqList add:label afterIndex:selectedColumnIndex. |
|
3640 |
"/ self enablingCommitButtonsHolder value ifFalse:[ |
|
3641 |
"/ self selectedColumnModel value:selectedColumnIndex + 1 |
|
3642 |
"/ ]. |
|
3643 |
"/ self cancel. |
|
3644 |
"/ self updateColumnView. |
|
3645 |
"/ self setModified. |
|
3646 |
"/ |
|
3647 |
||
3648 |
label := 'Column ', (self seqList size + 1) printString. |
|
3649 |
descr := DataSetColumnSpec label:label selector:nil. |
|
3650 |
descr canSelect:false. |
|
3651 |
self doAddColumn:descr |
|
419 | 3652 |
! |
3653 |
||
825 | 3654 |
doCut |
419 | 3655 |
"remove selected column and put it to the clipboard" |
3656 |
||
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3657 |
self cutOrDelete:true |
419 | 3658 |
! |
3659 |
||
818 | 3660 |
doDefineRowClass |
419 | 3661 |
"launch a dialog to define class and superclass" |
3662 |
||
1382 | 3663 |
|aspects cls oldClass oldSuper val classNameChannel superclassNameChannel| |
419 | 3664 |
|
3665 |
aspects := IdentityDictionary new. |
|
818 | 3666 |
oldClass := rowClass. |
3667 |
oldSuper := rowSuperClass. |
|
419 | 3668 |
|
3669 |
[true] |
|
3670 |
whileTrue: |
|
3671 |
[ |
|
1382 | 3672 |
rowClass notNil ifTrue:[ |
3673 |
(cls := self resolveRowClass) notNil ifTrue:[ |
|
818 | 3674 |
rowSuperClass := cls superclass name asString |
419 | 3675 |
]. |
1382 | 3676 |
val := rowClass |
3677 |
] ifFalse:[ |
|
3678 |
val := 'DSVRow' |
|
419 | 3679 |
]. |
1382 | 3680 |
aspects at:#classNameChannel put:(classNameChannel := ValueHolder with:val). |
419 | 3681 |
|
818 | 3682 |
rowSuperClass notNil |
1382 | 3683 |
ifTrue: [val := rowSuperClass] |
3684 |
ifFalse:[val := 'Object']. |
|
3685 |
aspects at:#superclassNameChannel put:(superclassNameChannel := ValueHolder with:val). |
|
419 | 3686 |
|
3687 |
(self openDialogInterface:#defineClassNameSpec withBindings:aspects) |
|
3688 |
ifFalse: |
|
3689 |
[ |
|
818 | 3690 |
rowClass := oldClass. |
3691 |
rowSuperClass := oldSuper. |
|
419 | 3692 |
^self |
3693 |
]. |
|
1382 | 3694 |
rowClass := (classNameChannel value) withoutSeparators. |
3695 |
rowSuperClass := (superclassNameChannel value) withoutSeparators. |
|
419 | 3696 |
|
818 | 3697 |
rowClass size == 0 |
419 | 3698 |
ifTrue: |
3699 |
[ |
|
818 | 3700 |
rowClass := nil. |
419 | 3701 |
self information:'no valid className' |
3702 |
] |
|
3703 |
ifFalse: |
|
3704 |
[ |
|
983 | 3705 |
cls := self resolveRowClass. |
419 | 3706 |
|
3707 |
cls notNil ifTrue:[cls := cls superclass name asString]. |
|
3708 |
||
818 | 3709 |
rowSuperClass size == 0 |
419 | 3710 |
ifTrue: |
3711 |
[ |
|
3712 |
cls notNil ifTrue:[ |
|
818 | 3713 |
rowSuperClass := cls |
419 | 3714 |
] ifFalse:[ |
818 | 3715 |
rowSuperClass := 'Object' |
419 | 3716 |
]. |
3717 |
self information: 'set superclassName' |
|
3718 |
] |
|
3719 |
ifFalse: |
|
3720 |
[ |
|
825 | 3721 |
(cls isNil or:[rowSuperClass = cls]) ifTrue:[^self]. |
818 | 3722 |
self information:('A global named ' , rowClass , ' exists,\' , |
3723 |
'but is not a subclass of ' , rowSuperClass, '.\\' , |
|
419 | 3724 |
'Check and try again if that is not what you want.') withCRs. |
3725 |
||
818 | 3726 |
rowSuperClass := cls |
419 | 3727 |
] |
3728 |
] |
|
3729 |
] |
|
846 | 3730 |
|
3731 |
"Modified: / 21.5.1998 / 03:08:42 / cg" |
|
419 | 3732 |
! |
3733 |
||
825 | 3734 |
doDelete |
3735 |
"remove selected column and put it to the clipboard" |
|
3736 |
||
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3737 |
self cutOrDelete:false |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3738 |
|
825 | 3739 |
! |
3740 |
||
419 | 3741 |
doGenerateCode |
3742 |
"generate code for column values" |
|
3743 |
||
3744 |
|cls superclass| |
|
3745 |
||
818 | 3746 |
rowClass isNil ifTrue:[^self information:'No class defined!!']. |
983 | 3747 |
cls := self resolveRowClass. |
419 | 3748 |
|
3749 |
cls isNil |
|
3750 |
ifTrue: |
|
3751 |
[ |
|
818 | 3752 |
superclass := Smalltalk resolveName:rowSuperClass inClass:self class. |
419 | 3753 |
|
3754 |
superclass isNil ifTrue:[^self information:'No superclass defined!!']. |
|
818 | 3755 |
(self confirm:'create ' , rowClass , ' ?') ifFalse:[^self]. |
3756 |
cls := superclass subclass:rowClass asSymbol |
|
419 | 3757 |
instanceVariableNames:'' |
3758 |
classVariableNames:'' |
|
3759 |
poolDictionaries:'' |
|
3760 |
category:'Applications'. |
|
3761 |
]. |
|
3762 |
||
3763 |
self generateChoicesIn:cls. |
|
3764 |
self generateMenuIn:cls. |
|
3765 |
self generatePrintSelectorIn:cls. |
|
3766 |
self generateReadSelectorIn:cls. |
|
3767 |
self generateBackgroundSelectorIn:cls. |
|
3768 |
self generateForegroundSelectorIn:cls. |
|
3769 |
self generateSelectSelectorIn:cls. |
|
3770 |
self generateWriteSelectorIn:cls. |
|
3771 |
self generateDoubleClickSelectorIn:cls. |
|
983 | 3772 |
self generateRowSeparatorSelectorIn:cls. |
1009 | 3773 |
self generateShowComboFieldSelectorIn:cls. |
3774 |
||
419 | 3775 |
! |
3776 |
||
3777 |
doMoveColumn:upOrDown |
|
3778 |
"move selected column up or down" |
|
3779 |
||
2558 | 3780 |
|idx list label col size tabIndex| |
419 | 3781 |
|
2262 | 3782 |
(idx := self singleSelectedColumnIndex) == 0 ifTrue:[^self]. |
419 | 3783 |
list := self seqList. |
3784 |
size := list size. |
|
3785 |
||
2558 | 3786 |
size > 1 ifFalse:[ ^ self ]. |
3787 |
||
419 | 3788 |
selectedColumnIndex := 0. |
2558 | 3789 |
tabIndex := self tabModel value. |
3790 |
||
419 | 3791 |
label := list at:idx. |
3792 |
col := columns at:idx. |
|
3793 |
list removeIndex:idx. |
|
3794 |
columns removeIndex:idx. |
|
3795 |
||
2262 | 3796 |
upOrDown == #up ifTrue:[ |
419 | 3797 |
idx == 1 ifTrue:[idx := size] |
3798 |
ifFalse:[idx := idx - 1] |
|
2262 | 3799 |
] ifFalse:[ |
419 | 3800 |
idx == size ifTrue:[idx := 1] |
3801 |
ifFalse:[idx := idx + 1] |
|
3802 |
]. |
|
3803 |
columns add:col beforeIndex:idx. |
|
2558 | 3804 |
list add:label beforeIndex:idx. |
3805 |
||
419 | 3806 |
self selectedColumnModel value:idx. |
3807 |
self updateColumnView. |
|
2558 | 3808 |
self tabModel value:tabIndex. |
3809 |
||
1974 | 3810 |
self setModified. |
419 | 3811 |
! |
3812 |
||
2262 | 3813 |
doMoveDown |
3814 |
self doMoveColumn:#down |
|
3815 |
! |
|
3816 |
||
3817 |
doMoveUp |
|
3818 |
self doMoveColumn:#up |
|
3819 |
! |
|
3820 |
||
825 | 3821 |
doPaste |
419 | 3822 |
"paste clipboard copy column after selected column or at left (nothing selected)" |
3823 |
||
2262 | 3824 |
|cols idx newSel| |
3825 |
||
3826 |
self askForItemModification ifFalse: [^ self]. |
|
3827 |
||
3828 |
cols := self class clipboard. |
|
3829 |
cols isEmptyOrNil ifTrue:[^ self]. |
|
3830 |
||
3831 |
idx := (self selectedColumnIndices) isEmpty |
|
3832 |
ifTrue:[ columns size ] |
|
3833 |
ifFalse:[ self selectedColumnIndices max ]. |
|
3834 |
||
3835 |
newSel := OrderedCollection new. |
|
3836 |
cols do:[:col | |
|
3837 |
| lbl| |
|
3838 |
||
3839 |
lbl := self labelFromColumn:col. |
|
3840 |
||
3841 |
columns add:(col deepCopy) afterIndex:idx. |
|
3842 |
self seqList add:lbl afterIndex:idx. |
|
3843 |
idx := idx + 1. |
|
3844 |
newSel add:idx. |
|
3845 |
]. |
|
419 | 3846 |
|
1990 | 3847 |
self enablingCommitButtonsHolder value ifFalse:[ |
2262 | 3848 |
self selectedColumnModel value:newSel "/idx |
818 | 3849 |
]. |
419 | 3850 |
self updateColumnView. |
556 | 3851 |
self updateInputFields. |
1974 | 3852 |
self setModified. |
818 | 3853 |
! |
3854 |
||
3855 |
doPickColumns |
|
3856 |
||
3857 |
|view cls| |
|
3858 |
||
3859 |
view := Screen current viewFromUser. |
|
3860 |
cls := view class. |
|
3861 |
||
3862 |
(cls == DSVColumnView or:[cls == DataSetView or:[cls == DSVLabelView]]) ifTrue:[ |
|
3863 |
self columns:(view columnView columnDescriptors) |
|
3864 |
] |
|
3865 |
! |
|
3866 |
||
3867 |
doSave |
|
1144 | 3868 |
|cls dst spc category mthd excla code resourceType| |
818 | 3869 |
|
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3870 |
editingSpecOnly == true ifTrue:[ |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3871 |
acceptedColumns := columns. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3872 |
hasSaved := true. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3873 |
self clearModified. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3874 |
^ self. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3875 |
]. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3876 |
|
818 | 3877 |
(columns size ~~ 0 and:[super doSave]) ifFalse:[ |
3878 |
^ nil |
|
3879 |
]. |
|
983 | 3880 |
|
818 | 3881 |
cls := self resolveName:specClass. |
3882 |
dst := columns collect:[:aCol| aCol literalArrayEncoding ]. |
|
3329 | 3883 |
spc := WriteStream on:''. |
1105
a19cdc769750
stupid code-generation from Thomas fixed.
Claus Gittinger <cg@exept.de>
parents:
1073
diff
changeset
|
3884 |
spc nextPutAll:' ^'. |
818 | 3885 |
UISpecification prettyPrintSpecArray:dst asArray on:spc indent:4. |
3886 |
spc := spc contents. |
|
3887 |
||
3888 |
"/ if that method already exists, do not overwrite the category |
|
3889 |
||
3890 |
resourceType := self class resourceType. |
|
3891 |
category := resourceType, ' specs'. |
|
3892 |
||
3893 |
(mthd := cls class compiledMethodAt:specSelector) notNil ifTrue:[ |
|
3894 |
category := mthd category. |
|
3895 |
]. |
|
3896 |
||
3897 |
excla := Character excla asString. |
|
3898 |
||
3899 |
code := excla |
|
3900 |
, (cls name , ' class methodsFor:' , category storeString) |
|
3901 |
, excla , '\\' |
|
3902 |
||
3903 |
, specSelector , '\' |
|
3904 |
, (self class codeGenerationComment replChar:$!! withString:'!!!!') |
|
3905 |
, '\\ "\' |
|
3906 |
, (' DataSetBuilder new openOnClass:' , cls name , ' andSelector:#' , specSelector , '\') |
|
3907 |
, ' "\'. |
|
3908 |
||
3909 |
code := code |
|
3910 |
, '\' |
|
3911 |
, ' <resource: #', resourceType, '>\\' |
|
3912 |
, spc |
|
3913 |
, '\' |
|
3914 |
, (excla , ' ' , excla) |
|
3915 |
, '\\'. |
|
3916 |
||
3917 |
code := code withCRs. |
|
3076 | 3918 |
Class packageQuerySignal answer:cls package do:[ |
3919 |
(ReadStream on:code) fileIn. |
|
3920 |
]. |
|
818 | 3921 |
|
3922 |
"/ self isStandAlone ifTrue: [self helpTool installHelpSpecsOnClass:self specClass]. |
|
3923 |
||
3924 |
self updateHistory. |
|
3925 |
self updateInfoLabel. |
|
3926 |
||
3927 |
hasSaved := true. |
|
1974 | 3928 |
self clearModified. |
3076 | 3929 |
|
3930 |
"Modified: / 28-01-2014 / 21:57:35 / cg" |
|
1619 | 3931 |
! |
3932 |
||
3933 |
openDocumentation |
|
3934 |
self openHTMLDocument:'tools/uipainter/DataSetBuilder.html'. |
|
419 | 3935 |
! ! |
3936 |
||
3045 | 3937 |
!DataSetBuilder methodsFor:'menu operations'! |
3938 |
||
3939 |
addCellSeparators |
|
3940 |
self addRowSeparators. |
|
3941 |
self addColumnSeparators. |
|
3942 |
! |
|
3943 |
||
3944 |
addColumnSeparators |
|
3945 |
self selectedColumnsDo:[:eachColDescr | |
|
3946 |
eachColDescr showColSeparator:true |
|
3947 |
]. |
|
3948 |
self updateAfterOperation. |
|
3949 |
! |
|
3950 |
||
3951 |
addLabelColumnSeparators |
|
3952 |
self selectedColumnsDo:[:eachColDescr | |
|
3953 |
eachColDescr labelButtonType:#Button |
|
3954 |
]. |
|
3955 |
self updateAfterOperation. |
|
3956 |
! |
|
3957 |
||
3958 |
addLabelSeparators |
|
3959 |
self selectedColumnsDo:[:eachColDescr | |
|
3960 |
eachColDescr labelButtonType:#Button |
|
3961 |
]. |
|
3962 |
self updateAfterOperation. |
|
3963 |
! |
|
3964 |
||
3965 |
addRowSeparators |
|
3966 |
self selectedColumnsDo:[:eachColDescr | |
|
3967 |
eachColDescr showRowSeparator:true |
|
3968 |
]. |
|
3969 |
self updateAfterOperation. |
|
3970 |
! |
|
3971 |
||
3972 |
alignColumns:how |
|
3973 |
self selectedColumnsDo:[:eachColDescr | |
|
3974 |
eachColDescr columnAlignment:how |
|
3975 |
]. |
|
3976 |
self updateAfterOperation. |
|
3977 |
! |
|
3978 |
||
3979 |
alignColumnsCentered |
|
3980 |
self alignColumns:#centered |
|
3981 |
! |
|
3982 |
||
3983 |
alignColumnsLeft |
|
3984 |
self alignColumns:#left |
|
3985 |
! |
|
3986 |
||
3987 |
alignColumnsRight |
|
3988 |
self alignColumns:#right |
|
3989 |
! |
|
3990 |
||
3991 |
alignLabels:how |
|
3992 |
self selectedColumnsDo:[:eachColDescr | |
|
3993 |
eachColDescr labelAlignment:how |
|
3994 |
]. |
|
3995 |
self updateAfterOperation. |
|
3996 |
! |
|
3997 |
||
3998 |
alignLabelsCentered |
|
3999 |
self alignLabels:#centered |
|
4000 |
! |
|
4001 |
||
4002 |
alignLabelsLeft |
|
4003 |
self alignLabels:#left |
|
4004 |
! |
|
4005 |
||
4006 |
alignLabelsRight |
|
4007 |
self alignLabels:#right |
|
4008 |
! |
|
4009 |
||
4010 |
makeAllCellsSelectable |
|
4011 |
columns do:[:eachColDescr | |
|
4012 |
eachColDescr canSelect:true |
|
4013 |
]. |
|
4014 |
self updateAfterOperation. |
|
4015 |
! |
|
4016 |
||
4017 |
makeAllCellsUnselectable |
|
4018 |
columns do:[:eachColDescr | |
|
4019 |
eachColDescr canSelect:false |
|
4020 |
]. |
|
4021 |
self updateAfterOperation. |
|
4022 |
! |
|
4023 |
||
4024 |
makeColumnsSelectable |
|
4025 |
self makeColumnsSelectable:true |
|
4026 |
! |
|
4027 |
||
4028 |
makeColumnsSelectable:aBoolean |
|
4029 |
self selectedColumnsDo:[:eachColDescr | |
|
4030 |
eachColDescr canSelect:aBoolean |
|
4031 |
]. |
|
4032 |
self updateAfterOperation. |
|
4033 |
! |
|
4034 |
||
4035 |
makeColumnsUnselectable |
|
4036 |
self makeColumnsSelectable:false |
|
4037 |
! |
|
4038 |
||
4039 |
makeSelectedCellsSelectable |
|
4040 |
self selectedColumnsDo:[:eachColDescr | |
|
4041 |
eachColDescr canSelect:true |
|
4042 |
]. |
|
4043 |
self updateAfterOperation. |
|
4044 |
! |
|
4045 |
||
4046 |
makeSelectedCellsUnselectable |
|
4047 |
self selectedColumnsDo:[:eachColDescr | |
|
4048 |
eachColDescr canSelect:false |
|
4049 |
]. |
|
4050 |
self updateAfterOperation. |
|
4051 |
! |
|
4052 |
||
4053 |
removeCellSeparators |
|
4054 |
self removeRowSeparators. |
|
4055 |
self removeColumnSeparators. |
|
4056 |
! |
|
4057 |
||
4058 |
removeColumnSeparators |
|
4059 |
self selectedColumnsDo:[:eachColDescr | |
|
4060 |
eachColDescr showColSeparator:false |
|
4061 |
]. |
|
4062 |
self updateAfterOperation. |
|
4063 |
! |
|
4064 |
||
4065 |
removeLabelColumnSeparators |
|
4066 |
self selectedColumnsDo:[:eachColDescr | |
|
4067 |
eachColDescr labelButtonType:#Group |
|
4068 |
]. |
|
4069 |
self updateAfterOperation. |
|
4070 |
! |
|
4071 |
||
4072 |
removeLabelSeparators |
|
4073 |
self selectedColumnsDo:[:eachColDescr | |
|
4074 |
eachColDescr labelButtonType:#None |
|
4075 |
]. |
|
4076 |
self updateAfterOperation. |
|
4077 |
! |
|
4078 |
||
4079 |
removeRowSeparators |
|
4080 |
self selectedColumnsDo:[:eachColDescr | |
|
4081 |
eachColDescr showRowSeparator:false |
|
4082 |
]. |
|
4083 |
self updateAfterOperation. |
|
4084 |
! |
|
4085 |
||
4086 |
selectedColumnsDo:aBlock |
|
4087 |
selectedColumnIndex isCollection ifTrue:[ |
|
4088 |
selectedColumnIndex do:[:idx | aBlock value:(columns at:idx)]. |
|
4089 |
] ifFalse:[ |
|
4090 |
selectedColumnIndex ~~ 0 ifTrue:[ |
|
4091 |
selectedColumnIndex notNil ifTrue:[ |
|
4092 |
aBlock value:(columns at:selectedColumnIndex) |
|
4093 |
] |
|
4094 |
]. |
|
4095 |
]. |
|
4096 |
! |
|
4097 |
||
4098 |
setCellColorSelectors |
|
4099 |
|fgSelector bgSelector| |
|
4100 |
||
4101 |
fgSelector := Dialog request:'FG-Selector for all selected Columns (accept empty for none):'. |
|
4102 |
fgSelector isNil ifTrue:[^ self]. |
|
4103 |
||
4104 |
bgSelector := Dialog request:'BG-Selector for all selected Columns (accept empty for none):'. |
|
4105 |
bgSelector isNil ifTrue:[^ self]. |
|
4106 |
||
4107 |
self selectedColumnsDo:[:eachColDescr | |
|
4108 |
bgSelector notEmpty ifTrue:[ |
|
4109 |
eachColDescr backgroundSelector:bgSelector |
|
4110 |
]. |
|
4111 |
fgSelector notEmpty ifTrue:[ |
|
4112 |
eachColDescr foregroundSelector:fgSelector |
|
4113 |
]. |
|
4114 |
]. |
|
4115 |
self updateAfterOperation. |
|
4116 |
! |
|
4117 |
||
4118 |
setSelectedCellColorSelectors |
|
4119 |
|fgSelector bgSelector| |
|
4120 |
||
4121 |
fgSelector := Dialog request:'Selected FG-Selector for all selected Columns (accept empty for none):'. |
|
4122 |
fgSelector isNil ifTrue:[^ self]. |
|
4123 |
||
4124 |
bgSelector := Dialog request:'Selected BG-Selector for all selected Columns (accept empty for none):'. |
|
4125 |
bgSelector isNil ifTrue:[^ self]. |
|
4126 |
||
4127 |
self selectedColumnsDo:[:eachColDescr | |
|
4128 |
bgSelector notEmpty ifTrue:[ |
|
4129 |
eachColDescr selectedBackgroundSelector:bgSelector |
|
4130 |
]. |
|
4131 |
fgSelector notEmpty ifTrue:[ |
|
4132 |
eachColDescr selectedForegroundSelector:fgSelector |
|
4133 |
]. |
|
4134 |
]. |
|
4135 |
self updateAfterOperation. |
|
4136 |
! |
|
4137 |
||
4138 |
updateAfterOperation |
|
4139 |
self updateColumnView. |
|
4140 |
self updateInputFields. |
|
4141 |
self setModified. |
|
4142 |
! ! |
|
4143 |
||
4144 |
!DataSetBuilder methodsFor:'private'! |
|
4145 |
||
4146 |
labelFromColumn:aColumn |
|
4147 |
|label| |
|
4148 |
||
4149 |
aColumn rendererType == #rowSelector ifTrue:[ |
|
4150 |
^ 'Row Selector' |
|
4151 |
]. |
|
4152 |
label := aColumn label. |
|
4153 |
label isNil ifTrue:[^ nil]. |
|
4154 |
label isString ifTrue:[^ label]. |
|
4155 |
||
3406 | 4156 |
"/ is a collection of things? |
4157 |
label notEmpty ifTrue:[ |
|
3045 | 4158 |
label := label at:1. |
4159 |
]. |
|
4160 |
^ label printString |
|
3406 | 4161 |
|
4162 |
"Modified (comment): / 17-02-2017 / 08:36:27 / cg" |
|
3045 | 4163 |
! |
4164 |
||
4165 |
labelInPreviewPressed:anIndex |
|
4166 |
(self componentAt:#labelAndColumns) selection:anIndex |
|
4167 |
! |
|
4168 |
||
4169 |
updateColumnView |
|
4170 |
"updates the column view from column descriptions" |
|
4171 |
||
4172 |
|size previewColumns columnList| |
|
4173 |
||
4174 |
columnView notNil ifTrue:[ |
|
4175 |
columnList := List new. |
|
4176 |
previewColumns := OrderedCollection new. |
|
4177 |
||
4178 |
(size := columns size) ~~ 0 ifTrue:[ |
|
4179 |
columns do:[:aCol| |
|
4180 |
previewColumns add:(aCol copy) |
|
4181 |
]. |
|
4182 |
previewColumns keysAndValuesDo:[:anIndex :column| |
|
4183 |
column |
|
4184 |
readSelector: #at:; |
|
4185 |
writeSelector: #at:put:; |
|
4186 |
backgroundSelector:nil; |
|
4187 |
foregroundSelector:nil; |
|
4188 |
rowSeparatorSelector:nil; |
|
4189 |
selectSelector: nil; |
|
4190 |
showComboFieldSelector: nil; |
|
4191 |
selectSelector: nil; |
|
4192 |
doubleClickedSelector: nil; |
|
4193 |
printSelector: nil; |
|
4194 |
visibilitySelector: nil; |
|
4195 |
menu: nil; |
|
4196 |
labelActionSelector:#labelInPreviewPressed:; |
|
4197 |
labelActionArgument:anIndex; |
|
4198 |
choices:#choices; |
|
4199 |
sortSelector: nil; |
|
4200 |
isSortable: false |
|
4201 |
]. |
|
4202 |
#(' 1' ' 2' ' x') do:[:suffix| |
|
4203 |
|oneRow| |
|
4204 |
||
4205 |
oneRow := Row new:size. |
|
4206 |
1 to:size do:[:i | oneRow at: i put: ('Cell%1-%2' bindWith:suffix with:i)]. |
|
4207 |
columnList add: oneRow. |
|
4208 |
] |
|
4209 |
]. |
|
4210 |
||
4211 |
columnView list: #(). |
|
4212 |
columnView columnDescriptors: previewColumns. |
|
4213 |
columnView list: columnList. |
|
4214 |
]. |
|
4215 |
||
4216 |
"Modified: / 27.10.1998 / 14:41:16 / cg" |
|
4217 |
! |
|
4218 |
||
4219 |
updateInputFields |
|
4220 |
"reloads item value into input fields" |
|
4221 |
||
4222 |
|column notifyValue| |
|
4223 |
||
4224 |
(column := self selectedColumn) isNil ifTrue:[ |
|
4225 |
self tabModel value:0. |
|
4226 |
] ifFalse:[ |
|
4227 |
notifyValue := nil. "/ old: '' -> problems with Toggles (asBoolean) |
|
4228 |
||
4229 |
aspects do:[:anAspect| anAspect value:notifyValue ]. |
|
4230 |
aspects keysAndValuesDo:[:aKey :aModel | |
|
4231 |
aModel value:(column perform:aKey) withoutNotifying: self |
|
4232 |
]. |
|
4233 |
||
3529 | 4234 |
"/ REPLACE nil by empty string for specific inputFields without an adapter |
3045 | 4235 |
#( #labelActionArgument #formatString #id ) do:[:aKey| |model| |
4236 |
model := aspects at:aKey. |
|
4237 |
model value isNil ifTrue:[model value:notifyValue withoutNotifying: self] |
|
4238 |
]. |
|
4239 |
||
4240 |
tabSelection == 0 ifTrue:[self tabModel value:1]. |
|
4241 |
]. |
|
3529 | 4242 |
|
4243 |
"Modified (comment): / 24-01-2018 / 10:41:17 / mawalch" |
|
3045 | 4244 |
! ! |
4245 |
||
4246 |
!DataSetBuilder methodsFor:'selection'! |
|
4247 |
||
4248 |
selectedColumn |
|
4249 |
"returns selected column or nil" |
|
4250 |
||
4251 |
selectedColumnIndex isCollection ifTrue:[ |
|
4252 |
^ selectedColumnIndex size == 1 |
|
4253 |
ifTrue:[ columns at:selectedColumnIndex first ] |
|
4254 |
ifFalse:[ nil ] |
|
4255 |
]. |
|
4256 |
||
4257 |
^selectedColumnIndex == 0 |
|
4258 |
ifFalse:[columns at:selectedColumnIndex ifAbsent: nil] |
|
4259 |
ifTrue: [nil] |
|
4260 |
! |
|
4261 |
||
4262 |
selectedColumnIndex |
|
4263 |
"returns selected column index or 0" |
|
4264 |
||
4265 |
^selectedColumnIndex |
|
4266 |
! |
|
4267 |
||
4268 |
selectedColumnIndex:something |
|
4269 |
"changes selected column and updates specifications" |
|
4270 |
||
4271 |
something == selectedColumnIndex ifFalse:[ |
|
4272 |
selectedColumnIndex := something ? 0. |
|
4273 |
"/ self assert:( selectedColumnIndex <= columns size ). |
|
4274 |
"/ self assert:( selectedColumnIndex <= self seqList size ). |
|
4275 |
self isColumnSelected value: true |
|
4276 |
]. |
|
4277 |
! |
|
4278 |
||
4279 |
selectedColumnIndices |
|
4280 |
"returns selected column indices or #()" |
|
4281 |
||
4282 |
selectedColumnIndex == 0 ifTrue:[ ^ #() ]. |
|
4283 |
selectedColumnIndex isNumber ifTrue:[ ^ Array with:selectedColumnIndex ]. |
|
4284 |
^selectedColumnIndex |
|
4285 |
! |
|
4286 |
||
4287 |
selectedColumns |
|
4288 |
selectedColumnIndex isCollection ifTrue:[ |
|
4289 |
^ selectedColumnIndex collect:[:idx | columns at:idx] |
|
4290 |
]. |
|
4291 |
||
4292 |
^ selectedColumnIndex == 0 |
|
4293 |
ifFalse:[ Array with:(columns at:selectedColumnIndex) ] |
|
4294 |
ifTrue: [ #() ] |
|
4295 |
! |
|
4296 |
||
4297 |
singleSelectedColumnIndex |
|
4298 |
selectedColumnIndex isCollection ifTrue:[ |
|
4299 |
^ selectedColumnIndex size == 1 |
|
4300 |
ifTrue:[ selectedColumnIndex first ] |
|
4301 |
ifFalse:[ 0 ] |
|
4302 |
]. |
|
4303 |
||
4304 |
^ selectedColumnIndex |
|
4305 |
! |
|
4306 |
||
4307 |
tabSelection:something |
|
4308 |
"changes selected tab and set corresponding specification" |
|
4309 |
||
4310 |
|view spec| |
|
4311 |
||
4312 |
something == tabSelection ifTrue:[^self]. |
|
4313 |
||
4314 |
(tabSelection := something) isNil ifTrue:[ |
|
4315 |
tabSelection == 0 ifTrue:[^ self]. |
|
4316 |
tabSelection := 0. |
|
4317 |
]. |
|
4318 |
||
4319 |
self selectedColumn isNil ifTrue:[ |
|
4320 |
tabSelection ~~ 0 ifTrue:[ |
|
4321 |
self tabModel value:0 |
|
4322 |
] ifFalse:[ |
|
4323 |
self canvasHolder value:nil |
|
4324 |
]. |
|
4325 |
^ self |
|
4326 |
]. |
|
4327 |
||
4328 |
tabSelection == 0 ifTrue:[ |
|
4329 |
^ self tabModel value:1. |
|
4330 |
]. |
|
4331 |
||
4332 |
(view := listOfSpecViews at:tabSelection) isNil ifTrue:[ |
|
4333 |
view := SimpleView new. |
|
4334 |
spec := (self class slices at:tabSelection) last. |
|
4335 |
||
4336 |
"/ view client:nil spec:(self class interfaceSpecFor:spec) builder:(self builder). |
|
4337 |
view client:self spec:spec builder:(self builder). |
|
4338 |
listOfSpecViews at:tabSelection put:view. |
|
4339 |
]. |
|
4340 |
self canvasHolder value:view |
|
4341 |
! ! |
|
4342 |
||
4343 |
!DataSetBuilder methodsFor:'startup & release'! |
|
4344 |
||
4345 |
commonPostBuild |
|
4346 |
columnView := self componentAt:#columnView. |
|
4347 |
||
4348 |
columns notEmpty ifTrue: [ |
|
4349 |
self tabModel value: 1. |
|
4350 |
self selectedColumnModel value:nil; value:1. "/ toggle to force change |
|
4351 |
self updateInputFields. |
|
4352 |
self updateInfoLabel. |
|
4353 |
self updateHistory |
|
4354 |
]. |
|
4355 |
||
4356 |
(self componentAt: #labelAndColumns) |
|
4357 |
selectConditionBlock: [:i|self askForItemModification]; |
|
4358 |
action: [:i|self cancel]; |
|
4359 |
selection: 1. |
|
4360 |
||
4361 |
"/ using masters infoHolder ? |
|
3540 | 4362 |
self useAlienInfoLabel ifTrue:[ |
3045 | 4363 |
(builder componentAt:#mainPanel) layout bottomOffset:0. |
4364 |
(builder componentAt:#infoBarSubSpec) beInvisible |
|
3534 | 4365 |
] |
4366 |
||
4367 |
"Modified: / 20-02-2018 / 13:05:37 / stefan" |
|
3045 | 4368 |
! |
4369 |
||
4370 |
openModal |
|
4371 |
"sets the modalOpened flag, so later, |
|
4372 |
there is no need to ask for saving into a class" |
|
4373 |
||
4374 |
modalOpened := true. |
|
4375 |
super openModal |
|
4376 |
! |
|
4377 |
||
4378 |
openModalOnResourceSpec: aListSpec |
|
4379 |
"sets the modalOpened flag, so later, |
|
4380 |
there is no need to ask for saving into a class" |
|
4381 |
||
4382 |
modalOpened := true. |
|
4383 |
super openModalOnResourceSpec: aListSpec |
|
4384 |
||
4385 |
||
4386 |
! |
|
4387 |
||
4388 |
postBuildListOfItemsView:aView |
|
4389 |
listOfItemsView := aView |
|
4390 |
! |
|
4391 |
||
4392 |
postBuildSpecView:aView |
|
4393 |
listOfItemsView := aView |
|
4394 |
! |
|
4395 |
||
4396 |
postOpenWith:aBuilder |
|
4397 |
"reset keyboardProcessor for menuBar" |
|
4398 |
||
4399 |
super postOpenWith:aBuilder. |
|
4400 |
aBuilder keyboardProcessor menuBar:nil. |
|
4401 |
self windowGroup addPreEventHook:self. |
|
4402 |
! ! |
|
4403 |
||
1004 | 4404 |
!DataSetBuilder::Row methodsFor:'accessing'! |
4405 |
||
4406 |
choices |
|
4407 |
^ #( 'foo' 'bar' 'baz' ) |
|
4408 |
||
4409 |
||
4410 |
! ! |
|
4411 |
||
4412 |
!DataSetBuilder::Row methodsFor:'message handling'! |
|
4413 |
||
4414 |
doesNotUnderstand:aMessage |
|
3288 | 4415 |
"does not understand message; ignore" |
4416 |
||
4417 |
('[DataSetBuilder::Row] warning: message completely ignored: ',aMessage selector) errorPrintCR. |
|
1004 | 4418 |
^ nil |
4419 |
! ! |
|
4420 |
||
332 | 4421 |
!DataSetBuilder class methodsFor:'documentation'! |
4422 |
||
4423 |
version |
|
4424 |
^ '$Header$' |
|
2625 | 4425 |
! |
4426 |
||
4427 |
version_CVS |
|
4428 |
^ '$Header$' |
|
332 | 4429 |
! ! |
2944 | 4430 |