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