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