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