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