DataSetBuilder.st
author ca
Fri, 07 Nov 1997 14:29:58 +0100
changeset 377 5cbb117efc19
parent 370 c90e57ac04a5
child 379 1a24037cd490
permissions -rw-r--r--
refine selection on row base: add a selector
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
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    17
ApplicationModel subclass:#DataSetBuilder
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'
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
    82
              #'layout:' #(#LayoutFrame 219 0 193 0 507 0 448 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)
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
    86
              #'bounds:' #(#Rectangle 219 193 508 449)
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
               #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    93
                 #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    94
                    #'name:' 'labelLabel'
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
    95
                    #'layout:' #(#AlignmentOrigin 70 0 30 0 1 0.5)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    96
                    #'label:' 'Label:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    97
                    #'adjust:' #right
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    98
                    #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
    99
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   100
                 #(#InputFieldSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   101
                    #'name:' 'labelField'
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   102
                    #'layout:' #(#LayoutFrame 74 0 22 0 -12 1.0 40 0)
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   103
                    #'activeHelpKey:' #label
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   104
                    #'model:' #label
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   105
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   106
                 #(#FramedBoxSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   107
                    #'name:' 'typesFrame'
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   108
                    #'layout:' #(#LayoutFrame 8 0.0 69 0 0 1.0 149 0)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   109
                    #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   110
                     #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   111
                        #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   112
                         #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   113
                           #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   114
                              #'name:' 'rendererLabel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   115
                              #'layout:' #(#AlignmentOrigin 84 0 26 0 1 0.5)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   116
                              #'label:' 'Renderer:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   117
                              #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   118
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   119
                           #(#ComboListSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   120
                              #'name:' 'rendererField'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   121
                              #'layout:' #(#LayoutFrame 86 0 16 0 17 1.0 36 0)
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   122
                              #'activeHelpKey:' #rendererType
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   123
                              #'model:' #rendererType
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   124
                              #'comboList:' #rendererTypeList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   125
                              #'useIndex:' false
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   126
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   127
                           #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   128
                              #'name:' 'editorLabel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   129
                              #'layout:' #(#AlignmentOrigin 84 0 50 0 1 0.5)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   130
                              #'label:' 'Editor:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   131
                              #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   132
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   133
                           #(#ComboBoxSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   134
                              #'name:' 'editorField'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   135
                              #'layout:' #(#LayoutFrame 86 0 41 0 17 1.0 61 0)
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   136
                              #'activeHelpKey:' #editorField
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   137
                              #'model:' #editorType
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   138
                              #'type:' #symbolOrNil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   139
                              #'comboList:' #editorTypeList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   140
                              #'useIndex:' false
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   141
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   142
                        )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   143
                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   144
                    #'label:' 'Types:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   145
                    #'labelPosition:' #topLeft
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   146
                )
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   147
                 #(#CheckBoxSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   148
                    #'name:' 'labelIsImage'
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   149
                    #'layout:' #(#LayoutOrigin 9 0 189 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   150
                    #'activeHelpKey:' #labelIsImage
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   151
                    #'model:' #labelIsImage
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   152
                    #'label:' 'Label Is Image'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   153
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   154
              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   155
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   156
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   157
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   158
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   159
colorEditSpec
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   160
    "this window spec was automatically generated by the ST/X UIPainter"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   161
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   162
    "do not manually edit this - the painter/builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   163
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   164
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   165
    "
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   166
     UIPainter new openOnClass:DataSetBuilder andSelector:#colorEditSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   167
     DataSetBuilder new openInterface:#colorEditSpec
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   168
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   169
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   170
    <resource: #canvas>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   171
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   172
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   173
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   174
       #(#FullSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   175
          #'window:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   176
           #(#WindowSpec
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   177
              #'name:' 'DataSet Misc'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   178
              #'layout:' #(#LayoutFrame 219 0 193 0 496 0 423 0)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   179
              #'label:' 'DataSet Misc'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   180
              #'min:' #(#Point 10 10)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   181
              #'max:' #(#Point 1280 1024)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   182
              #'bounds:' #(#Rectangle 219 193 497 424)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   183
              #'usePreferredExtent:' false
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   184
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   185
          #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   186
           #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   187
              #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   188
               #(
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   189
                 #(#FramedBoxSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   190
                    #'name:' 'colorsBox'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   191
                    #'layout:' #(#LayoutFrame 0 0.0 24 0 0 1.0 121 0)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   192
                    #'component:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   193
                     #(#SpecCollection
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   194
                        #'collection:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   195
                         #(
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   196
                           #(#ColorMenuSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   197
                              #'name:' 'fgMenu'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   198
                              #'layout:' #(#LayoutFrame 101 0 17 0 10 1.0 45 0)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   199
                              #'activeHelpKey:' #foregroundColor
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   200
                              #'model:' #foregroundColor
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   201
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   202
                           #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   203
                              #'name:' 'fgLabel'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   204
                              #'layout:' #(#AlignmentOrigin 100 0 32 0 1 0.5)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   205
                              #'label:' 'FG-Color:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   206
                              #'adjust:' #right
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   207
                              #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   208
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   209
                           #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   210
                              #'name:' 'bgLabel'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   211
                              #'layout:' #(#AlignmentOrigin 100 0 66 0 1 0.5)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   212
                              #'label:' 'BG-Color:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   213
                              #'adjust:' #right
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   214
                              #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   215
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   216
                           #(#ColorMenuSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   217
                              #'name:' 'bgMenu'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   218
                              #'layout:' #(#LayoutFrame 101 0 52 0 10 1.0 80 0)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   219
                              #'activeHelpKey:' #backgroundColor
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   220
                              #'model:' #backgroundColor
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   221
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   222
                        )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   223
                    )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   224
                    #'label:' 'Colors:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   225
                    #'labelPosition:' #topLeft
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   226
                )
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   227
              )
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   228
          )
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   229
      )
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   230
!
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   231
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   232
detailsEditSpec
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   233
    "this window spec was automatically generated by the ST/X UIPainter"
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   234
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   235
    "do not manually edit this - the painter/builder may not be able to
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   236
     handle the specification if its corrupted."
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   237
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   238
    "
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   239
     UIPainter new openOnClass:DataSetBuilder andSelector:#detailsEditSpec
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   240
     DataSetBuilder new openInterface:#detailsEditSpec
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   241
    "
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   242
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   243
    <resource: #canvas>
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   244
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   245
    ^
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   246
     
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   247
       #(#FullSpec
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   248
          #'window:' 
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   249
           #(#WindowSpec
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   250
              #'name:' 'DataSet Basic'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   251
              #'layout:' #(#LayoutFrame 219 0 193 0 507 0 448 0)
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   252
              #'label:' 'DataSet Basic'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   253
              #'min:' #(#Point 10 10)
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   254
              #'max:' #(#Point 1280 1024)
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   255
              #'bounds:' #(#Rectangle 219 193 508 449)
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   256
              #'usePreferredExtent:' false
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   257
          )
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   258
          #'component:' 
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   259
           #(#SpecCollection
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   260
              #'collection:' 
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   261
               #(
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   262
                 #(#FramedBoxSpec
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   263
                    #'name:' 'selectionBox'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   264
                    #'layout:' #(#LayoutFrame 0 0.0 20 0 0 1.0 101 0)
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   265
                    #'component:' 
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   266
                     #(#SpecCollection
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   267
                        #'collection:' 
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   268
                         #(
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   269
                           #(#CheckBoxSpec
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   270
                              #'name:' 'canSelect'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   271
                              #'layout:' #(#Point 83 15)
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   272
                              #'activeHelpKey:' #canSelect
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   273
                              #'model:' #canSelect
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   274
                              #'label:' 'Is Selectable'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   275
                          )
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   276
                           #(#LabelSpec
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   277
                              #'name:' 'selectorLabel'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   278
                              #'layout:' #(#AlignmentOrigin 84 0 51 0 1 0.5)
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   279
                              #'label:' 'Selector:'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   280
                              #'adjust:' #right
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   281
                              #'resizeForLabel:' true
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   282
                          )
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   283
                           #(#InputFieldSpec
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   284
                              #'name:' 'selectSelector'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   285
                              #'layout:' #(#LayoutFrame 86 0 42 0 17 1.0 62 0)
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   286
                              #'activeHelpKey:' #selectSelector
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   287
                              #'model:' #selectSelector
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   288
                              #'type:' #symbolOrNil
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   289
                          )
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   290
                        )
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   291
                    )
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   292
                    #'label:' 'Selection:'
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   293
                    #'labelPosition:' #topLeft
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   294
                )
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   295
                 #(#FramedBoxSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   296
                    #'name:' 'separatorBox'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   297
                    #'layout:' #(#LayoutFrame 0 0.0 131 0 0 1.0 217 0)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   298
                    #'component:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   299
                     #(#SpecCollection
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   300
                        #'collection:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   301
                         #(
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   302
                           #(#CheckBoxSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   303
                              #'name:' 'showRowSeparator'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   304
                              #'layout:' #(#AlignmentOrigin 39 0 30 0 0 0.5)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   305
                              #'activeHelpKey:' #showRowSeparator
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   306
                              #'model:' #showRowSeparator
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   307
                              #'label:' 'Show Row-Separator'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   308
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   309
                           #(#CheckBoxSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   310
                              #'name:' 'showColSeparator'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   311
                              #'layout:' #(#AlignmentOrigin 39 0 56 0 0 0.5)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   312
                              #'activeHelpKey:' #showColumnSeparator
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   313
                              #'model:' #showColSeparator
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   314
                              #'label:' 'Show Column-Separator'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   315
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   316
                        )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   317
                    )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   318
                    #'label:' 'Separators'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   319
                    #'labelPosition:' #topLeft
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   320
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   321
              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   322
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   323
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   324
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   325
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   326
dimensionEditSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   327
    "this window spec was automatically generated by the ST/X UIPainter"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   328
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   329
    "do not manually edit this - the painter/builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   330
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   331
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   332
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   333
     UIPainter new openOnClass:DataSetBuilder andSelector:#dimensionEditSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   334
     DataSetBuilder new openInterface:#dimensionEditSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   335
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   336
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   337
    <resource: #canvas>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   338
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   339
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   340
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   341
       #(#FullSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   342
          #'window:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   343
           #(#WindowSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   344
              #'name:' 'DataSet Dimension'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   345
              #'layout:' #(#LayoutFrame 197 0 172 0 487 0 385 0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   346
              #'label:' 'DataSet Dimension'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   347
              #'min:' #(#Point 10 10)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   348
              #'max:' #(#Point 1280 1024)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   349
              #'bounds:' #(#Rectangle 197 172 488 386)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   350
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   351
          #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   352
           #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   353
              #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   354
               #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   355
                 #(#FramedBoxSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   356
                    #'name:' 'columnWidthFrame'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   357
                    #'layout:' #(#LayoutFrame 0 0.0 20 0 0 1.0 107 0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   358
                    #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   359
                     #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   360
                        #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   361
                         #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   362
                           #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   363
                              #'name:' 'widthLabel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   364
                              #'layout:' #(#AlignmentOrigin 68 0.0 27 0 1 0.5)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   365
                              #'label:' 'width:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   366
                              #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   367
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   368
                           #(#InputFieldSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   369
                              #'name:' 'widthField'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   370
                              #'layout:' #(#LayoutFrame 70 0 17 0 0 1.0 39 0)
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   371
                              #'activeHelpKey:' #width
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   372
                              #'model:' #width
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   373
                              #'type:' #numberOrNil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   374
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   375
                           #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   376
                              #'name:' 'minWidthLabel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   377
                              #'layout:' #(#AlignmentOrigin 68 0.0 56 0 1 0.5)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   378
                              #'label:' 'minWidth:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   379
                              #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   380
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   381
                           #(#InputFieldSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   382
                              #'name:' 'minWidthField'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   383
                              #'layout:' #(#LayoutFrame 70 0 46 0 0 1.0 68 0)
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   384
                              #'activeHelpKey:' #minWidth
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   385
                              #'model:' #minWidth
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   386
                              #'type:' #numberOrNil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   387
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   388
                        )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   389
                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   390
                    #'label:' 'Column Width:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   391
                    #'labelPosition:' #topLeft
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   392
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   393
                 #(#FramedBoxSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   394
                    #'name:' 'rowHeightFrame'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   395
                    #'layout:' #(#LayoutFrame 0 0.0 134 0 0 1.0 194 0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   396
                    #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   397
                     #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   398
                        #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   399
                         #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   400
                           #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   401
                              #'name:' 'heightLabel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   402
                              #'layout:' #(#AlignmentOrigin 68 0.0 29 0 1 0.5)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   403
                              #'label:' 'height:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   404
                              #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   405
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   406
                           #(#InputFieldSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   407
                              #'name:' 'heightField'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   408
                              #'layout:' #(#LayoutFrame 70 0 19 0 0 1.0 41 0)
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   409
                              #'activeHelpKey:' #height
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   410
                              #'model:' #height
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   411
                              #'type:' #numberOrNil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   412
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   413
                        )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   414
                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   415
                    #'label:' 'Row Height:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   416
                    #'labelPosition:' #topLeft
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   417
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   418
              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   419
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   420
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   421
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   422
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   423
formatEditSpec
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   424
    "this window spec was automatically generated by the ST/X UIPainter"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   425
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   426
    "do not manually edit this - the painter/builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   427
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   428
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   429
    "
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   430
     UIPainter new openOnClass:DataSetBuilder andSelector:#formatEditSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   431
     DataSetBuilder new openInterface:#formatEditSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   432
    "
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   433
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   434
    <resource: #canvas>
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   435
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   436
    ^
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   437
     
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   438
       #(#FullSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   439
          #'window:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   440
           #(#WindowSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   441
              #'name:' 'DataSet Details'
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   442
              #'layout:' #(#LayoutFrame 219 0 193 0 509 0 406 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   443
              #'label:' 'DataSet Details'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   444
              #'min:' #(#Point 10 10)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   445
              #'max:' #(#Point 1280 1024)
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   446
              #'bounds:' #(#Rectangle 219 193 510 407)
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   447
              #'usePreferredExtent:' false
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   448
          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   449
          #'component:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   450
           #(#SpecCollection
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   451
              #'collection:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   452
               #(
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   453
                 #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   454
                    #'name:' 'textDescription'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   455
                    #'layout:' #(#Point 10 15)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   456
                    #'label:' 'Text Description:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   457
                    #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   458
                )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   459
                 #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   460
                    #'name:' 'formatLabel'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   461
                    #'layout:' #(#AlignmentOrigin 83 0 47 0 1 0.5)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   462
                    #'label:' 'Format:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   463
                    #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   464
                )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   465
                 #(#InputFieldSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   466
                    #'name:' 'formatField'
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   467
                    #'layout:' #(#LayoutFrame 87 0 37 0 -2 1.0 59 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   468
                    #'activeHelpKey:' #formatString
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   469
                    #'model:' #formatString
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   470
                )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   471
                 #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   472
                    #'name:' 'inpFieldDescription'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   473
                    #'layout:' #(#Point 10 80)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   474
                    #'label:' 'InputField Description:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   475
                    #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   476
                )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   477
                 #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   478
                    #'name:' 'typeLabel'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   479
                    #'layout:' #(#AlignmentOrigin 83 0 111 0 1 0.5)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   480
                    #'label:' 'Type:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   481
                    #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   482
                )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   483
                 #(#ComboListSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   484
                    #'name:' 'typeCombo'
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   485
                    #'layout:' #(#LayoutFrame 87 0 102 0 -2 1.0 122 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   486
                    #'activeHelpKey:' #type
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   487
                    #'model:' #type
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   488
                    #'comboList:' #typeList
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   489
                    #'useIndex:' false
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   490
                )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   491
                 #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   492
                    #'name:' 'sizeLabel'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   493
                    #'layout:' #(#AlignmentOrigin 83 0 136 0 1 0.5)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   494
                    #'label:' 'Size:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   495
                    #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   496
                )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   497
                 #(#InputFieldSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   498
                    #'name:' 'sizeField'
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   499
                    #'layout:' #(#LayoutFrame 87 0 126 0 -2 1.0 148 0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   500
                    #'activeHelpKey:' #size
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   501
                    #'model:' #size
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   502
                    #'type:' #numberOrNil
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   503
                )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   504
              )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   505
          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   506
      )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   507
!
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   508
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   509
selectorsEditSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   510
    "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
   511
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   512
    "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
   513
     handle the specification if its corrupted."
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   514
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   515
    "
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   516
     UIPainter new openOnClass:DataSetBuilder andSelector:#selectorsEditSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   517
     DataSetBuilder new openInterface:#selectorsEditSpec
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   518
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   519
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   520
    <resource: #canvas>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   521
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   522
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   523
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   524
       #(#FullSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   525
          #'window:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   526
           #(#WindowSpec
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   527
              #'name:' 'DataSet Basic'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   528
              #'layout:' #(#LayoutFrame 219 0 193 0 507 0 448 0)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   529
              #'label:' 'DataSet Basic'
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   530
              #'min:' #(#Point 10 10)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   531
              #'max:' #(#Point 1280 1024)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   532
              #'bounds:' #(#Rectangle 219 193 508 449)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   533
              #'usePreferredExtent:' false
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   534
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   535
          #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   536
           #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   537
              #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   538
               #(
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   539
                 #(#FramedBoxSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   540
                    #'name:' 'valuesBox'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   541
                    #'layout:' #(#LayoutFrame 0 0.0 20 0 0 1.0 101 0)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   542
                    #'component:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   543
                     #(#SpecCollection
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   544
                        #'collection:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   545
                         #(
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   546
                           #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   547
                              #'name:' 'readLabel'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   548
                              #'layout:' #(#AlignmentOrigin 84 0 25 0 1 0.5)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   549
                              #'label:' 'Read:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   550
                              #'adjust:' #right
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   551
                              #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   552
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   553
                           #(#InputFieldSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   554
                              #'name:' 'readSelector'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   555
                              #'layout:' #(#LayoutFrame 86 0 16 0 17 1.0 36 0)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   556
                              #'activeHelpKey:' #readSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   557
                              #'model:' #readSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   558
                              #'type:' #symbolOrNil
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   559
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   560
                           #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   561
                              #'name:' 'printLabel'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   562
                              #'layout:' #(#AlignmentOrigin 84 0 51 0 1 0.5)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   563
                              #'label:' 'Print:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   564
                              #'adjust:' #right
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   565
                              #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   566
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   567
                           #(#InputFieldSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   568
                              #'name:' 'printSelector'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   569
                              #'layout:' #(#LayoutFrame 86 0 42 0 17 1.0 62 0)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   570
                              #'activeHelpKey:' #printSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   571
                              #'model:' #printSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   572
                              #'type:' #symbolOrNil
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   573
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   574
                        )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   575
                    )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   576
                    #'label:' 'Values:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   577
                    #'labelPosition:' #topLeft
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   578
                )
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   579
                 #(#FramedBoxSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   580
                    #'name:' 'menusBox'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   581
                    #'layout:' #(#LayoutFrame 0 0.0 115 0 0 1.0 195 0)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   582
                    #'component:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   583
                     #(#SpecCollection
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   584
                        #'collection:' 
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   585
                         #(
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   586
                           #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   587
                              #'name:' 'menuLabel'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   588
                              #'layout:' #(#AlignmentOrigin 84 0 25 0 1 0.5)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   589
                              #'label:' 'Menu:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   590
                              #'adjust:' #right
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   591
                              #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   592
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   593
                           #(#InputFieldSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   594
                              #'name:' 'menuSelector'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   595
                              #'layout:' #(#LayoutFrame 86 0 16 0 17 1.0 36 0)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   596
                              #'activeHelpKey:' #menuSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   597
                              #'model:' #menu
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   598
                              #'type:' #symbolOrNil
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   599
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   600
                           #(#LabelSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   601
                              #'name:' 'choicesLabel'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   602
                              #'layout:' #(#AlignmentOrigin 84 0 51 0 1 0.5)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   603
                              #'label:' 'Choices:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   604
                              #'adjust:' #right
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   605
                              #'resizeForLabel:' true
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   606
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   607
                           #(#InputFieldSpec
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   608
                              #'name:' 'choicesSelector'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   609
                              #'layout:' #(#LayoutFrame 86 0 42 0 17 1.0 62 0)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   610
                              #'activeHelpKey:' #choices
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   611
                              #'model:' #choices
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   612
                              #'type:' #symbolOrNil
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   613
                          )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   614
                        )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   615
                    )
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   616
                    #'label:' 'Menus:'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   617
                    #'labelPosition:' #topLeft
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   618
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   619
              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   620
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   621
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   622
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   623
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   624
!DataSetBuilder class methodsFor:'help specs'!
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   625
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   626
helpSpec
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   627
    "return a dictionary filled with helpKey -> helptext associations.
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   628
     These are used by the activeHelp tool."
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   629
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   630
    "
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   631
    UIHelpTool openOnClass:DataSetBuilder    
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   632
    "
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   633
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   634
  ^ super helpSpec addPairsFrom:#(
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   635
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   636
#backgroundColor
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   637
'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
   638
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   639
#canSelect
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   640
'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
   641
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   642
#choices
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   643
'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
   644
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   645
#editorField
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   646
'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
   647
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   648
#foregroundColor
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   649
'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
   650
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   651
#formatString
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   652
'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
   653
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   654
#height
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   655
'preferred height (optional)'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   656
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   657
#label
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   658
'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
   659
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   660
#labelIsImage
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   661
'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
   662
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   663
#menuSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   664
'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
   665
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   666
#minWidth
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   667
'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
   668
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   669
#printSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   670
'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
   671
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   672
#readSelector
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   673
'a selector, which is used to get or set 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.'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   674
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   675
#rendererType
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   676
'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
   677
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   678
#selectSelector
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   679
'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
   680
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   681
#showColumnSeparator
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   682
'show or hide the column separator (right vertical separator).'
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   683
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   684
#showRowSeparator
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   685
'show or hide the row separator (bottom horizontal separator)'
338
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   686
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   687
#size
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   688
'max size of an InputField, ComboBox or ComboList. 0 or nil means unlimited.'
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   689
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   690
#type
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   691
'a type converter symbol used by the input field'
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   692
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   693
#width
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   694
'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
   695
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   696
)
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   697
! !
ea36cf31c084 add some help text
ca
parents: 333
diff changeset
   698
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   699
!DataSetBuilder class methodsFor:'images'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   700
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   701
iconCreateItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   702
    ^ MenuEditor iconCreateItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   703
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   704
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   705
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   706
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   707
!DataSetBuilder class methodsFor:'interface specs'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   708
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   709
defineClassNameSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   710
    "this window spec was automatically generated by the ST/X UIPainter"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   711
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   712
    "do not manually edit this - the painter/builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   713
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   714
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   715
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   716
     UIPainter new openOnClass:DataSetBuilder andSelector:#defineClassNameSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   717
     DataSetBuilder new openInterface:#defineClassNameSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   718
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   719
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   720
    <resource: #canvas>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   721
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   722
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   723
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   724
       #(#FullSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   725
          #'window:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   726
           #(#WindowSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   727
              #'name:' 'Class Definition'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   728
              #'layout:' #(#LayoutFrame 76 0 249 0 401 0 378 0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   729
              #'label:' 'Class Definition'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   730
              #'min:' #(#Point 10 10)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   731
              #'max:' #(#Point 1152 900)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   732
              #'bounds:' #(#Rectangle 76 249 402 379)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   733
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   734
          #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   735
           #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   736
              #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   737
               #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   738
                 #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   739
                    #'name:' 'classLabel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   740
                    #'layout:' #(#AlignmentOrigin 50 0.11 50 0 1 0.5)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   741
                    #'label:' 'class:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   742
                    #'adjust:' #right
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   743
                    #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   744
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   745
                 #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   746
                    #'name:' 'superClassLabel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   747
                    #'layout:' #(#AlignmentOrigin 50 0.11 77 0 1 0.5)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   748
                    #'label:' 'superclass:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   749
                    #'adjust:' #right
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   750
                    #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   751
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   752
                 #(#LabelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   753
                    #'name:' 'topLabel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   754
                    #'layout:' #(#Point 2 10)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   755
                    #'label:' 'class for code:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   756
                    #'adjust:' #left
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   757
                    #'resizeForLabel:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   758
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   759
                 #(#InputFieldSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   760
                    #'name:' 'classNameField'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   761
                    #'layout:' #(#LayoutFrame 51 0.11 39 0 -2 1.0 61 0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   762
                    #'tabable:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   763
                    #'model:' #classNameChannel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   764
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   765
                 #(#HorizontalPanelViewSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   766
                    #'name:' 'commitPanel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   767
                    #'layout:' #(#LayoutFrame 2 0.0 -30 1.0 -2 1.0 -2 1.0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   768
                    #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   769
                     #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   770
                        #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   771
                         #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   772
                           #(#ActionButtonSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   773
                              #'name:' 'button1'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   774
                              #'label:' 'cancel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   775
                              #'tabable:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   776
                              #'model:' #cancel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   777
                              #'extent:' #(#Point 156 22)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   778
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   779
                           #(#ActionButtonSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   780
                              #'name:' 'button2'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   781
                              #'label:' 'ok'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   782
                              #'tabable:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   783
                              #'isDefault:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   784
                              #'model:' #accept
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   785
                              #'extent:' #(#Point 157 22)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   786
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   787
                        )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   788
                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   789
                    #'horizontalLayout:' #fitSpace
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   790
                    #'verticalLayout:' #fitSpace
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   791
                    #'horizontalSpace:' 3
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   792
                    #'verticalSpace:' 3
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   793
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   794
                 #(#InputFieldSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   795
                    #'name:' 'inputField1'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   796
                    #'layout:' #(#LayoutFrame 51 0.11 67 0 -2 1.0 89 0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   797
                    #'tabable:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   798
                    #'model:' #superclassNameChannel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   799
                )
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
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   805
slices
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   806
    ^  #(       (Basics         basicsEditSpec)
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   807
                (Details        detailsEditSpec)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   808
                (Selectors      selectorsEditSpec)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   809
                (Format         formatEditSpec)
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   810
                (Colors         colorEditSpec)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   811
                (Dimension      dimensionEditSpec)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   812
        )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   813
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   814
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   815
windowSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   816
    "this window spec was automatically generated by the ST/X UIPainter"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   817
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   818
    "do not manually edit this - the painter/builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   819
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   820
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   821
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   822
     UIPainter new openOnClass:DataSetBuilder andSelector:#windowSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   823
     DataSetBuilder new openInterface:#windowSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   824
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   825
    "DataSetBuilder open"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   826
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   827
    <resource: #canvas>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   828
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   829
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   830
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   831
       #(#FullSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   832
          #'window:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   833
           #(#WindowSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   834
              #'name:' 'unnamed canvas'
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   835
              #'layout:' #(#LayoutFrame 262 0 460 0 774 0 802 0)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   836
              #'label:' 'unnamed canvas'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   837
              #'min:' #(#Point 10 10)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   838
              #'max:' #(#Point 1152 900)
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   839
              #'bounds:' #(#Rectangle 262 460 775 803)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   840
              #'usePreferredExtent:' false
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   841
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   842
          #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   843
           #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   844
              #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   845
               #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   846
                 #(#MenuPanelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   847
                    #'name:' 'mainMenu'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   848
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 25 0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   849
                    #'menu:' #mainMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   850
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   851
                 #(#VariableHorizontalPanelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   852
                    #'name:' 'VariablePanel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   853
                    #'layout:' #(#LayoutFrame 0 0.0 25 0.0 0 1.0 0 1.0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   854
                    #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   855
                     #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   856
                        #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   857
                         #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   858
                           #(#ViewSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   859
                              #'name:' 'labelsView'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   860
                              #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   861
                               #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   862
                                  #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   863
                                   #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   864
                                     #(#MenuPanelSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   865
                                        #'name:' 'subMenu'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   866
                                        #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 35 0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   867
                                        #'menu:' #subMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   868
                                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   869
                                     #(#SequenceViewSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   870
                                        #'name:' 'columnView'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   871
                                        #'layout:' #(#LayoutFrame 0 0.0 35 0.0 0 1.0 0 1.0)
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   872
                                        #'enableChannel:' #isNotModified
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   873
                                        #'model:' #selectedColumnModel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   874
                                        #'menu:' #columnMenu
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   875
                                        #'hasHorizontalScrollBar:' true
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   876
                                        #'hasVerticalScrollBar:' true
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
   877
                                        #'miniScrollerHorizontal:' true
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   878
                                        #'useIndex:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   879
                                        #'sequenceList:' #seqList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   880
                                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   881
                                  )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   882
                              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   883
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   884
                           #(#ViewSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   885
                              #'name:' 'specView'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   886
                              #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   887
                               #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   888
                                  #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   889
                                   #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   890
                                     #(#TabViewSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   891
                                        #'name:' 'tabView'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   892
                                        #'layout:' #(#LayoutFrame 0 0.0 0 0 0 1.0 35 0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   893
                                        #'model:' #tabModel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   894
                                        #'menu:' #tabList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   895
                                        #'useIndex:' true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   896
                                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   897
                                     #(#SubCanvasSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   898
                                        #'name:' 'specCanvas'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   899
                                        #'layout:' #(#LayoutFrame 0 0.0 35 0.0 0 1.0 -30 1.0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   900
                                        #'specHolder:' #specChannel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   901
                                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   902
                                     #(#HorizontalPanelViewSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   903
                                        #'name:' 'modifyPanel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   904
                                        #'layout:' #(#LayoutFrame 0 0.0 -30 1.0 0 1.0 0 1.0)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   905
                                        #'component:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   906
                                         #(#SpecCollection
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   907
                                            #'collection:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   908
                                             #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   909
                                               #(#ActionButtonSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   910
                                                  #'name:' 'cancelButton'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   911
                                                  #'label:' 'cancel'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   912
                                                  #'model:' #cancel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   913
                                                  #'enableChannel:' #modifiedChannel
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   914
                                                  #'extent:' #(#Point 171 24)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   915
                                              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   916
                                               #(#ActionButtonSpec
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   917
                                                  #'name:' 'acceptButton'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   918
                                                  #'label:' 'ok'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   919
                                                  #'model:' #accept
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   920
                                                  #'enableChannel:' #modifiedChannel
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   921
                                                  #'extent:' #(#Point 172 24)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   922
                                              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   923
                                            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   924
                                        )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   925
                                        #'horizontalLayout:' #fitSpace
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   926
                                        #'verticalLayout:' #fitSpace
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   927
                                        #'horizontalSpace:' 3
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   928
                                        #'verticalSpace:' 3
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   929
                                    )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   930
                                  )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   931
                              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   932
                              #'borderWidth:' 1
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   933
                          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   934
                        )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   935
                    )
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
   936
                    #'handles:' #(#Any 0.307992 1.0)
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   937
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   938
              )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   939
          )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   940
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   941
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   942
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   943
!DataSetBuilder class methodsFor:'menu specs'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   944
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   945
columnMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   946
    "this window spec was automatically generated by the ST/X MenuEditor"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   947
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   948
    "do not manually edit this - the builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   949
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   950
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   951
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   952
     MenuEditor new openOnClass:DataSetBuilder andSelector:#columnMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   953
     (Menu new fromLiteralArrayEncoding:(DataSetBuilder columnMenu)) startUp
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   954
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   955
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   956
    <resource: #menu>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   957
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   958
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   959
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   960
       #(#Menu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   961
          
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   962
           #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   963
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   964
                #'label:' 'cut'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   965
                #'value:' #doCutColumn
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   966
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   967
          ) nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   968
          nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   969
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   970
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   971
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   972
mainMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   973
    "this window spec was automatically generated by the ST/X MenuEditor"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   974
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   975
    "do not manually edit this - the builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   976
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   977
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   978
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   979
     MenuEditor new openOnClass:DataSetBuilder andSelector:#mainMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   980
     (Menu new fromLiteralArrayEncoding:(DataSetBuilder mainMenu)) startUp
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   981
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   982
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   983
    <resource: #menu>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   984
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   985
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   986
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   987
       #(#Menu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   988
          
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   989
           #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   990
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   991
                #'label:' 'file'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   992
                #'submenu:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   993
                 #(#Menu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   994
                    
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   995
                     #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   996
                       #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   997
                          #'label:' 'close'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   998
                          #'value:' #closeRequest
b895330fc7aa intitial checkin
ca
parents:
diff changeset
   999
                      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1000
                    ) nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1001
                    nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1002
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1003
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1004
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1005
                #'label:' 'code'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1006
                #'submenu:' 
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1007
                 #(#Menu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1008
                    
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1009
                     #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1010
                       #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1011
                          #'label:' 'class'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1012
                          #'value:' #doDefineClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1013
                      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1014
                       #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1015
                          #'label:' 'generate code'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1016
                          #'value:' #doGenerateCode
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1017
                      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1018
                       #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1019
                          #'label:' '-'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1020
                      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1021
                       #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1022
                          #'label:' 'browse class'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1023
                          #'value:' #doBrowseClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1024
                      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1025
                    ) nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1026
                    nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1027
                )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1028
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1029
          ) nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1030
          nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1031
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1032
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1033
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1034
subMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1035
    "this window spec was automatically generated by the ST/X MenuEditor"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1036
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1037
    "do not manually edit this - the builder may not be able to
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1038
     handle the specification if its corrupted."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1039
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1040
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1041
     MenuEditor new openOnClass:DataSetBuilder andSelector:#subMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1042
     (Menu new fromLiteralArrayEncoding:(DataSetBuilder subMenu)) startUp
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1043
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1044
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1045
    <resource: #menu>
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1046
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1047
    ^
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1048
     
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1049
       #(#Menu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1050
          
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1051
           #(
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1052
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1053
                #'label:' 'createColumn'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1054
                #'value:' #doCreateColumn
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1055
                #'enabled:' #isNotModified
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1056
                #'labelImage:' #(#ResourceRetriever #MenuEditor #iconCreateItem)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1057
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1058
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1059
                #'label:' '-'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1060
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1061
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1062
                #'label:' ''
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1063
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1064
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1065
                #'label:' '-'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1066
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1067
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1068
                #'label:' 'stepUp'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1069
                #'value:' #'doMoveColumn:'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1070
                #'enabled:' #isNotModified
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1071
                #'argument:' #up
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1072
                #'labelImage:' #(#ResourceRetriever #UIPainter #iconStepUp)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1073
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1074
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1075
                #'label:' '-'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1076
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1077
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1078
                #'label:' 'stepDown'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1079
                #'value:' #'doMoveColumn:'
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
  1080
                #'enabled:' #isNotModified
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1081
                #'argument:' #down
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1082
                #'labelImage:' #(#ResourceRetriever #UIPainter #iconStepDown)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1083
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1084
             #(#MenuItem
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1085
                #'label:' '-'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1086
            )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1087
          ) nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1088
          nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1089
      )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1090
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1091
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1092
!DataSetBuilder methodsFor:'accessing'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1093
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1094
columns
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1095
    "returns list of columns
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1096
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1097
    ^ columns
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1098
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1099
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1100
columns:aListOfColumns fromView:aColumnView
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1101
    "setup columns from a column view
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1102
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1103
    |list|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1104
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1105
    columnView := aColumnView.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1106
    columns    := OrderedCollection new.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1107
    list       := self seqList.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1108
    hasChanged := false.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1109
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1110
    list removeAll.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1111
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1112
    aListOfColumns size ~~ 0 ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1113
        aListOfColumns do:[:aCol|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1114
            columns add:(aCol copy).
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1115
            aCol rendererType == #rowSelector ifFalse:[list add:(aCol label)]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1116
                                               ifTrue:[list add:'Row Selector'].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1117
        ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1118
    ].
333
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1119
!
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1120
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1121
rowClassName
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1122
    ^ (Smalltalk resolveName:className inClass:self class) notNil ifTrue:[className] ifFalse:[nil]
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1123
!
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1124
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1125
rowClassName:aClassName
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1126
    |cls|
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1127
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1128
    superclassName := nil.
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1129
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1130
    (className := aClassName) notNil ifTrue:[
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1131
        (cls := self resolveClassNamed) notNil ifTrue:[
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1132
            superclassName := cls superclass name asString.
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1133
        ] ifFalse:[
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1134
            superclassName := 'Object'
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1135
        ]
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1136
    ]
a2e23dea36bf change className to rowClassName
ca
parents: 332
diff changeset
  1137
332
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 methodsFor:'accessing menu'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1141
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1142
columnMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1143
    "this window spec was automatically generated by the UI Builder"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1144
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1145
    ^ self class columnMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1146
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1147
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1148
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1149
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1150
doBrowseClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1151
    |cls|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1152
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1153
    (cls := self resolveClassNamed) notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1154
        SystemBrowser openInClass:cls
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1155
    ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1156
        self information:'no class yet'.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1157
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1158
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1159
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1160
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1161
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1162
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1163
doCreateColumn
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1164
    "create a new column after selected column or at left (nothing selected)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1165
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1166
    |label list|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1167
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1168
    list := self seqList.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1169
    label := 'column ', list size printString.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1170
    columns add:(DataSetColumnSpec label:label selector:#ToBeDefined) afterIndex:selectedColumnIndex.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1171
    self seqList add:label afterIndex:selectedColumnIndex.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1172
    hasChanged := true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1173
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1174
    self modified ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1175
        self selectedColumnModel value:(selectedColumnIndex + 1)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1176
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1177
    self updateColumnView.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1178
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1179
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1180
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1181
doCutColumn
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1182
    "remove selected column
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1183
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1184
    |idx|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1185
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1186
    (idx := selectedColumnIndex) ~~ 0 ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1187
        self selectedColumnModel value:0.
342
df086591eb11 add more functionality
ca
parents: 338
diff changeset
  1188
        columns removeIndex:idx.
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1189
        self seqList removeIndex:idx.
342
df086591eb11 add more functionality
ca
parents: 338
diff changeset
  1190
        self updateColumnView.
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1191
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1192
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1193
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1194
doDefineClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1195
    "launch a dialog to define class and superclass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1196
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1197
    |aspects cls oldClass oldSuper|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1198
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1199
    aspects  := IdentityDictionary new.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1200
    oldClass := className.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1201
    oldSuper := superclassName.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1202
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1203
    [true] whileTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1204
        className notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1205
            (cls := self resolveClassNamed) notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1206
                superclassName := cls superclass name asString.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1207
            ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1208
            aspects at:#classNameChannel put:className asValue
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1209
        ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1210
            aspects at:#classNameChannel put:'DSVRow' asValue
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1211
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1212
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1213
        superclassName notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1214
            aspects at:#superclassNameChannel put:superclassName asValue
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1215
        ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1216
            aspects at:#superclassNameChannel put:'Object' asValue
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1217
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1218
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1219
        (self openDialogInterface:#defineClassNameSpec withBindings:aspects) ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1220
            className := oldClass.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1221
            superclassName := oldSuper.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1222
          ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1223
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1224
        className      := ((aspects at:#classNameChannel) value)      withoutSeparators.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1225
        superclassName := ((aspects at:#superclassNameChannel) value) withoutSeparators.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1226
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1227
        className size == 0 ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1228
            className := nil.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1229
            self information:'no valid className'.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1230
        ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1231
            cls := self resolveClassNamed.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1232
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1233
            cls notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1234
                cls := cls superclass name asString
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1235
            ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1236
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1237
            superclassName size == 0 ifTrue:[        
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1238
                cls notNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1239
                    superclassName := cls
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1240
                ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1241
                    superclassName := 'Object'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1242
                ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1243
                self information:( 'set superclassName' ).
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1244
            ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1245
                (cls isNil or:[superclassName = cls]) ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1246
                    hasChanged := true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1247
                    ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1248
                ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1249
                self information:('a global named ' , className , ' exists,\' ,
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1250
                                  'but is not a subclass of ' , superclassName, '.\\' ,
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1251
                                  'Check and try again if that is not what you want.') withCRs.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1252
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1253
                superclassName := cls.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1254
            ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1255
        ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1256
    ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1257
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1258
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1259
doGenerateCode
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1260
    |cls superclass|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1261
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1262
    className isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1263
        ^ self information:'no class defined'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1264
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1265
    cls := self resolveClassNamed.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1266
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1267
    cls isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1268
        superclass := Smalltalk resolveName:superclassName inClass:self class.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1269
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1270
        superclass isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1271
            ^ self information:'no superclass defined'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1272
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1273
        (self confirm:'create ' , className , ' ?') ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1274
            ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1275
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1276
        cls := superclass subclass:(className asSymbol)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1277
                     instanceVariableNames:''
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1278
                     classVariableNames:''
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1279
                     poolDictionaries:''
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1280
                     category:'Applications'.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1281
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1282
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1283
    self generateChoicesIn:cls.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1284
    self generateMenuIn:cls.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1285
    self generatePrintSelectorIn:cls.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1286
    self generateReadSelectorIn:cls.
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  1287
    self generateSelectSelectorIn:cls.
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1288
    self generateWriteSelectorIn:cls.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1289
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1290
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1291
doMoveColumn:upOrDown
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1292
    "move selected column up or down
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1293
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1294
    |idx list label col size|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1295
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1296
    (idx := selectedColumnIndex) == 0 ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1297
        ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1298
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1299
    list := self seqList.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1300
    size := list size.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1301
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1302
    size == 1 ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1303
        ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1304
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1305
    hasChanged := true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1306
    selectedColumnIndex := 0.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1307
    label := list at:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1308
    col   := columns at:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1309
    list    removeIndex:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1310
    columns removeIndex:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1311
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1312
    upOrDown == #up ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1313
        idx == 1 ifTrue:[idx := size]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1314
                ifFalse:[idx := idx - 1]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1315
    ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1316
        idx == size ifTrue:[idx := 1]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1317
                   ifFalse:[idx := idx + 1]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1318
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1319
    columns add:col   beforeIndex:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1320
    list    add:label beforeIndex:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1321
    self selectedColumnModel value:idx.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1322
    self updateColumnView.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1323
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1324
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1325
mainMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1326
    "this window spec was automatically generated by the UI Builder"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1327
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1328
    ^ self class mainMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1329
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1330
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1331
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1333
subMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1334
    "this window spec was automatically generated by the UI Builder"
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1335
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1336
    ^ self class subMenu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1337
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1338
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1339
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1340
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1341
!DataSetBuilder methodsFor:'actions'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1342
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1343
accept
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1344
    "accept changes made
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1345
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1346
    |column type|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1347
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1348
    self modifiedChannel value == false ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1349
        ^ self
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1350
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1351
    isModified := true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1352
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1353
    (column := self selectedColumn) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1354
        ^ self cancel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1355
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1356
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1357
    type := (aspects at:#rendererType) value.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1358
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1359
    type == #rowSelector ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1360
        #( label width minWidth editorType choices readSelector printSelector
377
5cbb117efc19 refine selection on row base:
ca
parents: 370
diff changeset
  1361
           formatString type size height canSelect selectSelector
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1362
         ) do:[:aKey| (aspects at:aKey) value:nil ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1363
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1364
        
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1365
    aspects keysAndValuesDo:[:aKey :aModel|
370
c90e57ac04a5 add help text and support of label is image
ca
parents: 357
diff changeset
  1366
        column perform:(aKey , ':') asSymbol with:(aModel value).
332
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1367
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1368
    self seqList at:selectedColumnIndex put:((aspects at:#label) value).
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1369
    self updateColumnView.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1370
    self cancel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1371
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1372
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1373
cancel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1374
    "remove all changes and reload selected column
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1375
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1376
    |column|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1377
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1378
    isModified := true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1379
    (column := self selectedColumn) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1380
        self tabModel value:0.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1381
    ] ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1382
        aspects keysAndValuesDo:[:aKey :aModel|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1383
            aModel value:(column perform:aKey)
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1384
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1385
        tabSelectionIndex == 0 ifTrue:[self tabModel value:1].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1386
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1387
    self modifiedChannel value:false.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1388
    self isNotModified   value:true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1389
    isModified := false.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1390
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1391
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1392
!DataSetBuilder methodsFor:'aspects'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1393
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1394
aspectFor:aKey
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1395
    "returns aspect for a key or nil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1396
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1397
  ^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1398
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1399
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1400
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1401
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1402
editorTypeList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1403
    "generate list of supported editor types
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1404
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1405
    |list|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1406
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1407
    (list := builder bindingAt:#editorTypeList) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1408
        list := OrderedCollection new.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1409
        DataSetColumnSpec slices do:[:aSlice||type|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1410
            type := aSlice at:1.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1411
            (list includes:type) ifFalse:[list add:type].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1412
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1413
        builder aspectAt:#editorTypeList put:list.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1414
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1415
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1416
    ^ list
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1417
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1418
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1419
isNotModified
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1420
    "returns a boolean value holder which is set to true if something is modified
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1421
     and not accepted
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1422
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1423
    ^ builder valueAspectFor:#isNotModified initialValue:true
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1424
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
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1429
modifiedChannel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1430
    "returns a boolean value holder which is set to true if something is modified
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1431
     and not accepted
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1432
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1433
    ^ builder booleanValueAspectFor:#modifiedChannel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1434
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1435
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1436
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1437
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1438
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1439
rendererTypeList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1440
    "generate list of supported renderer types
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1441
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1442
    |list|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1443
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1444
    (list := builder bindingAt:#rendererTypeList) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1445
        list := OrderedCollection new.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1446
        DataSetColumnSpec slices do:[:aSlice||type|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1447
            type := aSlice at:2.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1448
            (list includes:type) ifFalse:[list add:type].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1449
        ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1450
        builder aspectAt:#rendererTypeList put:list.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1451
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1452
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1453
    ^ list
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1454
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1455
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1456
selectedColumnModel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1457
    "automatically generated by UIPainter ..."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1458
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1459
    |holder|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1460
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1461
    (holder := builder bindingAt:#selectedColumnModel) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1462
        holder := AspectAdaptor new subject:self; forAspect:#selectedColumnIndex.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1463
        builder aspectAt:#selectedColumnModel put:holder.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1464
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1465
    ^ holder
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1466
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1467
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1468
seqList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1469
    "automatically generated by UIPainter ..."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1470
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1471
    |list|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1472
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1473
    (list := builder bindingAt:#seqList) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1474
        builder aspectAt:#seqList put:(list :=  List new).
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1475
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1476
    ^ list
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1477
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1478
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1479
specChannel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1480
    "automatically generated by UIPainter ..."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1481
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1482
    |holder|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1483
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1484
    (holder := builder bindingAt:#specChannel) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1485
        builder aspectAt:#specChannel put:(holder :=  ValueHolder new).
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1486
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1487
    ^ holder
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1488
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1489
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1490
tabList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1491
    "automatically generated by UIPainter ..."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1492
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1493
    ^ self class slices collect:[:aSlice| aSlice first ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1494
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1495
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1496
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1497
tabModel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1498
    "returns a value holder which keeps the index of the current selected tab or 0
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1499
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1500
    |holder|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1501
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1502
    (holder := builder bindingAt:#tabModel) isNil ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1503
        holder := AspectAdaptor new subject:self; forAspect:#tabSelectionIndex.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1504
        builder aspectAt:#tabModel put:holder.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1505
    ].
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1506
    ^ holder
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1507
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1508
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1509
typeList
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1510
    "automatically generated by UIPainter ..."
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1511
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1512
    ^ #( string password number numberOrNil symbolOrNil )
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1513
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1514
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1515
!DataSetBuilder methodsFor:'change & update'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1516
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1517
update:something with:aParameter from:someObject
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1518
    "one of my aspects has changed; update modified channel
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1519
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1520
    isModified ifFalse:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1521
        isModified := hasChanged := true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1522
        self modifiedChannel value:true.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1523
        self isNotModified   value:false.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1524
    ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1525
! !
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1526
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1527
!DataSetBuilder methodsFor:'code generation'!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1528
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1529
compile:aCode forClass:aClass inCategory:aCategory
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1530
    "compile method for class in a category
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1531
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1532
    ByteCodeCompiler compile:aCode withCRs forClass:aClass inCategory:aCategory
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1533
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1534
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1535
generateChoicesIn:aClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1536
    "generate code for #choices
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1537
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1538
    |sel catg code|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1539
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1540
    catg := 'accessing choices' asSymbol.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1541
    code :=   '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1542
            , '    "automatically generated by DataSetBuilder ..."\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1543
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1544
            , '    "get choices for visual editor; (a list of labels)\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1545
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1546
            , '    ^ nil'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1547
            .
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1548
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1549
    columns do:[:aColumn|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1550
        (     aColumn canSelect
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1551
         and:[aColumn rendererType ~~ #rowSelector
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1552
         and:[(sel := aColumn choices) notNil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1553
         and:[(aClass implements:sel) not]]]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1554
        ) ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1555
            self compile:(sel asString, code) forClass:aClass inCategory:catg
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1556
        ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1557
    ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1558
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1559
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1560
generateMenuIn:aClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1561
    "generate code for #menu
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1562
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1563
    |sel catg code|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1564
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1565
    catg := 'accessing menus' asSymbol.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1566
    code :=   '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1567
            , '    "automatically generated by DataSetBuilder ..."\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1568
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1569
            , '    "get middleButton menu for selected cell in column"\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1570
            , '\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1571
            , '    ^ nil'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1572
            .
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1573
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1574
    columns do:[:aColumn|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1575
        (     aColumn canSelect
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1576
         and:[(sel := aColumn menu) notNil
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1577
         and:[(aClass implements:sel) not]]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1578
        ) ifTrue:[
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1579
            self compile:(sel asString, code) forClass:aClass inCategory:catg
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1580
        ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1581
    ]
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1582
!
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1583
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1584
generatePrintSelectorIn:aClass
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1585
    "generate code for #printSelector
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1586
    "
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1587
    |sel catg code|
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1588
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1589
    catg := 'accessing printSelector' asSymbol.
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1590
    code :=   'aGC\'
b895330fc7aa intitial checkin
ca
parents:
diff changeset
  1591
            , '    &q