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