author | Claus Gittinger <cg@exept.de> |
Fri, 01 Nov 2019 05:52:58 +0100 | |
changeset 3813 | 04c48e162a22 |
parent 3759 | 24d2564ff378 |
permissions | -rw-r--r-- |
3565 | 1 |
"{ Encoding: utf8 }" |
2 |
||
332 | 3 |
" |
825 | 4 |
COPYRIGHT (c) 1997 by eXept Software AG |
332 | 5 |
All Rights Reserved |
6 |
||
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
1382 | 14 |
"{ Package: 'stx:libtool2' }" |
15 |
||
3181 | 16 |
"{ NameSpace: Smalltalk }" |
17 |
||
818 | 18 |
ResourceSpecEditor subclass:#DataSetBuilder |
825 | 19 |
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
|
20 |
modalOpened listOfSpecViews listOfItemsView editingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
21 |
acceptedColumns' |
816 | 22 |
classVariableNames:'' |
332 | 23 |
poolDictionaries:'' |
24 |
category:'Interface-UIPainter' |
|
25 |
! |
|
26 |
||
1033
21b3bc025e0c
removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents:
1019
diff
changeset
|
27 |
Array variableSubclass:#Row |
1004 | 28 |
instanceVariableNames:'' |
29 |
classVariableNames:'' |
|
30 |
poolDictionaries:'' |
|
31 |
privateIn:DataSetBuilder |
|
32 |
! |
|
33 |
||
332 | 34 |
!DataSetBuilder class methodsFor:'documentation'! |
35 |
||
36 |
copyright |
|
37 |
" |
|
825 | 38 |
COPYRIGHT (c) 1997 by eXept Software AG |
332 | 39 |
All Rights Reserved |
40 |
||
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
" |
|
48 |
||
49 |
||
50 |
||
51 |
||
52 |
! |
|
53 |
||
54 |
documentation |
|
55 |
" |
|
56 |
create and modify or inspect dataset columns; used by UIPainter (DataSetColumnSpec) |
|
57 |
||
58 |
[see also:] |
|
59 |
DataSetColumnSpec |
|
60 |
DataSetSpec |
|
61 |
DataSetView |
|
62 |
DataSetColumn |
|
63 |
||
64 |
[author:] |
|
545 | 65 |
Claus Atzkern, eXept Software AG |
332 | 66 |
" |
67 |
||
68 |
! ! |
|
69 |
||
825 | 70 |
!DataSetBuilder class methodsFor:'accessing'! |
799
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
71 |
|
818 | 72 |
resourceType |
73 |
"get the type of resource of the method generated by the MenuEditor" |
|
74 |
||
825 | 75 |
^#tableColumns |
76 |
||
77 |
||
78 |
! ! |
|
79 |
||
80 |
!DataSetBuilder class methodsFor:'aspects'! |
|
81 |
||
82 |
aspects |
|
83 |
"get the aspects for the attributes of the table columns" |
|
84 |
||
85 |
^#( |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
86 |
id |
2166 | 87 |
activeHelpKey |
2385
b7dafe79bd7c
allow for separate activeHelp for the label area
Claus Gittinger <cg@exept.de>
parents:
2382
diff
changeset
|
88 |
activeHelpKeyForLabel |
825 | 89 |
label |
90 |
canSelect |
|
91 |
choices |
|
1944 | 92 |
translatedChoices |
825 | 93 |
editorType |
94 |
formatString |
|
2475 | 95 |
formatSelector |
825 | 96 |
labelIsImage |
1262 | 97 |
labelButtonType |
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
98 |
translateLabel |
1666 | 99 |
longStringCompression |
825 | 100 |
size |
101 |
type |
|
102 |
width |
|
103 |
minWidth |
|
1216 | 104 |
usePreferredWidth |
1452 | 105 |
isResizeable |
825 | 106 |
height |
107 |
menu |
|
2816 | 108 |
menuFromApplication |
825 | 109 |
foregroundSelector |
110 |
backgroundSelector |
|
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
111 |
selectedForegroundSelector |
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
112 |
selectedBackgroundSelector |
825 | 113 |
doubleClickedSelector |
983 | 114 |
rowSeparatorSelector |
825 | 115 |
selectSelector |
1261 | 116 |
converterSelector |
1009 | 117 |
showComboFieldSelector |
825 | 118 |
printSelector |
119 |
readSelector |
|
120 |
writeSelector |
|
1731 | 121 |
visibilitySelector |
825 | 122 |
rendererType |
123 |
showColSeparator |
|
983 | 124 |
showSelectionHighLighted |
825 | 125 |
showRowSeparator |
126 |
backgroundColor |
|
127 |
foregroundColor |
|
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
128 |
selectedBackgroundColor |
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
129 |
selectedForegroundColor |
825 | 130 |
labelForegroundColor |
131 |
labelBackgroundColor |
|
132 |
labelFont |
|
133 |
labelActionSelector |
|
134 |
labelActionArgument |
|
135 |
labelAlignment |
|
136 |
columnAlignment |
|
1822 | 137 |
minValue |
138 |
maxValue |
|
2475 | 139 |
isSortable |
2626 | 140 |
sortSelector |
2789 | 141 |
sortBlockSelector |
825 | 142 |
) |
143 |
||
2816 | 144 |
"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
|
145 |
! ! |
22734b99f830
added dummy openOnClass:andSelector: (invoked by Browser)
Claus Gittinger <cg@exept.de>
parents:
687
diff
changeset
|
146 |
|
528 | 147 |
!DataSetBuilder class methodsFor:'help specs'! |
148 |
||
149 |
helpSpec |
|
818 | 150 |
"This resource specification was automatically generated |
151 |
by the UIHelpTool of ST/X." |
|
152 |
||
153 |
"Do not manually edit this!! If it is corrupted, |
|
154 |
the UIHelpTool may not be able to read the specification." |
|
528 | 155 |
|
156 |
" |
|
818 | 157 |
UIHelpTool openOnClass:DataSetBuilder |
528 | 158 |
" |
159 |
||
818 | 160 |
<resource: #help> |
161 |
||
1731 | 162 |
^ super helpSpec addPairsFrom:#( |
528 | 163 |
|
550 | 164 |
#addColumn |
2903 | 165 |
'Adds a new colum' |
550 | 166 |
|
2262 | 167 |
#addNonSelectableColumn |
2903 | 168 |
'Adds a new non-selectable column' |
2262 | 169 |
|
597 | 170 |
#basicsEditor |
2903 | 171 |
'Default widget type or a selector returning an instance of a user defined widget opened in the cell' |
528 | 172 |
|
597 | 173 |
#basicsFont |
2903 | 174 |
'Sets the font of the labeled text' |
528 | 175 |
|
597 | 176 |
#basicsJustification |
2903 | 177 |
'Aligns the label to the left, right, or center in the cell' |
528 | 178 |
|
1064 | 179 |
#basicsJustificationEditor |
2903 | 180 |
'Aligns the column editor to the left, right, or center in the cell' |
1064 | 181 |
|
597 | 182 |
#basicsLabel |
2903 | 183 |
'The label of the column, a String or an array of Strings' |
1004 | 184 |
|
185 |
#basicsLabelId |
|
2903 | 186 |
'Unique identifier of the column (optional)' |
597 | 187 |
|
188 |
#basicsLabelIsImage |
|
2903 | 189 |
'Label is actually the selector of a message providing an image-label' |
1004 | 190 |
|
191 |
#basicsLabelTranslate |
|
2903 | 192 |
'Translate the label via the resource mechanism to a national language string' |
528 | 193 |
|
597 | 194 |
#basicsRenderer |
2903 | 195 |
'Specifies displaying cell as Text, CheckToggle, ComboBox, ComboList or as a RowSelector' |
528 | 196 |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
197 |
#browseRowClass |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
198 |
'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
|
199 |
|
597 | 200 |
#colorsBackgroundCellColor |
2903 | 201 |
'The background color of the cell' |
597 | 202 |
|
203 |
#colorsBackgroundLabelColor |
|
2903 | 204 |
'The background color of the label' |
528 | 205 |
|
597 | 206 |
#colorsBackgroundSelector |
2903 | 207 |
'Optional selector returning the background color for the cell (with optional row/column args)' |
528 | 208 |
|
597 | 209 |
#colorsForegroundCellColor |
2903 | 210 |
'The foreground color of the cell (with optional row/column args)' |
597 | 211 |
|
212 |
#colorsForegroundLabelColor |
|
2903 | 213 |
'The foreground color of the label' |
528 | 214 |
|
597 | 215 |
#colorsForegroundSelector |
2903 | 216 |
'Optional selector returning the foreground color for a cell' |
528 | 217 |
|
1261 | 218 |
#converterSelector |
2903 | 219 |
'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
|
220 |
|
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
221 |
#fileLoad |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
222 |
'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
|
223 |
|
1261 | 224 |
#fileNew |
225 |
'Discard changes and continue with a new, empty column description' |
|
226 |
||
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
227 |
#fileSave |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
228 |
'Install the column description' |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
229 |
|
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
230 |
#fileSaveAs |
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
231 |
'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
|
232 |
|
1824 | 233 |
#formatFormatSelector |
2903 | 234 |
'Selector sent to the row to get the format string' |
1824 | 235 |
|
597 | 236 |
#formatInputType |
2903 | 237 |
'A type converter symbol used by the input field' |
528 | 238 |
|
597 | 239 |
#formatMaxSize |
2903 | 240 |
'Maximum size of the string which can be typed in. 0 or nil means unlimited' |
528 | 241 |
|
597 | 242 |
#formatTextFormat |
3390 | 243 |
'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 | 244 |
|
245 |
#frameColumnWidth |
|
2903 | 246 |
'Width (fixed or relative) of a column (optional)' |
528 | 247 |
|
597 | 248 |
#frameMinWidth |
2903 | 249 |
'Minimum width of the column (optional)' |
528 | 250 |
|
597 | 251 |
#frameRowHeight |
3047 | 252 |
'Height of the row (0 -> ask some rows; -1 / #fontHeight -> font; #heightOfFirstRow -> ask first row; >0 -> constant)' |
597 | 253 |
|
254 |
#frameShowColumnSeparator |
|
2903 | 255 |
'Turns on/off displaying column separators' |
528 | 256 |
|
597 | 257 |
#frameShowRowSeparator |
2903 | 258 |
'Turns on/off displaying row separators' |
528 | 259 |
|
983 | 260 |
#frameShowRowSeparatorSelector |
2903 | 261 |
'Message selector to test if the bottom separator is shown' |
983 | 262 |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
263 |
#generateCode |
2903 | 264 |
'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
|
265 |
|
1580 | 266 |
#isResizable |
2903 | 267 |
'Column can be resized by user' |
1580 | 268 |
|
2625 | 269 |
#isSortable |
2903 | 270 |
'Adds indicator to allow user to sort rows based on this column' |
2625 | 271 |
|
829
dac49512301a
language strings, help spec & initial handle position of panel
Claus Gittinger <cg@exept.de>
parents:
826
diff
changeset
|
272 |
#pickColumns |
2903 | 273 |
'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
|
274 |
|
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
275 |
#selectedBackgroundCellColor |
2903 | 276 |
'Optional background color of a selected cell' |
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
277 |
|
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
278 |
#selectedBackgroundCellColorSelector |
2903 | 279 |
'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
|
280 |
|
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
281 |
#selectedForegroundCellColor |
2903 | 282 |
'Optional foreground color of a selected cell' |
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
283 |
|
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
284 |
#selectedForegroundCellColorSelector |
2903 | 285 |
'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
|
286 |
|
597 | 287 |
#selectionCellClickSelector |
1753 | 288 |
'Message sent if cell is about to be selected - return boolean to en/disable editing' |
528 | 289 |
|
597 | 290 |
#selectionCellDoubleClickSelector |
1753 | 291 |
'Message sent if cell is double clicked' |
528 | 292 |
|
597 | 293 |
#selectionCellSelector |
2903 | 294 |
'Name of the message sent to the row to validate a selection' |
528 | 295 |
|
597 | 296 |
#selectionIsSelectable |
2903 | 297 |
'Turns on/off selection behavior of a column' |
597 | 298 |
|
299 |
#selectionLabelClickSelector |
|
1754 | 300 |
'Message sent if a columns label was clicked on' |
528 | 301 |
|
597 | 302 |
#selectionLabelSelectorArgument |
2903 | 303 |
'An optional argument passed with the message above' |
528 | 304 |
|
1009 | 305 |
#showComboFieldSelector |
2903 | 306 |
'Selector which returns true if the editor on the ComboBox/List has an input field' |
1009 | 307 |
|
983 | 308 |
#showSelectionHighLighted |
2903 | 309 |
'Show selected cell highligthened (change fg/bg color)' |
983 | 310 |
|
2789 | 311 |
#sortBlockSelector |
2903 | 312 |
'Sent to the row to retrieve a selector which is sent to the application to provide a block for sorting' |
2789 | 313 |
|
2625 | 314 |
#sortSelector |
2903 | 315 |
'Sent to the row to extract the value used for sorting. If a block is returned, that one is used as sortBlock' |
2625 | 316 |
|
1580 | 317 |
#usePreferredWidth |
2903 | 318 |
'Compute width from first 10 row items' |
1580 | 319 |
|
1944 | 320 |
#valuesChoicesSelector |
2903 | 321 |
'Selector to get a collection of choices for a cell having a ComboBox or a ComboList widget' |
528 | 322 |
|
2816 | 323 |
#valuesMenuFromApplication |
324 |
'Fetch the menu from the application (instead of the row)' |
|
325 |
||
597 | 326 |
#valuesMenuSelector |
2903 | 327 |
'Selector to retrieve the middle button menu' |
597 | 328 |
|
329 |
#valuesPrintSelector |
|
2903 | 330 |
'Selector used to register images on a DSVColumnView (the arg). For more detailed info see #register... methods in DSVColumnView' |
528 | 331 |
|
597 | 332 |
#valuesReadSelector |
2903 | 333 |
'Selector returning the label to be displayed (string, bitmap or a collection)' |
1731 | 334 |
|
335 |
#valuesVisibilitySelector |
|
2903 | 336 |
'Boolean message selector controlling the columns visibility' |
528 | 337 |
|
597 | 338 |
#valuesWriteSelector |
2903 | 339 |
'Selector used to set the value derived from the editor' |
528 | 340 |
|
1944 | 341 |
#valuesXChoicesSelector |
2903 | 342 |
'Selector to get a collection of translated choices for a cell having a ComboBox or a ComboList widget' |
1944 | 343 |
|
3515 | 344 |
|
345 |
#fileSaveMethod |
|
346 |
'Save Column Description as Method' |
|
347 |
||
348 |
#fileSaveAsMethod |
|
349 |
'Save Column Description as Method (ask for Class/Selector)' |
|
350 |
||
351 |
#editCut |
|
352 |
'Cut Column' |
|
353 |
||
354 |
#editCopy |
|
355 |
'Copy Column' |
|
356 |
||
357 |
#editPaste |
|
358 |
'Paste Column' |
|
359 |
||
528 | 360 |
) |
2840 | 361 |
|
2903 | 362 |
"Modified: / 09-08-2012 / 09:36:06 / cg" |
528 | 363 |
! ! |
364 |
||
881 | 365 |
!DataSetBuilder class methodsFor:'image specs'! |
366 |
||
367 |
newColumnIcon |
|
368 |
"This resource specification was automatically generated |
|
369 |
by the ImageEditor of ST/X." |
|
370 |
||
371 |
"Do not manually edit this!! If it is corrupted, |
|
372 |
the ImageEditor may not be able to read the specification." |
|
373 |
||
374 |
" |
|
375 |
self newColumnIcon inspect |
|
376 |
ImageEditor openOnClass:self andSelector:#newColumnIcon |
|
2262 | 377 |
Icon flushCachedIcons |
881 | 378 |
" |
379 |
||
380 |
<resource: #image> |
|
381 |
||
382 |
^Icon |
|
2262 | 383 |
constantNamed:#'DataSetBuilder class newColumnIcon' |
384 |
ifAbsentPut:[(Depth2Image new) width: 19; height: 22; photometric:(#palette); bitsPerSample:(#[2]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
385 |
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
|
386 |
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 | 387 |
! |
388 |
||
389 |
newColumnNonSelectableIcon |
|
390 |
"This resource specification was automatically generated |
|
391 |
by the ImageEditor of ST/X." |
|
392 |
||
393 |
"Do not manually edit this!! If it is corrupted, |
|
394 |
the ImageEditor may not be able to read the specification." |
|
395 |
||
396 |
" |
|
397 |
self newColumnNonSelectableIcon inspect |
|
398 |
ImageEditor openOnClass:self andSelector:#newColumnNonSelectableIcon |
|
399 |
Icon flushCachedIcons |
|
400 |
" |
|
401 |
||
402 |
<resource: #image> |
|
403 |
||
404 |
^Icon |
|
405 |
constantNamed:#'DataSetBuilder class newColumnNonSelectableIcon' |
|
406 |
ifAbsentPut:[(Depth2Image new) width: 19; height: 22; photometric:(#palette); bitsPerSample:(#[2]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
407 |
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
|
408 |
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 | 409 |
! ! |
881 | 410 |
|
528 | 411 |
!DataSetBuilder class methodsFor:'interface specs'! |
332 | 412 |
|
413 |
basicsEditSpec |
|
817 | 414 |
"This resource specification was automatically generated |
415 |
by the UIPainter of ST/X." |
|
332 | 416 |
|
817 | 417 |
"Do not manually edit this!! If it is corrupted, |
418 |
the UIPainter may not be able to read the specification." |
|
332 | 419 |
|
420 |
" |
|
421 |
UIPainter new openOnClass:DataSetBuilder andSelector:#basicsEditSpec |
|
422 |
DataSetBuilder new openInterface:#basicsEditSpec |
|
423 |
" |
|
424 |
||
425 |
<resource: #canvas> |
|
426 |
||
1156 | 427 |
^ |
3247 | 428 |
#(FullSpec |
429 |
name: basicsEditSpec |
|
430 |
window: |
|
431 |
(WindowSpec |
|
432 |
label: 'DataSet Basic' |
|
433 |
name: 'DataSet Basic' |
|
434 |
min: (Point 10 10) |
|
435 |
bounds: (Rectangle 0 0 389 473) |
|
436 |
) |
|
437 |
component: |
|
438 |
(SpecCollection |
|
439 |
collection: ( |
|
440 |
(VerticalPanelViewSpec |
|
441 |
name: 'VerticalPanel1' |
|
442 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
443 |
horizontalLayout: fit |
|
444 |
verticalLayout: top |
|
445 |
horizontalSpace: 3 |
|
446 |
verticalSpace: 3 |
|
447 |
component: |
|
448 |
(SpecCollection |
|
449 |
collection: ( |
|
450 |
(FramedBoxSpec |
|
451 |
label: 'Header:' |
|
452 |
name: 'headerFrame' |
|
453 |
labelPosition: topLeft |
|
454 |
translateLabel: true |
|
455 |
component: |
|
456 |
(SpecCollection |
|
457 |
collection: ( |
|
458 |
(LabelSpec |
|
459 |
label: 'ID:' |
|
460 |
name: 'idLabel' |
|
461 |
layout: (AlignmentOrigin 94 0 14 0 1 0.5) |
|
462 |
translateLabel: true |
|
463 |
resizeForLabel: true |
|
464 |
) |
|
465 |
(InputFieldSpec |
|
466 |
name: 'idField' |
|
467 |
layout: (LayoutFrame 97 0 0 0 2 1.0 22 0) |
|
468 |
activeHelpKey: basicsLabelId |
|
469 |
tabable: true |
|
470 |
model: id |
|
471 |
group: inputGroup |
|
472 |
acceptOnLostFocus: false |
|
473 |
acceptChannel: acceptChannel |
|
474 |
modifiedChannel: modifiedChannel |
|
475 |
acceptOnPointerLeave: false |
|
476 |
) |
|
477 |
(LabelSpec |
|
478 |
label: 'Label:' |
|
479 |
name: 'label1' |
|
480 |
layout: (AlignmentOrigin 94 0 39 0 1 0.5) |
|
481 |
translateLabel: true |
|
482 |
resizeForLabel: true |
|
483 |
) |
|
484 |
(InputFieldSpec |
|
485 |
name: 'labelField' |
|
486 |
layout: (LayoutFrame 97 0 28 0 2 1.0 50 0) |
|
487 |
activeHelpKey: basicsLabel |
|
488 |
tabable: true |
|
489 |
model: label |
|
490 |
group: inputGroup |
|
491 |
type: smalltalkObject |
|
492 |
immediateAccept: false |
|
493 |
acceptOnLeave: false |
|
494 |
acceptOnLostFocus: false |
|
495 |
acceptChannel: acceptChannel |
|
496 |
modifiedChannel: modifiedChannel |
|
497 |
acceptOnPointerLeave: false |
|
498 |
) |
|
499 |
(LabelSpec |
|
500 |
label: 'Font:' |
|
501 |
name: 'LabelFont' |
|
502 |
layout: (AlignmentOrigin 94 0 68 0 1 0.5) |
|
503 |
translateLabel: true |
|
504 |
resizeForLabel: true |
|
505 |
adjust: left |
|
506 |
) |
|
507 |
(FontMenuSpec |
|
508 |
name: 'fontMenu' |
|
509 |
layout: (LayoutFrame 97 0 56 0 0 1.0 78 0) |
|
510 |
activeHelpKey: labelFont |
|
511 |
model: style |
|
512 |
allowSymbolicFonts: true |
|
513 |
) |
|
514 |
(LabelSpec |
|
515 |
label: 'Type:' |
|
516 |
name: 'Type' |
|
517 |
layout: (AlignmentOrigin 52 0 100 0 1 0.5) |
|
518 |
translateLabel: true |
|
519 |
resizeForLabel: true |
|
520 |
adjust: right |
|
521 |
) |
|
522 |
(ComboListSpec |
|
523 |
name: 'labelButtonType' |
|
524 |
layout: (LayoutFrame 57 0 91 0 158 0 111 0) |
|
525 |
tabable: true |
|
526 |
model: labelButtonType |
|
527 |
comboList: |
|
528 |
(Array |
|
529 |
None Button |
|
530 |
Group |
|
531 |
) |
|
532 |
useIndex: false |
|
533 |
hidePullDownMenuButton: false |
|
534 |
) |
|
535 |
(LabelSpec |
|
536 |
label: 'Align:' |
|
537 |
name: 'JustificationLabel' |
|
538 |
layout: (AlignmentOrigin 243 0 100 0 1 0.5) |
|
539 |
translateLabel: true |
|
540 |
resizeForLabel: true |
|
541 |
adjust: right |
|
542 |
) |
|
543 |
(PopUpListSpec |
|
544 |
label: 'Alignment' |
|
545 |
name: 'Alignment' |
|
546 |
layout: (LayoutFrame 248 0 91 0 2 1.0 113 0) |
|
547 |
activeHelpKey: basicsJustification |
|
548 |
translateLabel: true |
|
549 |
tabable: true |
|
550 |
model: labelAlignment |
|
551 |
menu: |
|
552 |
(Array |
|
553 |
left right |
|
554 |
center |
|
555 |
) |
|
556 |
) |
|
557 |
(CheckBoxSpec |
|
558 |
label: 'Label Is Image' |
|
559 |
name: 'labelIsImage' |
|
560 |
layout: (LayoutOrigin -3 0 120 0) |
|
561 |
activeHelpKey: basicsLabelIsImage |
|
562 |
tabable: true |
|
563 |
model: labelIsImage |
|
564 |
translateLabel: true |
|
565 |
) |
|
566 |
(CheckBoxSpec |
|
567 |
label: 'Translate Label' |
|
568 |
name: 'CheckBox2' |
|
569 |
layout: (LayoutOrigin 200 0 120 0) |
|
570 |
activeHelpKey: basicsLabelTranslate |
|
571 |
tabable: true |
|
572 |
model: translateLabel |
|
573 |
translateLabel: true |
|
2475 | 574 |
) |
3247 | 575 |
) |
576 |
||
577 |
) |
|
578 |
extent: (Point 389 190) |
|
579 |
) |
|
580 |
(FramedBoxSpec |
|
581 |
label: 'Cell Type:' |
|
582 |
name: 'typesFrame' |
|
583 |
labelPosition: topLeft |
|
584 |
translateLabel: true |
|
585 |
component: |
|
586 |
(SpecCollection |
|
587 |
collection: ( |
|
588 |
(LabelSpec |
|
589 |
label: 'Renderer:' |
|
590 |
name: 'rendererLabel' |
|
591 |
layout: (AlignmentOrigin 94 0 16 0 1 0.5) |
|
592 |
translateLabel: true |
|
593 |
resizeForLabel: true |
|
594 |
) |
|
595 |
(ComboListSpec |
|
596 |
name: 'rendererField' |
|
597 |
layout: (LayoutFrame 97 0 5 0 2 1.0 27 0) |
|
598 |
activeHelpKey: basicsRenderer |
|
599 |
tabable: true |
|
600 |
model: rendererType |
|
601 |
comboList: rendererTypeList |
|
602 |
useIndex: false |
|
603 |
hidePullDownMenuButton: false |
|
604 |
) |
|
605 |
(LabelSpec |
|
606 |
label: 'Editor:' |
|
607 |
name: 'editorLabel' |
|
608 |
layout: (AlignmentOrigin 94 0 42 0 1 0.5) |
|
609 |
translateLabel: true |
|
610 |
resizeForLabel: true |
|
611 |
) |
|
612 |
(ComboBoxSpec |
|
613 |
name: 'editorField' |
|
614 |
layout: (LayoutFrame 97 0 31 0 2 1.0 53 0) |
|
615 |
activeHelpKey: basicsEditor |
|
616 |
tabable: true |
|
617 |
model: editorType |
|
618 |
type: symbolOrNil |
|
619 |
acceptOnLostFocus: false |
|
620 |
acceptChannel: acceptChannel |
|
621 |
modifiedChannel: modifiedChannel |
|
622 |
acceptOnPointerLeave: false |
|
623 |
comboList: editorTypeList |
|
624 |
useIndex: false |
|
625 |
isFilenameBox: false |
|
626 |
) |
|
627 |
(LabelSpec |
|
628 |
label: 'Align:' |
|
629 |
name: 'JustificationC' |
|
630 |
layout: (LayoutFrame -194 1 58 0 -114 1 79 0) |
|
631 |
translateLabel: true |
|
632 |
resizeForLabel: true |
|
633 |
adjust: right |
|
2475 | 634 |
) |
3247 | 635 |
(PopUpListSpec |
636 |
label: 'Alignment' |
|
637 |
name: 'AlignmentC' |
|
638 |
layout: (LayoutFrame -115 1 58 0 2 1.0 80 0) |
|
639 |
activeHelpKey: basicsJustificationEditor |
|
640 |
translateLabel: true |
|
641 |
tabable: true |
|
642 |
model: columnAlignment |
|
643 |
menu: |
|
644 |
(Array |
|
645 |
left right |
|
646 |
center decimal |
|
647 |
decimalRight |
|
648 |
) |
|
649 |
) |
|
650 |
(CheckBoxSpec |
|
651 |
label: 'Compress Long Strings' |
|
652 |
name: 'LongStringCompressionCheckBox' |
|
653 |
layout: (LayoutFrame -3 0 58 0 188 0 79 0) |
|
654 |
activeHelpKey: basicsLabelTranslate |
|
655 |
tabable: true |
|
656 |
model: longStringCompression |
|
657 |
translateLabel: true |
|
658 |
) |
|
659 |
) |
|
660 |
||
661 |
) |
|
662 |
extent: (Point 389 120) |
|
663 |
) |
|
664 |
(FramedBoxSpec |
|
665 |
label: 'Active Help:' |
|
666 |
name: 'activeHelpFrame' |
|
667 |
labelPosition: topLeft |
|
668 |
translateLabel: true |
|
669 |
component: |
|
670 |
(SpecCollection |
|
671 |
collection: ( |
|
672 |
(LabelSpec |
|
673 |
label: 'Key:' |
|
674 |
name: 'Label1' |
|
675 |
layout: (AlignmentOrigin 94 0 14 0 1 0.5) |
|
676 |
translateLabel: true |
|
677 |
resizeForLabel: true |
|
2475 | 678 |
) |
3247 | 679 |
(InputFieldSpec |
680 |
name: 'EntryField1' |
|
681 |
layout: (LayoutFrame 97 0 0 0 2 1.0 22 0) |
|
682 |
activeHelpKey: basicsLabelId |
|
683 |
tabable: true |
|
684 |
model: activeHelpKey |
|
685 |
group: inputGroup |
|
686 |
acceptOnLostFocus: false |
|
687 |
acceptChannel: acceptChannel |
|
688 |
modifiedChannel: modifiedChannel |
|
689 |
acceptOnPointerLeave: false |
|
690 |
) |
|
691 |
(LabelSpec |
|
692 |
label: 'Key for Label:' |
|
693 |
name: 'Label2' |
|
694 |
layout: (AlignmentOrigin 94 0 42 0 1 0.5) |
|
695 |
translateLabel: true |
|
696 |
resizeForLabel: true |
|
697 |
) |
|
698 |
(InputFieldSpec |
|
699 |
name: 'EntryField2' |
|
700 |
layout: (LayoutFrame 97 0 28 0 2 1.0 50 0) |
|
701 |
activeHelpKey: basicsLabelId |
|
702 |
tabable: true |
|
703 |
model: activeHelpKeyForLabel |
|
704 |
group: inputGroup |
|
705 |
acceptOnLostFocus: false |
|
706 |
acceptChannel: acceptChannel |
|
707 |
modifiedChannel: modifiedChannel |
|
708 |
acceptOnPointerLeave: false |
|
709 |
) |
|
710 |
) |
|
711 |
||
712 |
) |
|
713 |
extent: (Point 389 95) |
|
2166 | 714 |
) |
3247 | 715 |
) |
716 |
||
717 |
) |
|
1156 | 718 |
) |
3247 | 719 |
) |
720 |
||
721 |
) |
|
722 |
) |
|
391 | 723 |
! |
724 |
||
408 | 725 |
colorsEditSpec |
825 | 726 |
"This resource specification was automatically generated |
727 |
by the UIPainter of ST/X." |
|
332 | 728 |
|
825 | 729 |
"Do not manually edit this!! If it is corrupted, |
730 |
the UIPainter may not be able to read the specification." |
|
332 | 731 |
|
732 |
" |
|
408 | 733 |
UIPainter new openOnClass:DataSetBuilder andSelector:#colorsEditSpec |
734 |
DataSetBuilder new openInterface:#colorsEditSpec |
|
332 | 735 |
" |
736 |
||
737 |
<resource: #canvas> |
|
738 |
||
1156 | 739 |
^ |
3247 | 740 |
#(FullSpec |
741 |
name: colorsEditSpec |
|
742 |
window: |
|
743 |
(WindowSpec |
|
744 |
label: 'DataSet Misc' |
|
745 |
name: 'DataSet Misc' |
|
746 |
min: (Point 10 10) |
|
747 |
bounds: (Rectangle 0 0 369 451) |
|
748 |
) |
|
749 |
component: |
|
750 |
(SpecCollection |
|
751 |
collection: ( |
|
752 |
(FramedBoxSpec |
|
753 |
label: 'Label Colors:' |
|
754 |
name: 'ColorsBox' |
|
755 |
layout: (LayoutFrame 0 0.0 3 0 0 1.0 95 0) |
|
756 |
labelPosition: topLeft |
|
757 |
translateLabel: true |
|
758 |
component: |
|
759 |
(SpecCollection |
|
760 |
collection: ( |
|
761 |
(LabelSpec |
|
762 |
label: 'Foreground:' |
|
763 |
name: 'label1' |
|
764 |
layout: (AlignmentOrigin 112 0 14 0 1 0.5) |
|
765 |
translateLabel: true |
|
766 |
resizeForLabel: true |
|
767 |
adjust: right |
|
768 |
) |
|
769 |
(ColorMenuSpec |
|
770 |
name: 'colorMenu1' |
|
771 |
layout: (LayoutFrame 115 0 2 0 -3 1.0 24 0) |
|
772 |
activeHelpKey: colorsForegroundLabelColor |
|
773 |
model: labelForegroundColor |
|
774 |
labelsAreColored: true |
|
775 |
) |
|
776 |
(LabelSpec |
|
777 |
label: 'Background:' |
|
778 |
name: 'label2' |
|
779 |
layout: (AlignmentOrigin 112 0 42 0 1 0.5) |
|
780 |
translateLabel: true |
|
781 |
resizeForLabel: true |
|
782 |
adjust: right |
|
783 |
) |
|
784 |
(ColorMenuSpec |
|
785 |
name: 'colorMenu2' |
|
786 |
layout: (LayoutFrame 115 0 30 0 -3 1.0 52 0) |
|
787 |
activeHelpKey: colorsBackgroundLabelColor |
|
788 |
model: labelBackgroundColor |
|
789 |
) |
|
790 |
) |
|
791 |
||
792 |
) |
|
793 |
) |
|
794 |
(FramedBoxSpec |
|
795 |
label: 'Cell Colors:' |
|
796 |
name: 'defaultColorsBox' |
|
797 |
layout: (LayoutFrame 0 0.0 95 0 0 1.0 245 0) |
|
798 |
labelPosition: topLeft |
|
799 |
translateLabel: true |
|
800 |
component: |
|
801 |
(SpecCollection |
|
802 |
collection: ( |
|
803 |
(LabelSpec |
|
804 |
label: 'Foreground:' |
|
805 |
name: 'fgLabel' |
|
806 |
layout: (AlignmentOrigin 112 0 11 0 1 0.5) |
|
807 |
translateLabel: true |
|
808 |
resizeForLabel: true |
|
809 |
adjust: right |
|
810 |
) |
|
811 |
(ColorMenuSpec |
|
812 |
name: 'fgMenu' |
|
813 |
layout: (LayoutFrame 115 0 -1 0 -3 1.0 21 0) |
|
814 |
activeHelpKey: colorsForegroundCellColor |
|
815 |
model: foregroundColor |
|
816 |
labelsAreColored: true |
|
817 |
) |
|
818 |
(LabelSpec |
|
819 |
label: 'Background:' |
|
820 |
name: 'bgLabel' |
|
821 |
layout: (AlignmentOrigin 112 0 39 0 1 0.5) |
|
822 |
translateLabel: true |
|
823 |
resizeForLabel: true |
|
824 |
adjust: right |
|
825 |
) |
|
826 |
(ColorMenuSpec |
|
827 |
name: 'bgMenu' |
|
828 |
layout: (LayoutFrame 115 0 27 0 -3 1.0 49 0) |
|
829 |
activeHelpKey: colorsBackgroundCellColor |
|
830 |
model: backgroundColor |
|
831 |
) |
|
832 |
(LabelSpec |
|
833 |
label: 'FG-Selector:' |
|
834 |
name: 'fgSelLabel' |
|
835 |
layout: (AlignmentOrigin 112 0 73 0 1 0.5) |
|
836 |
translateLabel: true |
|
837 |
resizeForLabel: true |
|
838 |
adjust: right |
|
839 |
) |
|
840 |
(InputFieldSpec |
|
841 |
name: 'fgSelField' |
|
842 |
layout: (LayoutFrame 115 0 62 0 0 1.0 84 0) |
|
843 |
activeHelpKey: colorsForegroundSelector |
|
844 |
tabable: true |
|
845 |
model: foregroundSelector |
|
846 |
group: inputGroup |
|
847 |
type: symbolOrNil |
|
848 |
acceptOnLostFocus: false |
|
849 |
acceptChannel: acceptChannel |
|
850 |
modifiedChannel: modifiedChannel |
|
851 |
acceptOnPointerLeave: false |
|
1156 | 852 |
) |
3247 | 853 |
(LabelSpec |
854 |
label: 'BG-Selector:' |
|
855 |
name: 'bgSelLabel' |
|
856 |
layout: (AlignmentOrigin 112 0 98 0 1 0.5) |
|
857 |
translateLabel: true |
|
858 |
resizeForLabel: true |
|
859 |
adjust: right |
|
860 |
) |
|
861 |
(InputFieldSpec |
|
862 |
name: 'bgSelField' |
|
863 |
layout: (LayoutFrame 115 0 87 0 0 1.0 109 0) |
|
864 |
activeHelpKey: colorsBackgroundSelector |
|
865 |
tabable: true |
|
866 |
model: backgroundSelector |
|
867 |
group: inputGroup |
|
868 |
type: symbolOrNil |
|
869 |
acceptOnLostFocus: false |
|
870 |
acceptChannel: acceptChannel |
|
871 |
modifiedChannel: modifiedChannel |
|
872 |
acceptOnPointerLeave: false |
|
873 |
) |
|
874 |
) |
|
875 |
||
876 |
) |
|
877 |
) |
|
878 |
(FramedBoxSpec |
|
879 |
label: 'Selected Cell Colors:' |
|
880 |
name: 'selectedCellColorsBox' |
|
881 |
layout: (LayoutFrame 0 0.0 245 0 0 1.0 390 0) |
|
882 |
labelPosition: topLeft |
|
883 |
translateLabel: true |
|
884 |
component: |
|
885 |
(SpecCollection |
|
886 |
collection: ( |
|
887 |
(LabelSpec |
|
888 |
label: 'Foreground:' |
|
889 |
name: 'selFgLabel' |
|
890 |
layout: (AlignmentOrigin 112 0 11 0 1 0.5) |
|
891 |
translateLabel: true |
|
892 |
resizeForLabel: true |
|
893 |
adjust: right |
|
894 |
) |
|
895 |
(ColorMenuSpec |
|
896 |
name: 'selFgMenu' |
|
897 |
layout: (LayoutFrame 115 0 -1 0 -3 1.0 21 0) |
|
898 |
activeHelpKey: selectedForegroundCellColor |
|
899 |
model: selectedForegroundColor |
|
900 |
labelsAreColored: true |
|
901 |
) |
|
902 |
(LabelSpec |
|
903 |
label: 'Background:' |
|
904 |
name: 'selBgLabel' |
|
905 |
layout: (AlignmentOrigin 112 0 39 0 1 0.5) |
|
906 |
translateLabel: true |
|
907 |
resizeForLabel: true |
|
908 |
adjust: right |
|
1156 | 909 |
) |
3247 | 910 |
(ColorMenuSpec |
911 |
name: 'selBgMenu' |
|
912 |
layout: (LayoutFrame 115 0 27 0 -3 1.0 49 0) |
|
913 |
activeHelpKey: colorsBackgroundCellColor |
|
914 |
model: selectedBackgroundColor |
|
915 |
) |
|
916 |
(LabelSpec |
|
917 |
label: 'FG-Selector:' |
|
918 |
name: 'Label3' |
|
919 |
layout: (AlignmentOrigin 112 0 73 0 1 0.5) |
|
920 |
translateLabel: true |
|
921 |
resizeForLabel: true |
|
922 |
adjust: right |
|
923 |
) |
|
924 |
(InputFieldSpec |
|
925 |
name: 'EntryField1' |
|
926 |
layout: (LayoutFrame 115 0 62 0 0 1.0 84 0) |
|
927 |
activeHelpKey: colorsForegroundSelector |
|
928 |
tabable: true |
|
929 |
model: selectedForegroundSelector |
|
930 |
group: inputGroup |
|
931 |
type: symbolOrNil |
|
932 |
acceptOnLostFocus: false |
|
933 |
acceptChannel: acceptChannel |
|
934 |
modifiedChannel: modifiedChannel |
|
935 |
acceptOnPointerLeave: false |
|
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
936 |
) |
3247 | 937 |
(LabelSpec |
938 |
label: 'BG-Selector:' |
|
939 |
name: 'Label4' |
|
940 |
layout: (AlignmentOrigin 112 0 98 0 1 0.5) |
|
941 |
translateLabel: true |
|
942 |
resizeForLabel: true |
|
943 |
adjust: right |
|
944 |
) |
|
945 |
(InputFieldSpec |
|
946 |
name: 'EntryField2' |
|
947 |
layout: (LayoutFrame 115 0 87 0 0 1.0 109 0) |
|
948 |
activeHelpKey: colorsBackgroundSelector |
|
949 |
tabable: true |
|
950 |
model: selectedBackgroundSelector |
|
951 |
group: inputGroup |
|
952 |
type: symbolOrNil |
|
953 |
acceptOnLostFocus: false |
|
954 |
acceptChannel: acceptChannel |
|
955 |
modifiedChannel: modifiedChannel |
|
956 |
acceptOnPointerLeave: false |
|
957 |
) |
|
958 |
) |
|
959 |
||
960 |
) |
|
1156 | 961 |
) |
3247 | 962 |
) |
963 |
||
964 |
) |
|
965 |
) |
|
332 | 966 |
! |
967 |
||
528 | 968 |
defineClassNameSpec |
825 | 969 |
"This resource specification was automatically generated |
970 |
by the UIPainter of ST/X." |
|
528 | 971 |
|
825 | 972 |
"Do not manually edit this!! If it is corrupted, |
973 |
the UIPainter may not be able to read the specification." |
|
528 | 974 |
|
975 |
" |
|
976 |
UIPainter new openOnClass:DataSetBuilder andSelector:#defineClassNameSpec |
|
977 |
DataSetBuilder new openInterface:#defineClassNameSpec |
|
978 |
" |
|
979 |
||
980 |
<resource: #canvas> |
|
981 |
||
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1731
diff
changeset
|
982 |
^ |
3247 | 983 |
#(FullSpec |
984 |
name: defineClassNameSpec |
|
985 |
window: |
|
986 |
(WindowSpec |
|
987 |
label: 'Data Set Builder' |
|
988 |
name: 'Data Set Builder' |
|
989 |
min: (Point 10 10) |
|
990 |
bounds: (Rectangle 0 0 327 136) |
|
991 |
) |
|
992 |
component: |
|
993 |
(SpecCollection |
|
994 |
collection: ( |
|
995 |
(FramedBoxSpec |
|
996 |
label: 'Class for code' |
|
997 |
name: 'framedBox1' |
|
998 |
layout: (LayoutFrame 0 0.0 3 0.0 0 1.0 -34 1.0) |
|
999 |
labelPosition: topLeft |
|
1000 |
translateLabel: true |
|
1001 |
) |
|
1002 |
(LabelSpec |
|
1003 |
label: 'Class:' |
|
1004 |
name: 'classLabel' |
|
1005 |
layout: (AlignmentOrigin 73 0.11 38 0 1 0.5) |
|
1006 |
translateLabel: true |
|
1007 |
resizeForLabel: true |
|
1008 |
adjust: right |
|
1737
de6abd3c55d2
Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents:
1731
diff
changeset
|
1009 |
) |
3247 | 1010 |
(InputFieldSpec |
1011 |
name: 'classNameInputField' |
|
1012 |
layout: (LayoutFrame 77 0.11 27 0 -16 1.0 49 0) |
|
1013 |
tabable: true |
|
1014 |
model: classNameChannel |
|
1015 |
acceptOnPointerLeave: false |
|
1016 |
) |
|
1017 |
(LabelSpec |
|
1018 |
label: 'Superclass:' |
|
1019 |
name: 'superClassLabel' |
|
1020 |
layout: (AlignmentOrigin 73 0.11 65 0 1 0.5) |
|
1021 |
translateLabel: true |
|
1022 |
resizeForLabel: true |
|
1023 |
adjust: right |
|
1024 |
) |
|
1025 |
(InputFieldSpec |
|
1026 |
name: 'superclassNameInputField' |
|
1027 |
layout: (LayoutFrame 76 0.11 55 0 -16 1.0 77 0) |
|
1028 |
tabable: true |
|
1029 |
model: superclassNameChannel |
|
1030 |
acceptOnPointerLeave: false |
|
1031 |
) |
|
1032 |
(UISubSpecification |
|
1033 |
name: 'SubSpecification' |
|
1034 |
layout: (LayoutFrame 0 0.0 -35 1 0 1.0 -5 1.0) |
|
1035 |
majorKey: ToolApplicationModel |
|
1036 |
minorKey: windowSpecForCommitWithoutChannels |
|
1037 |
keepSpaceForOSXResizeHandleH: true |
|
1038 |
) |
|
1039 |
) |
|
1040 |
||
1041 |
) |
|
1042 |
) |
|
528 | 1043 |
! |
1044 |
||
370 | 1045 |
formatEditSpec |
825 | 1046 |
"This resource specification was automatically generated |
1047 |
by the UIPainter of ST/X." |
|
332 | 1048 |
|
825 | 1049 |
"Do not manually edit this!! If it is corrupted, |
1050 |
the UIPainter may not be able to read the specification." |
|
332 | 1051 |
|
1052 |
" |
|
370 | 1053 |
UIPainter new openOnClass:DataSetBuilder andSelector:#formatEditSpec |
1054 |
DataSetBuilder new openInterface:#formatEditSpec |
|
1055 |
" |
|
1056 |
||
1057 |
<resource: #canvas> |
|
1058 |
||
1156 | 1059 |
^ |
3247 | 1060 |
#(FullSpec |
1061 |
name: formatEditSpec |
|
1062 |
window: |
|
1063 |
(WindowSpec |
|
1064 |
label: 'DataSet Details' |
|
1065 |
name: 'DataSet Details' |
|
1066 |
min: (Point 10 10) |
|
1067 |
bounds: (Rectangle 0 0 388 149) |
|
1068 |
) |
|
1069 |
component: |
|
1070 |
(SpecCollection |
|
1071 |
collection: ( |
|
1072 |
(FramedBoxSpec |
|
1073 |
label: 'Column Format' |
|
1074 |
name: 'framedBox1' |
|
1075 |
layout: (LayoutFrame 0 0.0 3 0 0 1.0 155 0) |
|
1076 |
labelPosition: topLeft |
|
1077 |
translateLabel: true |
|
1078 |
component: |
|
1079 |
(SpecCollection |
|
1080 |
collection: ( |
|
1081 |
(LabelSpec |
|
1082 |
label: 'Type:' |
|
1083 |
name: 'typeLabel' |
|
1084 |
layout: (AlignmentOrigin 115 0 21 0 1 0.5) |
|
1085 |
activeHelpKey: formatInputType |
|
1086 |
translateLabel: true |
|
1087 |
resizeForLabel: true |
|
1088 |
) |
|
1089 |
(ComboListSpec |
|
1090 |
name: 'typeCombo' |
|
1091 |
layout: (LayoutFrame 118 0 10 0 3 1.0 32 0) |
|
1092 |
activeHelpKey: formatInputType |
|
1093 |
tabable: true |
|
1094 |
model: type |
|
1095 |
comboList: possiblePrintConverterTypes |
|
1096 |
useIndex: false |
|
1097 |
hidePullDownMenuButton: false |
|
1098 |
) |
|
1099 |
(LabelSpec |
|
1100 |
label: 'Max Size:' |
|
1101 |
name: 'sizeLabel' |
|
1102 |
layout: (AlignmentOrigin 115 0 47 0 1 0.5) |
|
1103 |
activeHelpKey: formatMaxSize |
|
1104 |
translateLabel: true |
|
1105 |
resizeForLabel: true |
|
1156 | 1106 |
) |
3247 | 1107 |
(InputFieldSpec |
1108 |
name: 'sizeField' |
|
1109 |
layout: (LayoutFrame 118 0 36 0 3 1.0 58 0) |
|
1110 |
activeHelpKey: formatMaxSize |
|
1111 |
tabable: true |
|
1112 |
model: size |
|
1113 |
group: inputGroup |
|
1114 |
type: numberOrNil |
|
1115 |
acceptOnLostFocus: false |
|
1116 |
acceptChannel: acceptChannel |
|
1117 |
modifiedChannel: modifiedChannel |
|
1118 |
acceptOnPointerLeave: false |
|
1119 |
) |
|
1120 |
(LabelSpec |
|
1121 |
label: 'Text Format:' |
|
1122 |
name: 'formatLabel' |
|
1123 |
layout: (AlignmentOrigin 115 0 72 0 1 0.5) |
|
1124 |
activeHelpKey: formatTextFormat |
|
1125 |
translateLabel: true |
|
1126 |
resizeForLabel: true |
|
1127 |
) |
|
1128 |
(InputFieldSpec |
|
1129 |
name: 'formatField' |
|
1130 |
layout: (LayoutFrame 118 0 61 0 3 1.0 83 0) |
|
1131 |
activeHelpKey: formatTextFormat |
|
1132 |
tabable: true |
|
1133 |
model: formatString |
|
1134 |
group: inputGroup |
|
1135 |
acceptOnLostFocus: false |
|
1136 |
acceptChannel: acceptChannel |
|
1137 |
modifiedChannel: modifiedChannel |
|
1138 |
acceptOnPointerLeave: false |
|
1139 |
) |
|
1140 |
(LabelSpec |
|
1141 |
label: 'Format Selector:' |
|
1142 |
name: 'formatSelectorLabel' |
|
1143 |
layout: (AlignmentOrigin 115 0 98 0 1 0.5) |
|
1144 |
activeHelpKey: formatFormatSelector |
|
1145 |
translateLabel: true |
|
1146 |
resizeForLabel: true |
|
1147 |
) |
|
1148 |
(InputFieldSpec |
|
1149 |
name: 'formatSelector' |
|
1150 |
layout: (LayoutFrame 118 0 87 0 3 1.0 109 0) |
|
1151 |
activeHelpKey: formatFormatSelector |
|
1152 |
tabable: true |
|
1153 |
model: formatSelector |
|
1154 |
group: inputGroup |
|
1155 |
acceptOnLostFocus: false |
|
1156 |
acceptChannel: acceptChannel |
|
1157 |
modifiedChannel: modifiedChannel |
|
1158 |
acceptOnPointerLeave: false |
|
1159 |
) |
|
1160 |
) |
|
1161 |
||
1162 |
) |
|
1156 | 1163 |
) |
3247 | 1164 |
) |
1165 |
||
1166 |
) |
|
1167 |
) |
|
370 | 1168 |
! |
1169 |
||
408 | 1170 |
frameEditSpec |
825 | 1171 |
"This resource specification was automatically generated |
1172 |
by the UIPainter of ST/X." |
|
391 | 1173 |
|
825 | 1174 |
"Do not manually edit this!! If it is corrupted, |
1175 |
the UIPainter may not be able to read the specification." |
|
391 | 1176 |
|
1177 |
" |
|
408 | 1178 |
UIPainter new openOnClass:DataSetBuilder andSelector:#frameEditSpec |
1179 |
DataSetBuilder new openInterface:#frameEditSpec |
|
391 | 1180 |
" |
1181 |
||
1182 |
<resource: #canvas> |
|
1183 |
||
1156 | 1184 |
^ |
3048 | 1185 |
#(FullSpec |
1186 |
name: frameEditSpec |
|
1187 |
window: |
|
1188 |
(WindowSpec |
|
1189 |
label: 'DataSet Dimension' |
|
1190 |
name: 'DataSet Dimension' |
|
1191 |
min: (Point 10 10) |
|
1192 |
bounds: (Rectangle 0 0 396 313) |
|
1193 |
) |
|
1194 |
component: |
|
1195 |
(SpecCollection |
|
1196 |
collection: ( |
|
1197 |
(FramedBoxSpec |
|
1198 |
label: 'Separators' |
|
1199 |
name: 'separatorBox' |
|
1200 |
layout: (LayoutFrame 0 0.0 3 0 0 1.0 132 0) |
|
1201 |
labelPosition: topLeft |
|
1202 |
translateLabel: true |
|
1203 |
component: |
|
1204 |
(SpecCollection |
|
1205 |
collection: ( |
|
1206 |
(CheckBoxSpec |
|
1207 |
label: 'Show Row-Separator' |
|
1208 |
name: 'showRowSeparator' |
|
1209 |
layout: (LayoutFrame 5 0 15 0 293 0 38 0) |
|
1210 |
activeHelpKey: frameShowRowSeparator |
|
1211 |
tabable: true |
|
1212 |
model: showRowSeparator |
|
1213 |
translateLabel: true |
|
1214 |
) |
|
1215 |
(InputFieldSpec |
|
1216 |
name: 'rowSeparatorSelector' |
|
1217 |
layout: (LayoutFrame 142 0 41 0 2 1.0 63 0) |
|
1218 |
activeHelpKey: frameShowRowSeparatorSelector |
|
1219 |
tabable: true |
|
1220 |
model: rowSeparatorSelector |
|
1221 |
group: inputGroup |
|
1222 |
type: symbolOrNil |
|
1223 |
acceptOnLostFocus: false |
|
1224 |
acceptChannel: acceptChannel |
|
1225 |
modifiedChannel: modifiedChannel |
|
1226 |
acceptOnPointerLeave: false |
|
1227 |
) |
|
1228 |
(CheckBoxSpec |
|
1229 |
label: 'Show Column-Separator' |
|
1230 |
name: 'showColSeparator' |
|
1231 |
layout: (LayoutFrame 5 0 70 0 294 0 93 0) |
|
1232 |
activeHelpKey: frameShowColumnSeparator |
|
1233 |
tabable: true |
|
1234 |
model: showColSeparator |
|
1235 |
translateLabel: true |
|
1236 |
) |
|
1237 |
(LabelSpec |
|
1238 |
label: 'Selector:' |
|
1239 |
name: 'Label1' |
|
1240 |
layout: (LayoutFrame 80 0.0 44 0 140 0.0 61 0) |
|
1241 |
activeHelpKey: frameShowRowSeparatorSelector |
|
1242 |
translateLabel: true |
|
1243 |
resizeForLabel: true |
|
1244 |
adjust: right |
|
1245 |
) |
|
1246 |
) |
|
1247 |
||
1248 |
) |
|
1249 |
) |
|
1250 |
(FramedBoxSpec |
|
1251 |
label: 'Dimensions:' |
|
1252 |
name: 'framedBox1' |
|
3247 | 1253 |
layout: (LayoutFrame 0 0.0 133 0 0 1.0 315 0) |
3048 | 1254 |
labelPosition: topLeft |
1255 |
translateLabel: true |
|
1256 |
component: |
|
1257 |
(SpecCollection |
|
1258 |
collection: ( |
|
1259 |
(LabelSpec |
|
1260 |
label: 'Column Width:' |
|
1261 |
name: 'widthLabel' |
|
1262 |
layout: (AlignmentOrigin 140 0.0 23 0 1 0.5) |
|
1263 |
activeHelpKey: frameColumnWidth |
|
1264 |
translateLabel: true |
|
1265 |
resizeForLabel: true |
|
1266 |
adjust: right |
|
1156 | 1267 |
) |
3048 | 1268 |
(InputFieldSpec |
1269 |
name: 'widthField' |
|
1270 |
layout: (LayoutFrame 142 0 12 0 2 1.0 34 0) |
|
1271 |
activeHelpKey: frameColumnWidth |
|
1272 |
tabable: true |
|
1273 |
model: width |
|
1274 |
group: inputGroup |
|
1275 |
type: numberOrNil |
|
1276 |
acceptOnLostFocus: false |
|
1277 |
acceptChannel: acceptChannel |
|
1278 |
modifiedChannel: modifiedChannel |
|
1279 |
acceptOnPointerLeave: false |
|
1280 |
) |
|
1281 |
(LabelSpec |
|
1282 |
label: 'Min. Width:' |
|
1283 |
name: 'minWidthLabel' |
|
1284 |
layout: (AlignmentOrigin 140 0.0 51 0 1 0.5) |
|
1285 |
activeHelpKey: frameMinWidth |
|
1286 |
translateLabel: true |
|
1287 |
resizeForLabel: true |
|
1288 |
adjust: right |
|
1289 |
) |
|
1290 |
(InputFieldSpec |
|
1291 |
name: 'minWidthField' |
|
1292 |
layout: (LayoutFrame 142 0 40 0 2 1.0 62 0) |
|
1293 |
activeHelpKey: frameMinWidth |
|
1294 |
tabable: true |
|
1295 |
model: minWidth |
|
1296 |
group: inputGroup |
|
1297 |
type: numberOrNil |
|
1298 |
acceptOnLostFocus: false |
|
1299 |
acceptChannel: acceptChannel |
|
1300 |
modifiedChannel: modifiedChannel |
|
1301 |
acceptOnPointerLeave: false |
|
1156 | 1302 |
) |
3048 | 1303 |
(LabelSpec |
1304 |
label: 'Row Height:' |
|
1305 |
name: 'heightLabel' |
|
1306 |
layout: (AlignmentOrigin 140 0.0 79 0 1 0.5) |
|
1307 |
activeHelpKey: frameRowHeight |
|
1308 |
translateLabel: true |
|
1309 |
resizeForLabel: true |
|
1310 |
adjust: right |
|
1311 |
) |
|
1312 |
(InputFieldSpec |
|
1313 |
name: 'heightField' |
|
1314 |
layout: (LayoutFrame 142 0 68 0 2 1.0 90 0) |
|
1315 |
activeHelpKey: frameRowHeight |
|
1316 |
tabable: true |
|
1317 |
model: height |
|
1318 |
group: inputGroup |
|
1319 |
type: symbolOrNumberOrNil |
|
1320 |
acceptOnLostFocus: false |
|
1321 |
acceptChannel: acceptChannel |
|
1322 |
modifiedChannel: modifiedChannel |
|
1323 |
acceptOnPointerLeave: false |
|
1324 |
) |
|
1325 |
(CheckBoxSpec |
|
1326 |
label: 'Compute Width from Items' |
|
1327 |
name: 'usePreferredWidth' |
|
1328 |
layout: (LayoutFrame 5 0 96 0 -5 1 118 0) |
|
1329 |
activeHelpKey: usePreferredWidth |
|
1330 |
tabable: true |
|
1331 |
model: usePreferredWidth |
|
1332 |
translateLabel: true |
|
1333 |
) |
|
1334 |
(CheckBoxSpec |
|
1335 |
label: 'Is Resizeable' |
|
1336 |
name: 'isResizeable' |
|
1337 |
layout: (LayoutFrame 5 0 121 0 -5 1.0 144 0) |
|
1338 |
activeHelpKey: isResizeable |
|
1339 |
tabable: true |
|
1340 |
model: isResizeable |
|
1341 |
translateLabel: true |
|
1342 |
) |
|
1343 |
) |
|
1344 |
||
1345 |
) |
|
1156 | 1346 |
) |
3048 | 1347 |
) |
1348 |
||
1349 |
) |
|
1350 |
) |
|
391 | 1351 |
! |
1352 |
||
408 | 1353 |
selectionEditSpec |
825 | 1354 |
"This resource specification was automatically generated |
1355 |
by the UIPainter of ST/X." |
|
370 | 1356 |
|
825 | 1357 |
"Do not manually edit this!! If it is corrupted, |
1358 |
the UIPainter may not be able to read the specification." |
|
370 | 1359 |
|
1360 |
" |
|
408 | 1361 |
UIPainter new openOnClass:DataSetBuilder andSelector:#selectionEditSpec |
1362 |
DataSetBuilder new openInterface:#selectionEditSpec |
|
332 | 1363 |
" |
1364 |
||
1365 |
<resource: #canvas> |
|
1366 |
||
1156 | 1367 |
^ |
3247 | 1368 |
#(FullSpec |
1369 |
name: selectionEditSpec |
|
1370 |
window: |
|
1371 |
(WindowSpec |
|
1372 |
label: 'DataSet Basic' |
|
1373 |
name: 'DataSet Basic' |
|
1374 |
min: (Point 10 10) |
|
1375 |
bounds: (Rectangle 0 0 331 328) |
|
1376 |
) |
|
1377 |
component: |
|
1378 |
(SpecCollection |
|
1379 |
collection: ( |
|
1380 |
(FramedBoxSpec |
|
1381 |
label: 'Label Select Action:' |
|
1382 |
name: 'LabelSelectAction' |
|
1383 |
layout: (LayoutFrame 0 0.0 3 0 0 1.0 100 0) |
|
1384 |
labelPosition: topLeft |
|
1385 |
translateLabel: true |
|
1386 |
component: |
|
1387 |
(SpecCollection |
|
1388 |
collection: ( |
|
1389 |
(LabelSpec |
|
1390 |
label: 'Selector:' |
|
1391 |
name: 'ActionLabel' |
|
1392 |
layout: (AlignmentOrigin 95 0 20 0 1 0.5) |
|
1393 |
translateLabel: true |
|
1394 |
resizeForLabel: true |
|
1395 |
adjust: left |
|
1396 |
) |
|
1397 |
(InputFieldSpec |
|
1398 |
name: 'ActionSelector' |
|
1399 |
layout: (LayoutFrame 98 0 9 0 3 1.0 31 0) |
|
1400 |
activeHelpKey: selectionLabelClickSelector |
|
1401 |
tabable: true |
|
1402 |
model: labelActionSelector |
|
1403 |
group: inputGroup |
|
1404 |
type: symbolOrNil |
|
1405 |
acceptOnLostFocus: false |
|
1406 |
acceptChannel: acceptChannel |
|
1407 |
modifiedChannel: modifiedChannel |
|
1408 |
acceptOnPointerLeave: false |
|
1409 |
) |
|
1410 |
(LabelSpec |
|
1411 |
label: 'Argument:' |
|
1412 |
name: 'ArgumentLabel' |
|
1413 |
layout: (AlignmentOrigin 95 0 48 0 1 0.5) |
|
1414 |
translateLabel: true |
|
1415 |
resizeForLabel: true |
|
1416 |
adjust: left |
|
1417 |
) |
|
1418 |
(InputFieldSpec |
|
1419 |
name: 'ArgumentValue' |
|
1420 |
layout: (LayoutFrame 98 0 37 0 3 1.0 59 0) |
|
1421 |
activeHelpKey: selectionLabelSelectorArgument |
|
1422 |
tabable: true |
|
1423 |
model: labelActionArgument |
|
1424 |
group: inputGroup |
|
1425 |
type: string |
|
1426 |
acceptOnLostFocus: false |
|
1427 |
acceptChannel: acceptChannel |
|
1428 |
modifiedChannel: modifiedChannel |
|
1429 |
acceptOnPointerLeave: false |
|
1156 | 1430 |
) |
3247 | 1431 |
) |
1432 |
||
1433 |
) |
|
1434 |
) |
|
1435 |
(FramedBoxSpec |
|
1436 |
label: 'Cell Selection:' |
|
1437 |
name: 'CellSelection' |
|
1438 |
layout: (LayoutFrame 0 0.0 105 0 0 1.0 225 0) |
|
1439 |
labelPosition: topLeft |
|
1440 |
translateLabel: true |
|
1441 |
component: |
|
1442 |
(SpecCollection |
|
1443 |
collection: ( |
|
1444 |
(CheckBoxSpec |
|
1445 |
label: 'Is Selectable' |
|
1446 |
name: 'canSelect' |
|
1447 |
layout: (Point 95 -4) |
|
1448 |
activeHelpKey: selectionIsSelectable |
|
1449 |
tabable: true |
|
1450 |
model: canSelect |
|
1451 |
translateLabel: true |
|
1452 |
) |
|
1453 |
(LabelSpec |
|
1454 |
label: 'Selector:' |
|
1455 |
name: 'selectorLabel' |
|
1456 |
layout: (AlignmentOrigin 95 0 37 0 1 0.5) |
|
1457 |
activeHelpKey: selectionCellClickSelector |
|
1458 |
translateLabel: true |
|
1459 |
resizeForLabel: true |
|
1460 |
adjust: right |
|
1461 |
) |
|
1462 |
(InputFieldSpec |
|
1463 |
name: 'selectSelector' |
|
1464 |
layout: (LayoutFrame 98 0 26 0 3 1.0 48 0) |
|
1465 |
activeHelpKey: selectionCellClickSelector |
|
1466 |
tabable: true |
|
1467 |
model: selectSelector |
|
1468 |
group: inputGroup |
|
1469 |
type: symbolOrNil |
|
1470 |
acceptOnLostFocus: false |
|
1471 |
acceptChannel: acceptChannel |
|
1472 |
modifiedChannel: modifiedChannel |
|
1473 |
acceptOnPointerLeave: false |
|
1156 | 1474 |
) |
3247 | 1475 |
(CheckBoxSpec |
1476 |
label: 'Show Selection HighLightened' |
|
1477 |
name: 'showSelectionHighLightened' |
|
1478 |
layout: (LayoutFrame 95 0 53 0 3 1.0 77 0) |
|
1479 |
activeHelpKey: showSelectionHighLighted |
|
1480 |
tabable: true |
|
1481 |
model: showSelectionHighLighted |
|
1482 |
translateLabel: true |
|
1156 | 1483 |
) |
3247 | 1484 |
) |
1485 |
||
1486 |
) |
|
1156 | 1487 |
) |
3247 | 1488 |
(FramedBoxSpec |
1489 |
label: 'Cell Double Click:' |
|
1490 |
name: 'CellDoubleClick' |
|
1491 |
layout: (LayoutFrame 0 0.0 227 0 0 1.0 300 0) |
|
1492 |
labelPosition: topLeft |
|
1493 |
translateLabel: true |
|
1494 |
component: |
|
1495 |
(SpecCollection |
|
1496 |
collection: ( |
|
1497 |
(LabelSpec |
|
1498 |
label: 'Selector:' |
|
1499 |
name: 'doubleLabel' |
|
1500 |
layout: (AlignmentOrigin 95 0 19 0 1 0.5) |
|
1501 |
activeHelpKey: selectionCellDoubleClickSelector |
|
1502 |
translateLabel: true |
|
1503 |
resizeForLabel: true |
|
1504 |
adjust: right |
|
1505 |
) |
|
1506 |
(InputFieldSpec |
|
1507 |
name: 'doubleClicked' |
|
1508 |
layout: (LayoutFrame 98 0 8 0 3 1.0 30 0) |
|
1509 |
activeHelpKey: selectionCellDoubleClickSelector |
|
1510 |
tabable: true |
|
1511 |
model: doubleClickedSelector |
|
1512 |
group: inputGroup |
|
1513 |
type: symbolOrNil |
|
1514 |
acceptOnLostFocus: false |
|
1515 |
acceptChannel: acceptChannel |
|
1516 |
modifiedChannel: modifiedChannel |
|
1517 |
acceptOnPointerLeave: false |
|
1518 |
) |
|
1519 |
) |
|
1520 |
||
1521 |
) |
|
1522 |
) |
|
1523 |
) |
|
1524 |
||
1525 |
) |
|
1526 |
) |
|
408 | 1527 |
! |
1528 |
||
528 | 1529 |
slices |
1530 |
^#( |
|
1531 |
(Basics basicsEditSpec) |
|
1532 |
(Values valuesEditSpec) |
|
1533 |
(Format formatEditSpec) |
|
2475 | 1534 |
(Sort sortEditSpec) |
528 | 1535 |
(Selection selectionEditSpec) |
1536 |
(Frame frameEditSpec) |
|
1537 |
(Colors colorsEditSpec) |
|
1538 |
) |
|
1539 |
! |
|
1540 |
||
2475 | 1541 |
sortEditSpec |
1542 |
"This resource specification was automatically generated |
|
1543 |
by the UIPainter of ST/X." |
|
1544 |
||
1545 |
"Do not manually edit this!! If it is corrupted, |
|
1546 |
the UIPainter may not be able to read the specification." |
|
1547 |
||
1548 |
" |
|
1549 |
UIPainter new openOnClass:DataSetBuilder andSelector:#sortEditSpec |
|
1550 |
DataSetBuilder new openInterface:#sortEditSpec |
|
1551 |
" |
|
1552 |
||
1553 |
<resource: #canvas> |
|
1554 |
||
1555 |
^ |
|
3046 | 1556 |
#(FullSpec |
1557 |
name: sortEditSpec |
|
1558 |
window: |
|
1559 |
(WindowSpec |
|
1560 |
label: 'DataSet Basic' |
|
1561 |
name: 'DataSet Basic' |
|
1562 |
min: (Point 10 10) |
|
1563 |
bounds: (Rectangle 0 0 430 473) |
|
1564 |
) |
|
1565 |
component: |
|
1566 |
(SpecCollection |
|
1567 |
collection: ( |
|
1568 |
(VerticalPanelViewSpec |
|
1569 |
name: 'VerticalPanel1' |
|
1570 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
1571 |
horizontalLayout: fit |
|
1572 |
verticalLayout: top |
|
1573 |
horizontalSpace: 3 |
|
1574 |
verticalSpace: 3 |
|
1575 |
component: |
|
1576 |
(SpecCollection |
|
1577 |
collection: ( |
|
1578 |
(FramedBoxSpec |
|
1579 |
label: 'Sorting:' |
|
1580 |
name: 'sortFrame' |
|
1581 |
labelPosition: topLeft |
|
1582 |
translateLabel: true |
|
1583 |
component: |
|
1584 |
(SpecCollection |
|
1585 |
collection: ( |
|
1586 |
(CheckBoxSpec |
|
1587 |
label: 'Sortable' |
|
1588 |
name: 'isSortable' |
|
1589 |
layout: (LayoutOrigin -3 0 0 0) |
|
1590 |
activeHelpKey: isSortable |
|
1591 |
tabable: true |
|
1592 |
model: isSortable |
|
1593 |
translateLabel: true |
|
1594 |
) |
|
1595 |
(LabelSpec |
|
1596 |
label: 'Sort Selector:' |
|
1597 |
name: 'sortSelector' |
|
3247 | 1598 |
layout: (AlignmentOrigin 142 0 55 0 1 0.5) |
3046 | 1599 |
activeHelpKey: sortSelector |
1600 |
translateLabel: true |
|
1601 |
resizeForLabel: true |
|
1602 |
adjust: right |
|
2475 | 1603 |
) |
3046 | 1604 |
(InputFieldSpec |
1605 |
name: 'EntryField3' |
|
3247 | 1606 |
layout: (LayoutFrame 141 0 43 0 8 1 69 0) |
3046 | 1607 |
activeHelpKey: sortSelector |
1608 |
enableChannel: isSortable |
|
1609 |
tabable: true |
|
1610 |
model: sortSelector |
|
1611 |
group: inputGroup |
|
1612 |
type: symbolOrNil |
|
1613 |
immediateAccept: false |
|
1614 |
acceptOnLeave: false |
|
1615 |
acceptOnLostFocus: false |
|
1616 |
acceptChannel: acceptChannel |
|
1617 |
modifiedChannel: modifiedChannel |
|
1618 |
acceptOnPointerLeave: false |
|
1619 |
) |
|
1620 |
(LabelSpec |
|
1621 |
label: 'Sort Block Selector:' |
|
1622 |
name: 'Label1' |
|
3247 | 1623 |
layout: (AlignmentOrigin 142 0 85 0 1 0.5) |
3046 | 1624 |
activeHelpKey: sortBlockSelector |
1625 |
translateLabel: true |
|
1626 |
resizeForLabel: true |
|
1627 |
adjust: right |
|
1628 |
) |
|
1629 |
(InputFieldSpec |
|
1630 |
name: 'EntryField4' |
|
3247 | 1631 |
layout: (LayoutFrame 141 0 73 0 8 1 99 0) |
3046 | 1632 |
activeHelpKey: sortBlockSelector |
1633 |
enableChannel: isSortable |
|
1634 |
tabable: true |
|
1635 |
model: sortBlockSelector |
|
1636 |
group: inputGroup |
|
1637 |
type: symbolOrNil |
|
1638 |
immediateAccept: false |
|
1639 |
acceptOnLeave: false |
|
1640 |
acceptOnLostFocus: false |
|
1641 |
acceptChannel: acceptChannel |
|
1642 |
modifiedChannel: modifiedChannel |
|
1643 |
acceptOnPointerLeave: false |
|
1644 |
) |
|
1645 |
) |
|
1646 |
||
1647 |
) |
|
3247 | 1648 |
extent: (Point 430 140) |
2475 | 1649 |
) |
3046 | 1650 |
) |
1651 |
||
1652 |
) |
|
2475 | 1653 |
) |
3046 | 1654 |
) |
1655 |
||
1656 |
) |
|
1657 |
) |
|
2475 | 1658 |
! |
1659 |
||
408 | 1660 |
valuesEditSpec |
825 | 1661 |
"This resource specification was automatically generated |
1662 |
by the UIPainter of ST/X." |
|
408 | 1663 |
|
825 | 1664 |
"Do not manually edit this!! If it is corrupted, |
1665 |
the UIPainter may not be able to read the specification." |
|
408 | 1666 |
|
1667 |
" |
|
1668 |
UIPainter new openOnClass:DataSetBuilder andSelector:#valuesEditSpec |
|
1669 |
DataSetBuilder new openInterface:#valuesEditSpec |
|
1670 |
" |
|
1671 |
||
1672 |
<resource: #canvas> |
|
1673 |
||
1156 | 1674 |
^ |
3046 | 1675 |
#(FullSpec |
1676 |
name: valuesEditSpec |
|
1677 |
window: |
|
1678 |
(WindowSpec |
|
1679 |
label: 'DataSet Basic' |
|
1680 |
name: 'DataSet Basic' |
|
1681 |
min: (Point 10 10) |
|
3247 | 1682 |
bounds: (Rectangle 0 0 472 460) |
3046 | 1683 |
) |
1684 |
component: |
|
1685 |
(SpecCollection |
|
1686 |
collection: ( |
|
1687 |
(VerticalPanelViewSpec |
|
1688 |
name: 'VerticalPanel1' |
|
1689 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
|
1690 |
horizontalLayout: fit |
|
1691 |
verticalLayout: top |
|
1692 |
horizontalSpace: 3 |
|
1693 |
verticalSpace: 3 |
|
1694 |
component: |
|
1695 |
(SpecCollection |
|
1696 |
collection: ( |
|
1697 |
(FramedBoxSpec |
|
1698 |
label: 'Value Selectors:' |
|
1699 |
name: 'valuesBox' |
|
1700 |
labelPosition: topLeft |
|
1701 |
translateLabel: true |
|
1702 |
component: |
|
1703 |
(SpecCollection |
|
1704 |
collection: ( |
|
1705 |
(LabelSpec |
|
1706 |
label: 'Read:' |
|
1707 |
name: 'readLabel' |
|
1708 |
layout: (AlignmentOrigin 116 0 15 0 1 0.5) |
|
1709 |
activeHelpKey: valuesReadSelector |
|
1710 |
translateLabel: true |
|
1711 |
resizeForLabel: true |
|
1712 |
adjust: right |
|
1713 |
) |
|
1714 |
(InputFieldSpec |
|
1715 |
name: 'readSelector' |
|
1716 |
layout: (LayoutFrame 116 0 4 0 2 1.0 26 0) |
|
1717 |
activeHelpKey: valuesReadSelector |
|
1718 |
tabable: true |
|
1719 |
model: readSelector |
|
1720 |
group: inputGroup |
|
1721 |
type: symbolOrNil |
|
1722 |
acceptOnLostFocus: false |
|
1723 |
acceptChannel: acceptChannel |
|
1724 |
modifiedChannel: modifiedChannel |
|
1725 |
acceptOnPointerLeave: false |
|
1726 |
) |
|
1727 |
(LabelSpec |
|
1728 |
label: 'Write:' |
|
1729 |
name: 'writeLabel' |
|
1730 |
layout: (AlignmentOrigin 116 0 40 0 1 0.5) |
|
1731 |
activeHelpKey: valuesWriteSelector |
|
1732 |
translateLabel: true |
|
1733 |
resizeForLabel: true |
|
1734 |
adjust: right |
|
1735 |
) |
|
1736 |
(InputFieldSpec |
|
1737 |
name: 'writeSelector' |
|
1738 |
layout: (LayoutFrame 116 0 29 0 2 1.0 51 0) |
|
1739 |
activeHelpKey: valuesWriteSelector |
|
1740 |
tabable: true |
|
1741 |
model: writeSelector |
|
1742 |
group: inputGroup |
|
1743 |
type: symbolOrNil |
|
1744 |
acceptOnLostFocus: false |
|
1745 |
acceptChannel: acceptChannel |
|
1746 |
modifiedChannel: modifiedChannel |
|
1747 |
acceptOnPointerLeave: false |
|
1748 |
) |
|
1749 |
(LabelSpec |
|
1750 |
label: 'Converter:' |
|
1751 |
name: 'converterLabel' |
|
1752 |
layout: (AlignmentOrigin 116 0 65 0 1 0.5) |
|
1753 |
activeHelpKey: converterSelector |
|
1754 |
translateLabel: true |
|
1755 |
resizeForLabel: true |
|
1756 |
adjust: right |
|
1757 |
) |
|
1758 |
(InputFieldSpec |
|
1759 |
name: 'converterField' |
|
1760 |
layout: (LayoutFrame 116 0 54 0 2 1.0 76 0) |
|
1761 |
activeHelpKey: converterSelector |
|
1762 |
tabable: true |
|
1763 |
model: converterSelector |
|
1764 |
group: inputGroup |
|
1765 |
type: symbolOrNil |
|
1766 |
acceptOnLostFocus: false |
|
1767 |
acceptChannel: acceptChannel |
|
1768 |
modifiedChannel: modifiedChannel |
|
1769 |
acceptOnPointerLeave: false |
|
1770 |
) |
|
1771 |
(LabelSpec |
|
1772 |
label: 'Print:' |
|
1773 |
name: 'printLabel' |
|
1774 |
layout: (AlignmentOrigin 116 0 90 0 1 0.5) |
|
1775 |
activeHelpKey: valuesPrintSelector |
|
1776 |
translateLabel: true |
|
1777 |
resizeForLabel: true |
|
1778 |
adjust: right |
|
1779 |
) |
|
1780 |
(InputFieldSpec |
|
1781 |
name: 'printSelector' |
|
1782 |
layout: (LayoutFrame 116 0 79 0 2 1.0 101 0) |
|
1783 |
activeHelpKey: valuesPrintSelector |
|
1784 |
tabable: true |
|
1785 |
model: printSelector |
|
1786 |
group: inputGroup |
|
1787 |
type: symbolOrNil |
|
1788 |
acceptOnLostFocus: false |
|
1789 |
acceptChannel: acceptChannel |
|
1790 |
modifiedChannel: modifiedChannel |
|
1791 |
acceptOnPointerLeave: false |
|
1792 |
) |
|
1793 |
(LabelSpec |
|
1794 |
label: 'Visibility:' |
|
1795 |
name: 'visibilityLabel' |
|
1796 |
layout: (AlignmentOrigin 116 0 115 0 1 0.5) |
|
1797 |
activeHelpKey: valuesVisibilitySelector |
|
1798 |
translateLabel: true |
|
1799 |
resizeForLabel: true |
|
1800 |
adjust: right |
|
1801 |
) |
|
1802 |
(InputFieldSpec |
|
1803 |
name: 'visibilitySelector' |
|
1804 |
layout: (LayoutFrame 116 0 104 0 2 1.0 126 0) |
|
1805 |
activeHelpKey: valuesVisibilitySelector |
|
1806 |
tabable: true |
|
1807 |
model: visibilitySelector |
|
1808 |
group: inputGroup |
|
1809 |
type: symbolOrNil |
|
1810 |
acceptOnLostFocus: false |
|
1811 |
acceptChannel: acceptChannel |
|
1812 |
modifiedChannel: modifiedChannel |
|
1813 |
acceptOnPointerLeave: false |
|
1814 |
) |
|
1815 |
) |
|
1816 |
||
1817 |
) |
|
3247 | 1818 |
extent: (Point 472 170) |
3046 | 1819 |
) |
1820 |
(FramedBoxSpec |
|
1821 |
label: 'Range:' |
|
1822 |
name: 'rangeBox' |
|
1823 |
labelPosition: topLeft |
|
1824 |
translateLabel: true |
|
1825 |
component: |
|
1826 |
(SpecCollection |
|
1827 |
collection: ( |
|
1828 |
(LabelSpec |
|
1829 |
label: 'Min:' |
|
1830 |
name: 'Label1' |
|
1831 |
layout: (LayoutFrame 33 0 3 0 116 0 20 0) |
|
1832 |
activeHelpKey: minValue |
|
1833 |
translateLabel: true |
|
1834 |
resizeForLabel: true |
|
1835 |
adjust: right |
|
2816 | 1836 |
) |
3046 | 1837 |
(InputFieldSpec |
1838 |
name: 'EntryField1' |
|
1839 |
layout: (LayoutFrame 116 0 1 0 21 0.5 23 0) |
|
1840 |
activeHelpKey: minValue |
|
1841 |
tabable: true |
|
1842 |
model: minValue |
|
1843 |
group: inputGroup |
|
1844 |
type: numberOrNil |
|
1845 |
acceptOnLeave: true |
|
1846 |
acceptOnLostFocus: true |
|
1847 |
acceptChannel: acceptChannel |
|
1848 |
modifiedChannel: modifiedChannel |
|
1849 |
acceptOnPointerLeave: true |
|
1850 |
) |
|
1851 |
(LabelSpec |
|
1852 |
label: 'Max:' |
|
1853 |
name: 'Label2' |
|
1854 |
layout: (LayoutFrame 21 0.5 3 0 70 0.5 20 0) |
|
1855 |
activeHelpKey: maxValue |
|
1856 |
translateLabel: true |
|
1857 |
resizeForLabel: true |
|
1858 |
adjust: right |
|
1859 |
) |
|
1860 |
(InputFieldSpec |
|
1861 |
name: 'EntryField2' |
|
1862 |
layout: (LayoutFrame 70 0.5 1 0 -2 1.0 23 0) |
|
1863 |
activeHelpKey: maxValue |
|
1864 |
tabable: true |
|
1865 |
model: maxValue |
|
1866 |
group: inputGroup |
|
1867 |
type: numberOrNil |
|
1868 |
acceptOnLeave: true |
|
1869 |
acceptOnLostFocus: true |
|
1870 |
acceptChannel: acceptChannel |
|
1871 |
modifiedChannel: modifiedChannel |
|
1872 |
acceptOnPointerLeave: true |
|
1873 |
) |
|
1874 |
) |
|
1875 |
||
1876 |
) |
|
3247 | 1877 |
extent: (Point 472 65) |
3046 | 1878 |
) |
1879 |
(FramedBoxSpec |
|
1880 |
label: 'Popup Menu:' |
|
1881 |
name: 'menusBox' |
|
1882 |
labelPosition: topLeft |
|
1883 |
translateLabel: true |
|
1884 |
component: |
|
1885 |
(SpecCollection |
|
1886 |
collection: ( |
|
1887 |
(LabelSpec |
|
1888 |
label: 'Selector:' |
|
1889 |
name: 'menuLabel' |
|
1890 |
layout: (AlignmentOrigin 116 0 12 0 1 0.5) |
|
1891 |
activeHelpKey: valuesMenuSelector |
|
1892 |
translateLabel: true |
|
1893 |
resizeForLabel: true |
|
1894 |
adjust: right |
|
1895 |
) |
|
1896 |
(InputFieldSpec |
|
1897 |
name: 'menuSelector' |
|
1898 |
layout: (LayoutFrame 116 0 1 0 2 1.0 23 0) |
|
1899 |
activeHelpKey: valuesMenuSelector |
|
1900 |
tabable: true |
|
1901 |
model: menu |
|
1902 |
group: inputGroup |
|
1903 |
type: symbolOrNil |
|
1904 |
acceptOnLostFocus: false |
|
1905 |
acceptChannel: acceptChannel |
|
1906 |
modifiedChannel: modifiedChannel |
|
1907 |
acceptOnPointerLeave: false |
|
1908 |
) |
|
1909 |
(CheckBoxSpec |
|
1910 |
label: 'Fetch Menu from Application' |
|
1911 |
name: 'CheckBox1' |
|
1912 |
layout: (LayoutFrame 116 0 28 0 398 0 50 0) |
|
1913 |
activeHelpKey: valuesMenuFromApplication |
|
1914 |
model: menuFromApplication |
|
1915 |
translateLabel: true |
|
1916 |
valueChangeSelector: setModified |
|
2816 | 1917 |
) |
3046 | 1918 |
) |
1919 |
||
1920 |
) |
|
3247 | 1921 |
extent: (Point 472 90) |
3046 | 1922 |
) |
1923 |
(FramedBoxSpec |
|
1924 |
label: 'Combo List/Box Selectors:' |
|
1925 |
name: 'comboSelectorsBox' |
|
1926 |
labelPosition: topLeft |
|
1927 |
translateLabel: true |
|
1928 |
component: |
|
1929 |
(SpecCollection |
|
1930 |
collection: ( |
|
1931 |
(LabelSpec |
|
1932 |
label: 'Choices:' |
|
1933 |
name: 'ChoicesLabel' |
|
1934 |
layout: (AlignmentOrigin 116 0 15 0 1 0.5) |
|
1935 |
activeHelpKey: valuesChoicesSelector |
|
1936 |
translateLabel: true |
|
1937 |
resizeForLabel: true |
|
1938 |
adjust: right |
|
1939 |
) |
|
1940 |
(InputFieldSpec |
|
1941 |
name: 'ChoicesField' |
|
1942 |
layout: (LayoutFrame 116 0 4 0 2 1.0 26 0) |
|
1943 |
activeHelpKey: valuesChoicesSelector |
|
1944 |
tabable: true |
|
1945 |
model: choices |
|
1946 |
group: inputGroup |
|
1947 |
type: symbolOrNil |
|
1948 |
acceptOnLeave: false |
|
1949 |
acceptOnLostFocus: false |
|
1950 |
acceptChannel: acceptChannel |
|
1951 |
modifiedChannel: modifiedChannel |
|
1952 |
acceptOnPointerLeave: false |
|
1953 |
) |
|
1954 |
(LabelSpec |
|
1955 |
label: 'Xlated Choices:' |
|
1956 |
name: 'XChoicesLabel' |
|
1957 |
layout: (AlignmentOrigin 116 0 40 0 1 0.5) |
|
1958 |
activeHelpKey: valuesXChoicesSelector |
|
1959 |
translateLabel: true |
|
1960 |
resizeForLabel: true |
|
1961 |
adjust: right |
|
2816 | 1962 |
) |
3046 | 1963 |
(InputFieldSpec |
1964 |
name: 'XChoicesField' |
|
1965 |
layout: (LayoutFrame 116 0 29 0 2 1.0 51 0) |
|
1966 |
activeHelpKey: valuesXChoicesSelector |
|
1967 |
tabable: true |
|
1968 |
model: translatedChoices |
|
1969 |
group: inputGroup |
|
1970 |
type: symbolOrNil |
|
1971 |
acceptOnLeave: false |
|
1972 |
acceptOnLostFocus: false |
|
1973 |
acceptChannel: acceptChannel |
|
1974 |
modifiedChannel: modifiedChannel |
|
1975 |
acceptOnPointerLeave: false |
|
1976 |
) |
|
1977 |
(LabelSpec |
|
1978 |
label: 'Editable:' |
|
1979 |
name: 'EditableLabel' |
|
1980 |
layout: (AlignmentOrigin 116 0 65 0 1 0.5) |
|
1981 |
activeHelpKey: showComboFieldSelector |
|
1982 |
translateLabel: true |
|
1983 |
resizeForLabel: true |
|
1984 |
adjust: right |
|
2816 | 1985 |
) |
3046 | 1986 |
(InputFieldSpec |
1987 |
name: 'EditableField' |
|
1988 |
layout: (LayoutFrame 116 0 54 0 2 1.0 76 0) |
|
1989 |
activeHelpKey: showComboFieldSelector |
|
1990 |
tabable: true |
|
1991 |
model: showComboFieldSelector |
|
1992 |
group: inputGroup |
|
1993 |
type: symbolOrNil |
|
1994 |
acceptOnLeave: false |
|
1995 |
acceptOnLostFocus: false |
|
1996 |
acceptChannel: acceptChannel |
|
1997 |
modifiedChannel: modifiedChannel |
|
1998 |
acceptOnPointerLeave: false |
|
1999 |
) |
|
2000 |
) |
|
2001 |
||
2002 |
) |
|
3247 | 2003 |
extent: (Point 472 120) |
1156 | 2004 |
) |
3046 | 2005 |
) |
2006 |
||
2007 |
) |
|
1156 | 2008 |
) |
3046 | 2009 |
) |
2010 |
||
2011 |
) |
|
2012 |
) |
|
332 | 2013 |
! |
2014 |
||
2015 |
windowSpec |
|
817 | 2016 |
"This resource specification was automatically generated |
2017 |
by the UIPainter of ST/X." |
|
332 | 2018 |
|
817 | 2019 |
"Do not manually edit this!! If it is corrupted, |
2020 |
the UIPainter may not be able to read the specification." |
|
332 | 2021 |
|
2022 |
" |
|
2023 |
UIPainter new openOnClass:DataSetBuilder andSelector:#windowSpec |
|
2024 |
DataSetBuilder new openInterface:#windowSpec |
|
817 | 2025 |
DataSetBuilder open |
332 | 2026 |
" |
2027 |
||
2028 |
<resource: #canvas> |
|
2029 |
||
1156 | 2030 |
^ |
3247 | 2031 |
#(FullSpec |
2032 |
name: windowSpec |
|
2033 |
window: |
|
2034 |
(WindowSpec |
|
2035 |
label: 'Data Set Builder' |
|
2036 |
name: 'Data Set Builder' |
|
2037 |
min: (Point 10 10) |
|
2038 |
bounds: (Rectangle 0 0 633 658) |
|
2039 |
menu: menu |
|
2040 |
) |
|
2041 |
component: |
|
2042 |
(SpecCollection |
|
2043 |
collection: ( |
|
2044 |
(MenuPanelSpec |
|
2045 |
name: 'menuToolbarView' |
|
2046 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 32 0) |
|
2047 |
tabable: true |
|
2048 |
menu: menuToolbar |
|
2049 |
) |
|
2050 |
(VariableVerticalPanelSpec |
|
2051 |
name: 'mainPanel' |
|
2052 |
layout: (LayoutFrame 0 0.0 38 0.0 0 1.0 -26 1.0) |
|
2053 |
component: |
|
2054 |
(SpecCollection |
|
2055 |
collection: ( |
|
2056 |
(FramedBoxSpec |
|
2057 |
label: 'Table Columns' |
|
2058 |
name: 'FramedBox' |
|
2059 |
labelPosition: topLeft |
|
2060 |
translateLabel: true |
|
2061 |
component: |
|
2062 |
(SpecCollection |
|
2063 |
collection: ( |
|
2064 |
(DataSetSpec |
|
2065 |
name: 'columnView' |
|
2066 |
layout: (LayoutFrame -2 0.0 0 0.0 2 1.0 4 1.0) |
|
2067 |
hasHorizontalScrollBar: true |
|
2068 |
hasVerticalScrollBar: false |
|
2069 |
miniScrollerHorizontal: true |
|
2070 |
useIndex: false |
|
2071 |
has3Dseparators: true |
|
1156 | 2072 |
) |
3247 | 2073 |
) |
2074 |
||
2075 |
) |
|
2076 |
) |
|
2077 |
(VariableHorizontalPanelSpec |
|
2078 |
name: 'VariablePanel' |
|
2079 |
level: -1 |
|
2080 |
component: |
|
2081 |
(SpecCollection |
|
2082 |
collection: ( |
|
2083 |
(ViewSpec |
|
2084 |
name: 'labelsView' |
|
2085 |
component: |
|
2086 |
(SpecCollection |
|
2087 |
collection: ( |
|
2088 |
(SequenceViewSpec |
|
2089 |
name: 'labelAndColumns' |
|
2090 |
layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
2091 |
tabable: true |
|
2092 |
model: selectedColumnModel |
|
2093 |
menu: menuEdit |
|
2094 |
hasHorizontalScrollBar: true |
|
2095 |
hasVerticalScrollBar: true |
|
2096 |
miniScrollerHorizontal: true |
|
2097 |
isMultiSelect: true |
|
2098 |
useIndex: true |
|
2099 |
sequenceList: seqList |
|
1156 | 2100 |
) |
3247 | 2101 |
) |
2102 |
||
2103 |
) |
|
2104 |
postBuildCallback: postBuildListOfItemsView: |
|
2105 |
) |
|
2106 |
(ViewSpec |
|
2107 |
name: 'specView' |
|
2108 |
level: -1 |
|
2109 |
component: |
|
2110 |
(SpecCollection |
|
2111 |
collection: ( |
|
2112 |
(NoteBookViewSpec |
|
2113 |
name: 'NoteBook' |
|
2114 |
layout: (LayoutFrame 1 0.0 0 0.0 0 1.0 -30 1.0) |
|
2115 |
tabable: true |
|
2116 |
model: tabModel |
|
2117 |
menu: tabList |
|
2118 |
useIndex: true |
|
2119 |
translateLabel: true |
|
2120 |
canvas: canvasHolder |
|
2121 |
keepCanvasAlive: true |
|
1156 | 2122 |
) |
3247 | 2123 |
(UISubSpecification |
2124 |
name: 'SubSpecification' |
|
2125 |
layout: (LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0) |
|
2126 |
majorKey: ToolApplicationModel |
|
2127 |
minorKey: windowSpecForCommit |
|
2128 |
) |
|
2129 |
) |
|
2130 |
||
2131 |
) |
|
2132 |
postBuildCallback: postBuildSpecView: |
|
1156 | 2133 |
) |
3247 | 2134 |
) |
2135 |
||
2136 |
) |
|
2137 |
handles: (Any 0.23538700000000001 1.0) |
|
1156 | 2138 |
) |
3247 | 2139 |
) |
2140 |
||
2141 |
) |
|
2142 |
handles: (Any 0.20874799999999999 1.0) |
|
1156 | 2143 |
) |
3247 | 2144 |
(UISubSpecification |
2145 |
name: 'infoBarSubSpec' |
|
2146 |
layout: (LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
2147 |
majorKey: ToolApplicationModel |
|
2148 |
minorKey: windowSpecForInfoBar |
|
2149 |
) |
|
2150 |
) |
|
2151 |
||
2152 |
) |
|
2153 |
) |
|
332 | 2154 |
! ! |
2155 |
||
2156 |
!DataSetBuilder class methodsFor:'menu specs'! |
|
2157 |
||
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2158 |
fileMenu |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2159 |
"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
|
2160 |
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
|
2161 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2162 |
"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
|
2163 |
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
|
2164 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2165 |
" |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2166 |
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
|
2167 |
(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
|
2168 |
" |
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 |
<resource: #menu> |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2171 |
|
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 |
#(Menu |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2174 |
( |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2175 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2176 |
activeHelpKey: fileNew |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2177 |
label: 'New' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2178 |
itemValue: doNew |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2179 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2180 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2181 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2182 |
label: '-' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2183 |
isVisible: notEditingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2184 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2185 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2186 |
activeHelpKey: fileLoad |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2187 |
label: 'Load...' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2188 |
itemValue: doLoad |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2189 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2190 |
isVisible: notEditingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2191 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2192 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2193 |
label: '-' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2194 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2195 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2196 |
activeHelpKey: fileSave |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2197 |
label: 'Save' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2198 |
itemValue: doSave |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2199 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2200 |
isVisible: editingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2201 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2202 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2203 |
activeHelpKey: fileSaveMethod |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2204 |
label: 'Save' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2205 |
itemValue: doSave |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2206 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2207 |
isVisible: notEditingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2208 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2209 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2210 |
activeHelpKey: fileSaveAsMethod |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2211 |
label: 'Save As...' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2212 |
itemValue: doSaveAs |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2213 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2214 |
isVisible: notEditingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2215 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2216 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2217 |
label: '-' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2218 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2219 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2220 |
activeHelpKey: pickColumns |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2221 |
label: 'Pick Columns...' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2222 |
itemValue: doPickColumns |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2223 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2224 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2225 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2226 |
label: '-' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2227 |
isVisible: isStandAlone |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2228 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2229 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2230 |
activeHelpKey: fileBrowseClass |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2231 |
label: 'Browse Class' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2232 |
itemValue: doBrowseClass |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2233 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2234 |
isVisible: isStandAlone |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2235 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2236 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2237 |
label: '-' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2238 |
isVisible: isStandAlone |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2239 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2240 |
(MenuItem |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2241 |
activeHelpKey: fileExit |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2242 |
label: 'Exit' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2243 |
itemValue: closeRequest |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2244 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2245 |
isVisible: isStandAlone |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2246 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2247 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2248 |
nil |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2249 |
nil |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2250 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2251 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2252 |
|
408 | 2253 |
menu |
818 | 2254 |
"This resource specification was automatically generated |
2255 |
by the MenuEditor of ST/X." |
|
332 | 2256 |
|
818 | 2257 |
"Do not manually edit this!! If it is corrupted, |
2258 |
the MenuEditor may not be able to read the specification." |
|
332 | 2259 |
|
2260 |
" |
|
408 | 2261 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#menu |
2262 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder menu)) startUp |
|
332 | 2263 |
" |
2264 |
||
2265 |
<resource: #menu> |
|
2266 |
||
1981
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 |
#(Menu |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2269 |
( |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2270 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2271 |
label: 'File' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2272 |
translateLabel: true |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2273 |
submenuChannel: fileMenu |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2274 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2275 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2276 |
label: 'Edit' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2277 |
translateLabel: true |
2262 | 2278 |
submenuChannel: menuEditWithoutAccelerators |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2279 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2280 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2281 |
label: 'Add' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2282 |
translateLabel: true |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2283 |
submenu: |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2284 |
(Menu |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2285 |
( |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2286 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2287 |
activeHelpKey: addColumn |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2288 |
enabled: columnIsNotEditing |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2289 |
label: 'Column' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2290 |
itemValue: doCreateColumn |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2291 |
translateLabel: true |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2292 |
labelImage: (ResourceRetriever nil newColumnIcon 'Column') |
521 | 2293 |
) |
2262 | 2294 |
(MenuItem |
2295 |
activeHelpKey: addNonSelectableColumn |
|
2296 |
enabled: columnIsNotEditing |
|
2297 |
label: 'Column (Non-Selectable)' |
|
2298 |
itemValue: doCreateNonSelectableColumn |
|
2299 |
translateLabel: true |
|
2300 |
labelImage: (ResourceRetriever DataSetBuilder newColumnNonSelectableIcon 'Column (Non-Selectable)') |
|
2301 |
) |
|
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2302 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2303 |
nil |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2304 |
nil |
521 | 2305 |
) |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2306 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2307 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2308 |
label: 'Generate' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2309 |
translateLabel: true |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2310 |
isVisible: notEditingSpecOnly |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2311 |
submenu: |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2312 |
(Menu |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2313 |
( |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2314 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2315 |
activeHelpKey: fileDefineClass |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2316 |
label: 'Define Row Class...' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2317 |
itemValue: doDefineRowClass |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2318 |
translateLabel: true |
818 | 2319 |
) |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2320 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2321 |
activeHelpKey: browseRowClass |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2322 |
label: 'Browse Row Class' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2323 |
itemValue: doBrowseRowClass |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2324 |
translateLabel: true |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2325 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2326 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2327 |
label: '-' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2328 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2329 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2330 |
activeHelpKey: generateCode |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2331 |
label: 'Generate Code' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2332 |
itemValue: doGenerateCode |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2333 |
translateLabel: true |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2334 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2335 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2336 |
nil |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2337 |
nil |
818 | 2338 |
) |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2339 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2340 |
(MenuItem |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2341 |
label: 'History' |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2342 |
translateLabel: true |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2343 |
isVisible: isStandAlone |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2344 |
submenuChannel: menuHistory |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2345 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2346 |
(MenuItem |
2262 | 2347 |
label: 'MENU_Help' |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2348 |
translateLabel: true |
2126
312bad3ba846
conditionalRight in startGroup
Claus Gittinger <cg@exept.de>
parents:
2074
diff
changeset
|
2349 |
startGroup: conditionalRight |
1981
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2350 |
submenuChannel: menuHelp |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2351 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2352 |
) |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2353 |
nil |
d28960fc1576
hide some menu items when in browser
Claus Gittinger <cg@exept.de>
parents:
1974
diff
changeset
|
2354 |
nil |
332 | 2355 |
) |
2356 |
! |
|
2357 |
||
408 | 2358 |
menuEdit |
825 | 2359 |
"This resource specification was automatically generated |
2360 |
by the MenuEditor of ST/X." |
|
332 | 2361 |
|
825 | 2362 |
"Do not manually edit this!! If it is corrupted, |
2363 |
the MenuEditor may not be able to read the specification." |
|
332 | 2364 |
|
2365 |
" |
|
408 | 2366 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#menuEdit |
2367 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder menuEdit)) startUp |
|
2368 |
" |
|
2369 |
||
2370 |
<resource: #menu> |
|
2371 |
||
2262 | 2372 |
^ |
2373 |
#(Menu |
|
2374 |
( |
|
2375 |
(MenuItem |
|
2376 |
activeHelpKey: editCut |
|
2377 |
enabled: isColumnSelected |
|
2378 |
label: 'Cut' |
|
2379 |
itemValue: doCut |
|
2380 |
translateLabel: true |
|
2381 |
shortcutKey: Cut |
|
2382 |
) |
|
2383 |
(MenuItem |
|
2384 |
activeHelpKey: editCopy |
|
2385 |
enabled: isColumnSelected |
|
2386 |
label: 'Copy' |
|
2387 |
itemValue: doCopy |
|
2388 |
translateLabel: true |
|
2389 |
shortcutKey: Copy |
|
2390 |
) |
|
2391 |
(MenuItem |
|
2392 |
activeHelpKey: editPaste |
|
2393 |
enabled: valueOfHavingClipboard |
|
2394 |
label: 'Paste' |
|
2395 |
itemValue: doPaste |
|
2396 |
translateLabel: true |
|
2397 |
shortcutKey: Paste |
|
2398 |
) |
|
2399 |
(MenuItem |
|
2400 |
label: '-' |
|
2401 |
) |
|
2402 |
(MenuItem |
|
2403 |
activeHelpKey: editMoveUp |
|
2404 |
enabled: isColumnSelected |
|
2405 |
label: 'Move Up' |
|
2406 |
itemValue: doMoveColumn: |
|
2407 |
translateLabel: true |
|
2408 |
shortcutKey: CtrlCursorUp |
|
2409 |
labelImage: (ResourceRetriever Icon upIcon 'Move Up') |
|
2410 |
argument: up |
|
2411 |
) |
|
2412 |
(MenuItem |
|
2413 |
activeHelpKey: editMoveDown |
|
2414 |
enabled: isColumnSelected |
|
2415 |
label: 'Move Down' |
|
2416 |
itemValue: doMoveColumn: |
|
2417 |
translateLabel: true |
|
2418 |
shortcutKey: CtrlCursorDown |
|
2419 |
labelImage: (ResourceRetriever Icon downIcon 'Move Down') |
|
2420 |
argument: down |
|
2421 |
) |
|
2422 |
(MenuItem |
|
2423 |
label: '-' |
|
2424 |
) |
|
2425 |
(MenuItem |
|
2426 |
label: 'Separators' |
|
2427 |
translateLabel: true |
|
2428 |
submenu: |
|
2429 |
(Menu |
|
2430 |
( |
|
2431 |
(MenuItem |
|
2432 |
label: 'Label Columns' |
|
2433 |
translateLabel: true |
|
2434 |
submenu: |
|
2435 |
(Menu |
|
2436 |
( |
|
2437 |
(MenuItem |
|
2438 |
enabled: hasSelection |
|
2439 |
label: 'Add Separators' |
|
2440 |
itemValue: addLabelColumnSeparators |
|
2441 |
translateLabel: true |
|
2442 |
) |
|
2443 |
(MenuItem |
|
2444 |
enabled: hasSelection |
|
2445 |
label: 'Remove Separators' |
|
2446 |
itemValue: removeLabelColumnSeparators |
|
2447 |
translateLabel: true |
|
2448 |
) |
|
2449 |
) |
|
2450 |
nil |
|
2451 |
nil |
|
2452 |
) |
|
2453 |
) |
|
2454 |
(MenuItem |
|
2455 |
label: 'Label Row && Columns' |
|
2456 |
translateLabel: true |
|
2457 |
submenu: |
|
2458 |
(Menu |
|
2459 |
( |
|
2460 |
(MenuItem |
|
2461 |
enabled: hasSelection |
|
2462 |
label: 'Add Separators' |
|
2463 |
itemValue: addLabelSeparators |
|
2464 |
translateLabel: true |
|
2465 |
) |
|
2466 |
(MenuItem |
|
2467 |
enabled: hasSelection |
|
2468 |
label: 'Remove Separators' |
|
2469 |
itemValue: removeLabelSeparators |
|
2470 |
translateLabel: true |
|
2471 |
) |
|
2472 |
) |
|
2473 |
nil |
|
2474 |
nil |
|
2475 |
) |
|
2476 |
) |
|
2477 |
(MenuItem |
|
2478 |
label: '-' |
|
2479 |
) |
|
2480 |
(MenuItem |
|
2481 |
label: 'Cell Rows' |
|
2482 |
translateLabel: true |
|
2483 |
submenu: |
|
2484 |
(Menu |
|
2485 |
( |
|
2486 |
(MenuItem |
|
2487 |
enabled: hasSelection |
|
2488 |
label: 'Add Separators' |
|
2489 |
itemValue: addRowSeparators |
|
2490 |
translateLabel: true |
|
2491 |
) |
|
2492 |
(MenuItem |
|
2493 |
enabled: hasSelection |
|
2494 |
label: 'Remove Separators' |
|
2495 |
itemValue: removeRowSeparators |
|
2496 |
translateLabel: true |
|
2497 |
) |
|
2498 |
) |
|
2499 |
nil |
|
2500 |
nil |
|
2501 |
) |
|
2502 |
) |
|
2503 |
(MenuItem |
|
2504 |
label: 'Cell Columns' |
|
2505 |
translateLabel: true |
|
2506 |
submenu: |
|
2507 |
(Menu |
|
2508 |
( |
|
2509 |
(MenuItem |
|
2510 |
enabled: hasSelection |
|
2511 |
label: 'Add Separators' |
|
2512 |
itemValue: addLabelColumnSeparators |
|
2513 |
translateLabel: true |
|
2514 |
) |
|
2515 |
(MenuItem |
|
2516 |
enabled: hasSelection |
|
2517 |
label: 'Remove' |
|
2518 |
itemValue: removeLabelColumnSeparators |
|
2519 |
translateLabel: true |
|
2520 |
) |
|
2521 |
) |
|
2522 |
nil |
|
2523 |
nil |
|
2524 |
) |
|
2525 |
) |
|
2526 |
(MenuItem |
|
2527 |
label: 'Cell Rows && Columns' |
|
2528 |
translateLabel: true |
|
2529 |
submenu: |
|
2530 |
(Menu |
|
2531 |
( |
|
2532 |
(MenuItem |
|
2533 |
enabled: hasSelection |
|
2534 |
label: 'Add Separators' |
|
2535 |
itemValue: addCellSeparators |
|
2536 |
translateLabel: true |
|
2537 |
) |
|
2538 |
(MenuItem |
|
2539 |
enabled: hasSelection |
|
2540 |
label: 'Remove Separators' |
|
2541 |
itemValue: removeCellSeparators |
|
2542 |
translateLabel: true |
|
2543 |
) |
|
2544 |
) |
|
2545 |
nil |
|
2546 |
nil |
|
2547 |
) |
|
2548 |
) |
|
2549 |
) |
|
2550 |
nil |
|
2551 |
nil |
|
408 | 2552 |
) |
2262 | 2553 |
) |
2380
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2554 |
(MenuItem |
2262 | 2555 |
label: 'Alignment' |
2556 |
translateLabel: true |
|
2557 |
submenu: |
|
2558 |
(Menu |
|
2559 |
( |
|
2560 |
(MenuItem |
|
2561 |
enabled: hasSelection |
|
2562 |
label: 'Make Labels Left Aligned' |
|
2563 |
itemValue: alignLabelsLeft |
|
2564 |
translateLabel: true |
|
2565 |
) |
|
2566 |
(MenuItem |
|
2567 |
enabled: hasSelection |
|
2568 |
label: 'Make Labels Centered' |
|
2569 |
itemValue: alignLabelsCentered |
|
2570 |
translateLabel: true |
|
2571 |
) |
|
2572 |
(MenuItem |
|
2573 |
enabled: hasSelection |
|
2574 |
label: 'Make Labels Right Aligned' |
|
2575 |
itemValue: alignLabelsRight |
|
2576 |
translateLabel: true |
|
2577 |
) |
|
2578 |
(MenuItem |
|
2579 |
label: '-' |
|
2580 |
) |
|
2581 |
(MenuItem |
|
2582 |
enabled: hasSelection |
|
2583 |
label: 'Make Cell Left Aligned' |
|
2584 |
itemValue: alignColumnsLeft |
|
2585 |
translateLabel: true |
|
2586 |
) |
|
2587 |
(MenuItem |
|
2588 |
enabled: hasSelection |
|
2589 |
label: 'Make Cell Centered' |
|
2590 |
itemValue: alignColumnsCentered |
|
2591 |
translateLabel: true |
|
2592 |
) |
|
2593 |
(MenuItem |
|
2594 |
enabled: hasSelection |
|
2595 |
label: 'Make Cell Right Aligned' |
|
2596 |
itemValue: alignColumnsRight |
|
2597 |
translateLabel: true |
|
2598 |
) |
|
2599 |
) |
|
2600 |
nil |
|
2601 |
nil |
|
408 | 2602 |
) |
2262 | 2603 |
) |
2604 |
(MenuItem |
|
2371
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2605 |
label: 'Colors' |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2606 |
translateLabel: true |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2607 |
submenu: |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2608 |
(Menu |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2609 |
( |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2610 |
(MenuItem |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2611 |
enabled: hasSelection |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2612 |
label: 'Set Cell Color Selectors' |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2613 |
itemValue: setCellColorSelectors |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2614 |
translateLabel: true |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2615 |
) |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2616 |
(MenuItem |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2617 |
enabled: hasSelection |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2618 |
label: 'Set Selected Cell Color Selectors' |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2619 |
itemValue: setSelectedCellColorSelectors |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2620 |
translateLabel: true |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2621 |
) |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2622 |
) |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2623 |
nil |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2624 |
nil |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2625 |
) |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2626 |
) |
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2627 |
(MenuItem |
2380
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2628 |
label: 'Behavior' |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2629 |
translateLabel: true |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2630 |
submenu: |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2631 |
(Menu |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2632 |
( |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2633 |
(MenuItem |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2634 |
enabled: hasSelection |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2635 |
label: 'Make Selected Cells Unselectable' |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2636 |
itemValue: makeSelectedCellsUnselectable |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2637 |
translateLabel: true |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2638 |
) |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2639 |
(MenuItem |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2640 |
enabled: hasSelection |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2641 |
label: 'Make Selected Cells Selectable' |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2642 |
itemValue: makeSelectedCellsSelectable |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2643 |
translateLabel: true |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2644 |
) |
3045 | 2645 |
(MenuItem |
2646 |
label: '-' |
|
2647 |
) |
|
2648 |
||
2649 |
(MenuItem |
|
3181 | 2650 |
label: 'Make all Cells Unselectable' |
3045 | 2651 |
itemValue: makeAllCellsUnselectable |
2652 |
translateLabel: true |
|
2653 |
) |
|
2654 |
(MenuItem |
|
3181 | 2655 |
label: 'Make all Cells Selectable' |
3045 | 2656 |
itemValue: makeAllCellsSelectable |
2657 |
translateLabel: true |
|
2658 |
) |
|
2380
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2659 |
) |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2660 |
nil |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2661 |
nil |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2662 |
) |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2663 |
) |
4dc5c818aa21
buld operation: selectable or not
Claus Gittinger <cg@exept.de>
parents:
2371
diff
changeset
|
2664 |
(MenuItem |
2262 | 2665 |
label: '-' |
2666 |
) |
|
2667 |
(MenuItem |
|
2668 |
enabled: hasSelection |
|
2669 |
label: 'Make Selectable' |
|
2670 |
itemValue: makeColumnsSelectable |
|
2671 |
translateLabel: true |
|
2672 |
) |
|
2673 |
(MenuItem |
|
2674 |
enabled: hasSelection |
|
2675 |
label: 'Make Unselectable' |
|
2676 |
itemValue: makeColumnsUnselectable |
|
2677 |
translateLabel: true |
|
2678 |
) |
|
2679 |
) |
|
2680 |
nil |
|
2681 |
nil |
|
408 | 2682 |
) |
2683 |
! |
|
2684 |
||
2262 | 2685 |
menuEditWithoutAccelerators |
2321 | 2686 |
^ self menuEdit decodeAsLiteralArray removeAllAccelerators |
2262 | 2687 |
! |
2688 |
||
408 | 2689 |
menuToolbar |
825 | 2690 |
"This resource specification was automatically generated |
2691 |
by the MenuEditor of ST/X." |
|
408 | 2692 |
|
825 | 2693 |
"Do not manually edit this!! If it is corrupted, |
2694 |
the MenuEditor may not be able to read the specification." |
|
408 | 2695 |
|
2696 |
" |
|
2697 |
MenuEditor new openOnClass:DataSetBuilder andSelector:#menuToolbar |
|
2698 |
(Menu new fromLiteralArrayEncoding:(DataSetBuilder menuToolbar)) startUp |
|
332 | 2699 |
" |
2700 |
||
2701 |
<resource: #menu> |
|
2702 |
||
1757
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 |
#(Menu |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2705 |
( |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2706 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2707 |
activeHelpKey: fileNew |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2708 |
label: 'New' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2709 |
itemValue: doNew |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2710 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2711 |
isButton: true |
1887 | 2712 |
labelImage: (ResourceRetriever ToolbarIconLibrary newDataSetIcon) |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2713 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2714 |
(MenuItem |
2262 | 2715 |
label: '-' |
2716 |
) |
|
2717 |
(MenuItem |
|
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2718 |
activeHelpKey: fileLoad |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2719 |
label: 'Load' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2720 |
itemValue: doLoad |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2721 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2722 |
isButton: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2723 |
submenuChannel: menuHistory |
1887 | 2724 |
labelImage: (ResourceRetriever ToolbarIconLibrary loadFromMethodIcon) |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2725 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2726 |
(MenuItem |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2727 |
activeHelpKey: fileSaveMethod |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2728 |
label: 'Save' |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2729 |
itemValue: doSave |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2730 |
translateLabel: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2731 |
isButton: true |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2732 |
isVisible: notEditingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2733 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveAsMethodIcon) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2734 |
) |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2735 |
(MenuItem |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2736 |
activeHelpKey: fileSave |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2737 |
label: 'Save' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2738 |
itemValue: doSave |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2739 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2740 |
isButton: true |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2741 |
isVisible: editingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2742 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveToFileIcon) |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2743 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2744 |
(MenuItem |
1887 | 2745 |
label: '-' |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2746 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2747 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2748 |
activeHelpKey: editCut |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2749 |
enabled: isColumnSelected |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2750 |
label: 'Cut' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2751 |
itemValue: doCut |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2752 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2753 |
isButton: true |
1887 | 2754 |
labelImage: (ResourceRetriever ToolbarIconLibrary cutWidgetIcon) |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2755 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2756 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2757 |
activeHelpKey: editCopy |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2758 |
enabled: isColumnSelected |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2759 |
label: 'Copy' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2760 |
itemValue: doCopy |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2761 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2762 |
isButton: true |
1887 | 2763 |
labelImage: (ResourceRetriever ToolbarIconLibrary copyWidgetIcon) |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2764 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2765 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2766 |
activeHelpKey: editPaste |
1990 | 2767 |
enabled: canPasteHolder |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2768 |
label: 'Paste' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2769 |
itemValue: doPaste |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2770 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2771 |
isButton: true |
1887 | 2772 |
labelImage: (ResourceRetriever ToolbarIconLibrary pasteWidgetIcon) |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2773 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2774 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2775 |
activeHelpKey: editDelete |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2776 |
enabled: isColumnSelected |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2777 |
label: 'Delete' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2778 |
itemValue: doDelete |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2779 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2780 |
isButton: true |
1887 | 2781 |
isVisible: false |
2782 |
labelImage: (ResourceRetriever ToolbarIconLibrary deleteWidgetIcon) |
|
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2783 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2784 |
(MenuItem |
1887 | 2785 |
label: '-' |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2786 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2787 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2788 |
activeHelpKey: addColumn |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2789 |
enabled: columnIsNotEditing |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2790 |
label: 'Add Column' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2791 |
itemValue: doCreateColumn |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2792 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2793 |
isButton: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2794 |
labelImage: (ResourceRetriever nil newColumnIcon) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2795 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2796 |
(MenuItem |
2262 | 2797 |
activeHelpKey: addNonSelectableColumn |
2798 |
enabled: columnIsNotEditing |
|
2799 |
label: 'Add Column (Non Selectable)' |
|
2800 |
itemValue: doCreateNonSelectableColumn |
|
2801 |
translateLabel: true |
|
2802 |
isButton: true |
|
2803 |
labelImage: (ResourceRetriever DataSetBuilder newColumnNonSelectableIcon) |
|
2804 |
) |
|
2805 |
(MenuItem |
|
2806 |
label: '' |
|
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2807 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2808 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2809 |
activeHelpKey: editMoveUp |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2810 |
enabled: isColumnSelected |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2811 |
label: 'Move Up' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2812 |
itemValue: doMoveColumn: |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2813 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2814 |
isButton: true |
2262 | 2815 |
startGroup: right |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2816 |
labelImage: (ResourceRetriever Icon upIcon) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2817 |
argument: up |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2818 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2819 |
(MenuItem |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2820 |
activeHelpKey: editMoveDown |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2821 |
enabled: isColumnSelected |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2822 |
label: 'Move Down' |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2823 |
itemValue: doMoveColumn: |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2824 |
translateLabel: true |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2825 |
isButton: true |
2262 | 2826 |
startGroup: right |
1757
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2827 |
labelImage: (ResourceRetriever Icon downIcon) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2828 |
argument: down |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2829 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2830 |
) |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2831 |
nil |
c1b5a55649c9
toolbar: new-dataSet icon & load history
Claus Gittinger <cg@exept.de>
parents:
1754
diff
changeset
|
2832 |
nil |
332 | 2833 |
) |
2834 |
! ! |
|
2835 |
||
2836 |
!DataSetBuilder methodsFor:'accessing'! |
|
2837 |
||
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2838 |
acceptedColumns |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2839 |
"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
|
2840 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2841 |
^ acceptedColumns |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2842 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2843 |
|
332 | 2844 |
columns |
419 | 2845 |
"returns list of columns" |
2846 |
||
818 | 2847 |
^ columns |
332 | 2848 |
! |
2849 |
||
818 | 2850 |
columns:aListOfColumns |
419 | 2851 |
"setup columns from a column view" |
2852 |
||
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2853 |
|list newColumns| |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2854 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2855 |
newColumns := OrderedCollection new. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2856 |
list := self seqList. |
332 | 2857 |
list removeAll. |
2858 |
||
818 | 2859 |
aListOfColumns size ~~ 0 ifTrue:[ |
2860 |
aListOfColumns do:[:aColumn||column| |
|
2861 |
(column := aColumn) isSequenceable ifTrue:[ |
|
2167 | 2862 |
column := DataSetColumnSpec decodeFromLiteralArray:aColumn |
818 | 2863 |
] ifFalse:[ |
2864 |
column := aColumn copy |
|
2865 |
]. |
|
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2866 |
newColumns add:column. |
825 | 2867 |
list add:(self labelFromColumn:column). |
332 | 2868 |
] |
818 | 2869 |
]. |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2870 |
columns := newColumns. |
818 | 2871 |
self updateColumnView. |
2872 |
||
2167 | 2873 |
"Modified: / 27-03-2007 / 08:46:39 / cg" |
333 | 2874 |
! |
2875 |
||
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2876 |
editingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2877 |
^ editingSpecOnly ? false |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2878 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2879 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2880 |
editingSpecOnly:something |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2881 |
editingSpecOnly := something. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2882 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2883 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2884 |
notEditingSpecOnly |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2885 |
^ self editingSpecOnly not |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2886 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
2887 |
|
983 | 2888 |
resolveRowClass |
2889 |
"returns the resolved row class |
|
2890 |
" |
|
2891 |
^ Smalltalk resolveName:rowClass inClass:self class |
|
2892 |
! |
|
2893 |
||
333 | 2894 |
rowClassName |
419 | 2895 |
|
983 | 2896 |
^ self resolveRowClass notNil ifTrue:[rowClass] ifFalse:[nil] |
333 | 2897 |
! |
2898 |
||
2899 |
rowClassName:aClassName |
|
419 | 2900 |
|
333 | 2901 |
|cls| |
2902 |
||
818 | 2903 |
rowSuperClass := nil. |
333 | 2904 |
|
818 | 2905 |
(rowClass := aClassName) notNil ifTrue:[ |
983 | 2906 |
(cls := self resolveRowClass) notNil |
818 | 2907 |
ifTrue: [rowSuperClass := cls superclass name asString] |
2908 |
ifFalse:[rowSuperClass := 'Object'] |
|
333 | 2909 |
] |
2910 |
||
332 | 2911 |
! ! |
2912 |
||
419 | 2913 |
!DataSetBuilder methodsFor:'aspects'! |
332 | 2914 |
|
1300 | 2915 |
canvasHolder |
2916 |
"returns a value holder which keeps selected column" |
|
2917 |
||
2918 |
|holder| |
|
2919 |
||
2920 |
(holder := builder bindingAt:#canvasHolder) isNil ifTrue:[ |
|
2921 |
builder aspectAt:#canvasHolder put:(holder := ValueHolder new). |
|
2922 |
]. |
|
2923 |
^ holder |
|
2924 |
! |
|
2925 |
||
419 | 2926 |
columnIsNotEditing |
2262 | 2927 |
"returns a boolean value holder which returns true if a columns attributes have not |
2928 |
been modified (notebook fields)" |
|
332 | 2929 |
|
1311 | 2930 |
|holder| |
2931 |
||
2932 |
(holder := builder bindingAt:#columnIsNotEditing) isNil ifTrue:[ |
|
2933 |
holder := BlockValue forLogicalNot:(self modifiedChannel). |
|
2934 |
builder aspectAt:#columnIsNotEditing put:holder. |
|
2935 |
]. |
|
2936 |
^ holder |
|
332 | 2937 |
! |
2938 |
||
419 | 2939 |
editorTypeList |
2940 |
"generate list of supported editor types" |
|
332 | 2941 |
|
2942 |
|list| |
|
2943 |
||
1697 | 2944 |
(list := builder bindingAt:#editorTypeList) isNil ifTrue:[ |
2991 | 2945 |
list := DataSetColumnSpec slices collect:[:eachSlice | eachSlice at:1] as:Set. |
1700 | 2946 |
list := list asOrderedCollection sort. |
419 | 2947 |
builder aspectAt:#editorTypeList put:list |
332 | 2948 |
]. |
419 | 2949 |
^list |
332 | 2950 |
! |
2951 |
||
2262 | 2952 |
hasColumns |
2953 |
"returns a boolean value holder which is set to true if there are any columns" |
|
2954 |
||
2955 |
^ BlockValue |
|
2956 |
with:[:m | m notEmptyOrNil] |
|
2957 |
argument:(self seqList) |
|
2958 |
! |
|
2959 |
||
2960 |
hasSelection |
|
2961 |
^ (selectedColumnIndex isCollection not and:[ selectedColumnIndex ~~ 0 ]) |
|
3406 | 2962 |
or:[ selectedColumnIndex notEmptyOrNil ] |
2963 |
||
2964 |
"Modified: / 17-02-2017 / 08:35:26 / cg" |
|
2262 | 2965 |
! |
2966 |
||
408 | 2967 |
isColumnSelected |
2262 | 2968 |
"returns a boolean value holder which is set to true if some col is selected" |
419 | 2969 |
|
2970 |
^builder valueAspectFor:#isColumnSelected initialValue: false |
|
332 | 2971 |
! |
2972 |
||
1836 | 2973 |
menuEdit |
2371
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2974 |
"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
|
2975 |
|
233e1bda3570
mass operations: color selected-color
Claus Gittinger <cg@exept.de>
parents:
2338
diff
changeset
|
2976 |
^ [self class menuEdit] |
1836 | 2977 |
! |
2978 |
||
2262 | 2979 |
possiblePrintConverterTypes |
2980 |
^ UISpecification possiblePrintConverterTypes |
|
2981 |
! |
|
2982 |
||
332 | 2983 |
rendererTypeList |
419 | 2984 |
"generate list of supported renderer types" |
2985 |
||
332 | 2986 |
|list| |
2987 |
||
1697 | 2988 |
(list := builder bindingAt:#rendererTypeList) isNil ifTrue:[ |
2991 | 2989 |
list := DataSetColumnSpec slices collect:[:eachSlice | eachSlice at:2] as:Set. |
1701 | 2990 |
list := list asOrderedCollection sort. |
419 | 2991 |
builder aspectAt:#rendererTypeList put:list |
332 | 2992 |
]. |
419 | 2993 |
^list |
332 | 2994 |
! |
2995 |
||
2996 |
selectedColumnModel |
|
419 | 2997 |
"returns a value holder which keeps selected column" |
332 | 2998 |
|
2999 |
|holder| |
|
3000 |
||
3001 |
(holder := builder bindingAt:#selectedColumnModel) isNil ifTrue:[ |
|
3002 |
holder := AspectAdaptor new subject:self; forAspect:#selectedColumnIndex. |
|
3003 |
builder aspectAt:#selectedColumnModel put:holder. |
|
3004 |
]. |
|
3005 |
^ holder |
|
3006 |
! |
|
3007 |
||
3008 |
seqList |
|
1182 | 3009 |
^ builder listAspectFor:#seqList |
332 | 3010 |
! |
3011 |
||
391 | 3012 |
style |
419 | 3013 |
|
3014 |
^self aspectFor:#labelFont |
|
391 | 3015 |
! |
3016 |
||
332 | 3017 |
tabList |
3018 |
||
419 | 3019 |
^self class slices collect:[:aSlice|aSlice first] |
332 | 3020 |
|
3021 |
! ! |
|
3022 |
||
818 | 3023 |
!DataSetBuilder methodsFor:'building'! |
3024 |
||
1974 | 3025 |
buildFromResourceSpec:aResourceSpec |
3026 |
||
3027 |
self columns:aResourceSpec. |
|
3028 |
||
3029 |
"/ columns notEmpty ifTrue: [ |
|
3030 |
"/ self tabModel value: 1. |
|
3031 |
"/ self selectedColumnModel value:nil; value:1. "/ toggle to force change |
|
3032 |
"/ self updateInputFields. |
|
3033 |
"/ self updateInfoLabel. |
|
3034 |
"/ self updateHistory |
|
3035 |
"/ ]. |
|
3036 |
||
3037 |
! |
|
3038 |
||
3039 |
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
|
3040 |
|cls list| |
825 | 3041 |
|
1974 | 3042 |
self assert:(aClass isNil or:[aClass isClass]). |
3043 |
||
825 | 3044 |
selectedColumnIndex := 0. |
3045 |
||
3046 |
"if opened on table columns" |
|
3047 |
||
3048 |
aClass isNil ifTrue: [ |
|
3049 |
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
|
3050 |
"/ self columns removeAll. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3051 |
"/ self seqList removeAll. |
825 | 3052 |
self updateColumnView. |
3053 |
self updateInfoLabel. |
|
1974 | 3054 |
self isColumnSelected value: false. |
3055 |
^ self. |
|
825 | 3056 |
]. |
3057 |
||
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3058 |
specSelector isNil ifTrue: [ |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3059 |
self updateAfterColumnChange. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3060 |
^ self |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3061 |
]. |
818 | 3062 |
|
3063 |
list := nil. |
|
3064 |
||
3065 |
(aClass notNil or:[self isStandAlone or:[self window shown]]) ifTrue:[ |
|
3066 |
(aClass notNil and:[aSelector notNil]) ifTrue:[ |
|
1974 | 3067 |
cls := aClass isBehavior ifTrue:[ aClass ] ifFalse:[ self resolveName:aClass]. |
3068 |
||
3069 |
(cls respondsTo: aSelector) ifTrue:[ |
|
3070 |
list := cls perform: aSelector. |
|
3071 |
]. |
|
818 | 3072 |
] |
3073 |
] ifFalse:[ |
|
3074 |
list := columns |
|
3075 |
]. |
|
825 | 3076 |
self columns:list. |
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3077 |
self updateAfterColumnChange. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3078 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3079 |
|
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3080 |
updateAfterColumnChange |
2557 | 3081 |
self tabModel changed "value:0; value:1". "/ toggle to force change |
3082 |
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
|
3083 |
self updateColumnView. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3084 |
self updateInputFields. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3085 |
self updateInfoLabel. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3086 |
self updateHistory. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3087 |
self clearModifiedFlag. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3088 |
self enablingCommitButtonsHolder value:false. |
818 | 3089 |
! ! |
3090 |
||
332 | 3091 |
!DataSetBuilder methodsFor:'code generation'! |
3092 |
||
3093 |
compile:aCode forClass:aClass inCategory:aCategory |
|
419 | 3094 |
"compile method for class in a category" |
3095 |
||
1569 | 3096 |
aClass |
3097 |
compile:(aCode withCRs) |
|
3098 |
classified:aCategory |
|
332 | 3099 |
! |
3100 |
||
380 | 3101 |
generateBackgroundSelectorIn:aClass |
419 | 3102 |
"generate code for #backgroundSelector" |
3103 |
||
380 | 3104 |
|sel catg code bCode| |
3105 |
||
1771 | 3106 |
catg := #'accessing look'. |
380 | 3107 |
code := '\' |
3108 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3109 |
, '\' |
|
3110 |
, ' "specific background color for a cell"\' |
|
3111 |
, '\' |
|
3112 |
. |
|
3113 |
||
419 | 3114 |
columns do: |
3115 |
[:aColumn| |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3116 |
((sel := aColumn backgroundSelector) notNil and:[(aClass includesSelector:sel) not]) |
419 | 3117 |
ifTrue: |
3118 |
[ |
|
3119 |
bCode := sel asString, code, ' ^nil'. |
|
380 | 3120 |
self compile:bCode forClass:aClass inCategory:catg |
3121 |
] |
|
3122 |
] |
|
3123 |
! |
|
3124 |
||
332 | 3125 |
generateChoicesIn:aClass |
419 | 3126 |
"generate code for #choices" |
3127 |
||
1009 | 3128 |
|sel catg code edt| |
332 | 3129 |
|
1771 | 3130 |
catg := #'accessing menu'. |
332 | 3131 |
code := '\' |
3132 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3133 |
, '\' |
|
983 | 3134 |
, ' "get choices for visual editor; (a list of labels)..."\' |
332 | 3135 |
, '\' |
983 | 3136 |
, ' ^ #( foo bar baz )' |
332 | 3137 |
. |
3138 |
||
1009 | 3139 |
columns do:[:aColumn| |
3140 |
edt := aColumn editorType. |
|
3141 |
||
3142 |
( aColumn canSelect |
|
3143 |
and:[(sel := aColumn choices) notNil |
|
3144 |
and:[(edt == #ComboBox or:[edt == #ComboList]) |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3145 |
and:[(aClass includesSelector:sel) not]]] |
1009 | 3146 |
) ifTrue:[ |
332 | 3147 |
self compile:(sel asString, code) forClass:aClass inCategory:catg |
3148 |
] |
|
3149 |
] |
|
3150 |
! |
|
3151 |
||
391 | 3152 |
generateDoubleClickSelectorIn:aClass |
419 | 3153 |
"generate code for #foregroundSelector" |
3154 |
||
391 | 3155 |
|sel catg code bCode| |
3156 |
||
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
3157 |
catg := #'accessing-action'. |
391 | 3158 |
code := '\' |
3159 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3160 |
, '\' |
|
3161 |
, ' "specific selector to be called on double click"\' |
|
3162 |
, '\' |
|
3163 |
. |
|
3164 |
||
419 | 3165 |
columns do: |
3166 |
[:aColumn| |
|
3167 |
((sel := aColumn doubleClickedSelector) notNil |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3168 |
and:[(aClass includesSelector:sel) not]) |
419 | 3169 |
ifTrue: |
3170 |
[ |
|
391 | 3171 |
bCode := sel asString, code. |
3172 |
self compile:bCode forClass:aClass inCategory:catg |
|
3173 |
] |
|
3174 |
] |
|
3175 |
! |
|
3176 |
||
380 | 3177 |
generateForegroundSelectorIn:aClass |
3178 |
"generate code for #foregroundSelector |
|
3179 |
" |
|
3180 |
|sel catg code bCode| |
|
3181 |
||
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
3182 |
catg := #'accessing-look'. |
380 | 3183 |
code := '\' |
3184 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3185 |
, '\' |
|
3186 |
, ' "specific foreground color for a cell"\' |
|
3187 |
, '\' |
|
3188 |
. |
|
3189 |
||
419 | 3190 |
columns do: |
3191 |
[:aColumn| |
|
3192 |
((sel := aColumn foregroundSelector) notNil |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3193 |
and:[(aClass includesSelector:sel) not]) |
419 | 3194 |
ifTrue: |
3195 |
[ |
|
1841
fb363ce089de
added selectedFg/selectedBG attributes
Claus Gittinger <cg@exept.de>
parents:
1836
diff
changeset
|
3196 |
bCode := sel asString, code, ' ^ nil'. |
380 | 3197 |
self compile:bCode forClass:aClass inCategory:catg |
3198 |
] |
|
3199 |
] |
|
3200 |
! |
|
3201 |
||
332 | 3202 |
generateMenuIn:aClass |
419 | 3203 |
"generate code for #menu" |
3204 |
||
332 | 3205 |
|sel catg code| |
3206 |
||
1771 | 3207 |
catg := #'accessing menu'. |
332 | 3208 |
code := '\' |
3209 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3210 |
, '\' |
|
3211 |
, ' "get middleButton menu for selected cell in column"\' |
|
3212 |
, '\' |
|
419 | 3213 |
, ' ^nil' |
332 | 3214 |
. |
3215 |
||
419 | 3216 |
columns do: |
3217 |
[:aColumn| |
|
3218 |
(aColumn canSelect |
|
3219 |
and:[(sel := aColumn menu) notNil |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3220 |
and:[(aClass includesSelector:sel) not]]) |
419 | 3221 |
ifTrue: |
3222 |
[ |
|
332 | 3223 |
self compile:(sel asString, code) forClass:aClass inCategory:catg |
3224 |
] |
|
3225 |
] |
|
3226 |
! |
|
3227 |
||
3228 |
generatePrintSelectorIn:aClass |
|
419 | 3229 |
"generate code for #printSelector" |
3230 |
||
332 | 3231 |
|sel catg code| |
3232 |
||
1771 | 3233 |
catg := #'accessing'. |
1004 | 3234 |
code := '\' |
332 | 3235 |
, ' "automatically generated by DataSetBuilder ..."\' |
3236 |
, '\' |
|
3237 |
, ' "get drawable image or text on a gc"\' |
|
3238 |
, '\' |
|
1004 | 3239 |
, ' ^ ' |
332 | 3240 |
. |
3241 |
||
1004 | 3242 |
columns do:[:aColumn| |
3243 |
( aColumn rendererType ~~ #rowSelector |
|
3244 |
and:[(sel := aColumn printSelector) notNil |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3245 |
and:[(aClass includesSelector:sel) not]] |
1004 | 3246 |
) ifTrue:[ |
1548 | 3247 |
|numArgs bcode keys| |
1004 | 3248 |
bcode := sel asString. |
3759 | 3249 |
numArgs := sel argumentCount. |
1548 | 3250 |
|
3251 |
numArgs ~~ 0 ifTrue:[ |
|
3252 |
numArgs == 1 ifTrue:[ |
|
1004 | 3253 |
bcode := bcode, 'aGC' |
3254 |
] ifFalse:[ |
|
3255 |
keys := sel keywords. |
|
3256 |
bcode := (keys at:1), 'aGC ', (keys at:2), 'aColNr'. |
|
3257 |
] |
|
3258 |
]. |
|
3259 |
self compile:(bcode, code, '''', bcode, '''') forClass:aClass inCategory:catg |
|
332 | 3260 |
] |
3261 |
] |
|
3262 |
! |
|
3263 |
||
3264 |
generateReadSelectorIn:aClass |
|
419 | 3265 |
"generate code for #readSelector" |
3266 |
||
332 | 3267 |
|sel catg code bCode| |
3268 |
||
1771 | 3269 |
catg := #'accessing'. |
332 | 3270 |
code := '\' |
3271 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3272 |
, '\' |
|
3273 |
, ' "get value"\' |
|
3274 |
, '\' |
|
3275 |
. |
|
3276 |
||
419 | 3277 |
columns do: |
3278 |
[:aColumn| |
|
3279 |
(aColumn rendererType ~~ #rowSelector |
|
3280 |
and:[(sel := aColumn readSelector) notNil |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3281 |
and:[(aClass includesSelector:sel) not]]) |
419 | 3282 |
ifTrue: |
3283 |
[ |
|
3284 |
(aColumn printSelector isNil or:[aColumn canSelect]) |
|
3285 |
ifTrue: |
|
3286 |
[ |
|
1004 | 3287 |
|selName| |
3288 |
selName := sel asString. |
|
3289 |
||
3759 | 3290 |
sel argumentCount == 0 |
1004 | 3291 |
ifTrue: [bCode := selName, code] |
3292 |
ifFalse:[bCode := selName, 'anIndex\', code]. |
|
419 | 3293 |
aColumn rendererType == #CheckToggle |
1004 | 3294 |
ifFalse:[bCode := bCode, ' ^ ''', selName, ''''] |
419 | 3295 |
ifTrue: [bCode := bCode, ' ^true']. |
332 | 3296 |
self compile:bCode forClass:aClass inCategory:catg |
3297 |
] |
|
3298 |
] |
|
3299 |
] |
|
3300 |
! |
|
3301 |
||
983 | 3302 |
generateRowSeparatorSelectorIn:aClass |
3303 |
"generate code for #rowSeparatorSelector" |
|
3304 |
||
3305 |
|sel catg code bCode| |
|
3306 |
||
1771 | 3307 |
catg := #'accessing look'. |
983 | 3308 |
code := '\' |
3309 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3310 |
, '\' |
|
3311 |
, ' "specific row separator visibility for a cell"\' |
|
3312 |
, '\' |
|
3313 |
. |
|
3314 |
||
3315 |
columns do: |
|
3316 |
[:aColumn| |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3317 |
((sel := aColumn rowSeparatorSelector) notNil and:[(aClass includesSelector:sel) not]) |
983 | 3318 |
ifTrue: |
3319 |
[ |
|
3320 |
bCode := sel asString, code, ' ^true'. |
|
3321 |
self compile:bCode forClass:aClass inCategory:catg |
|
3322 |
] |
|
3323 |
] |
|
3324 |
! |
|
3325 |
||
377 | 3326 |
generateSelectSelectorIn:aClass |
3327 |
"generate code for #selectSelector |
|
3328 |
" |
|
3329 |
|sel catg code bCode| |
|
3330 |
||
1771 | 3331 |
catg := #'accessing selection'. |
377 | 3332 |
code := '\' |
3333 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3334 |
, '\' |
|
3335 |
, ' "can select cell in column"\' |
|
3336 |
, '\' |
|
3337 |
. |
|
3338 |
||
419 | 3339 |
columns do: |
3340 |
[:aColumn| |
|
3341 |
(aColumn rendererType ~~ #rowSelector |
|
377 | 3342 |
and:[(sel := aColumn selectSelector) notNil |
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3343 |
and:[(aClass includesSelector:sel) not]]) |
419 | 3344 |
ifTrue: |
3345 |
[ |
|
3346 |
aColumn canSelect |
|
3347 |
ifTrue: |
|
3348 |
[ |
|
3349 |
bCode := sel asString, code, ' ^true'. |
|
377 | 3350 |
self compile:bCode forClass:aClass inCategory:catg |
3351 |
] |
|
3352 |
] |
|
3353 |
] |
|
3354 |
! |
|
3355 |
||
1009 | 3356 |
generateShowComboFieldSelectorIn:aClass |
3357 |
"generate code for #showComboFieldSelector |
|
3358 |
" |
|
3359 |
|sel catg code bCode edt state| |
|
3360 |
||
1771 | 3361 |
catg := #'accessing menu'. |
1009 | 3362 |
code := '\' |
3363 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3364 |
, '\' |
|
3365 |
, ' "open an editField on a combo list or box"\' |
|
3366 |
, '\' |
|
3367 |
. |
|
3368 |
||
3369 |
columns do:[:aColumn| |
|
3370 |
edt := aColumn editorType. |
|
3371 |
||
3372 |
( aColumn canSelect |
|
3373 |
and:[(sel := aColumn showComboFieldSelector) notNil |
|
3374 |
and:[(edt == #ComboBox or:[edt == #ComboList]) |
|
1553
1d7fd5dde600
implements -> includesSelector
Claus Gittinger <cg@exept.de>
parents:
1548
diff
changeset
|
3375 |
and:[(aClass includesSelector:sel) not]]] |
1009 | 3376 |
) ifTrue:[ |
3377 |
state := edt == #ComboBoxView. |
|
3378 |
||
3379 |
bCode := sel asString, code, ' ^ ', state printString. |
|
3380 |
self compile:bCode forClass:aClass inCategory:catg |
|
3381 |
] |
|
3382 |
] |
|
3383 |
! |
|
3384 |
||
332 | 3385 |
generateWriteSelectorIn:aClass |
419 | 3386 |
"generate code for #writeSelector" |
3387 |
||
379 | 3388 |
|sel catg code bCode sz| |
332 | 3389 |
|
1771 | 3390 |
catg := #'accessing'. |
332 | 3391 |
code := 'aValue\' |
3392 |
, ' "automatically generated by DataSetBuilder ..."\' |
|
3393 |
, '\' |
|
3394 |
, ' "set value"\' |
|
3395 |
. |
|
3396 |
||
3759 | 3397 |
columns do:[:aColumn| |
419 | 3398 |
((sel := aColumn writeSelector) notNil |
3759 | 3399 |
and:[aColumn editorType ~~ #None |
3400 |
and:[aColumn canSelect |
|
3401 |
and:[(aClass includesSelector:sel) not]]] |
|
3402 |
) ifTrue: [ |
|
3403 |
sel argumentCount == 1 ifTrue:[ |
|
379 | 3404 |
bCode := sel asString |
3759 | 3405 |
] ifFalse:[ |
379 | 3406 |
sz := sel indexOf:$:. |
3407 |
bCode := sel copyTo:sz. |
|
419 | 3408 |
bCode := bCode, 'anIndex ', (sel copyFrom:sz + 1) |
379 | 3409 |
]. |
3410 |
self compile:(bCode, code) forClass:aClass inCategory:catg |
|
332 | 3411 |
] |
3412 |
] |
|
3413 |
! ! |
|
3414 |
||
2262 | 3415 |
!DataSetBuilder methodsFor:'event handling'! |
3416 |
||
3417 |
processEvent:anEvent |
|
3418 |
"filter keyboard edit-events typed into the listOfItemsView. |
|
3419 |
Return true, if I have eaten the event" |
|
3420 |
||
3659 | 3421 |
<resource: #keyboard (#Delete #BackSpace #Cut #Copy #Paste |
3565 | 3422 |
#CtrlCursorDown #CmdCursorDown #AltCursorDown |
3423 |
#CtrlCursorUp #CmdCursorUp #AltCursorUp)> |
|
2944 | 3424 |
|
2262 | 3425 |
|evView inView rawKey key| |
3426 |
||
3427 |
anEvent isKeyPressEvent ifFalse:[^ false]. |
|
3428 |
||
3429 |
evView := anEvent targetView. |
|
3430 |
evView isNil ifTrue:[ ^ false ]. |
|
3431 |
||
3432 |
inView := evView isSameOrComponentOf:listOfItemsView. |
|
3433 |
inView ifTrue:[^ false]. |
|
3434 |
||
3435 |
key := anEvent key. |
|
3436 |
rawKey := anEvent rawKey. |
|
3437 |
||
3438 |
( key == #Delete |
|
3439 |
or:[key == #BackSpace |
|
3440 |
or:[key == #Cut]] |
|
3441 |
) ifTrue:[ |
|
3442 |
self doCut. |
|
3443 |
^ true. |
|
3444 |
]. |
|
3445 |
||
3446 |
key == #Copy ifTrue:[ self doCopy. ^ true ]. |
|
3447 |
key == #Paste ifTrue:[ self doPaste. ^ true ]. |
|
3448 |
||
3565 | 3449 |
((rawKey == #CtrlCursorUp) |
3450 |
or:[(rawKey == #CmdCursorUp) |
|
3451 |
or:[(rawKey == #AltCursorUp) ]]) ifTrue:[ |
|
3452 |
self doMoveUp. |
|
2262 | 3453 |
^ true. |
3454 |
]. |
|
3565 | 3455 |
((rawKey == #CtrlCursorDown) |
3456 |
or:[(rawKey == #CmdCursorDown) |
|
3457 |
or:[(rawKey == #AltCursorDown) ]]) ifTrue:[ |
|
2262 | 3458 |
self doMoveDown. |
3459 |
^ true. |
|
3460 |
]. |
|
3461 |
||
3462 |
^ false. |
|
3565 | 3463 |
|
3659 | 3464 |
"Modified: / 02-05-2019 / 21:15:43 / Claus Gittinger" |
2262 | 3465 |
! ! |
3466 |
||
332 | 3467 |
!DataSetBuilder methodsFor:'initialization'! |
3468 |
||
3469 |
initialize |
|
825 | 3470 |
"initializes" |
332 | 3471 |
|
3472 |
super initialize. |
|
3473 |
||
825 | 3474 |
selectedColumnIndex := 0. |
1156 | 3475 |
columns := OrderedCollection new. |
3476 |
modalOpened := false. |
|
1300 | 3477 |
listOfSpecViews := Array new:(self class slices size). |
2557 | 3478 |
editingSpecOnly := false. |
1824 | 3479 |
! |
3480 |
||
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3481 |
loadFromResourceSpec: aResourceSpec |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3482 |
self columns:aResourceSpec copy. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3483 |
modified := false. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3484 |
hasSaved := false. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3485 |
self updateAfterColumnChange. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3486 |
! |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3487 |
|
1824 | 3488 |
setDefaultValuesInNewColumn:aDataSetColumnSpec |
1825 | 3489 |
"/ aDataSetColumnSpec readSelector: #'valueAtColumnIndex:'. |
3490 |
"/ aDataSetColumnSpec writeSelector: #'valueAtColumnIndex:put:'. |
|
3491 |
"/ aDataSetColumnSpec backgroundSelector: #'bgAtRowIndex:columnIndex:'. |
|
3492 |
"/ aDataSetColumnSpec foregroundSelector: #'fgAtRowIndex:columnIndex:'. |
|
3493 |
"/ aDataSetColumnSpec selectSelector: #'selectAtColumnIndex:'. |
|
3494 |
"/ aDataSetColumnSpec editorType: #InputField. |
|
332 | 3495 |
! ! |
3496 |
||
3045 | 3497 |
!DataSetBuilder methodsFor:'menu & user actions'! |
419 | 3498 |
|
3499 |
accept |
|
3500 |
"accept changes made" |
|
3501 |
||
3502 |
|column type| |
|
3503 |
||
825 | 3504 |
super accept. |
419 | 3505 |
|
3506 |
(column := self selectedColumn) isNil ifTrue: [^self cancel]. |
|
3507 |
||
3508 |
type := (aspects at:#rendererType) value. |
|
3509 |
||
818 | 3510 |
type == #rowSelector ifTrue:[ |
1731 | 3511 |
#(label |
1944 | 3512 |
width minWidth usePreferredWidth editorType choices translatedChoices |
1731 | 3513 |
readSelector writeSelector printSelector visibilitySelector |
2816 | 3514 |
formatString formatSelector type converterSelector size height |
3515 |
canSelect selectSelector showComboFieldSelector |
|
1822 | 3516 |
minValue maxValue |
818 | 3517 |
) do:[:aKey| |
3518 |
(aspects at:aKey) value:nil |
|
3519 |
] |
|
419 | 3520 |
]. |
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3521 |
aspects keysAndValuesDo:[:aKey :aModel| |
3096 | 3522 |
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
|
3523 |
]. |
2262 | 3524 |
self seqList at:self singleSelectedColumnIndex put:(self labelFromColumn:column). |
419 | 3525 |
self updateColumnView. |
825 | 3526 |
self cancel. |
1974 | 3527 |
self clearModified. |
2816 | 3528 |
|
3529 |
"Modified: / 25-10-2010 / 10:41:55 / cg" |
|
419 | 3530 |
! |
3531 |
||
3532 |
cancel |
|
3533 |
"remove all changes and reload selected column values" |
|
3534 |
||
3535 |
self updateInputFields. |
|
1990 | 3536 |
self enablingCommitButtonsHolder value:false. |
1187 | 3537 |
self clearModifiedFlag. |
1990 | 3538 |
self enablingCommitButtonsHolder value:false. |
1014
9ddf012eba3e
need a deepCopy for previewColumns
Claus Gittinger <cg@exept.de>
parents:
1012
diff
changeset
|
3539 |
|
9ddf012eba3e
need a deepCopy for previewColumns
Claus Gittinger <cg@exept.de>
parents:
1012
diff
changeset
|
3540 |
"Modified: / 27.10.1998 / 14:41:41 / cg" |
419 | 3541 |
! |
3542 |
||
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3543 |
cutOrDelete:isCut |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3544 |
"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
|
3545 |
|
2262 | 3546 |
|indices selectionModel| |
3547 |
||
3548 |
((indices := self selectedColumnIndices) notEmpty and:[self askForItemModification]) ifFalse:[ |
|
1390 | 3549 |
^ self |
3550 |
]. |
|
3551 |
isCut ifTrue:[ |
|
2262 | 3552 |
self clipboard: (self selectedColumns) |
1390 | 3553 |
]. |
2262 | 3554 |
|
3555 |
selectionModel := self selectedColumnModel. |
|
3556 |
selectionModel value:0. |
|
3557 |
||
3558 |
indices sort reverseDo:[:idx | |
|
3559 |
columns removeIndex:idx. |
|
3560 |
self seqList removeIndex:idx. |
|
3561 |
]. |
|
3562 |
||
3563 |
selectionModel value:((indices max) min:(columns size)). |
|
3564 |
self updateColumnView. |
|
3565 |
self updateInputFields. |
|
1390 | 3566 |
|
3567 |
columns isEmpty ifTrue:[ |
|
3568 |
self isColumnSelected value: false |
|
3569 |
]. |
|
3570 |
self cancel. |
|
1974 | 3571 |
self setModified. |
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3572 |
! |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3573 |
|
2262 | 3574 |
doAddColumn:descr |
3575 |
"adds a new column after the selected column or at the left (if nothing is selected)" |
|
3576 |
||
2557 | 3577 |
columns add:descr afterIndex:(self singleSelectedColumnIndex min:columns size). |
2262 | 3578 |
self setDefaultValuesInNewColumn:descr. |
3579 |
self seqList add:(descr label) afterIndex:self singleSelectedColumnIndex. |
|
3580 |
self enablingCommitButtonsHolder value ifFalse:[ |
|
3581 |
self selectedColumnModel value:self singleSelectedColumnIndex + 1 |
|
3582 |
]. |
|
3583 |
self cancel. |
|
3584 |
self updateColumnView. |
|
3585 |
self setModified. |
|
3586 |
! |
|
3587 |
||
818 | 3588 |
doBrowseRowClass |
419 | 3589 |
"browse class of columns spec" |
3590 |
||
3591 |
|cls| |
|
3592 |
||
983 | 3593 |
(cls := self resolveRowClass) notNil |
2401 | 3594 |
ifTrue: [Smalltalk browseInClass:cls] |
842 | 3595 |
ifFalse:[self information:'No class defined !!'] |
3596 |
||
3597 |
"Modified: / 20.5.1998 / 03:48:04 / cg" |
|
419 | 3598 |
! |
3599 |
||
825 | 3600 |
doCopy |
2262 | 3601 |
"copy selected columns to the clipboard" |
3602 |
||
3603 |
|cols| |
|
3604 |
||
3605 |
cols := self selectedColumns. |
|
3606 |
cols notEmptyOrNil ifTrue:[ |
|
3607 |
self clipboard:(cols deepCopy) |
|
419 | 3608 |
] |
3609 |
! |
|
3610 |
||
3611 |
doCreateColumn |
|
3612 |
"create a new column after selected column or at left (nothing selected)" |
|
3613 |
||
2262 | 3614 |
|label list dscs descr| |
3615 |
||
3616 |
"/ list := self seqList. |
|
3617 |
"/ label := 'Column ', (list size + 1) printString. |
|
3618 |
"/ columns add:(dscs := DataSetColumnSpec label:label selector:nil) afterIndex:selectedColumnIndex. |
|
3619 |
"/ self setDefaultValuesInNewColumn:dscs. |
|
3620 |
"/ self seqList add:label afterIndex:selectedColumnIndex. |
|
3621 |
"/ self enablingCommitButtonsHolder value ifFalse:[ |
|
3622 |
"/ self selectedColumnModel value:selectedColumnIndex + 1 |
|
3623 |
"/ ]. |
|
3624 |
"/ self cancel. |
|
3625 |
"/ self updateColumnView. |
|
3626 |
"/ self setModified. |
|
3627 |
"/ |
|
3628 |
||
3629 |
label := 'Column ', (self seqList size + 1) printString. |
|
3630 |
descr := DataSetColumnSpec label:label selector:nil. |
|
3631 |
self doAddColumn:descr |
|
3632 |
! |
|
3633 |
||
3634 |
doCreateNonSelectableColumn |
|
3635 |
"create a new column after selected column or at left (nothing selected)" |
|
3636 |
||
3637 |
|label list dscs descr| |
|
3638 |
||
3639 |
"/ list := self seqList. |
|
3640 |
"/ label := 'Column ', (list size + 1) printString. |
|
3641 |
"/ columns add:(dscs := DataSetColumnSpec label:label selector:nil) afterIndex:selectedColumnIndex. |
|
3642 |
"/ self setDefaultValuesInNewColumn:dscs. |
|
3643 |
"/ self seqList add:label afterIndex:selectedColumnIndex. |
|
3644 |
"/ self enablingCommitButtonsHolder value ifFalse:[ |
|
3645 |
"/ self selectedColumnModel value:selectedColumnIndex + 1 |
|
3646 |
"/ ]. |
|
3647 |
"/ self cancel. |
|
3648 |
"/ self updateColumnView. |
|
3649 |
"/ self setModified. |
|
3650 |
"/ |
|
3651 |
||
3652 |
label := 'Column ', (self seqList size + 1) printString. |
|
3653 |
descr := DataSetColumnSpec label:label selector:nil. |
|
3654 |
descr canSelect:false. |
|
3655 |
self doAddColumn:descr |
|
419 | 3656 |
! |
3657 |
||
825 | 3658 |
doCut |
419 | 3659 |
"remove selected column and put it to the clipboard" |
3660 |
||
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3661 |
self cutOrDelete:true |
419 | 3662 |
! |
3663 |
||
818 | 3664 |
doDefineRowClass |
419 | 3665 |
"launch a dialog to define class and superclass" |
3666 |
||
1382 | 3667 |
|aspects cls oldClass oldSuper val classNameChannel superclassNameChannel| |
419 | 3668 |
|
3669 |
aspects := IdentityDictionary new. |
|
818 | 3670 |
oldClass := rowClass. |
3671 |
oldSuper := rowSuperClass. |
|
419 | 3672 |
|
3673 |
[true] |
|
3674 |
whileTrue: |
|
3675 |
[ |
|
1382 | 3676 |
rowClass notNil ifTrue:[ |
3677 |
(cls := self resolveRowClass) notNil ifTrue:[ |
|
818 | 3678 |
rowSuperClass := cls superclass name asString |
419 | 3679 |
]. |
1382 | 3680 |
val := rowClass |
3681 |
] ifFalse:[ |
|
3682 |
val := 'DSVRow' |
|
419 | 3683 |
]. |
1382 | 3684 |
aspects at:#classNameChannel put:(classNameChannel := ValueHolder with:val). |
419 | 3685 |
|
818 | 3686 |
rowSuperClass notNil |
1382 | 3687 |
ifTrue: [val := rowSuperClass] |
3688 |
ifFalse:[val := 'Object']. |
|
3689 |
aspects at:#superclassNameChannel put:(superclassNameChannel := ValueHolder with:val). |
|
419 | 3690 |
|
3691 |
(self openDialogInterface:#defineClassNameSpec withBindings:aspects) |
|
3692 |
ifFalse: |
|
3693 |
[ |
|
818 | 3694 |
rowClass := oldClass. |
3695 |
rowSuperClass := oldSuper. |
|
419 | 3696 |
^self |
3697 |
]. |
|
1382 | 3698 |
rowClass := (classNameChannel value) withoutSeparators. |
3699 |
rowSuperClass := (superclassNameChannel value) withoutSeparators. |
|
419 | 3700 |
|
818 | 3701 |
rowClass size == 0 |
419 | 3702 |
ifTrue: |
3703 |
[ |
|
818 | 3704 |
rowClass := nil. |
419 | 3705 |
self information:'no valid className' |
3706 |
] |
|
3707 |
ifFalse: |
|
3708 |
[ |
|
983 | 3709 |
cls := self resolveRowClass. |
419 | 3710 |
|
3711 |
cls notNil ifTrue:[cls := cls superclass name asString]. |
|
3712 |
||
818 | 3713 |
rowSuperClass size == 0 |
419 | 3714 |
ifTrue: |
3715 |
[ |
|
3716 |
cls notNil ifTrue:[ |
|
818 | 3717 |
rowSuperClass := cls |
419 | 3718 |
] ifFalse:[ |
818 | 3719 |
rowSuperClass := 'Object' |
419 | 3720 |
]. |
3721 |
self information: 'set superclassName' |
|
3722 |
] |
|
3723 |
ifFalse: |
|
3724 |
[ |
|
825 | 3725 |
(cls isNil or:[rowSuperClass = cls]) ifTrue:[^self]. |
818 | 3726 |
self information:('A global named ' , rowClass , ' exists,\' , |
3727 |
'but is not a subclass of ' , rowSuperClass, '.\\' , |
|
419 | 3728 |
'Check and try again if that is not what you want.') withCRs. |
3729 |
||
818 | 3730 |
rowSuperClass := cls |
419 | 3731 |
] |
3732 |
] |
|
3733 |
] |
|
846 | 3734 |
|
3735 |
"Modified: / 21.5.1998 / 03:08:42 / cg" |
|
419 | 3736 |
! |
3737 |
||
825 | 3738 |
doDelete |
3739 |
"remove selected column and put it to the clipboard" |
|
3740 |
||
1036
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3741 |
self cutOrDelete:false |
26ebad245428
fix name entry (did not enable ok-button)
Claus Gittinger <cg@exept.de>
parents:
1033
diff
changeset
|
3742 |
|
825 | 3743 |
! |
3744 |
||
419 | 3745 |
doGenerateCode |
3746 |
"generate code for column values" |
|
3747 |
||
3748 |
|cls superclass| |
|
3749 |
||
818 | 3750 |
rowClass isNil ifTrue:[^self information:'No class defined!!']. |
983 | 3751 |
cls := self resolveRowClass. |
419 | 3752 |
|
3753 |
cls isNil |
|
3754 |
ifTrue: |
|
3755 |
[ |
|
818 | 3756 |
superclass := Smalltalk resolveName:rowSuperClass inClass:self class. |
419 | 3757 |
|
3758 |
superclass isNil ifTrue:[^self information:'No superclass defined!!']. |
|
818 | 3759 |
(self confirm:'create ' , rowClass , ' ?') ifFalse:[^self]. |
3760 |
cls := superclass subclass:rowClass asSymbol |
|
419 | 3761 |
instanceVariableNames:'' |
3762 |
classVariableNames:'' |
|
3763 |
poolDictionaries:'' |
|
3764 |
category:'Applications'. |
|
3765 |
]. |
|
3766 |
||
3767 |
self generateChoicesIn:cls. |
|
3768 |
self generateMenuIn:cls. |
|
3769 |
self generatePrintSelectorIn:cls. |
|
3770 |
self generateReadSelectorIn:cls. |
|
3771 |
self generateBackgroundSelectorIn:cls. |
|
3772 |
self generateForegroundSelectorIn:cls. |
|
3773 |
self generateSelectSelectorIn:cls. |
|
3774 |
self generateWriteSelectorIn:cls. |
|
3775 |
self generateDoubleClickSelectorIn:cls. |
|
983 | 3776 |
self generateRowSeparatorSelectorIn:cls. |
1009 | 3777 |
self generateShowComboFieldSelectorIn:cls. |
3778 |
||
419 | 3779 |
! |
3780 |
||
3781 |
doMoveColumn:upOrDown |
|
3782 |
"move selected column up or down" |
|
3783 |
||
2558 | 3784 |
|idx list label col size tabIndex| |
419 | 3785 |
|
2262 | 3786 |
(idx := self singleSelectedColumnIndex) == 0 ifTrue:[^self]. |
419 | 3787 |
list := self seqList. |
3788 |
size := list size. |
|
3789 |
||
2558 | 3790 |
size > 1 ifFalse:[ ^ self ]. |
3791 |
||
419 | 3792 |
selectedColumnIndex := 0. |
2558 | 3793 |
tabIndex := self tabModel value. |
3794 |
||
419 | 3795 |
label := list at:idx. |
3796 |
col := columns at:idx. |
|
3797 |
list removeIndex:idx. |
|
3798 |
columns removeIndex:idx. |
|
3799 |
||
2262 | 3800 |
upOrDown == #up ifTrue:[ |
419 | 3801 |
idx == 1 ifTrue:[idx := size] |
3802 |
ifFalse:[idx := idx - 1] |
|
2262 | 3803 |
] ifFalse:[ |
419 | 3804 |
idx == size ifTrue:[idx := 1] |
3805 |
ifFalse:[idx := idx + 1] |
|
3806 |
]. |
|
3807 |
columns add:col beforeIndex:idx. |
|
2558 | 3808 |
list add:label beforeIndex:idx. |
3809 |
||
419 | 3810 |
self selectedColumnModel value:idx. |
3811 |
self updateColumnView. |
|
2558 | 3812 |
self tabModel value:tabIndex. |
3813 |
||
1974 | 3814 |
self setModified. |
419 | 3815 |
! |
3816 |
||
2262 | 3817 |
doMoveDown |
3818 |
self doMoveColumn:#down |
|
3819 |
! |
|
3820 |
||
3821 |
doMoveUp |
|
3822 |
self doMoveColumn:#up |
|
3823 |
! |
|
3824 |
||
825 | 3825 |
doPaste |
419 | 3826 |
"paste clipboard copy column after selected column or at left (nothing selected)" |
3827 |
||
2262 | 3828 |
|cols idx newSel| |
3829 |
||
3830 |
self askForItemModification ifFalse: [^ self]. |
|
3831 |
||
3832 |
cols := self class clipboard. |
|
3833 |
cols isEmptyOrNil ifTrue:[^ self]. |
|
3834 |
||
3835 |
idx := (self selectedColumnIndices) isEmpty |
|
3836 |
ifTrue:[ columns size ] |
|
3837 |
ifFalse:[ self selectedColumnIndices max ]. |
|
3838 |
||
3839 |
newSel := OrderedCollection new. |
|
3840 |
cols do:[:col | |
|
3841 |
| lbl| |
|
3842 |
||
3843 |
lbl := self labelFromColumn:col. |
|
3844 |
||
3845 |
columns add:(col deepCopy) afterIndex:idx. |
|
3846 |
self seqList add:lbl afterIndex:idx. |
|
3847 |
idx := idx + 1. |
|
3848 |
newSel add:idx. |
|
3849 |
]. |
|
419 | 3850 |
|
1990 | 3851 |
self enablingCommitButtonsHolder value ifFalse:[ |
2262 | 3852 |
self selectedColumnModel value:newSel "/idx |
818 | 3853 |
]. |
419 | 3854 |
self updateColumnView. |
556 | 3855 |
self updateInputFields. |
1974 | 3856 |
self setModified. |
818 | 3857 |
! |
3858 |
||
3859 |
doPickColumns |
|
3860 |
||
3861 |
|view cls| |
|
3862 |
||
3863 |
view := Screen current viewFromUser. |
|
3864 |
cls := view class. |
|
3865 |
||
3866 |
(cls == DSVColumnView or:[cls == DataSetView or:[cls == DSVLabelView]]) ifTrue:[ |
|
3867 |
self columns:(view columnView columnDescriptors) |
|
3868 |
] |
|
3869 |
! |
|
3870 |
||
3871 |
doSave |
|
1144 | 3872 |
|cls dst spc category mthd excla code resourceType| |
818 | 3873 |
|
2549
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3874 |
editingSpecOnly == true ifTrue:[ |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3875 |
acceptedColumns := columns. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3876 |
hasSaved := true. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3877 |
self clearModified. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3878 |
^ self. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3879 |
]. |
55c5ca5f8689
more fixes to run on spec only (no class/selector)
Claus Gittinger <cg@exept.de>
parents:
2484
diff
changeset
|
3880 |
|
818 | 3881 |
(columns size ~~ 0 and:[super doSave]) ifFalse:[ |
3882 |
^ nil |
|
3883 |
]. |
|
983 | 3884 |
|
818 | 3885 |
cls := self resolveName:specClass. |
3886 |
dst := columns collect:[:aCol| aCol literalArrayEncoding ]. |
|
3329 | 3887 |
spc := WriteStream on:''. |
1105
a19cdc769750
stupid code-generation from Thomas fixed.
Claus Gittinger <cg@exept.de>
parents:
1073
diff
changeset
|
3888 |
spc nextPutAll:' ^'. |
818 | 3889 |
UISpecification prettyPrintSpecArray:dst asArray on:spc indent:4. |
3890 |
spc := spc contents. |
|
3891 |
||
3892 |
"/ if that method already exists, do not overwrite the category |
|
3893 |
||
3894 |
resourceType := self class resourceType. |
|
3895 |
category := resourceType, ' specs'. |
|
3896 |
||
3897 |
(mthd := cls class compiledMethodAt:specSelector) notNil ifTrue:[ |
|
3898 |
category := mthd category. |
|
3899 |
]. |
|
3900 |
||
3901 |
excla := Character excla asString. |
|
3902 |
||
3903 |
code := excla |
|
3904 |
, (cls name , ' class methodsFor:' , category storeString) |
|
3905 |
, excla , '\\' |
|
3906 |
||
3907 |
, specSelector , '\' |
|
3908 |
, (self class codeGenerationComment replChar:$!! withString:'!!!!') |
|
3909 |
, '\\ "\' |
|
3910 |
, (' DataSetBuilder new openOnClass:' , cls name , ' andSelector:#' , specSelector , '\') |
|
3911 |
, ' "\'. |
|
3912 |
||
3913 |
code := code |
|
3914 |
, '\' |
|
3915 |
, ' <resource: #', resourceType, '>\\' |
|
3916 |
, spc |
|
3917 |
, '\' |
|
3918 |
, (excla , ' ' , excla) |
|
3919 |
, '\\'. |
|
3920 |
||
3921 |
code := code withCRs. |
|
3076 | 3922 |
Class packageQuerySignal answer:cls package do:[ |
3923 |
(ReadStream on:code) fileIn. |
|
3924 |
]. |
|
818 | 3925 |
|
3926 |
"/ self isStandAlone ifTrue: [self helpTool installHelpSpecsOnClass:self specClass]. |
|
3927 |
||
3928 |
self updateHistory. |
|
3929 |
self updateInfoLabel. |
|
3930 |
||
3931 |
hasSaved := true. |
|
1974 | 3932 |
self clearModified. |
3076 | 3933 |
|
3934 |
"Modified: / 28-01-2014 / 21:57:35 / cg" |
|
1619 | 3935 |
! |
3936 |
||
3937 |
openDocumentation |
|
3813 | 3938 |
"open an HTML browser on the launcher section in the 'tools/TOP' document. |
3939 |
Called when <F1> is pressed" |
|
3940 |
||
1619 | 3941 |
self openHTMLDocument:'tools/uipainter/DataSetBuilder.html'. |
419 | 3942 |
! ! |
3943 |
||
3045 | 3944 |
!DataSetBuilder methodsFor:'menu operations'! |
3945 |
||
3946 |
addCellSeparators |
|
3947 |
self addRowSeparators. |
|
3948 |
self addColumnSeparators. |
|
3949 |
! |
|
3950 |
||
3951 |
addColumnSeparators |
|
3952 |
self selectedColumnsDo:[:eachColDescr | |
|
3953 |
eachColDescr showColSeparator:true |
|
3954 |
]. |
|
3955 |
self updateAfterOperation. |
|
3956 |
! |
|
3957 |
||
3958 |
addLabelColumnSeparators |
|
3959 |
self selectedColumnsDo:[:eachColDescr | |
|
3960 |
eachColDescr labelButtonType:#Button |
|
3961 |
]. |
|
3962 |
self updateAfterOperation. |
|
3963 |
! |
|
3964 |
||
3965 |
addLabelSeparators |
|
3966 |
self selectedColumnsDo:[:eachColDescr | |
|
3967 |
eachColDescr labelButtonType:#Button |
|
3968 |
]. |
|
3969 |
self updateAfterOperation. |
|
3970 |
! |
|
3971 |
||
3972 |
addRowSeparators |
|
3973 |
self selectedColumnsDo:[:eachColDescr | |
|
3974 |
eachColDescr showRowSeparator:true |
|
3975 |
]. |
|
3976 |
self updateAfterOperation. |
|
3977 |
! |
|
3978 |
||
3979 |
alignColumns:how |
|
3980 |
self selectedColumnsDo:[:eachColDescr | |
|
3981 |
eachColDescr columnAlignment:how |
|
3982 |
]. |
|
3983 |
self updateAfterOperation. |
|
3984 |
! |
|
3985 |
||
3986 |
alignColumnsCentered |
|
3987 |
self alignColumns:#centered |
|
3988 |
! |
|
3989 |
||
3990 |
alignColumnsLeft |
|
3991 |
self alignColumns:#left |
|
3992 |
! |
|
3993 |
||
3994 |
alignColumnsRight |
|
3995 |
self alignColumns:#right |
|
3996 |
! |
|
3997 |
||
3998 |
alignLabels:how |
|
3999 |
self selectedColumnsDo:[:eachColDescr | |
|
4000 |
eachColDescr labelAlignment:how |
|
4001 |
]. |
|
4002 |
self updateAfterOperation. |
|
4003 |
! |
|
4004 |
||
4005 |
alignLabelsCentered |
|
4006 |
self alignLabels:#centered |
|
4007 |
! |
|
4008 |
||
4009 |
alignLabelsLeft |
|
4010 |
self alignLabels:#left |
|
4011 |
! |
|
4012 |
||
4013 |
alignLabelsRight |
|
4014 |
self alignLabels:#right |
|
4015 |
! |
|
4016 |
||
4017 |
makeAllCellsSelectable |
|
4018 |
columns do:[:eachColDescr | |
|
4019 |
eachColDescr canSelect:true |
|
4020 |
]. |
|
4021 |
self updateAfterOperation. |
|
4022 |
! |
|
4023 |
||
4024 |
makeAllCellsUnselectable |
|
4025 |
columns do:[:eachColDescr | |
|
4026 |
eachColDescr canSelect:false |
|
4027 |
]. |
|
4028 |
self updateAfterOperation. |
|
4029 |
! |
|
4030 |
||
4031 |
makeColumnsSelectable |
|
4032 |
self makeColumnsSelectable:true |
|
4033 |
! |
|
4034 |
||
4035 |
makeColumnsSelectable:aBoolean |
|
4036 |
self selectedColumnsDo:[:eachColDescr | |
|
4037 |
eachColDescr canSelect:aBoolean |
|
4038 |
]. |
|
4039 |
self updateAfterOperation. |
|
4040 |
! |
|
4041 |
||
4042 |
makeColumnsUnselectable |
|
4043 |
self makeColumnsSelectable:false |
|
4044 |
! |
|
4045 |
||
4046 |
makeSelectedCellsSelectable |
|
4047 |
self selectedColumnsDo:[:eachColDescr | |
|
4048 |
eachColDescr canSelect:true |
|
4049 |
]. |
|
4050 |
self updateAfterOperation. |
|
4051 |
! |
|
4052 |
||
4053 |
makeSelectedCellsUnselectable |
|
4054 |
self selectedColumnsDo:[:eachColDescr | |
|
4055 |
eachColDescr canSelect:false |
|
4056 |
]. |
|
4057 |
self updateAfterOperation. |
|
4058 |
! |
|
4059 |
||
4060 |
removeCellSeparators |
|
4061 |
self removeRowSeparators. |
|
4062 |
self removeColumnSeparators. |
|
4063 |
! |
|
4064 |
||
4065 |
removeColumnSeparators |
|
4066 |
self selectedColumnsDo:[:eachColDescr | |
|
4067 |
eachColDescr showColSeparator:false |
|
4068 |
]. |
|
4069 |
self updateAfterOperation. |
|
4070 |
! |
|
4071 |
||
4072 |
removeLabelColumnSeparators |
|
4073 |
self selectedColumnsDo:[:eachColDescr | |
|
4074 |
eachColDescr labelButtonType:#Group |
|
4075 |
]. |
|
4076 |
self updateAfterOperation. |
|
4077 |
! |
|
4078 |
||
4079 |
removeLabelSeparators |
|
4080 |
self selectedColumnsDo:[:eachColDescr | |
|
4081 |
eachColDescr labelButtonType:#None |
|
4082 |
]. |
|
4083 |
self updateAfterOperation. |
|
4084 |
! |
|
4085 |
||
4086 |
removeRowSeparators |
|
4087 |
self selectedColumnsDo:[:eachColDescr | |
|
4088 |
eachColDescr showRowSeparator:false |
|
4089 |
]. |
|
4090 |
self updateAfterOperation. |
|
4091 |
! |
|
4092 |
||
4093 |
selectedColumnsDo:aBlock |
|
4094 |
selectedColumnIndex isCollection ifTrue:[ |
|
4095 |
selectedColumnIndex do:[:idx | aBlock value:(columns at:idx)]. |
|
4096 |
] ifFalse:[ |
|
4097 |
selectedColumnIndex ~~ 0 ifTrue:[ |
|
4098 |
selectedColumnIndex notNil ifTrue:[ |
|
4099 |
aBlock value:(columns at:selectedColumnIndex) |
|
4100 |
] |
|
4101 |
]. |
|
4102 |
]. |
|
4103 |
! |
|
4104 |
||
4105 |
setCellColorSelectors |
|
4106 |
|fgSelector bgSelector| |
|
4107 |
||
4108 |
fgSelector := Dialog request:'FG-Selector for all selected Columns (accept empty for none):'. |
|
4109 |
fgSelector isNil ifTrue:[^ self]. |
|
4110 |
||
4111 |
bgSelector := Dialog request:'BG-Selector for all selected Columns (accept empty for none):'. |
|
4112 |
bgSelector isNil ifTrue:[^ self]. |
|
4113 |
||
4114 |
self selectedColumnsDo:[:eachColDescr | |
|
4115 |
bgSelector notEmpty ifTrue:[ |
|
4116 |
eachColDescr backgroundSelector:bgSelector |
|
4117 |
]. |
|
4118 |
fgSelector notEmpty ifTrue:[ |
|
4119 |
eachColDescr foregroundSelector:fgSelector |
|
4120 |
]. |
|
4121 |
]. |
|
4122 |
self updateAfterOperation. |
|
4123 |
! |
|
4124 |
||
4125 |
setSelectedCellColorSelectors |
|
4126 |
|fgSelector bgSelector| |
|
4127 |
||
4128 |
fgSelector := Dialog request:'Selected FG-Selector for all selected Columns (accept empty for none):'. |
|
4129 |
fgSelector isNil ifTrue:[^ self]. |
|
4130 |
||
4131 |
bgSelector := Dialog request:'Selected BG-Selector for all selected Columns (accept empty for none):'. |
|
4132 |
bgSelector isNil ifTrue:[^ self]. |
|
4133 |
||
4134 |
self selectedColumnsDo:[:eachColDescr | |
|
4135 |
bgSelector notEmpty ifTrue:[ |
|
4136 |
eachColDescr selectedBackgroundSelector:bgSelector |
|
4137 |
]. |
|
4138 |
fgSelector notEmpty ifTrue:[ |
|
4139 |
eachColDescr selectedForegroundSelector:fgSelector |
|
4140 |
]. |
|
4141 |
]. |
|
4142 |
self updateAfterOperation. |
|
4143 |
! |
|
4144 |
||
4145 |
updateAfterOperation |
|
4146 |
self updateColumnView. |
|
4147 |
self updateInputFields. |
|
4148 |
self setModified. |
|
4149 |
! ! |
|
4150 |
||
4151 |
!DataSetBuilder methodsFor:'private'! |
|
4152 |
||
4153 |
labelFromColumn:aColumn |
|
4154 |
|label| |
|
4155 |
||
4156 |
aColumn rendererType == #rowSelector ifTrue:[ |
|
4157 |
^ 'Row Selector' |
|
4158 |
]. |
|
4159 |
label := aColumn label. |
|
4160 |
label isNil ifTrue:[^ nil]. |
|
4161 |
label isString ifTrue:[^ label]. |
|
4162 |
||
3406 | 4163 |
"/ is a collection of things? |
4164 |
label notEmpty ifTrue:[ |
|
3045 | 4165 |
label := label at:1. |
4166 |
]. |
|
4167 |
^ label printString |
|
3406 | 4168 |
|
4169 |
"Modified (comment): / 17-02-2017 / 08:36:27 / cg" |
|
3045 | 4170 |
! |
4171 |
||
4172 |
labelInPreviewPressed:anIndex |
|
4173 |
(self componentAt:#labelAndColumns) selection:anIndex |
|
4174 |
! |
|
4175 |
||
4176 |
updateColumnView |
|
4177 |
"updates the column view from column descriptions" |
|
4178 |
||
4179 |
|size previewColumns columnList| |
|
4180 |
||
4181 |
columnView notNil ifTrue:[ |
|
4182 |
columnList := List new. |
|
4183 |
previewColumns := OrderedCollection new. |
|
4184 |
||
4185 |
(size := columns size) ~~ 0 ifTrue:[ |
|
4186 |
columns do:[:aCol| |
|
4187 |
previewColumns add:(aCol copy) |
|
4188 |
]. |
|
4189 |
previewColumns keysAndValuesDo:[:anIndex :column| |
|
4190 |
column |
|
4191 |
readSelector: #at:; |
|
4192 |
writeSelector: #at:put:; |
|
4193 |
backgroundSelector:nil; |
|
4194 |
foregroundSelector:nil; |
|
4195 |
rowSeparatorSelector:nil; |
|
4196 |
selectSelector: nil; |
|
4197 |
showComboFieldSelector: nil; |
|
4198 |
selectSelector: nil; |
|
4199 |
doubleClickedSelector: nil; |
|
4200 |
printSelector: nil; |
|
4201 |
visibilitySelector: nil; |
|
4202 |
menu: nil; |
|
4203 |
labelActionSelector:#labelInPreviewPressed:; |
|
4204 |
labelActionArgument:anIndex; |
|
4205 |
choices:#choices; |
|
4206 |
sortSelector: nil; |
|
4207 |
isSortable: false |
|
4208 |
]. |
|
4209 |
#(' 1' ' 2' ' x') do:[:suffix| |
|
4210 |
|oneRow| |
|
4211 |
||
4212 |
oneRow := Row new:size. |
|
4213 |
1 to:size do:[:i | oneRow at: i put: ('Cell%1-%2' bindWith:suffix with:i)]. |
|
4214 |
columnList add: oneRow. |
|
4215 |
] |
|
4216 |
]. |
|
4217 |
||
4218 |
columnView list: #(). |
|
4219 |
columnView columnDescriptors: previewColumns. |
|
4220 |
columnView list: columnList. |
|
4221 |
]. |
|
4222 |
||
4223 |
"Modified: / 27.10.1998 / 14:41:16 / cg" |
|
4224 |
! |
|
4225 |
||
4226 |
updateInputFields |
|
4227 |
"reloads item value into input fields" |
|
4228 |
||
4229 |
|column notifyValue| |
|
4230 |
||
4231 |
(column := self selectedColumn) isNil ifTrue:[ |
|
4232 |
self tabModel value:0. |
|
4233 |
] ifFalse:[ |
|
4234 |
notifyValue := nil. "/ old: '' -> problems with Toggles (asBoolean) |
|
4235 |
||
4236 |
aspects do:[:anAspect| anAspect value:notifyValue ]. |
|
4237 |
aspects keysAndValuesDo:[:aKey :aModel | |
|
4238 |
aModel value:(column perform:aKey) withoutNotifying: self |
|
4239 |
]. |
|
4240 |
||
3529 | 4241 |
"/ REPLACE nil by empty string for specific inputFields without an adapter |
3045 | 4242 |
#( #labelActionArgument #formatString #id ) do:[:aKey| |model| |
4243 |
model := aspects at:aKey. |
|
4244 |
model value isNil ifTrue:[model value:notifyValue withoutNotifying: self] |
|
4245 |
]. |
|
4246 |
||
4247 |
tabSelection == 0 ifTrue:[self tabModel value:1]. |
|
4248 |
]. |
|
3529 | 4249 |
|
4250 |
"Modified (comment): / 24-01-2018 / 10:41:17 / mawalch" |
|
3045 | 4251 |
! ! |
4252 |
||
4253 |
!DataSetBuilder methodsFor:'selection'! |
|
4254 |
||
4255 |
selectedColumn |
|
4256 |
"returns selected column or nil" |
|
4257 |
||
4258 |
selectedColumnIndex isCollection ifTrue:[ |
|
4259 |
^ selectedColumnIndex size == 1 |
|
4260 |
ifTrue:[ columns at:selectedColumnIndex first ] |
|
4261 |
ifFalse:[ nil ] |
|
4262 |
]. |
|
4263 |
||
4264 |
^selectedColumnIndex == 0 |
|
4265 |
ifFalse:[columns at:selectedColumnIndex ifAbsent: nil] |
|
4266 |
ifTrue: [nil] |
|
4267 |
! |
|
4268 |
||
4269 |
selectedColumnIndex |
|
4270 |
"returns selected column index or 0" |
|
4271 |
||
4272 |
^selectedColumnIndex |
|
4273 |
! |
|
4274 |
||
4275 |
selectedColumnIndex:something |
|
4276 |
"changes selected column and updates specifications" |
|
4277 |
||
4278 |
something == selectedColumnIndex ifFalse:[ |
|
4279 |
selectedColumnIndex := something ? 0. |
|
4280 |
"/ self assert:( selectedColumnIndex <= columns size ). |
|
4281 |
"/ self assert:( selectedColumnIndex <= self seqList size ). |
|
4282 |
self isColumnSelected value: true |
|
4283 |
]. |
|
4284 |
! |
|
4285 |
||
4286 |
selectedColumnIndices |
|
4287 |
"returns selected column indices or #()" |
|
4288 |
||
4289 |
selectedColumnIndex == 0 ifTrue:[ ^ #() ]. |
|
4290 |
selectedColumnIndex isNumber ifTrue:[ ^ Array with:selectedColumnIndex ]. |
|
4291 |
^selectedColumnIndex |
|
4292 |
! |
|
4293 |
||
4294 |
selectedColumns |
|
4295 |
selectedColumnIndex isCollection ifTrue:[ |
|
4296 |
^ selectedColumnIndex collect:[:idx | columns at:idx] |
|
4297 |
]. |
|
4298 |
||
4299 |
^ selectedColumnIndex == 0 |
|
4300 |
ifFalse:[ Array with:(columns at:selectedColumnIndex) ] |
|
4301 |
ifTrue: [ #() ] |
|
4302 |
! |
|
4303 |
||
4304 |
singleSelectedColumnIndex |
|
4305 |
selectedColumnIndex isCollection ifTrue:[ |
|
4306 |
^ selectedColumnIndex size == 1 |
|
4307 |
ifTrue:[ selectedColumnIndex first ] |
|
4308 |
ifFalse:[ 0 ] |
|
4309 |
]. |
|
4310 |
||
4311 |
^ selectedColumnIndex |
|
4312 |
! |
|
4313 |
||
4314 |
tabSelection:something |
|
4315 |
"changes selected tab and set corresponding specification" |
|
4316 |
||
4317 |
|view spec| |
|
4318 |
||
4319 |
something == tabSelection ifTrue:[^self]. |
|
4320 |
||
4321 |
(tabSelection := something) isNil ifTrue:[ |
|
4322 |
tabSelection == 0 ifTrue:[^ self]. |
|
4323 |
tabSelection := 0. |
|
4324 |
]. |
|
4325 |
||
4326 |
self selectedColumn isNil ifTrue:[ |
|
4327 |
tabSelection ~~ 0 ifTrue:[ |
|
4328 |
self tabModel value:0 |
|
4329 |
] ifFalse:[ |
|
4330 |
self canvasHolder value:nil |
|
4331 |
]. |
|
4332 |
^ self |
|
4333 |
]. |
|
4334 |
||
4335 |
tabSelection == 0 ifTrue:[ |
|
4336 |
^ self tabModel value:1. |
|
4337 |
]. |
|
4338 |
||
4339 |
(view := listOfSpecViews at:tabSelection) isNil ifTrue:[ |
|
4340 |
view := SimpleView new. |
|
4341 |
spec := (self class slices at:tabSelection) last. |
|
4342 |
||
4343 |
"/ view client:nil spec:(self class interfaceSpecFor:spec) builder:(self builder). |
|
4344 |
view client:self spec:spec builder:(self builder). |
|
4345 |
listOfSpecViews at:tabSelection put:view. |
|
4346 |
]. |
|
4347 |
self canvasHolder value:view |
|
4348 |
! ! |
|
4349 |
||
4350 |
!DataSetBuilder methodsFor:'startup & release'! |
|
4351 |
||
4352 |
commonPostBuild |
|
4353 |
columnView := self componentAt:#columnView. |
|
4354 |
||
4355 |
columns notEmpty ifTrue: [ |
|
4356 |
self tabModel value: 1. |
|
4357 |
self selectedColumnModel value:nil; value:1. "/ toggle to force change |
|
4358 |
self updateInputFields. |
|
4359 |
self updateInfoLabel. |
|
4360 |
self updateHistory |
|
4361 |
]. |
|
4362 |
||
4363 |
(self componentAt: #labelAndColumns) |
|
4364 |
selectConditionBlock: [:i|self askForItemModification]; |
|
4365 |
action: [:i|self cancel]; |
|
4366 |
selection: 1. |
|
4367 |
||
4368 |
"/ using masters infoHolder ? |
|
3540 | 4369 |
self useAlienInfoLabel ifTrue:[ |
3045 | 4370 |
(builder componentAt:#mainPanel) layout bottomOffset:0. |
4371 |
(builder componentAt:#infoBarSubSpec) beInvisible |
|
3534 | 4372 |
] |
4373 |
||
4374 |
"Modified: / 20-02-2018 / 13:05:37 / stefan" |
|
3045 | 4375 |
! |
4376 |
||
4377 |
openModal |
|
4378 |
"sets the modalOpened flag, so later, |
|
4379 |
there is no need to ask for saving into a class" |
|
4380 |
||
4381 |
modalOpened := true. |
|
4382 |
super openModal |
|
4383 |
! |
|
4384 |
||
4385 |
openModalOnResourceSpec: aListSpec |
|
4386 |
"sets the modalOpened flag, so later, |
|
4387 |
there is no need to ask for saving into a class" |
|
4388 |
||
4389 |
modalOpened := true. |
|
4390 |
super openModalOnResourceSpec: aListSpec |
|
4391 |
||
4392 |
||
4393 |
! |
|
4394 |
||
4395 |
postBuildListOfItemsView:aView |
|
4396 |
listOfItemsView := aView |
|
4397 |
! |
|
4398 |
||
4399 |
postBuildSpecView:aView |
|
4400 |
listOfItemsView := aView |
|
4401 |
! |
|
4402 |
||
4403 |
postOpenWith:aBuilder |
|
4404 |
"reset keyboardProcessor for menuBar" |
|
4405 |
||
4406 |
super postOpenWith:aBuilder. |
|
4407 |
aBuilder keyboardProcessor menuBar:nil. |
|
4408 |
self windowGroup addPreEventHook:self. |
|
4409 |
! ! |
|
4410 |
||
1004 | 4411 |
!DataSetBuilder::Row methodsFor:'accessing'! |
4412 |
||
4413 |
choices |
|
4414 |
^ #( 'foo' 'bar' 'baz' ) |
|
4415 |
||
4416 |
||
4417 |
! ! |
|
4418 |
||
4419 |
!DataSetBuilder::Row methodsFor:'message handling'! |
|
4420 |
||
4421 |
doesNotUnderstand:aMessage |
|
3288 | 4422 |
"does not understand message; ignore" |
4423 |
||
4424 |
('[DataSetBuilder::Row] warning: message completely ignored: ',aMessage selector) errorPrintCR. |
|
1004 | 4425 |
^ nil |
4426 |
! ! |
|
4427 |
||
332 | 4428 |
!DataSetBuilder class methodsFor:'documentation'! |
4429 |
||
4430 |
version |
|
4431 |
^ '$Header$' |
|
2625 | 4432 |
! |
4433 |
||
4434 |
version_CVS |
|
4435 |
^ '$Header$' |
|
332 | 4436 |
! ! |
2944 | 4437 |