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