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