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