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