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