DataSetBuilder.st
author tz
Fri, 16 Jan 1998 19:06:44 +0100
changeset 413 ac37b2a972ff
parent 409 6fbb954fdd75
child 417 a5335dd0a6f3
permissions -rw-r--r--
select first column item after opening
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
     1
"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
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
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
    17
ToolApplicationModel subclass:#DataSetBuilder
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    18
	instanceVariableNames:'className superclassName hasChanged columnView columns
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    19
		selectedColumnIndex tabSelectionIndex aspects isModified'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    20
	classVariableNames:'Number'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    21
	poolDictionaries:''
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    22
	category:'Interface-UIPainter'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    23
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    24
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    25
!DataSetBuilder class methodsFor:'documentation'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    26
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    27
copyright
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    28
"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    29
 COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    30
              All Rights Reserved
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    31
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    32
 This software is furnished under a license and may be used
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    33
 only in accordance with the terms of that license and with the
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    35
 be provided or otherwise made available to, or used by, any
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    36
 other person.  No title to or ownership of the software is
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    37
 hereby transferred.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    38
"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    39
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    40
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    41
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    42
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    43
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    44
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    45
documentation
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    46
"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    47
    create and modify or inspect dataset columns; used by UIPainter (DataSetColumnSpec)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    48
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    49
    [see also:]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    50
        DataSetColumnSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    51
        DataSetSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    52
        DataSetView
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    53
        DataSetColumn
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    54
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    55
    [author:]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    56
        Claus Atzkern
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    57
"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    58
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    59
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    60
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    61
!DataSetBuilder class methodsFor:'columns specs'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    62
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    63
basicsEditSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    64
    "this window spec was automatically generated by the ST/X UIPainter"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    65
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    66
    "do not manually edit this - the painter/builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    67
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    68
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    69
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    70
     UIPainter new openOnClass:DataSetBuilder andSelector:#basicsEditSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    71
     DataSetBuilder new openInterface:#basicsEditSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    72
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    73
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    74
    <resource: #canvas>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    75
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    76
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    77
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    78
       #(#FullSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    79
          #'window:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    80
           #(#WindowSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    81
              #'name:' 'DataSet Basic'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
    82
              #'layout:' #(#LayoutFrame 100 0 173 0 388 0 428 0)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    83
              #'label:' 'DataSet Basic'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    84
              #'min:' #(#Point 10 10)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    85
              #'max:' #(#Point 1280 1024)
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
    86
              #'bounds:' #(#Rectangle 100 173 389 429)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
    87
              #'usePreferredExtent:' false
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    88
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    89
          #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    90
           #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    91
              #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    92
               #(
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
    93
                 #(#FramedBoxSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
    94
                    #'name:' 'framedBox1'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
    95
                    #'layout:' #(#LayoutFrame 0 0.0 3 0 0 1.0 92 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
    96
                    #'component:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
    97
                     #(#SpecCollection
9215eb553600 totally revised version
tz
parents: 391
diff changeset
    98
                        #'collection:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
    99
                         #(
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   100
                           #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   101
                              #'name:' 'label1'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   102
                              #'layout:' #(#AlignmentOrigin 107 0 31 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   103
                              #'label:' 'Label:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   104
                              #'resizeForLabel:' true
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   105
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   106
                           #(#InputFieldSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   107
                              #'name:' 'labelField'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   108
                              #'layout:' #(#LayoutFrame 110 0 21 0 15 1.0 43 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   109
                              #'activeHelpKey:' #label
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   110
                              #'model:' #label
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   111
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   112
                           #(#CheckBoxSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   113
                              #'name:' 'labelIsImage'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   114
                              #'layout:' #(#LayoutOrigin 107 0 47 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   115
                              #'activeHelpKey:' #labelIsImage
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   116
                              #'model:' #labelIsImage
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   117
                              #'label:' 'Label Is Image'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   118
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   119
                        )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   120
                    )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   121
                    #'label:' 'Header:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   122
                    #'labelPosition:' #topLeft
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   123
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   124
                 #(#FramedBoxSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   125
                    #'name:' 'typesFrame'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   126
                    #'layout:' #(#LayoutFrame 0 0.0 92 0 0 1.0 174 0)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   127
                    #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   128
                     #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   129
                        #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   130
                         #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   131
                           #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   132
                              #'name:' 'rendererLabel'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   133
                              #'layout:' #(#AlignmentOrigin 107 0 28 0 1 0.5)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   134
                              #'label:' 'Renderer:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   135
                              #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   136
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   137
                           #(#ComboListSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   138
                              #'name:' 'rendererField'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   139
                              #'layout:' #(#LayoutFrame 110 0 18 0 15 1.0 40 0)
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   140
                              #'activeHelpKey:' #rendererType
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   141
                              #'model:' #rendererType
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   142
                              #'comboList:' #rendererTypeList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   143
                              #'useIndex:' false
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   144
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   145
                           #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   146
                              #'name:' 'editorLabel'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   147
                              #'layout:' #(#AlignmentOrigin 107 0 53 0 1 0.5)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   148
                              #'label:' 'Editor:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   149
                              #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   150
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   151
                           #(#ComboBoxSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   152
                              #'name:' 'editorField'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   153
                              #'layout:' #(#LayoutFrame 110 0 44 0 15 1.0 66 0)
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   154
                              #'activeHelpKey:' #editorField
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   155
                              #'model:' #editorType
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   156
                              #'type:' #symbolOrNil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   157
                              #'comboList:' #editorTypeList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   158
                              #'useIndex:' false
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   159
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   160
                        )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   161
                    )
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   162
                    #'label:' 'Cell Type:'
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   163
                    #'labelPosition:' #topLeft
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   164
                )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   165
              )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   166
          )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   167
      )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   168
!
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   169
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   170
colorsEditSpec
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   171
    "this window spec was automatically generated by the ST/X UIPainter"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   172
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   173
    "do not manually edit this - the painter/builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   174
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   175
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   176
    "
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   177
     UIPainter new openOnClass:DataSetBuilder andSelector:#colorsEditSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   178
     DataSetBuilder new openInterface:#colorsEditSpec
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   179
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   180
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   181
    <resource: #canvas>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   182
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   183
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   184
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   185
       #(#FullSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   186
          #'window:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   187
           #(#WindowSpec
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   188
              #'name:' 'DataSet Misc'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   189
              #'layout:' #(#LayoutFrame 354 0 229 0 722 0 528 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   190
              #'label:' 'DataSet Misc'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   191
              #'min:' #(#Point 10 10)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   192
              #'max:' #(#Point 1280 1024)
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   193
              #'bounds:' #(#Rectangle 354 229 723 529)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   194
              #'usePreferredExtent:' false
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   195
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   196
          #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   197
           #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   198
              #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   199
               #(
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   200
                 #(#FramedBoxSpec
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   201
                    #'name:' 'defaultColorsBox'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   202
                    #'layout:' #(#LayoutFrame 0 0.0 88 0 0 1.0 230 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   203
                    #'component:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   204
                     #(#SpecCollection
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   205
                        #'collection:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   206
                         #(
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   207
                           #(#ColorMenuSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   208
                              #'name:' 'fgMenu'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   209
                              #'layout:' #(#LayoutFrame 110 0 15 0 12 1.0 37 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   210
                              #'activeHelpKey:' #foregroundColor
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   211
                              #'model:' #foregroundColor
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   212
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   213
                           #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   214
                              #'name:' 'fgLabel'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   215
                              #'layout:' #(#AlignmentOrigin 107 0 27 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   216
                              #'label:' 'Foreground:'
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   217
                              #'adjust:' #right
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   218
                              #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   219
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   220
                           #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   221
                              #'name:' 'bgLabel'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   222
                              #'layout:' #(#AlignmentOrigin 107 0 55 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   223
                              #'label:' 'Background:'
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   224
                              #'adjust:' #right
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   225
                              #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   226
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   227
                           #(#ColorMenuSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   228
                              #'name:' 'bgMenu'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   229
                              #'layout:' #(#LayoutFrame 110 0 43 0 12 1.0 65 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   230
                              #'activeHelpKey:' #backgroundColor
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   231
                              #'model:' #backgroundColor
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   232
                          )
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   233
                           #(#LabelSpec
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   234
                              #'name:' 'fgSelLabel'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   235
                              #'layout:' #(#AlignmentOrigin 107 0 89 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   236
                              #'label:' 'FG-Selector:'
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   237
                              #'adjust:' #right
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   238
                              #'resizeForLabel:' true
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   239
                          )
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   240
                           #(#LabelSpec
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   241
                              #'name:' 'bgSelLabel'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   242
                              #'layout:' #(#AlignmentOrigin 107 0 114 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   243
                              #'label:' 'BG-Selector:'
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   244
                              #'adjust:' #right
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   245
                              #'resizeForLabel:' true
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   246
                          )
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   247
                           #(#InputFieldSpec
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   248
                              #'name:' 'bgSelField'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   249
                              #'layout:' #(#LayoutFrame 110 0 103 0 15 1.0 125 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   250
                              #'activeHelpKey:' #backgroundSelector
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   251
                              #'model:' #backgroundSelector
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   252
                              #'type:' #symbolOrNil
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   253
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   254
                           #(#InputFieldSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   255
                              #'name:' 'fgSelField'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   256
                              #'layout:' #(#LayoutFrame 110 0 78 0 15 1.0 100 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   257
                              #'activeHelpKey:' #foregroundSelector
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   258
                              #'model:' #foregroundSelector
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   259
                              #'type:' #symbolOrNil
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   260
                          )
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   261
                        )
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   262
                    )
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   263
                    #'label:' 'Cell Colors:'
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   264
                    #'labelPosition:' #topLeft
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   265
                )
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   266
                 #(#FramedBoxSpec
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   267
                    #'name:' 'ColorsBox'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   268
                    #'layout:' #(#LayoutFrame 0 0.0 3 0 0 1.0 88 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   269
                    #'component:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   270
                     #(#SpecCollection
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   271
                        #'collection:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   272
                         #(
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   273
                           #(#ColorMenuSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   274
                              #'name:' 'colorMenu1'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   275
                              #'layout:' #(#LayoutFrame 110 0 15 0 12 1.0 37 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   276
                              #'activeHelpKey:' #foregroundColor
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   277
                              #'model:' #labelForegroundColor
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   278
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   279
                           #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   280
                              #'name:' 'label1'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   281
                              #'layout:' #(#AlignmentOrigin 107 0 27 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   282
                              #'label:' 'Foreground:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   283
                              #'adjust:' #right
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   284
                              #'resizeForLabel:' true
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   285
                          )
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   286
                           #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   287
                              #'name:' 'label2'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   288
                              #'layout:' #(#AlignmentOrigin 107 0 55 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   289
                              #'label:' 'Background:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   290
                              #'adjust:' #right
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   291
                              #'resizeForLabel:' true
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   292
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   293
                           #(#ColorMenuSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   294
                              #'name:' 'colorMenu2'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   295
                              #'layout:' #(#LayoutFrame 110 0 43 0 12 1.0 65 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   296
                              #'activeHelpKey:' #backgroundColor
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   297
                              #'model:' #labelBackgroundColor
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   298
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   299
                        )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   300
                    )
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   301
                    #'label:' 'Label Colors:'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   302
                    #'labelPosition:' #topLeft
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   303
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   304
              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   305
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   306
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   307
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   308
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   309
formatEditSpec
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   310
    "this window spec was automatically generated by the ST/X UIPainter"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   311
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   312
    "do not manually edit this - the painter/builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   313
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   314
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   315
    "
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   316
     UIPainter new openOnClass:DataSetBuilder andSelector:#formatEditSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   317
     DataSetBuilder new openInterface:#formatEditSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   318
    "
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   319
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   320
    <resource: #canvas>
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   321
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   322
    ^
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   323
     
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   324
       #(#FullSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   325
          #'window:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   326
           #(#WindowSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   327
              #'name:' 'DataSet Details'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   328
              #'layout:' #(#LayoutFrame 54 0 445 0 441 0 736 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   329
              #'label:' 'DataSet Details'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   330
              #'min:' #(#Point 10 10)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   331
              #'max:' #(#Point 1280 1024)
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   332
              #'bounds:' #(#Rectangle 54 445 442 737)
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   333
              #'usePreferredExtent:' false
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   334
          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   335
          #'component:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   336
           #(#SpecCollection
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   337
              #'collection:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   338
               #(
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   339
                 #(#FramedBoxSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   340
                    #'name:' 'framedBox1'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   341
                    #'layout:' #(#LayoutFrame 0 0.0 3 0 0 1.0 87 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   342
                    #'component:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   343
                     #(#SpecCollection
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   344
                        #'collection:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   345
                         #(
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   346
                           #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   347
                              #'name:' 'typeLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   348
                              #'layout:' #(#AlignmentOrigin 107 0 26 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   349
                              #'label:' 'Input Type:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   350
                              #'resizeForLabel:' true
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   351
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   352
                           #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   353
                              #'name:' 'sizeLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   354
                              #'layout:' #(#AlignmentOrigin 107 0 55 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   355
                              #'label:' 'Max Size:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   356
                              #'resizeForLabel:' true
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   357
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   358
                           #(#InputFieldSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   359
                              #'name:' 'sizeField'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   360
                              #'layout:' #(#LayoutFrame 110 0 44 0 15 1.0 66 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   361
                              #'activeHelpKey:' #size
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   362
                              #'model:' #size
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   363
                              #'type:' #numberOrNil
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   364
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   365
                           #(#ComboListSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   366
                              #'name:' 'typeCombo'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   367
                              #'layout:' #(#LayoutFrame 110 0 18 0 15 1.0 40 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   368
                              #'activeHelpKey:' #type
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   369
                              #'model:' #type
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   370
                              #'comboList:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   371
                               #(#string
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   372
                                  #password #number
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   373
                                  #numberOrNil #symbolOrNil
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   374
                              )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   375
                              #'useIndex:' false
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   376
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   377
                        )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   378
                    )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   379
                    #'label:' 'Input Format'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   380
                    #'labelPosition:' #topLeft
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   381
                )
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   382
                 #(#FramedBoxSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   383
                    #'name:' 'framedBox2'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   384
                    #'layout:' #(#LayoutFrame 0 0.0 87 0 0 1.0 175 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   385
                    #'component:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   386
                     #(#SpecCollection
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   387
                        #'collection:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   388
                         #(
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   389
                           #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   390
                              #'name:' 'formatLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   391
                              #'layout:' #(#AlignmentOrigin 107 0 55 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   392
                              #'label:' 'Text Format:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   393
                              #'resizeForLabel:' true
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   394
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   395
                           #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   396
                              #'name:' 'JustificationLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   397
                              #'layout:' #(#LayoutOrigin 35 0 21 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   398
                              #'label:' 'Justification:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   399
                              #'adjust:' #left
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   400
                              #'resizeForLabel:' true
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   401
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   402
                           #(#PopUpListSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   403
                              #'name:' 'Alignment'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   404
                              #'layout:' #(#LayoutFrame 110 0 18 0 15 1.0 40 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   405
                              #'label:' 'Alignment'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   406
                              #'model:' #labelAlignment
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   407
                              #'menu:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   408
                               #(#left
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   409
                                  #right #center
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   410
                              )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   411
                              #'useIndex:' false
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   412
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   413
                           #(#InputFieldSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   414
                              #'name:' 'formatField'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   415
                              #'layout:' #(#LayoutFrame 110 0 45 0 15 1.0 67 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   416
                              #'activeHelpKey:' #formatString
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   417
                              #'model:' #formatString
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   418
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   419
                        )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   420
                    )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   421
                    #'label:' 'Output Format'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   422
                    #'labelPosition:' #topLeft
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   423
                )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   424
              )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   425
          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   426
      )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   427
!
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   428
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   429
frameEditSpec
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   430
    "this window spec was automatically generated by the ST/X UIPainter"
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   431
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   432
    "do not manually edit this - the painter/builder may not be able to
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   433
     handle the specification if its corrupted."
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   434
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   435
    "
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   436
     UIPainter new openOnClass:DataSetBuilder andSelector:#frameEditSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   437
     DataSetBuilder new openInterface:#frameEditSpec
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   438
    "
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   439
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   440
    <resource: #canvas>
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   441
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   442
    ^
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   443
     
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   444
       #(#FullSpec
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   445
          #'window:' 
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   446
           #(#WindowSpec
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   447
              #'name:' 'DataSet Dimension'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   448
              #'layout:' #(#LayoutFrame 442 0 269 0 732 0 482 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   449
              #'label:' 'DataSet Dimension'
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   450
              #'min:' #(#Point 10 10)
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   451
              #'max:' #(#Point 1280 1024)
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   452
              #'bounds:' #(#Rectangle 442 269 733 483)
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   453
              #'usePreferredExtent:' false
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   454
          )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   455
          #'component:' 
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   456
           #(#SpecCollection
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   457
              #'collection:' 
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   458
               #(
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   459
                 #(#FramedBoxSpec
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   460
                    #'name:' 'separatorBox'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   461
                    #'layout:' #(#LayoutFrame 0 0.0 3 0 0 1.0 86 0)
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   462
                    #'component:' 
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   463
                     #(#SpecCollection
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   464
                        #'collection:' 
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   465
                         #(
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   466
                           #(#CheckBoxSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   467
                              #'name:' 'showRowSeparator'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   468
                              #'layout:' #(#LayoutFrame 18 0 19 0 194 0 42 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   469
                              #'activeHelpKey:' #showRowSeparator
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   470
                              #'model:' #showRowSeparator
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   471
                              #'label:' 'Show Row-Separator'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   472
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   473
                           #(#CheckBoxSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   474
                              #'name:' 'showColSeparator'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   475
                              #'layout:' #(#LayoutFrame 18 0 45 0 194 0 68 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   476
                              #'activeHelpKey:' #showColumnSeparator
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   477
                              #'model:' #showColSeparator
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   478
                              #'label:' 'Show Column-Separator'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   479
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   480
                        )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   481
                    )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   482
                    #'label:' 'Separators'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   483
                    #'labelPosition:' #topLeft
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   484
                )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   485
                 #(#FramedBoxSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   486
                    #'name:' 'framedBox1'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   487
                    #'layout:' #(#LayoutFrame 0 0.0 86 0 0 1.0 198 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   488
                    #'component:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   489
                     #(#SpecCollection
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   490
                        #'collection:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   491
                         #(
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   492
                           #(#InputFieldSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   493
                              #'name:' 'heightField'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   494
                              #'layout:' #(#LayoutFrame 110 0 73 0 15 1.0 95 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   495
                              #'activeHelpKey:' #height
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   496
                              #'model:' #height
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   497
                              #'type:' #numberOrNil
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   498
                          )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   499
                           #(#LabelSpec
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   500
                              #'name:' 'heightLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   501
                              #'layout:' #(#LayoutFrame 10 0.0 76 0 107 0.0 93 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   502
                              #'label:' 'Row Height:'
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   503
                              #'adjust:' #right
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   504
                              #'resizeForLabel:' true
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   505
                          )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   506
                           #(#LabelSpec
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   507
                              #'name:' 'minWidthLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   508
                              #'layout:' #(#LayoutFrame 10 0.0 45 0 107 0.0 62 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   509
                              #'label:' 'Min Width:'
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   510
                              #'adjust:' #right
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   511
                              #'resizeForLabel:' true
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   512
                          )
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   513
                           #(#InputFieldSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   514
                              #'name:' 'minWidthField'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   515
                              #'layout:' #(#LayoutFrame 110 0 42 0 15 1.0 64 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   516
                              #'activeHelpKey:' #minWidth
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   517
                              #'model:' #minWidth
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   518
                              #'type:' #numberOrNil
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   519
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   520
                           #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   521
                              #'name:' 'widthLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   522
                              #'layout:' #(#LayoutFrame 10 0.0 20 0 107 0.0 37 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   523
                              #'label:' 'Column Width:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   524
                              #'adjust:' #right
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   525
                              #'resizeForLabel:' true
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   526
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   527
                           #(#InputFieldSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   528
                              #'name:' 'widthField'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   529
                              #'layout:' #(#LayoutFrame 110 0 17 0 15 1.0 39 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   530
                              #'activeHelpKey:' #width
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   531
                              #'model:' #width
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   532
                              #'type:' #numberOrNil
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   533
                          )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   534
                        )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   535
                    )
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   536
                    #'label:' 'Dimensions:'
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   537
                    #'labelPosition:' #topLeft
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   538
                )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   539
              )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   540
          )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   541
      )
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   542
!
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   543
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   544
selectionEditSpec
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   545
    "this window spec was automatically generated by the ST/X UIPainter"
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   546
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   547
    "do not manually edit this - the painter/builder may not be able to
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   548
     handle the specification if its corrupted."
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   549
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   550
    "
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   551
     UIPainter new openOnClass:DataSetBuilder andSelector:#selectionEditSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   552
     DataSetBuilder new openInterface:#selectionEditSpec
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   553
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   554
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   555
    <resource: #canvas>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   556
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   557
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   558
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   559
       #(#FullSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   560
          #'window:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   561
           #(#WindowSpec
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   562
              #'name:' 'DataSet Basic'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   563
              #'layout:' #(#LayoutFrame 414 0 196 0 702 0 451 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   564
              #'label:' 'DataSet Basic'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   565
              #'min:' #(#Point 10 10)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   566
              #'max:' #(#Point 1280 1024)
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   567
              #'bounds:' #(#Rectangle 414 196 703 452)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   568
              #'usePreferredExtent:' false
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   569
          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   570
          #'component:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   571
           #(#SpecCollection
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   572
              #'collection:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   573
               #(
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   574
                 #(#FramedBoxSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   575
                    #'name:' 'framedBox1'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   576
                    #'layout:' #(#LayoutFrame 0 0.0 3 0 0 1.0 84 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   577
                    #'component:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   578
                     #(#SpecCollection
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   579
                        #'collection:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   580
                         #(
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   581
                           #(#CheckBoxSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   582
                              #'name:' 'canSelect'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   583
                              #'layout:' #(#Point 107 17)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   584
                              #'activeHelpKey:' #canSelect
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   585
                              #'model:' #canSelect
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   586
                              #'label:' 'Is Selectable'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   587
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   588
                           #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   589
                              #'name:' 'selectorLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   590
                              #'layout:' #(#AlignmentOrigin 107 0 51 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   591
                              #'label:' 'Selector:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   592
                              #'adjust:' #right
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   593
                              #'resizeForLabel:' true
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   594
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   595
                           #(#InputFieldSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   596
                              #'name:' 'selectSelector'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   597
                              #'layout:' #(#LayoutFrame 110 0 42 0 15 1.0 64 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   598
                              #'activeHelpKey:' #selectSelector
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   599
                              #'model:' #selectSelector
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   600
                              #'type:' #symbolOrNil
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   601
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   602
                        )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   603
                    )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   604
                    #'label:' 'Selection:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   605
                    #'labelPosition:' #topLeft
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   606
                )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   607
                 #(#FramedBoxSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   608
                    #'name:' 'framedBox2'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   609
                    #'layout:' #(#LayoutFrame 0 0.0 84 0 0 1.0 166 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   610
                    #'component:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   611
                     #(#SpecCollection
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   612
                        #'collection:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   613
                         #(
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   614
                           #(#InputFieldSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   615
                              #'name:' 'ArgumentValue'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   616
                              #'layout:' #(#LayoutFrame 110 0 42 0 15 1.0 64 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   617
                              #'model:' #labelActionArgument
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   618
                              #'type:' #string
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   619
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   620
                           #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   621
                              #'name:' 'ArgumentLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   622
                              #'layout:' #(#AlignmentOrigin 107 0 52 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   623
                              #'label:' 'Argument:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   624
                              #'adjust:' #left
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   625
                              #'resizeForLabel:' true
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   626
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   627
                           #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   628
                              #'name:' 'ActionLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   629
                              #'layout:' #(#AlignmentOrigin 107 0 27 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   630
                              #'label:' 'Selector:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   631
                              #'adjust:' #left
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   632
                              #'resizeForLabel:' true
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   633
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   634
                           #(#InputFieldSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   635
                              #'name:' 'ActionSelector'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   636
                              #'layout:' #(#LayoutFrame 110 0 17 0 15 1.0 39 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   637
                              #'model:' #labelActionSelector
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   638
                              #'type:' #symbolOrNil
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   639
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   640
                        )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   641
                    )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   642
                    #'label:' 'Select Action:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   643
                    #'labelPosition:' #topLeft
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   644
                )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   645
                 #(#FramedBoxSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   646
                    #'name:' 'framedBox3'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   647
                    #'layout:' #(#LayoutFrame 0 0.0 166 0 0 1.0 220 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   648
                    #'component:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   649
                     #(#SpecCollection
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   650
                        #'collection:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   651
                         #(
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   652
                           #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   653
                              #'name:' 'doubleLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   654
                              #'layout:' #(#AlignmentOrigin 107 0 26 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   655
                              #'label:' 'Selector:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   656
                              #'adjust:' #right
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   657
                              #'resizeForLabel:' true
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   658
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   659
                           #(#InputFieldSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   660
                              #'name:' 'doubleClicked'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   661
                              #'layout:' #(#LayoutFrame 110 0 16 0 15 1.0 38 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   662
                              #'activeHelpKey:' #doubleClickedSelector
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   663
                              #'model:' #doubleClickedSelector
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   664
                              #'type:' #symbolOrNil
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   665
                          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   666
                        )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   667
                    )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   668
                    #'label:' 'Doubel Click:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   669
                    #'labelPosition:' #topLeft
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   670
                )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   671
              )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   672
          )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   673
      )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   674
!
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   675
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   676
valuesEditSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   677
    "this window spec was automatically generated by the ST/X UIPainter"
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   678
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   679
    "do not manually edit this - the painter/builder may not be able to
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   680
     handle the specification if its corrupted."
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   681
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   682
    "
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   683
     UIPainter new openOnClass:DataSetBuilder andSelector:#valuesEditSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   684
     DataSetBuilder new openInterface:#valuesEditSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   685
    "
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   686
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   687
    <resource: #canvas>
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   688
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   689
    ^
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   690
     
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   691
       #(#FullSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   692
          #'window:' 
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   693
           #(#WindowSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   694
              #'name:' 'DataSet Basic'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   695
              #'layout:' #(#LayoutFrame 563 0 305 0 858 0 610 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   696
              #'label:' 'DataSet Basic'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   697
              #'min:' #(#Point 10 10)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   698
              #'max:' #(#Point 1280 1024)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   699
              #'bounds:' #(#Rectangle 563 305 859 611)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   700
              #'usePreferredExtent:' false
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   701
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   702
          #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   703
           #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   704
              #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   705
               #(
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   706
                 #(#FramedBoxSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   707
                    #'name:' 'valuesBox'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   708
                    #'layout:' #(#LayoutFrame 0 0.0 3 0 0 1.0 107 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   709
                    #'component:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   710
                     #(#SpecCollection
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   711
                        #'collection:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   712
                         #(
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   713
                           #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   714
                              #'name:' 'readLabel'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   715
                              #'layout:' #(#AlignmentOrigin 107 0 28 0 1 0.5)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   716
                              #'label:' 'Read:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   717
                              #'adjust:' #right
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   718
                              #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   719
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   720
                           #(#InputFieldSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   721
                              #'name:' 'readSelector'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   722
                              #'layout:' #(#LayoutFrame 110 0 18 0 15 1.0 40 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   723
                              #'activeHelpKey:' #readSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   724
                              #'model:' #readSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   725
                              #'type:' #symbolOrNil
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   726
                          )
379
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
   727
                           #(#InputFieldSpec
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
   728
                              #'name:' 'writeSelector'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   729
                              #'layout:' #(#LayoutFrame 110 0 43 0 15 1.0 63 0)
379
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
   730
                              #'activeHelpKey:' #writeSelector
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
   731
                              #'model:' #writeSelector
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
   732
                              #'type:' #symbolOrNil
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
   733
                          )
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   734
                           #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   735
                              #'name:' 'printLabel'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   736
                              #'layout:' #(#AlignmentOrigin 107 0 76 0 1 0.5)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   737
                              #'label:' 'Print:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   738
                              #'adjust:' #right
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   739
                              #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   740
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   741
                           #(#InputFieldSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   742
                              #'name:' 'printSelector'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   743
                              #'layout:' #(#LayoutFrame 110 0 66 0 15 1.0 86 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   744
                              #'activeHelpKey:' #printSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   745
                              #'model:' #printSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   746
                              #'type:' #symbolOrNil
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   747
                          )
379
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
   748
                           #(#LabelSpec
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
   749
                              #'name:' 'writeLabel'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   750
                              #'layout:' #(#AlignmentOrigin 107 0 53 0 1 0.5)
379
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
   751
                              #'label:' 'Write:'
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
   752
                              #'adjust:' #right
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
   753
                              #'resizeForLabel:' true
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
   754
                          )
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   755
                        )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   756
                    )
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   757
                    #'label:' 'Value Selectors:'
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   758
                    #'labelPosition:' #topLeft
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   759
                )
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   760
                 #(#FramedBoxSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   761
                    #'name:' 'menusBox'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   762
                    #'layout:' #(#LayoutFrame 0 0.0 107 0 0 1.0 186 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   763
                    #'component:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   764
                     #(#SpecCollection
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   765
                        #'collection:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   766
                         #(
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   767
                           #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   768
                              #'name:' 'menuLabel'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   769
                              #'layout:' #(#AlignmentOrigin 107 0 28 0 1 0.5)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   770
                              #'label:' 'Menu:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   771
                              #'adjust:' #right
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   772
                              #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   773
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   774
                           #(#InputFieldSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   775
                              #'name:' 'menuSelector'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   776
                              #'layout:' #(#LayoutFrame 110 0 18 0 15 1.0 38 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   777
                              #'activeHelpKey:' #menuSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   778
                              #'model:' #menu
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   779
                              #'type:' #symbolOrNil
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   780
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   781
                           #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   782
                              #'name:' 'choicesLabel'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   783
                              #'layout:' #(#AlignmentOrigin 107 0 51 0 1 0.5)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   784
                              #'label:' 'Choice:'
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   785
                              #'adjust:' #right
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   786
                              #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   787
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   788
                           #(#InputFieldSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   789
                              #'name:' 'choicesSelector'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   790
                              #'layout:' #(#LayoutFrame 110 0 41 0 15 1.0 61 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   791
                              #'activeHelpKey:' #choices
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   792
                              #'model:' #choices
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   793
                              #'type:' #symbolOrNil
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   794
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   795
                        )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   796
                    )
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   797
                    #'label:' 'Menu Selectors:'
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   798
                    #'labelPosition:' #topLeft
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   799
                )
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   800
              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   801
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   802
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   803
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   804
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   805
!DataSetBuilder class methodsFor:'help specs'!
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   806
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   807
helpSpec
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   808
    "return a dictionary filled with helpKey -> helptext associations.
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   809
     These are used by the activeHelp tool."
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   810
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   811
    "
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   812
    UIHelpTool openOnClass:DataSetBuilder    
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   813
    "
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   814
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   815
  ^ super helpSpec addPairsFrom:#(
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   816
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   817
#backgroundColor
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   818
'set the background color of the column if the color-checkBox is turned on. Otherwise, the column uses its default background color (which is specified in the styleSheet).'
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   819
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   820
#backgroundSelector
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   821
'selector which returns the background color for a cell (optional). If the selector is nil or returns nil, the default background color is set.'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   822
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   823
#canSelect
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   824
'if true, each cell in the column can be selected. In case of having a menu, the menu can be opened by selecting the cell and pressing down the right or middle button of the mouse. if false, the whole line is selected. The menu opened derives from the DataSetView, which is specified in the window specification (Basics).'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   825
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   826
#choices
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   827
'selector to get the collection of choices for a column which is selectable and its editor is kind of a ComboBox or ComboList. If a cell in the column is selected, the visual editor is opened and in case of having choices, the choices are assigned to the widget.'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   828
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   829
#editorField
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   830
'type of visual editor (using default editors) or a selector, which will return an visual editor. If the cell is selected, a visual editor is opened in in the cell. In case of an unsupported selector (user defined editor), the row object is asked for the visual editor by performing the selector on the row. A widget instance must be returned which is opened in the cell.'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   831
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   832
#doubleClickedSelector
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   833
'selector evaluated without arguments on selected column'
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
   834
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   835
#foregroundColor
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   836
'set the foreground color of the column  if the color-checkBox is turned on. Otherwise, the column uses its default foreground color (which is specified in the styleSheet).'
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   837
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   838
#foregroundSelector
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   839
'selector which returns the foreground color for a cell (optional). If the selector is nil or returns nil, the default foreground color is set.'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   840
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   841
#formatString
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   842
'format string, which specifies the output format of a text in a cell. \ At the moment only numbers are supported. \ \ for example: 0.0000'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   843
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   844
#height
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   845
'preferred height (optional)'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   846
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   847
#label
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   848
'the label of the column. If ''label is image'' is off, this is the label string. Otherwise, it specifies the applications selector, which returns the label - either a string or a bitmap image.'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   849
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   850
#labelIsImage
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   851
'if ''label is image'' is off (the default), the columns label is the string as entered in the label aspect. Otherwise, its the name of the message sent to the application - this should return a string or bitmap image, which is used as logo in the column.'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   852
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   853
#menuSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   854
'a selector to access the middleButton menu or nil. If a cell is selected. The menu will be opened by selecting the cell and pressing down the right or middle button of the mouse.'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   855
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   856
#minWidth
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   857
'makes sense if the width is set to 0 or nil. This is the minimum size required; no computation dependent on the contents. When resizing the view the column may grow or shrink to the minimum width.'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   858
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   859
#printSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   860
'a selector with one argument, the DataSetView. Used to access a drawable display object. In case of nil, the value derived from the readSelector is shown in the unselected cell.\ \ Using bitmaps, the DataSetView offers three important methods:\ \ #registerImage:anImage key:aSymbol\ register an image with an unique symbol. This symbol can be used by the row object to access the image, using #registeredImageAt:. The image will be associated to the device.\ \ #registeredImageAt:aSymbol\ returns an image assigned to the symbol or nil. The image returned is associated to the device.\ \ #releaseAllRegisteredImages\ relaese all registered images'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   861
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   862
#readSelector
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   863
'a selector, which is used to get or set (if the write selector is undefined) the value of a cell. The value returned by the method can be a string object or a bitmap. The set operation only is performed if the column is selectable.'
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   864
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   865
#rendererType
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   866
'This type specifies, how the text of an unselected cell should be shown. As Text, CheckToggle, ComboBox, ComboList or as a RowSelector.'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   867
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   868
#selectSelector
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   869
'an optional selector, which is used to test whether the cell in the column is selectable; the ''Is Selectable'' flag must be enabled.'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   870
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   871
#showColumnSeparator
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   872
'show or hide the column separator (right vertical separator).'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   873
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   874
#showRowSeparator
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   875
'show or hide the row separator (bottom horizontal separator)'
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   876
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   877
#size
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   878
'max size of an InputField, ComboBox or ComboList. 0 or nil means unlimited.'
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   879
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   880
#type
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   881
'a type converter symbol used by the input field'
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   882
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   883
#width
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   884
'the width of a fixed column; in case of nil or 0 the column width will be computed dependent on the contents.'
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   885
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   886
#writeSelector
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   887
'a selector, which is used to set the value of a cell. If the selector is not defined, the selector derives from the printSelector.'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
   888
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   889
)
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   890
! !
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   891
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   892
!DataSetBuilder class methodsFor:'interface specs'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   893
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   894
defineClassNameSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   895
    "this window spec was automatically generated by the ST/X UIPainter"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   896
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   897
    "do not manually edit this - the painter/builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   898
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   899
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   900
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   901
     UIPainter new openOnClass:DataSetBuilder andSelector:#defineClassNameSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   902
     DataSetBuilder new openInterface:#defineClassNameSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   903
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   904
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   905
    <resource: #canvas>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   906
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   907
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   908
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   909
       #(#FullSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   910
          #'window:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   911
           #(#WindowSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   912
              #'name:' 'Class Definition'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   913
              #'layout:' #(#LayoutFrame 299 0 162 0 624 0 291 0)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   914
              #'label:' 'Class Definition'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   915
              #'min:' #(#Point 10 10)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   916
              #'max:' #(#Point 1152 900)
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   917
              #'bounds:' #(#Rectangle 299 162 625 292)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   918
              #'usePreferredExtent:' false
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   919
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   920
          #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   921
           #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   922
              #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   923
               #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   924
                 #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   925
                    #'name:' 'classLabel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   926
                    #'layout:' #(#AlignmentOrigin 50 0.11 50 0 1 0.5)
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   927
                    #'label:' 'Class:'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   928
                    #'adjust:' #right
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   929
                    #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   930
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   931
                 #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   932
                    #'name:' 'superClassLabel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   933
                    #'layout:' #(#AlignmentOrigin 50 0.11 77 0 1 0.5)
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   934
                    #'label:' 'Superclass:'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   935
                    #'adjust:' #right
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   936
                    #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   937
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   938
                 #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   939
                    #'name:' 'topLabel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   940
                    #'layout:' #(#Point 2 10)
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   941
                    #'label:' 'Class for code:'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   942
                    #'adjust:' #left
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   943
                    #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   944
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   945
                 #(#InputFieldSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   946
                    #'name:' 'classNameField'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   947
                    #'layout:' #(#LayoutFrame 51 0.11 39 0 -2 1.0 61 0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   948
                    #'tabable:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   949
                    #'model:' #classNameChannel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   950
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   951
                 #(#HorizontalPanelViewSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   952
                    #'name:' 'commitPanel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   953
                    #'layout:' #(#LayoutFrame 2 0.0 -30 1.0 -2 1.0 -2 1.0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   954
                    #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   955
                     #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   956
                        #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   957
                         #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   958
                           #(#ActionButtonSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   959
                              #'name:' 'button1'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   960
                              #'label:' 'Cancel'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   961
                              #'tabable:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   962
                              #'model:' #cancel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   963
                              #'extent:' #(#Point 156 22)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   964
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   965
                           #(#ActionButtonSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   966
                              #'name:' 'button2'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   967
                              #'label:' 'OK'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   968
                              #'tabable:' true
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   969
                              #'model:' #accept
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   970
                              #'isDefault:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   971
                              #'extent:' #(#Point 157 22)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   972
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   973
                        )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   974
                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   975
                    #'horizontalLayout:' #fitSpace
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   976
                    #'verticalLayout:' #fitSpace
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   977
                    #'horizontalSpace:' 3
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   978
                    #'verticalSpace:' 3
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   979
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   980
                 #(#InputFieldSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   981
                    #'name:' 'inputField1'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   982
                    #'layout:' #(#LayoutFrame 51 0.11 67 0 -2 1.0 89 0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   983
                    #'tabable:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   984
                    #'model:' #superclassNameChannel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   985
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   986
              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   987
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   988
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   989
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   990
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   991
slices
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   992
    ^#(
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   993
        (Basics         basicsEditSpec)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   994
        (Values         valuesEditSpec)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   995
        (Format         formatEditSpec)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   996
        (Selection      selectionEditSpec)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   997
        (Frame          frameEditSpec)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   998
        (Colors         colorsEditSpec)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
   999
    )
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1000
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1001
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1002
windowSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1003
    "this window spec was automatically generated by the ST/X UIPainter"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1004
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1005
    "do not manually edit this - the painter/builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1006
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1007
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1008
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1009
     UIPainter new openOnClass:DataSetBuilder andSelector:#windowSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1010
     DataSetBuilder new openInterface:#windowSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1011
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1012
    "DataSetBuilder open"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1013
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1014
    <resource: #canvas>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1015
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1016
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1017
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1018
       #(#FullSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1019
          #'window:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1020
           #(#WindowSpec
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1021
              #'name:' 'Data Set Builder'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1022
              #'layout:' #(#LayoutFrame 442 0 314 0 928 0 673 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1023
              #'label:' 'Data Set Builder'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1024
              #'min:' #(#Point 10 10)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1025
              #'max:' #(#Point 1152 900)
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1026
              #'bounds:' #(#Rectangle 442 314 929 674)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1027
              #'menu:' #menu
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
  1028
              #'usePreferredExtent:' false
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1029
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1030
          #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1031
           #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1032
              #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1033
               #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1034
                 #(#MenuPanelSpec
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1035
                    #'name:' 'menuToolbarView'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1036
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 34 0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1037
                    #'menu:' #menuToolbar
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1038
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1039
                 #(#VariableHorizontalPanelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1040
                    #'name:' 'VariablePanel'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1041
                    #'layout:' #(#LayoutFrame 0 0.0 36 0.0 0 1.0 -22 1.0)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1042
                    #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1043
                     #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1044
                        #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1045
                         #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1046
                           #(#ViewSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1047
                              #'name:' 'labelsView'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1048
                              #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1049
                               #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1050
                                  #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1051
                                   #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1052
                                     #(#SequenceViewSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1053
                                        #'name:' 'columnView'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1054
                                        #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
  1055
                                        #'enableChannel:' #isNotModified
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1056
                                        #'model:' #selectedColumnModel
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1057
                                        #'menu:' #menuEdit
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
  1058
                                        #'hasHorizontalScrollBar:' true
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1059
                                        #'hasVerticalScrollBar:' true
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
  1060
                                        #'miniScrollerHorizontal:' true
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1061
                                        #'useIndex:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1062
                                        #'sequenceList:' #seqList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1063
                                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1064
                                  )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1065
                              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1066
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1067
                           #(#ViewSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1068
                              #'name:' 'specView'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1069
                              #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1070
                               #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1071
                                  #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1072
                                   #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1073
                                     #(#TabViewSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1074
                                        #'name:' 'tabView'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1075
                                        #'layout:' #(#LayoutFrame 0 0.0 0 0 0 1.0 35 0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1076
                                        #'model:' #tabModel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1077
                                        #'menu:' #tabList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1078
                                        #'useIndex:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1079
                                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1080
                                     #(#SubCanvasSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1081
                                        #'name:' 'specCanvas'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1082
                                        #'layout:' #(#LayoutFrame 0 0.0 35 0.0 0 1.0 -30 1.0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1083
                                        #'specHolder:' #specChannel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1084
                                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1085
                                     #(#HorizontalPanelViewSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1086
                                        #'name:' 'modifyPanel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1087
                                        #'layout:' #(#LayoutFrame 0 0.0 -30 1.0 0 1.0 0 1.0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1088
                                        #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1089
                                         #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1090
                                            #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1091
                                             #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1092
                                               #(#ActionButtonSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1093
                                                  #'name:' 'cancelButton'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1094
                                                  #'label:' 'Cancel'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1095
                                                  #'model:' #cancel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1096
                                                  #'enableChannel:' #modifiedChannel
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1097
                                                  #'extent:' #(#Point 173 24)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1098
                                              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1099
                                               #(#ActionButtonSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1100
                                                  #'name:' 'acceptButton'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1101
                                                  #'label:' 'OK'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1102
                                                  #'model:' #accept
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1103
                                                  #'enableChannel:' #modifiedChannel
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1104
                                                  #'extent:' #(#Point 174 24)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1105
                                              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1106
                                            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1107
                                        )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1108
                                        #'horizontalLayout:' #fitSpace
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1109
                                        #'verticalLayout:' #fitSpace
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1110
                                        #'horizontalSpace:' 3
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1111
                                        #'verticalSpace:' 3
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1112
                                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1113
                                  )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1114
                              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1115
                              #'borderWidth:' 1
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1116
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1117
                        )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1118
                    )
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1119
                    #'handles:' #(#Any 0.265905 1.0)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1120
                )
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1121
                 #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1122
                    #'name:' 'infoLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1123
                    #'layout:' #(#LayoutFrame 0 0.0 -22 1 -80 1.0 0 1.0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1124
                    #'labelChannel:' #valueOfInfoLabel
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1125
                    #'level:' 1
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1126
                    #'adjust:' #left
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1127
                )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1128
                 #(#LabelSpec
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1129
                    #'name:' 'timeLabel'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1130
                    #'layout:' #(#LayoutFrame -80 1 -22 1 0 1.0 0 1.0)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1131
                    #'labelChannel:' #valueOfTimeLabel
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1132
                    #'level:' 1
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1133
                    #'adjust:' #right
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1134
                )
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1135
              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1136
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1137
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1138
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1139
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1140
!DataSetBuilder class methodsFor:'menu specs'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1141
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1142
menu
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1143
    "this window spec was automatically generated by the ST/X MenuEditor"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1144
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1145
    "do not manually edit this - the builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1146
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1147
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1148
    "
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1149
     MenuEditor new openOnClass:DataSetBuilder andSelector:#menu
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1150
     (Menu new fromLiteralArrayEncoding:(DataSetBuilder menu)) startUp
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1151
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1152
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1153
    <resource: #menu>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1154
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1155
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1156
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1157
       #(#Menu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1158
          
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1159
           #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1160
             #(#MenuItem
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1161
                #'label:' 'About'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1162
                #'labelImage:' #(#ResourceRetriever #UIPainter #icon)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1163
                #'submenuChannel:' #menuAbout
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1164
            )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1165
             #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1166
                #'label:' 'File'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1167
                #'accessCharacterPosition:' 1
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1168
                #'submenu:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1169
                 #(#Menu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1170
                    
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1171
                     #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1172
                       #(#MenuItem
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1173
                          #'label:' 'Generate Code'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1174
                          #'value:' #doGenerateCode
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1175
                      )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1176
                       #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1177
                          #'label:' '-'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1178
                      )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1179
                       #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1180
                          #'label:' 'Define Class...'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1181
                          #'value:' #doDefineClass
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1182
                      )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1183
                       #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1184
                          #'label:' 'Browse Class'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1185
                          #'value:' #doBrowseClass
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1186
                      )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1187
                       #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1188
                          #'label:' '-'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1189
                      )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1190
                       #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1191
                          #'label:' 'Exit'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1192
                          #'value:' #closeRequest
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1193
                      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1194
                    ) nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1195
                    nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1196
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1197
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1198
             #(#MenuItem
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1199
                #'label:' 'Edit'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1200
                #'accessCharacterPosition:' 1
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1201
                #'submenuChannel:' #menuEdit
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1202
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1203
          ) nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1204
          nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1205
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1206
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1207
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1208
menuEdit
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1209
    "this window spec was automatically generated by the ST/X MenuEditor"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1210
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1211
    "do not manually edit this - the builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1212
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1213
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1214
    "
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1215
     MenuEditor new openOnClass:DataSetBuilder andSelector:#menuEdit
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1216
     (Menu new fromLiteralArrayEncoding:(DataSetBuilder menuEdit)) startUp
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1217
    "
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1218
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1219
    <resource: #menu>
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1220
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1221
    ^
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1222
     
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1223
       #(#Menu
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1224
          
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1225
           #(
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1226
             #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1227
                #'label:' 'Cut'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1228
                #'value:' #doCutColumn
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1229
                #'enabled:' #isColumnSelected
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1230
            )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1231
             #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1232
                #'label:' 'Copy'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1233
                #'value:' #doCopyColumn
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1234
                #'enabled:' #isColumnSelected
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1235
            )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1236
             #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1237
                #'label:' 'Paste'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1238
                #'value:' #doPasteColumn
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1239
                #'enabled:' #valueOfHavingClipboard
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1240
            )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1241
             #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1242
                #'label:' '-'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1243
            )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1244
             #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1245
                #'label:' 'Create Column'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1246
                #'value:' #doCreateColumn
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1247
                #'enabled:' #isNotModified
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1248
                #'labelImage:' #(#ResourceRetriever #DataSetBuilder #newColumnIcon 'Create Column')
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1249
            )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1250
             #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1251
                #'label:' '-'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1252
            )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1253
             #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1254
                #'label:' 'Shift Up'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1255
                #'value:' #'doMoveColumn:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1256
                #'enabled:' #isColumnSelected
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1257
                #'argument:' #up
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1258
                #'labelImage:' #(#ResourceRetriever #DataSetBuilder #upIcon 'Shift Up')
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1259
            )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1260
             #(#MenuItem
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1261
                #'label:' 'Shift Down'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1262
                #'value:' #'doMoveColumn:'
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1263
                #'enabled:' #isColumnSelected
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1264
                #'argument:' #down
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1265
                #'labelImage:' #(#ResourceRetriever #DataSetBuilder #downIcon 'Shift Down')
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1266
            )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1267
          ) nil
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1268
          nil
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1269
      )
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1270
!
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1271
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1272
menuToolbar
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1273
    "this window spec was automatically generated by the ST/X MenuEditor"
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1274
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1275
    "do not manually edit this - the builder may not be able to
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1276
     handle the specification if its corrupted."
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
     MenuEditor new openOnClass:DataSetBuilder andSelector:#menuToolbar
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1280
     (Menu new fromLiteralArrayEncoding:(DataSetBuilder menuToolbar)) startUp
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1281
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1282
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1283
    <resource: #menu>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1284
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1285
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1286
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1287
       #(#Menu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1288
          
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1289
           #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1290
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1291
                #'label:' 'createColumn'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1292
                #'isButton:' true
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1293
                #'value:' #doCreateColumn
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1294
                #'enabled:' #isNotModified
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1295
                #'labelImage:' #(#ResourceRetriever nil #newColumnIcon)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1296
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1297
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1298
                #'label:' ''
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1299
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1300
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1301
                #'label:' 'stepUp'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1302
                #'isButton:' true
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1303
                #'value:' #'doMoveColumn:'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1304
                #'enabled:' #isColumnSelected
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1305
                #'argument:' #up
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1306
                #'labelImage:' #(#ResourceRetriever nil #upIcon)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1307
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1308
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1309
                #'label:' 'stepDown'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1310
                #'isButton:' true
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1311
                #'value:' #'doMoveColumn:'
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1312
                #'enabled:' #isColumnSelected
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1313
                #'argument:' #down
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1314
                #'labelImage:' #(#ResourceRetriever nil #downIcon)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1315
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1316
          ) nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1317
          nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1318
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1319
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1320
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1321
!DataSetBuilder class methodsFor:'resources'!
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1322
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1323
newColumnIcon
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1324
    "ImageEditor openOnClass:self andSelector:#newColumnIcon"
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1325
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1326
    <resource: #image>
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1327
    ^(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(#[17 17 16 0 0 0 0 0 0 17 17 17 17 16 17 17 17 17 17 32 17 17 17 17 16 18 34 34 34 34 48 17 17 17 17 16 18 32 2 32 34 48 17 17 17 17 16 18 2 34 2 2 48 17 17 17 17 16 18 2 34 2 2 48 17 17 17 17 16 18 32 2 32 34 48 17 17 16 17 16 18 34 34 34 34 48 17 17 17 17 16 18 2 34 2 2 48 17 17 17 17 16 18 2 34 2 2 48 17 17 17 17 16 18 2 34 2 2 48 17 17 17 17 16 18 0 2 0 2 48 17 17 17 17 16 18 34 34 34 34 48 17 17 17 17 16 18 34 34 34 34 48 17 17 17 17 16 18 2 2 2 2 48 17 17 17 17 16 18 0 2 0 2 48 17 17 17 17 16 18 2 2 0 2 48 17 17 17 17 16 18 2 2 2 2 48 17 17 17 17 16 18 34 34 34 34 48 17 17 17 17 16 18 34 34 34 34 48 17 17 17 17 16 35 51 51 51 51 48 17 17 17 17 16 0 0 0 0 0 0 17 17]) ; colorMap:((OrderedCollection new add:(Color black); add:(Color white); add:(Color grey:66.9978); add:(Color grey:49.9962); add:(Color red:100.0 green:0.0 blue:0.0); add:(Color red:0.0 green:100.0 blue:0.0); add:(Color red:0.0 green:0.0 blue:100.0); add:(Color red:0.0 green:100.0 blue:100.0); add:(Color red:100.0 green:100.0 blue:0.0); add:(Color red:100.0 green:0.0 blue:100.0); add:(Color red:49.9992 green:0.0 blue:0.0); add:(Color red:0.0 green:49.9992 blue:0.0); add:(Color red:0.0 green:0.0 blue:49.9992); add:(Color red:0.0 green:49.9992 blue:49.9992); add:(Color red:49.9992 green:49.9992 blue:0.0); add:(Color red:49.9992 green:0.0 blue:49.9992); yourself)); mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(#[7 255 192 7 255 192 7 255 192 7 255 192 7 255 192 7 255 192 7 255 192 7 255 192 7 255 195 7 255 192 7 255 192 7 255 192 7 255 192 7 255 195 7 255 193 7 255 192 7 255 195 7 255 192 7 255 195 7 255 192 7 255 192 7 255 193]) ; yourself); yourself! !
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1328
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1329
!DataSetBuilder methodsFor:'accessing'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1330
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1331
columns
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1332
    "returns list of columns
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1333
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1334
    ^ columns
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1335
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1336
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1337
columns:aListOfColumns fromView:aColumnView
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1338
    "setup columns from a column view
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1339
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1340
    |list|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1341
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1342
    columnView := aColumnView.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1343
    columns    := OrderedCollection new.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1344
    list       := self seqList.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1345
    hasChanged := false.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1346
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1347
    list removeAll.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1348
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1349
    aListOfColumns size ~~ 0 ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1350
        aListOfColumns do:[:aCol|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1351
            columns add:(aCol copy).
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1352
            aCol rendererType == #rowSelector ifFalse:[list add:(aCol label)]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1353
                                               ifTrue:[list add:'Row Selector'].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1354
        ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1355
    ].
333
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1356
!
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1357
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1358
rowClassName
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1359
    ^ (Smalltalk resolveName:className inClass:self class) notNil ifTrue:[className] ifFalse:[nil]
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1360
!
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1361
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1362
rowClassName:aClassName
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1363
    |cls|
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1364
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1365
    superclassName := nil.
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1366
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1367
    (className := aClassName) notNil ifTrue:[
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1368
        (cls := self resolveClassNamed) notNil ifTrue:[
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1369
            superclassName := cls superclass name asString.
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1370
        ] ifFalse:[
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1371
            superclassName := 'Object'
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1372
        ]
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1373
    ]
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1374
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1375
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1376
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1377
!DataSetBuilder methodsFor:'accessing menu'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1378
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1379
columnMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1380
    "this window spec was automatically generated by the UI Builder"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1381
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1382
    ^ self class columnMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1383
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1384
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1385
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1386
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1387
doBrowseClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1388
    |cls|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1389
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1390
    (cls := self resolveClassNamed) notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1391
        SystemBrowser openInClass:cls
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1392
    ] ifFalse:[
413
ac37b2a972ff select first column item after opening
tz
parents: 409
diff changeset
  1393
        self information:'No class defined!!'
ac37b2a972ff select first column item after opening
tz
parents: 409
diff changeset
  1394
    ]
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1395
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1396
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1397
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1398
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1399
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1400
doCopyColumn
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1401
    "copy selected column to the clipboard"
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1402
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1403
    |idx|
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1404
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1405
    (idx := selectedColumnIndex) ~~ 0 ifTrue:[
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1406
        self clipboard: (columns at: idx) deepCopy.
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1407
    ].
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1408
!
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1409
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1410
doCreateColumn
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1411
    "create a new column after selected column or at left (nothing selected)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1412
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1413
    |label list|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1414
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1415
    list := self seqList.
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1416
    label := 'Column ', list size printString.
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1417
    columns add:(DataSetColumnSpec label:label selector:nil) afterIndex:selectedColumnIndex.
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1418
    self seqList add:label afterIndex:selectedColumnIndex.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1419
    hasChanged := true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1420
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1421
    self modified ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1422
        self selectedColumnModel value:(selectedColumnIndex + 1)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1423
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1424
    self updateColumnView.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1425
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1426
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1427
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1428
doCutColumn
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1429
    "remove selected column and put it to the clipboard"
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1430
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1431
    |idx|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1432
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1433
    (idx := selectedColumnIndex) ~~ 0 ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1434
        self selectedColumnModel value:0.
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1435
        self clipboard: (columns at: idx).
342
df086591eb11 add more functionality
ca
parents: 338
diff changeset
  1436
        columns removeIndex:idx.
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1437
        self seqList removeIndex:idx.
342
df086591eb11 add more functionality
ca
parents: 338
diff changeset
  1438
        self updateColumnView.
409
6fbb954fdd75 column save request after close request
tz
parents: 408
diff changeset
  1439
        columns isEmpty ifTrue: [self isColumnSelected value: false].
6fbb954fdd75 column save request after close request
tz
parents: 408
diff changeset
  1440
        hasChanged := true
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1441
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1442
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1443
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1444
doDefineClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1445
    "launch a dialog to define class and superclass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1446
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1447
    |aspects cls oldClass oldSuper|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1448
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1449
    aspects  := IdentityDictionary new.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1450
    oldClass := className.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1451
    oldSuper := superclassName.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1452
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1453
    [true] whileTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1454
        className notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1455
            (cls := self resolveClassNamed) notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1456
                superclassName := cls superclass name asString.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1457
            ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1458
            aspects at:#classNameChannel put:className asValue
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1459
        ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1460
            aspects at:#classNameChannel put:'DSVRow' asValue
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1461
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1462
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1463
        superclassName notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1464
            aspects at:#superclassNameChannel put:superclassName asValue
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1465
        ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1466
            aspects at:#superclassNameChannel put:'Object' asValue
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1467
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1468
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1469
        (self openDialogInterface:#defineClassNameSpec withBindings:aspects) ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1470
            className := oldClass.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1471
            superclassName := oldSuper.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1472
          ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1473
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1474
        className      := ((aspects at:#classNameChannel) value)      withoutSeparators.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1475
        superclassName := ((aspects at:#superclassNameChannel) value) withoutSeparators.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1476
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1477
        className size == 0 ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1478
            className := nil.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1479
            self information:'no valid className'.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1480
        ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1481
            cls := self resolveClassNamed.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1482
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1483
            cls notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1484
                cls := cls superclass name asString
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1485
            ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1486
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1487
            superclassName size == 0 ifTrue:[        
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1488
                cls notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1489
                    superclassName := cls
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1490
                ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1491
                    superclassName := 'Object'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1492
                ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1493
                self information:( 'set superclassName' ).
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1494
            ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1495
                (cls isNil or:[superclassName = cls]) ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1496
                    hasChanged := true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1497
                    ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1498
                ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1499
                self information:('a global named ' , className , ' exists,\' ,
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1500
                                  'but is not a subclass of ' , superclassName, '.\\' ,
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1501
                                  'Check and try again if that is not what you want.') withCRs.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1502
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1503
                superclassName := cls.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1504
            ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1505
        ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1506
    ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1507
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1508
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1509
doGenerateCode
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1510
    |cls superclass|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1511
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1512
    className isNil ifTrue:[
413
ac37b2a972ff select first column item after opening
tz
parents: 409
diff changeset
  1513
        ^ self information:'No class defined!!'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1514
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1515
    cls := self resolveClassNamed.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1516
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1517
    cls isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1518
        superclass := Smalltalk resolveName:superclassName inClass:self class.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1519
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1520
        superclass isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1521
            ^ self information:'no superclass defined'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1522
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1523
        (self confirm:'create ' , className , ' ?') ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1524
            ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1525
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1526
        cls := superclass subclass:(className asSymbol)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1527
                     instanceVariableNames:''
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1528
                     classVariableNames:''
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1529
                     poolDictionaries:''
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1530
                     category:'Applications'.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1531
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1532
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1533
    self generateChoicesIn:cls.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1534
    self generateMenuIn:cls.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1535
    self generatePrintSelectorIn:cls.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1536
    self generateReadSelectorIn:cls.
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1537
    self generateBackgroundSelectorIn:cls.
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1538
    self generateForegroundSelectorIn:cls.
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  1539
    self generateSelectSelectorIn:cls.
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1540
    self generateWriteSelectorIn:cls.
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1541
    self generateDoubleClickSelectorIn:cls.
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1542
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1543
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1544
doMoveColumn:upOrDown
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1545
    "move selected column up or down
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1546
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1547
    |idx list label col size|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1548
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1549
    (idx := selectedColumnIndex) == 0 ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1550
        ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1551
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1552
    list := self seqList.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1553
    size := list size.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1554
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1555
    size == 1 ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1556
        ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1557
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1558
    hasChanged := true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1559
    selectedColumnIndex := 0.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1560
    label := list at:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1561
    col   := columns at:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1562
    list    removeIndex:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1563
    columns removeIndex:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1564
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1565
    upOrDown == #up ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1566
        idx == 1 ifTrue:[idx := size]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1567
                ifFalse:[idx := idx - 1]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1568
    ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1569
        idx == size ifTrue:[idx := 1]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1570
                   ifFalse:[idx := idx + 1]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1571
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1572
    columns add:col   beforeIndex:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1573
    list    add:label beforeIndex:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1574
    self selectedColumnModel value:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1575
    self updateColumnView.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1576
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1577
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1578
doPasteColumn
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1579
    "paste clipboard copy column after selected column or at left (nothing selected)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1580
    "
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1581
    |label list|
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1582
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1583
    list := self seqList.
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1584
    label := self class clipboard label.
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1585
    columns add: self class clipboard deepCopy afterIndex:selectedColumnIndex.
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1586
    self seqList add: label afterIndex:selectedColumnIndex.
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1587
    hasChanged := true.
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1588
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1589
    self modified ifFalse:[
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1590
        self selectedColumnModel value:(selectedColumnIndex + 1)
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1591
    ].
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1592
    self updateColumnView.
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1593
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1594
!
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1595
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1596
mainMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1597
    "this window spec was automatically generated by the UI Builder"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1598
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1599
    ^ self class mainMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1600
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1601
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1602
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1603
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1604
menu
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1605
    "this window spec was automatically generated by the UI Builder"
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1606
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1607
    ^ self class menu
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1608
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1609
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1610
!
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1611
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1612
menuEdit
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1613
    "this window spec was automatically generated by the UI Builder"
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1614
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1615
    ^ self class menuEdit
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1616
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1617
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1618
!
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1619
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1620
menuToolbar
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1621
    "this window spec was automatically generated by the UI Builder"
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1622
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1623
    ^ self class menuToolbar
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1624
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1625
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1626
!
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1627
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1628
subMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1629
    "this window spec was automatically generated by the UI Builder"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1630
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1631
    ^ self class subMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1632
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1633
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1634
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1635
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1636
!DataSetBuilder methodsFor:'actions'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1637
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1638
accept
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1639
    "accept changes made
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1640
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1641
    |column type|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1642
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1643
    self modifiedChannel value == false ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1644
        ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1645
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1646
    isModified := true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1647
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1648
    (column := self selectedColumn) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1649
        ^ self cancel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1650
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1651
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1652
    type := (aspects at:#rendererType) value.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1653
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1654
    type == #rowSelector ifTrue:[
379
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  1655
        #( label width minWidth editorType choices readSelector writeSelector printSelector
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  1656
           formatString type size height canSelect selectSelector
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1657
         ) do:[:aKey| (aspects at:aKey) value:nil ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1658
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1659
        
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1660
    aspects keysAndValuesDo:[:aKey :aModel|
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
  1661
        column perform:(aKey , ':') asSymbol with:(aModel value).
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1662
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1663
    self seqList at:selectedColumnIndex put:((aspects at:#label) value).
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1664
    self updateColumnView.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1665
    self cancel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1666
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1667
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1668
cancel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1669
    "remove all changes and reload selected column
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1670
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1671
    |column|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1672
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1673
    isModified := true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1674
    (column := self selectedColumn) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1675
        self tabModel value:0.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1676
    ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1677
        aspects keysAndValuesDo:[:aKey :aModel|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1678
            aModel value:(column perform:aKey)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1679
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1680
        tabSelectionIndex == 0 ifTrue:[self tabModel value:1].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1681
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1682
    self modifiedChannel value:false.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1683
    isModified := false.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1684
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1685
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1686
!DataSetBuilder methodsFor:'aspects'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1687
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1688
aspectFor:aKey
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1689
    "returns aspect for a key or nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1690
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1691
  ^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1692
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1693
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1694
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1695
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1696
editorTypeList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1697
    "generate list of supported editor types
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1698
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1699
    |list|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1700
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1701
    (list := builder bindingAt:#editorTypeList) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1702
        list := OrderedCollection new.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1703
        DataSetColumnSpec slices do:[:aSlice||type|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1704
            type := aSlice at:1.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1705
            (list includes:type) ifFalse:[list add:type].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1706
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1707
        builder aspectAt:#editorTypeList put:list.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1708
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1709
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1710
    ^ list
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1711
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1712
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1713
isColumnSelected
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1714
    "returns a boolean value holder which is set to true if something is modified
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1715
     and not accepted
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1716
    "
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1717
    ^ builder valueAspectFor:#isColumnSelected initialValue: false
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1718
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1719
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1720
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1721
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1722
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1723
modifiedChannel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1724
    "returns a boolean value holder which is set to true if something is modified
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1725
     and not accepted
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1726
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1727
    ^ builder booleanValueAspectFor:#modifiedChannel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1728
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1729
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1730
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1731
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1732
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1733
rendererTypeList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1734
    "generate list of supported renderer types
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1735
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1736
    |list|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1737
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1738
    (list := builder bindingAt:#rendererTypeList) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1739
        list := OrderedCollection new.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1740
        DataSetColumnSpec slices do:[:aSlice||type|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1741
            type := aSlice at:2.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1742
            (list includes:type) ifFalse:[list add:type].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1743
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1744
        builder aspectAt:#rendererTypeList put:list.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1745
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1746
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1747
    ^ list
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1748
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1749
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1750
selectedColumnModel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1751
    "automatically generated by UIPainter ..."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1752
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1753
    |holder|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1754
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1755
    (holder := builder bindingAt:#selectedColumnModel) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1756
        holder := AspectAdaptor new subject:self; forAspect:#selectedColumnIndex.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1757
        builder aspectAt:#selectedColumnModel put:holder.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1758
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1759
    ^ holder
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1760
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1761
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1762
seqList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1763
    "automatically generated by UIPainter ..."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1764
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1765
    |list|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1766
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1767
    (list := builder bindingAt:#seqList) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1768
        builder aspectAt:#seqList put:(list :=  List new).
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1769
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1770
    ^ list
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1771
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1772
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1773
specChannel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1774
    "automatically generated by UIPainter ..."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1775
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1776
    |holder|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1777
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1778
    (holder := builder bindingAt:#specChannel) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1779
        builder aspectAt:#specChannel put:(holder :=  ValueHolder new).
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1780
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1781
    ^ holder
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1782
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1783
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1784
style
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1785
    ^ self aspectFor:#labelFont
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1786
!
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1787
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1788
tabList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1789
    "automatically generated by UIPainter ..."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1790
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1791
    ^ self class slices collect:[:aSlice| aSlice first ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1792
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1793
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1794
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1795
tabModel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1796
    "returns a value holder which keeps the index of the current selected tab or 0
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1797
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1798
    |holder|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1799
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1800
    (holder := builder bindingAt:#tabModel) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1801
        holder := AspectAdaptor new subject:self; forAspect:#tabSelectionIndex.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1802
        builder aspectAt:#tabModel put:holder.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1803
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1804
    ^ holder
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1805
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1806
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1807
!DataSetBuilder methodsFor:'change & update'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1808
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1809
update:something with:aParameter from:someObject
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1810
    "one of my aspects has changed; update modified channel
413
ac37b2a972ff select first column item after opening
tz
parents: 409
diff changeset
  1811
    " 
ac37b2a972ff select first column item after opening
tz
parents: 409
diff changeset
  1812
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1813
    isModified ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1814
        isModified := hasChanged := true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1815
        self modifiedChannel value:true.
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  1816
        "self isNotModified   value:false. "
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1817
    ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1818
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1819
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1820
!DataSetBuilder methodsFor:'code generation'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1821
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1822
compile:aCode forClass:aClass inCategory:aCategory
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1823
    "compile method for class in a category
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1824
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1825
    ByteCodeCompiler compile:aCode withCRs forClass:aClass inCategory:aCategory
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1826
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1827
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1828
generateBackgroundSelectorIn:aClass
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1829
    "generate code for #backgroundSelector
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1830
    "
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1831
    |sel catg code bCode|
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1832
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1833
    catg := 'accessing look' asSymbol.
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1834
    code :=   '\'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1835
            , '    "automatically generated by DataSetBuilder ..."\'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1836
            , '\'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1837
            , '    "specific background color for a cell"\'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1838
            , '\'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1839
            .
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1840
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1841
    columns do:[:aCol|
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1842
        ((sel := aCol backgroundSelector) notNil and:[(aClass implements:sel) not]) ifTrue:[
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1843
            bCode := sel asString, code, '    ^ nil'.
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1844
            self compile:bCode forClass:aClass inCategory:catg
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1845
        ]
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1846
    ]
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1847
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1848
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1849
!
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1850
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1851
generateChoicesIn:aClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1852
    "generate code for #choices
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1853
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1854
    |sel catg code|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1855
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1856
    catg := 'accessing menu' asSymbol.
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1857
    code :=   '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1858
            , '    "automatically generated by DataSetBuilder ..."\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1859
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1860
            , '    "get choices for visual editor; (a list of labels)\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1861
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1862
            , '    ^ nil'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1863
            .
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1864
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1865
    columns do:[:aColumn|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1866
        (     aColumn canSelect
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1867
         and:[aColumn rendererType ~~ #rowSelector
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1868
         and:[(sel := aColumn choices) notNil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1869
         and:[(aClass implements:sel) not]]]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1870
        ) ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1871
            self compile:(sel asString, code) forClass:aClass inCategory:catg
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1872
        ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1873
    ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1874
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1875
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1876
generateDoubleClickSelectorIn:aClass
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1877
    "generate code for #foregroundSelector
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1878
    "
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1879
    |sel catg code bCode|
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1880
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1881
    catg := 'accessing action' asSymbol.
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1882
    code :=   '\'
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1883
            , '    "automatically generated by DataSetBuilder ..."\'
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1884
            , '\'
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1885
            , '    "specific selector to be called on double click"\'
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1886
            , '\'
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1887
            .
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1888
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1889
    columns do:[:aCol|
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1890
        ((sel := aCol doubleClickedSelector) notNil and:[(aClass implements:sel) not]) ifTrue:[
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1891
            bCode := sel asString, code.
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1892
            self compile:bCode forClass:aClass inCategory:catg
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1893
        ]
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1894
    ]
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1895
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1896
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1897
!
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1898
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1899
generateForegroundSelectorIn:aClass
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1900
    "generate code for #foregroundSelector
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1901
    "
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1902
    |sel catg code bCode|
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1903
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1904
    catg := 'accessing look' asSymbol.
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1905
    code :=   '\'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1906
            , '    "automatically generated by DataSetBuilder ..."\'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1907
            , '\'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1908
            , '    "specific foreground color for a cell"\'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1909
            , '\'
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1910
            .
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1911
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1912
    columns do:[:aCol|
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1913
        ((sel := aCol foregroundSelector) notNil and:[(aClass implements:sel) not]) ifTrue:[
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1914
            bCode := sel asString, code, '    ^ nil'.
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1915
            self compile:bCode forClass:aClass inCategory:catg
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1916
        ]
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1917
    ]
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1918
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1919
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1920
!
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  1921
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1922
generateMenuIn:aClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1923
    "generate code for #menu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1924
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1925
    |sel catg code|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1926
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1927
    catg := 'accessing menu' asSymbol.
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1928
    code :=   '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1929
            , '    "automatically generated by DataSetBuilder ..."\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1930
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1931
            , '    "get middleButton menu for selected cell in column"\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1932
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1933
            , '    ^ nil'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1934
            .
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1935
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1936
    columns do:[:aColumn|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1937
        (     aColumn canSelect
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1938
         and:[(sel := aColumn menu) notNil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1939
         and:[(aClass implements:sel) not]]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1940
        ) ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1941
            self compile:(sel asString, code) forClass:aClass inCategory:catg
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1942
        ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1943
    ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1944
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1945
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1946
generatePrintSelectorIn:aClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1947
    "generate code for #printSelector
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1948
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1949
    |sel catg code|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1950
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1951
    catg := 'accessing' asSymbol.
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1952
    code :=   'aGC\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1953
            , '    "automatically generated by DataSetBuilder ..."\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1954
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1955
            , '    "get drawable image or text on a gc"\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1956
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1957
            , '    ^ nil'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1958
            .
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1959
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1960
    columns do:[:aColumn|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1961
        (     aColumn rendererType ~~ #rowSelector
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1962
         and:[(sel := aColumn printSelector) notNil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1963
         and:[(aClass implements:sel) not]]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1964
        ) ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1965
            self compile:(sel asString, code) forClass:aClass inCategory:catg
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1966
        ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1967
    ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1968
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1969
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1970
generateReadSelectorIn:aClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1971
    "generate code for #readSelector
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1972
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1973
    |sel catg code bCode|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1974
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  1975
    catg := 'accessing' asSymbol.
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1976
    code :=   '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1977
            , '    "automatically generated by DataSetBuilder ..."\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1978
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1979
            , '    "get value"\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1980
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1981
            .
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1982
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1983
    columns do:[:aColumn|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1984
        (     aColumn rendererType ~~ #rowSelector 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1985
         and:[(sel := aColumn readSelector) notNil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1986
         and:[(aClass implements:sel) not]]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1987
        ) ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1988
            (aColumn printSelector isNil or:[aColumn canSelect]) ifTrue:[
379
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  1989
                sel numArgs == 0 ifTrue:[
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  1990
                    bCode := sel asString, code
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  1991
                ] ifFalse:[
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  1992
                    bCode := sel asString, 'anIndex\', code
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  1993
                ].
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1994
                aColumn rendererType == #CheckToggle ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1995
                    bCode := bCode, '    ^ nil'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1996
                ] ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1997
                    bCode := bCode, '    ^ true'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1998
                ]. 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1999
                self compile:bCode forClass:aClass inCategory:catg
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2000
            ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2001
        ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2002
    ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2003
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2004
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2005
generateSelectSelectorIn:aClass
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2006
    "generate code for #selectSelector
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2007
    "
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2008
    |sel catg code bCode|
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2009
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  2010
    catg := 'accessing selection' asSymbol.
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2011
    code :=   '\'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2012
            , '    "automatically generated by DataSetBuilder ..."\'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2013
            , '\'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2014
            , '    "can select cell in column"\'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2015
            , '\'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2016
            .
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2017
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2018
    columns do:[:aColumn|
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2019
        (     aColumn rendererType ~~ #rowSelector 
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2020
         and:[(sel := aColumn selectSelector) notNil
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2021
         and:[(aClass implements:sel) not]]
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2022
        ) ifTrue:[
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2023
            aColumn canSelect ifTrue:[
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2024
                bCode := sel asString, code, '    ^ true'.
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2025
                self compile:bCode forClass:aClass inCategory:catg
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2026
            ]
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2027
        ]
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2028
    ]
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2029
!
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2030
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2031
generateWriteSelectorIn:aClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2032
    "generate code for #writeSelector
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2033
    "
379
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2034
    |sel catg code bCode sz|
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2035
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  2036
    catg := 'accessing' asSymbol.
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2037
    code :=   'aValue\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2038
            , '    "automatically generated by DataSetBuilder ..."\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2039
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2040
            , '    "set value"\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2041
            .
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2042
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2043
    columns do:[:aColumn|
379
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2044
        (    (sel := aColumn writeSelector) notNil
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2045
         and:[(aColumn canSelect)
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2046
         and:[(aClass implements:sel) not]]
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2047
        ) ifTrue:[
379
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2048
            sel numArgs == 1 ifTrue:[
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2049
                bCode := sel asString
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2050
            ] ifFalse:[
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2051
                sz := sel indexOf:$:.
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2052
                bCode := sel copyTo:sz.
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2053
                bCode := bCode, 'anIndex ', (sel copyFrom:(sz + 1)).
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2054
            ].
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2055
            self compile:(bCode, code) forClass:aClass inCategory:catg
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2056
        ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2057
    ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2058
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2059
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2060
!DataSetBuilder methodsFor:'initialization'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2061
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2062
initialize
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2063
    "setup aspects used by column description specifications
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2064
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2065
    |holder|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2066
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2067
    super initialize.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2068
    selectedColumnIndex := 0.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2069
    tabSelectionIndex   := 0.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2070
    columns := OrderedCollection new.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2071
    aspects := IdentityDictionary new.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2072
    hasChanged := false.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2073
    isModified := false.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2074
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2075
    #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2076
        label
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2077
        canSelect
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2078
        choices
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2079
        editorType
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2080
        formatString
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
  2081
        labelIsImage
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2082
        size
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2083
        type
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2084
        width
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2085
        minWidth
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2086
        height
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2087
        menu
380
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  2088
        foregroundSelector
42aacfc3d263 add new attributes and help
ca
parents: 379
diff changeset
  2089
        backgroundSelector
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  2090
        doubleClickedSelector
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  2091
        selectSelector
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2092
        printSelector
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2093
        readSelector
379
1a24037cd490 support of writeSelector
ca
parents: 377
diff changeset
  2094
        writeSelector
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2095
        rendererType
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2096
        showColSeparator
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2097
        showRowSeparator
357
076b7eb71bcf support of foreground and background colors
ca
parents: 342
diff changeset
  2098
        backgroundColor
076b7eb71bcf support of foreground and background colors
ca
parents: 342
diff changeset
  2099
        foregroundColor
391
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  2100
        labelForegroundColor
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  2101
        labelBackgroundColor
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  2102
        labelFont
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  2103
        labelActionSelector
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  2104
        labelActionArgument
5c7fa5484d14 VW compatible
ca
parents: 380
diff changeset
  2105
        labelAlignment
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2106
     ) do:[:aKey|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2107
        aspects at:aKey put:(holder := ValueHolder new).
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2108
        holder addDependent:self.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2109
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2110
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2111
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2112
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2113
!DataSetBuilder methodsFor:'private'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2114
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2115
checkMenuItemModified
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2116
    "check column modification"
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2117
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2118
    self modifiedChannel value
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2119
    ifTrue:
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2120
    [
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2121
        ((YesNoBox title:'Column was modified!!\Save it?\' withCRs)        
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2122
            noText:'No';
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2123
            yesText:'Yes';
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2124
            showAtPointer;
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2125
            accepted) ifFalse: [self modifiedChannel value: false. ^true].
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2126
        self accept
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2127
    ].
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2128
    ^true
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2129
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2130
!
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2131
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2132
resolveClassNamed
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2133
    "returns current class or nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2134
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2135
    ^ Smalltalk resolveName:className inClass:self class.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2136
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2137
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2138
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2139
updateColumnView
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2140
    "update column view from column descriptions
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2141
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2142
    columnView notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2143
        columnView columnDescriptors:columns.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2144
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2145
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2146
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2147
!DataSetBuilder methodsFor:'queries'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2148
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2149
hasChanged
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2150
    "returns true if changes are done to the original column description
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2151
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2152
    ^ hasChanged
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2153
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2154
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2155
modified
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2156
    "returns true if current specification is modified
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2157
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2158
    ^ self modifiedChannel value
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2159
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2160
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2161
!DataSetBuilder methodsFor:'selection'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2162
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2163
selectedColumn
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2164
    "returns selected column or nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2165
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2166
    ^ selectedColumnIndex == 0 ifFalse:[columns at:selectedColumnIndex]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2167
                                ifTrue:[nil]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2168
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2169
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2170
selectedColumnIndex
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2171
    "returns selected column index or 0
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2172
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2173
    ^ selectedColumnIndex
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2174
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2175
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2176
selectedColumnIndex:something
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2177
    "change selected column and update specifications
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2178
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2179
    something == selectedColumnIndex ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2180
        selectedColumnIndex := something ? 0.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2181
        self cancel.
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2182
        self isColumnSelected value: true
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2183
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2184
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2185
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2186
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2187
tabSelectionIndex
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2188
    "returns selected tab index or 0
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2189
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2190
    ^ tabSelectionIndex
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2191
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2192
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2193
tabSelectionIndex:something
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2194
    "change selected tab and set corresponding specification
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2195
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2196
    |specSelector|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2197
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2198
    something == tabSelectionIndex ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2199
        ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2200
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2201
    self selectedColumn isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2202
        tabSelectionIndex == 0 ifTrue:[^ self ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2203
        tabSelectionIndex := 0
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2204
    ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2205
        (tabSelectionIndex := something) ~~ 0 ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2206
            specSelector := (self class slices at:tabSelectionIndex) last.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2207
        ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2208
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2209
    self specChannel value:specSelector
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2210
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2211
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2212
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2213
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2214
!DataSetBuilder methodsFor:'startup / release'!
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2215
409
6fbb954fdd75 column save request after close request
tz
parents: 408
diff changeset
  2216
closeRequest
6fbb954fdd75 column save request after close request
tz
parents: 408
diff changeset
  2217
    "close request
6fbb954fdd75 column save request after close request
tz
parents: 408
diff changeset
  2218
    "
6fbb954fdd75 column save request after close request
tz
parents: 408
diff changeset
  2219
    self checkMenuItemModified ifTrue: [super closeRequest]
6fbb954fdd75 column save request after close request
tz
parents: 408
diff changeset
  2220
!
6fbb954fdd75 column save request after close request
tz
parents: 408
diff changeset
  2221
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2222
postBuildWith:builder
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2223
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2224
    super postBuildWith:builder.
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2225
413
ac37b2a972ff select first column item after opening
tz
parents: 409
diff changeset
  2226
    (builder componentAt: #columnView) 
ac37b2a972ff select first column item after opening
tz
parents: 409
diff changeset
  2227
        selectConditionBlock: [:i|self checkMenuItemModified];
ac37b2a972ff select first column item after opening
tz
parents: 409
diff changeset
  2228
        selection: 1
408
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2229
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2230
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2231
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2232
! !
9215eb553600 totally revised version
tz
parents: 391
diff changeset
  2233
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2234
!DataSetBuilder class methodsFor:'documentation'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2235
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2236
version
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2237
    ^ '$Header$'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  2238
! !