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