UILayoutTool.st
author Claus Gittinger <cg@exept.de>
Sat, 05 Feb 2000 15:26:13 +0100
changeset 1332 ba34b85c14d8
parent 1310 572125002ce9
child 1334 36c1ee53aede
permissions -rw-r--r--
do not overwrite defaultFin windowSpec (looks ugly under win32).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
     1
"
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
     2
 COPYRIGHT (c) 1995 by eXept Software AG
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
     3
              All Rights Reserved
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
     4
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
     5
 This software is furnished under a license and may be used
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    10
 hereby transferred.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    11
"
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    12
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    13
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    14
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    15
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    16
ApplicationModel subclass:#UILayoutTool
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
    17
	instanceVariableNames:'modifiedHolder aspects selection currentTool layoutView tabList
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
    18
		layoutSpec toolsDictionary'
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    19
	classVariableNames:''
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    20
	poolDictionaries:''
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    21
	category:'Interface-UIPainter'
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    22
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    23
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
    24
ApplicationModel subclass:#Rectangle
1310
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    25
	instanceVariableNames:''
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    26
	classVariableNames:''
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    27
	poolDictionaries:''
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    28
	privateIn:UILayoutTool
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    29
!
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    30
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
    31
ApplicationModel subclass:#AlignmentOrigin
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
    32
	instanceVariableNames:''
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
    33
	classVariableNames:''
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
    34
	poolDictionaries:''
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
    35
	privateIn:UILayoutTool
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
    36
!
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
    37
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
    38
ApplicationModel subclass:#LayoutOrigin
1268
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
    39
	instanceVariableNames:''
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
    40
	classVariableNames:''
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
    41
	poolDictionaries:''
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
    42
	privateIn:UILayoutTool
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
    43
!
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
    44
1310
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    45
ApplicationModel subclass:#Point
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    46
	instanceVariableNames:''
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    47
	classVariableNames:''
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    48
	poolDictionaries:''
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    49
	privateIn:UILayoutTool
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    50
!
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    51
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
    52
ApplicationModel subclass:#Extent
1304
ca
parents: 1268
diff changeset
    53
	instanceVariableNames:''
ca
parents: 1268
diff changeset
    54
	classVariableNames:''
ca
parents: 1268
diff changeset
    55
	poolDictionaries:''
ca
parents: 1268
diff changeset
    56
	privateIn:UILayoutTool
ca
parents: 1268
diff changeset
    57
!
ca
parents: 1268
diff changeset
    58
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
    59
ApplicationModel subclass:#LayoutFrame
1198
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
    60
	instanceVariableNames:''
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
    61
	classVariableNames:''
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
    62
	poolDictionaries:''
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
    63
	privateIn:UILayoutTool
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
    64
!
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
    65
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    66
!UILayoutTool class methodsFor:'documentation'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    67
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    68
copyright
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    69
"
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    70
 COPYRIGHT (c) 1995 by eXept Software AG
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    71
              All Rights Reserved
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    72
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    73
 This software is furnished under a license and may be used
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    74
 only in accordance with the terms of that license and with the
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    75
 inclusion of the above copyright notice.   This software may not
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    76
 be provided or otherwise made available to, or used by, any
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    77
 other person.  No title to or ownership of the software is
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    78
 hereby transferred.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    79
"
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    80
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    81
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    82
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    83
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    84
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    85
documentation
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    86
"
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    87
    used by the UIPainter to manipulate the layout of the selected component
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    88
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    89
    [author:]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    90
        Claus Atzkern
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    91
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    92
    [see also:]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    93
        UIPainter
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    94
        UIHelpTool
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    95
        UISpecificationTool
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    96
"
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    97
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    98
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    99
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   100
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   101
!UILayoutTool class methodsFor:'constants'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   102
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   103
label
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   104
    ^ 'Layout'
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   105
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   106
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   107
!UILayoutTool class methodsFor:'help specs'!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   108
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   109
helpSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   110
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   111
     by the UIHelpTool of ST/X."
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   112
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   113
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   114
     the UIHelpTool may not be able to read the specification."
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   115
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   116
    "
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   117
     UIHelpTool openOnClass:UILayoutTool    
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   118
    "
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   119
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   120
    <resource: #help>
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   121
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   122
    ^super helpSpec addPairsFrom:#(
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   123
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   124
#cornerX
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   125
'Absolute corner x of the selected widget.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   126
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   127
#cornerY
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   128
'Absolute corner y of the selected widget.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   129
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   130
#layoutTool
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   131
'Tool to set the layout of the selected widget.'
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   132
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   133
#leftAbsolute
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
   134
'Offset of the left edge; positive is to the right, negative to the left.'
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   135
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   136
#leftRelative
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   137
'Relative origin x of the selected widget.'
201
b10f071028cb *** empty log message ***
ca
parents: 186
diff changeset
   138
b10f071028cb *** empty log message ***
ca
parents: 186
diff changeset
   139
#makeLeftAbsolute
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
   140
'Computes current left offset and relative origin x to an absolute origin x.'
201
b10f071028cb *** empty log message ***
ca
parents: 186
diff changeset
   141
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   142
#makeLeftRelative
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   143
'Compute current relative origin x and offset of the left edge to a relative origin x.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   144
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   145
#makeTopAbsolute
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   146
'Computes current top offset and relative origin y to an absolute origin y.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   147
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   148
#makeTopRelative
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   149
'Computes current relative origin y and offset of the top edge to a relative origin y.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   150
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   151
#originX
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   152
'Absolute origin x of the selected widget.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   153
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   154
#originY
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   155
'Absolute origin y of the selected widget.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   156
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   157
#topAbsolute
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
   158
'Offset of the top edge; positive is to the bottom, negative to the top.'
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   159
201
b10f071028cb *** empty log message ***
ca
parents: 186
diff changeset
   160
#topRelative
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
   161
'Relative origin y of the selected widget.'
201
b10f071028cb *** empty log message ***
ca
parents: 186
diff changeset
   162
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   163
)
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   164
! !
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   165
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   166
!UILayoutTool class methodsFor:'interface specs'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   167
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   168
layoutOriginSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   169
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   170
     by the UIPainter of ST/X."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   171
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   172
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   173
     the UIPainter may not be able to read the specification."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   174
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   175
    "
259
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   176
     UIPainter new openOnClass:UILayoutTool andSelector:#layoutOriginSpec
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   177
     UILayoutTool new openInterface:#layoutOriginSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   178
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   179
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   180
    <resource: #canvas>
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   181
1304
ca
parents: 1268
diff changeset
   182
    ^ 
ca
parents: 1268
diff changeset
   183
     #(#FullSpec
ca
parents: 1268
diff changeset
   184
        #name: #layoutOriginSpec
ca
parents: 1268
diff changeset
   185
        #window: 
ca
parents: 1268
diff changeset
   186
       #(#WindowSpec
ca
parents: 1268
diff changeset
   187
          #label: 'UILayoutTool'
ca
parents: 1268
diff changeset
   188
          #name: 'UILayoutTool'
ca
parents: 1268
diff changeset
   189
          #min: #(#Point 10 10)
ca
parents: 1268
diff changeset
   190
          #max: #(#Point 1152 900)
ca
parents: 1268
diff changeset
   191
          #bounds: #(#Rectangle 506 24 851 206)
ca
parents: 1268
diff changeset
   192
        )
ca
parents: 1268
diff changeset
   193
        #component: 
ca
parents: 1268
diff changeset
   194
       #(#SpecCollection
ca
parents: 1268
diff changeset
   195
          #collection: #(
ca
parents: 1268
diff changeset
   196
           #(#FramedBoxSpec
ca
parents: 1268
diff changeset
   197
              #label: 'Origin'
ca
parents: 1268
diff changeset
   198
              #name: 'FramedBox'
ca
parents: 1268
diff changeset
   199
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 108 0)
ca
parents: 1268
diff changeset
   200
              #labelPosition: #topLeft
ca
parents: 1268
diff changeset
   201
              #component: 
ca
parents: 1268
diff changeset
   202
             #(#SpecCollection
ca
parents: 1268
diff changeset
   203
                #collection: #(
ca
parents: 1268
diff changeset
   204
                 #(#LabelSpec
ca
parents: 1268
diff changeset
   205
                    #label: 'Relative:'
ca
parents: 1268
diff changeset
   206
                    #name: 'labelRelative'
ca
parents: 1268
diff changeset
   207
                    #layout: #(#Point 87 6)
ca
parents: 1268
diff changeset
   208
                  )
ca
parents: 1268
diff changeset
   209
                 #(#LabelSpec
ca
parents: 1268
diff changeset
   210
                    #label: 'Offset:'
ca
parents: 1268
diff changeset
   211
                    #name: 'labelAbsolute'
ca
parents: 1268
diff changeset
   212
                    #layout: #(#Point 187 6)
ca
parents: 1268
diff changeset
   213
                  )
ca
parents: 1268
diff changeset
   214
                 #(#LabelSpec
ca
parents: 1268
diff changeset
   215
                    #label: 'Left:'
ca
parents: 1268
diff changeset
   216
                    #name: 'labelLeft'
ca
parents: 1268
diff changeset
   217
                    #layout: #(#AlignmentOrigin 85 0 27 0 1 0)
ca
parents: 1268
diff changeset
   218
                  )
ca
parents: 1268
diff changeset
   219
                 #(#InputFieldSpec
ca
parents: 1268
diff changeset
   220
                    #attributes: 
ca
parents: 1268
diff changeset
   221
                   #(#tabable
ca
parents: 1268
diff changeset
   222
                      true
ca
parents: 1268
diff changeset
   223
                    )
ca
parents: 1268
diff changeset
   224
                    #name: 'fieldLeftFraction'
ca
parents: 1268
diff changeset
   225
                    #layout: #(#LayoutFrame 87 0 24 0 137 0 46 0)
ca
parents: 1268
diff changeset
   226
                    #activeHelpKey: #leftRelative
ca
parents: 1268
diff changeset
   227
                    #tabable: true
ca
parents: 1268
diff changeset
   228
                    #model: #leftFraction
ca
parents: 1268
diff changeset
   229
                    #group: #inputGroup
ca
parents: 1268
diff changeset
   230
                    #type: #numberOrNil
ca
parents: 1268
diff changeset
   231
                    #acceptChannel: #acceptChannel
ca
parents: 1268
diff changeset
   232
                    #modifiedChannel: #modifiedChannel
ca
parents: 1268
diff changeset
   233
                    #acceptOnPointerLeave: false
ca
parents: 1268
diff changeset
   234
                  )
ca
parents: 1268
diff changeset
   235
                 #(#ActionButtonSpec
ca
parents: 1268
diff changeset
   236
                    #attributes: 
ca
parents: 1268
diff changeset
   237
                   #(#tabable
ca
parents: 1268
diff changeset
   238
                      true
ca
parents: 1268
diff changeset
   239
                    )
ca
parents: 1268
diff changeset
   240
                    #name: 'actionRelativeLeft'
ca
parents: 1268
diff changeset
   241
                    #layout: #(#LayoutFrame 142 0 24 0 164 0 46 0)
ca
parents: 1268
diff changeset
   242
                    #activeHelpKey: #makeLeftRelative
ca
parents: 1268
diff changeset
   243
                    #tabable: true
ca
parents: 1268
diff changeset
   244
                    #model: #relativeLeft
ca
parents: 1268
diff changeset
   245
                  )
ca
parents: 1268
diff changeset
   246
                 #(#InputFieldSpec
ca
parents: 1268
diff changeset
   247
                    #attributes: 
ca
parents: 1268
diff changeset
   248
                   #(#tabable
ca
parents: 1268
diff changeset
   249
                      true
ca
parents: 1268
diff changeset
   250
                    )
ca
parents: 1268
diff changeset
   251
                    #name: 'fieldLeftOffset'
ca
parents: 1268
diff changeset
   252
                    #layout: #(#LayoutFrame 187 0 24 0 237 0 46 0)
ca
parents: 1268
diff changeset
   253
                    #activeHelpKey: #leftAbsolute
ca
parents: 1268
diff changeset
   254
                    #tabable: true
ca
parents: 1268
diff changeset
   255
                    #model: #leftOffset
ca
parents: 1268
diff changeset
   256
                    #group: #inputGroup
ca
parents: 1268
diff changeset
   257
                    #type: #numberOrNil
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   258
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   259
                    #modifiedChannel: #modifiedChannel
1304
ca
parents: 1268
diff changeset
   260
                    #acceptOnPointerLeave: false
ca
parents: 1268
diff changeset
   261
                  )
ca
parents: 1268
diff changeset
   262
                 #(#ActionButtonSpec
ca
parents: 1268
diff changeset
   263
                    #attributes: 
ca
parents: 1268
diff changeset
   264
                   #(#tabable
ca
parents: 1268
diff changeset
   265
                      true
ca
parents: 1268
diff changeset
   266
                    )
ca
parents: 1268
diff changeset
   267
                    #name: 'actionAbsoluteLeft'
ca
parents: 1268
diff changeset
   268
                    #layout: #(#LayoutFrame 242 0 24 0 264 0 46 0)
ca
parents: 1268
diff changeset
   269
                    #activeHelpKey: #makeLeftAbsolute
ca
parents: 1268
diff changeset
   270
                    #tabable: true
ca
parents: 1268
diff changeset
   271
                    #model: #absoluteLeft
ca
parents: 1268
diff changeset
   272
                  )
ca
parents: 1268
diff changeset
   273
                 #(#LabelSpec
ca
parents: 1268
diff changeset
   274
                    #label: 'Top:'
ca
parents: 1268
diff changeset
   275
                    #name: 'labelTop'
ca
parents: 1268
diff changeset
   276
                    #layout: #(#AlignmentOrigin 85 0 54 0 1 0)
ca
parents: 1268
diff changeset
   277
                  )
ca
parents: 1268
diff changeset
   278
                 #(#InputFieldSpec
ca
parents: 1268
diff changeset
   279
                    #attributes: 
ca
parents: 1268
diff changeset
   280
                   #(#tabable
ca
parents: 1268
diff changeset
   281
                      true
ca
parents: 1268
diff changeset
   282
                    )
ca
parents: 1268
diff changeset
   283
                    #name: 'fieldTopFraction'
ca
parents: 1268
diff changeset
   284
                    #layout: #(#LayoutFrame 87 0 51 0 137 0 73 0)
ca
parents: 1268
diff changeset
   285
                    #activeHelpKey: #topRelative
ca
parents: 1268
diff changeset
   286
                    #tabable: true
ca
parents: 1268
diff changeset
   287
                    #model: #topFraction
ca
parents: 1268
diff changeset
   288
                    #group: #inputGroup
ca
parents: 1268
diff changeset
   289
                    #type: #numberOrNil
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   290
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   291
                    #modifiedChannel: #modifiedChannel
1304
ca
parents: 1268
diff changeset
   292
                    #acceptOnPointerLeave: false
ca
parents: 1268
diff changeset
   293
                  )
ca
parents: 1268
diff changeset
   294
                 #(#ActionButtonSpec
ca
parents: 1268
diff changeset
   295
                    #attributes: 
ca
parents: 1268
diff changeset
   296
                   #(#tabable
ca
parents: 1268
diff changeset
   297
                      true
ca
parents: 1268
diff changeset
   298
                    )
ca
parents: 1268
diff changeset
   299
                    #name: 'actionRelativeTop'
ca
parents: 1268
diff changeset
   300
                    #layout: #(#LayoutFrame 142 0 51 0 164 0 73 0)
ca
parents: 1268
diff changeset
   301
                    #activeHelpKey: #makeTopRelative
ca
parents: 1268
diff changeset
   302
                    #tabable: true
ca
parents: 1268
diff changeset
   303
                    #model: #relativeTop
ca
parents: 1268
diff changeset
   304
                  )
ca
parents: 1268
diff changeset
   305
                 #(#InputFieldSpec
ca
parents: 1268
diff changeset
   306
                    #attributes: 
ca
parents: 1268
diff changeset
   307
                   #(#tabable
ca
parents: 1268
diff changeset
   308
                      true
ca
parents: 1268
diff changeset
   309
                    )
ca
parents: 1268
diff changeset
   310
                    #name: 'fieldTopOffset'
ca
parents: 1268
diff changeset
   311
                    #layout: #(#LayoutFrame 187 0 51 0 237 0 73 0)
ca
parents: 1268
diff changeset
   312
                    #activeHelpKey: #topAbsolute
ca
parents: 1268
diff changeset
   313
                    #tabable: true
ca
parents: 1268
diff changeset
   314
                    #model: #topOffset
ca
parents: 1268
diff changeset
   315
                    #group: #inputGroup
ca
parents: 1268
diff changeset
   316
                    #type: #numberOrNil
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   317
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   318
                    #modifiedChannel: #modifiedChannel
1304
ca
parents: 1268
diff changeset
   319
                    #acceptOnPointerLeave: false
ca
parents: 1268
diff changeset
   320
                  )
ca
parents: 1268
diff changeset
   321
                 #(#ActionButtonSpec
ca
parents: 1268
diff changeset
   322
                    #attributes: 
ca
parents: 1268
diff changeset
   323
                   #(#tabable
ca
parents: 1268
diff changeset
   324
                      true
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   325
                    )
1304
ca
parents: 1268
diff changeset
   326
                    #name: 'actionAbsoluteTop'
ca
parents: 1268
diff changeset
   327
                    #layout: #(#LayoutFrame 242 0 51 0 264 0 73 0)
ca
parents: 1268
diff changeset
   328
                    #activeHelpKey: #makeTopAbsolute
ca
parents: 1268
diff changeset
   329
                    #tabable: true
ca
parents: 1268
diff changeset
   330
                    #model: #absoluteTop
ca
parents: 1268
diff changeset
   331
                  )
ca
parents: 1268
diff changeset
   332
                 )
ca
parents: 1268
diff changeset
   333
               
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   334
              )
1304
ca
parents: 1268
diff changeset
   335
            )
ca
parents: 1268
diff changeset
   336
           )
ca
parents: 1268
diff changeset
   337
         
ca
parents: 1268
diff changeset
   338
        )
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   339
      )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   340
!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   341
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   342
layoutPointSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   343
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   344
     by the UIPainter of ST/X."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   345
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   346
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   347
     the UIPainter may not be able to read the specification."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   348
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   349
    "
259
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   350
     UIPainter new openOnClass:UILayoutTool andSelector:#layoutPointSpec
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   351
     UILayoutTool new openInterface:#layoutPointSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   352
    "
259
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   353
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   354
    <resource: #canvas>
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   355
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   356
    ^
259
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   357
     
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   358
       #(#FullSpec
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   359
          #window: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   360
           #(#WindowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   361
              #name: 'UILayoutTool'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   362
              #layout: #(#LayoutFrame 216 0 173 0 493 0 296 0)
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   363
              #label: 'UILayoutTool'
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   364
              #min: #(#Point 10 10)
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   365
              #max: #(#Point 1152 900)
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   366
              #bounds: #(#Rectangle 216 173 494 297)
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   367
              #usePreferredExtent: false
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   368
          )
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   369
          #component: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   370
           #(#SpecCollection
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   371
              #collection: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   372
               #(
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   373
                 #(#FramedBoxSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   374
                    #name: 'FramedBox'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   375
                    #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 94 0)
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   376
                    #component: 
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   377
                     #(#SpecCollection
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   378
                        #collection: 
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   379
                         #(
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   380
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   381
                              #name: 'labelOriginY'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   382
                              #layout: #(#AlignmentOrigin 83 0 14 0 1 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   383
                              #label: 'Left:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   384
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   385
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   386
                              #name: 'fieldOriginX'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   387
                              #layout: #(#LayoutFrame 85 0 11 0 135 0 33 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   388
                              #activeHelpKey: #originX
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   389
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   390
                              #model: #leftOffset
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   391
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   392
                              #type: #numberOrNil
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   393
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   394
                    #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   395
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   396
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   397
                              #name: 'labelOriginX'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   398
                              #layout: #(#AlignmentOrigin 83 0 39 0 1 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   399
                              #label: 'Top:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   400
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   401
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   402
                              #name: 'fieldOriginY'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   403
                              #layout: #(#LayoutFrame 85 0 36 0 135 0 58 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   404
                              #activeHelpKey: #originY
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   405
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   406
                              #model: #topOffset
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   407
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   408
                              #type: #numberOrNil
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   409
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   410
                    #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   411
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   412
                        )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   413
                    )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   414
                    #label: 'Origin'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   415
                    #labelPosition: #topLeft
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   416
                )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   417
              )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   418
          )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   419
      )
922
0a5799408f54 assign all inputFields to a common group.
Claus Gittinger <cg@exept.de>
parents: 751
diff changeset
   420
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   421
    "Modified: / 13.8.1998 / 19:52:15 / cg"
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   422
!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   423
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   424
slices
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   425
    ^ #(
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   426
        ( 'Frame'          LayoutFrame)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   427
        ( 'Origin'         LayoutOrigin)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   428
        ( 'Alig.Origin'    AlignmentOrigin)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   429
        ( 'Point'          Point)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   430
        ( 'Rectangle'      Rectangle)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   431
        ( 'Extent'         Extent)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   432
       ) 
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   433
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   434
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   435
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   436
windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   437
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   438
     by the UIPainter of ST/X."
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   439
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   440
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   441
     the UIPainter may not be able to read the specification."
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   442
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   443
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   444
     UIPainter new openOnClass:UILayoutTool andSelector:#windowSpec
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   445
     UILayoutTool new openInterface:#windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   446
     UILayoutTool open
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   447
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   448
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   449
    <resource: #canvas>
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   450
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   451
    ^ 
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   452
     #(#FullSpec
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   453
        #name: #windowSpec
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   454
        #window: 
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   455
       #(#WindowSpec
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   456
          #label: 'UILayoutTool'
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   457
          #name: 'UILayoutTool'
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   458
          #min: #(#Point 10 10)
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   459
          #max: #(#Point 1152 900)
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   460
          #bounds: #(#Rectangle 12 22 312 322)
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   461
        )
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   462
        #component: 
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   463
       #(#SpecCollection
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   464
          #collection: #(
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   465
           #(#NoteBookViewSpec
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   466
              #attributes: 
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   467
             #(#tabable
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   468
                true
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   469
              )
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   470
              #name: 'NoteBook'
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   471
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   472
              #activeHelpKey: #layoutTool
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   473
              #enableChannel: #enableChannel
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   474
              #tabable: true
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   475
              #model: #noteBookModel
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   476
              #menu: #noteBookList
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   477
              #direction: #bottom
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   478
              #canvas: #layoutCanvasHolder
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   479
              #keepCanvasAlive: true
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   480
            )
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   481
           )
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   482
         
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   483
        )
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   484
      )
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   485
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   486
    "Modified: / 5.2.2000 / 15:37:02 / cg"
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   487
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   488
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   489
!UILayoutTool methodsFor:'accessing'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   490
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   491
acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   492
    "return the value of the instance variable 'acceptChannel' (automatically generated)"
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   493
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   494
    ^ masterApplication acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   495
!
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   496
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   497
layout
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   498
    "returns configued layout or nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   499
    "
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   500
    ^ currentTool notNil ifTrue:[currentTool layout]
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   501
                        ifFalse:[nil]
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   502
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   503
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   504
layoutType
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   505
    "returns current layout type or nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   506
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   507
    |slice|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   508
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   509
    (slice := self selectedSlice) notNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   510
        ^ slice last
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   511
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   512
  ^ nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   513
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   514
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   515
layoutView
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   516
    "returns current edited view
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   517
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   518
    ^ layoutView
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   519
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   520
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   521
layoutView:aView type:aTypeOrNil spec:aSpec
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   522
    "change current edited view
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   523
    "
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   524
    |type name list|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   525
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   526
    layoutView := aView.
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   527
    layoutSpec := aSpec.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   528
1074
49ef9991d1d5 disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents: 1072
diff changeset
   529
    (self aspectFor:#defaultExtentEnabled) value:(aSpec class ==  WindowSpec) not.
49ef9991d1d5 disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents: 1072
diff changeset
   530
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   531
    aTypeOrNil notNil ifTrue:[
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   532
        self class slices findFirst:[:e|
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   533
            e last == aTypeOrNil ifTrue:[name := e first. true]
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   534
        ].
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   535
        list := Array with:name
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   536
    ] ifFalse:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   537
        (type := UIPainterView layoutType:layoutView) notNil ifTrue:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   538
            self class slices findFirst:[:e|
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   539
                e last == type ifTrue:[name := e first. true]
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   540
            ].
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   541
            list := tabList.
235
4e6c0d0c6ba5 in case of layout container set extent otherwise all
ca
parents: 221
diff changeset
   542
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   543
            type == #Extent ifTrue:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   544
                aView superView specClass isLayoutContainer ifTrue:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   545
                    list := Array with:name
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   546
                ] ifFalse:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   547
                    list := list copyWith:name
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   548
                ]
235
4e6c0d0c6ba5 in case of layout container set extent otherwise all
ca
parents: 221
diff changeset
   549
            ]
4e6c0d0c6ba5 in case of layout container set extent otherwise all
ca
parents: 221
diff changeset
   550
        ]
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   551
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   552
    self noteBookList  value:list.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   553
    self noteBookModel value:name.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   554
    self update.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   555
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   556
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   557
modifiedHolder:aValueHolder
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   558
    "set the value holder set to true in case of modifying attributes
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   559
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   560
    modifiedHolder notNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   561
        modifiedHolder removeDependent:self. 
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   562
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   563
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   564
    (modifiedHolder := aValueHolder) notNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   565
        modifiedHolder addDependent:self.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   566
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   567
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   568
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   569
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   570
update
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   571
    "update from view
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   572
    "
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   573
    |view|
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   574
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   575
    (selection notNil and:[currentTool notNil]) ifTrue:[
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   576
        (view := layoutView) notNil ifTrue:[
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   577
            currentTool fetch:view spec:layoutSpec
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   578
        ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   579
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   580
        
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   581
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   582
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   583
!UILayoutTool methodsFor:'aspects'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   584
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   585
aspectFor:aKey
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   586
    "returns aspect for a key or nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   587
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   588
  ^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   589
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   590
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   591
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   592
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   593
layoutCanvasHolder
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   594
    |holder|
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   595
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   596
    (holder := builder bindingAt:#layoutCanvasHolder) isNil ifTrue:[
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   597
        holder := ValueHolder new.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   598
        builder aspectAt:#layoutCanvasHolder put:holder
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   599
    ].
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   600
  ^ holder
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   601
!
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   602
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   603
notUsingDefaultExtent
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   604
    |holder|
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   605
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   606
    (holder := builder bindingAt:#notUsingDefaultExtent) isNil ifTrue:[
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   607
        holder := BlockValue forLogicalNot:(self aspectFor:#useDefaultExtent).
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   608
        builder aspectAt:#notUsingDefaultExtent put:holder.
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   609
    ].
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   610
    ^ holder
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   611
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   612
!
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   613
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   614
noteBookList
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   615
    "returns list of tab labels
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   616
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   617
    |holder|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   618
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   619
    (holder := builder bindingAt:#noteBookList) isNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   620
        holder := nil asValue.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   621
        builder aspectAt:#noteBookList put:holder
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   622
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   623
  ^ holder
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   624
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   625
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   626
noteBookModel
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   627
    "automatically generated by UIPainter ..."
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   628
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   629
    |holder|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   630
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   631
    (holder := builder bindingAt:#noteBookModel) isNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   632
        holder := AspectAdaptor new subject:self; forAspect:#selection.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   633
        builder aspectAt:#noteBookModel put:holder.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   634
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   635
    ^ holder
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   636
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   637
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   638
!UILayoutTool methodsFor:'change & update'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   639
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   640
update:something with:aParameter from:changedObject
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   641
    "one of my models changed its value
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   642
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   643
    changedObject ~~ modifiedHolder ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   644
        modifiedHolder value ~~ true ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   645
            modifiedHolder isNil ifFalse:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   646
                modifiedHolder value:true
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   647
            ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   648
        ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   649
    ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   650
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   651
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   652
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   653
!UILayoutTool methodsFor:'converting absolute'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   654
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   655
absolute:what xOrY:xOrY
1198
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   656
    |extent fraction offset fractSymb offsetSymb fractHolder offsetHolder|
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   657
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   658
    extent     := (self layoutView superView computeExtent) perform:xOrY.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   659
    fractSymb  := (what, 'Fraction') asSymbol.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   660
    offsetSymb := (what,   'Offset') asSymbol.
1198
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   661
    fractHolder := (self aspectFor:fractSymb).
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   662
    offsetHolder := (self aspectFor:offsetSymb).
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   663
    fraction   := fractHolder  value.
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   664
    offset     := offsetHolder value.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   665
    offset     := offset + ((fraction * extent) asInteger).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   666
1198
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   667
    offsetHolder value:offset.
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   668
    fractHolder  value:0.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   669
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   670
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   671
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   672
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   673
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   674
absoluteBottom
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   675
    self absolute:'bottom' xOrY:#y
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   676
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   677
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   678
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   679
absoluteLeft
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   680
    self absolute:'left' xOrY:#x
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   681
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   682
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   683
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   684
absoluteRight
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   685
    self absolute:'right' xOrY:#x
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   686
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   687
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   688
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   689
absoluteTop
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   690
    self absolute:'top' xOrY:#y
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   691
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   692
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   693
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   694
!UILayoutTool methodsFor:'converting relative'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   695
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   696
relative:what xOrY:xOrY
1198
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   697
    |extent fraction offset fractSymb offsetSymb fractHolder offsetHolder|
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   698
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   699
    extent     := (self layoutView superView computeExtent) perform:xOrY.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   700
    fractSymb  := (what, 'Fraction') asSymbol.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   701
    offsetSymb := (what,   'Offset') asSymbol.
1198
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   702
    fractHolder := (self aspectFor:fractSymb).
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   703
    offsetHolder := (self aspectFor:offsetSymb).
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   704
    fraction   := fractHolder  value.
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   705
    offset     := offsetHolder value.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   706
    fraction   := (fraction + (offset / extent)) asFloat.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   707
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   708
    (fraction > 1.0) ifTrue:[ fraction := 1.0 ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   709
    (fraction < 0.0) ifTrue:[ fraction := 0 ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   710
1198
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   711
    offsetHolder value:0.
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   712
    fractHolder  value:fraction.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   713
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   714
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   715
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   716
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   717
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   718
relativeBottom
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   719
    self relative:'bottom' xOrY:#y
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   720
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   721
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   722
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   723
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   724
relativeLeft
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   725
    self relative:'left' xOrY:#x
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   726
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   727
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   728
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   729
relativeRight
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   730
    self relative:'right' xOrY:#x
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   731
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   732
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   733
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   734
relativeTop
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   735
    self relative:'top' xOrY:#y
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   736
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   737
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   738
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   739
!UILayoutTool methodsFor:'initialization'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   740
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   741
initialize
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   742
    "initialize channels
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   743
    "
221
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   744
    |slices size|
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   745
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   746
    super initialize.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   747
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   748
    aspects  := IdentityDictionary new.
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   749
    toolsDictionary := IdentityDictionary new.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   750
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   751
    #(  bottomFraction          bottomOffset
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   752
        leftFraction            leftOffset
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   753
        topFraction             topOffset
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   754
        rightFraction           rightOffset
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   755
        leftAlignmentFraction   topAlignmentFraction
1268
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   756
        (useDefaultExtent     false)
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   757
        (defaultExtentEnabled false)
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   758
    )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   759
1268
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   760
    do:[:aKeyOrPair| |holder key val|
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   761
        (key := aKeyOrPair) isSymbol ifFalse:[
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   762
            key := aKeyOrPair first.
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   763
            val := aKeyOrPair second
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   764
        ].
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   765
        holder := val asValue.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   766
        holder addDependent:self.
1268
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   767
        aspects at:key put:holder.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   768
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   769
221
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   770
    slices  := self class slices.
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   771
    size    := slices size - 1.
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   772
    tabList := Array new:size.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   773
221
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   774
    1 to:size do:[:i| tabList at:i put:((slices at:i) first) ].
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   775
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   776
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   777
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   778
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   779
!UILayoutTool methodsFor:'selection'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   780
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   781
selectedSlice
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   782
    "returns slice assigned to selection or nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   783
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   784
    selection notNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   785
        self class slices do:[:aSlice|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   786
            aSlice first = selection ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   787
                ^ aSlice
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   788
            ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   789
        ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   790
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   791
    ^ nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   792
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   793
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   794
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   795
selection
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   796
    ^ selection
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   797
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   798
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   799
selection:aSelection
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   800
    |appl slice sel noteBook key view|
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   801
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   802
    aSelection isNumber ifTrue:[
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   803
        aSelection ~~ 0 ifTrue:[sel := tabList at:aSelection]
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   804
    ] ifFalse:[
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   805
        sel := aSelection
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   806
    ].
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   807
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   808
    selection = sel ifFalse:[
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   809
        (selection := sel) notNil ifTrue:[
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   810
            key := selection asSymbol.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   811
            appl := toolsDictionary at:key ifAbsent:nil.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   812
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   813
            appl isNil ifTrue:[
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   814
                view := SimpleView new.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   815
                slice := self selectedSlice.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   816
                appl  := slice last asString.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   817
                appl := Smalltalk classNamed:(self class name asString, '::', appl).
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   818
                appl := appl new.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   819
                appl masterApplication:self.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   820
                appl createBuilder.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   821
                view client:appl.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   822
                appl window:view.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   823
                toolsDictionary at:key put:appl.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   824
            ] ifFalse:[
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   825
                view := appl window
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   826
            ].
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   827
            modifiedHolder value:true.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   828
        ].
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   829
        currentTool := appl.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   830
        self layoutCanvasHolder value:view.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   831
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   832
    self update
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   833
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   834
    "Modified: / 4.2.2000 / 22:31:41 / cg"
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   835
! !
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   836
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   837
!UILayoutTool::Rectangle class methodsFor:'interface specs'!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   838
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   839
windowSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   840
    "This resource specification was automatically generated
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   841
     by the UIPainter of ST/X."
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   842
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   843
    "Do not manually edit this!! If it is corrupted,
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   844
     the UIPainter may not be able to read the specification."
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   845
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   846
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   847
     UIPainter new openOnClass:UILayoutTool::Rectangle andSelector:#windowSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   848
     UILayoutTool::Rectangle new openInterface:#windowSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   849
     UILayoutTool::Rectangle open
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   850
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   851
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   852
    <resource: #canvas>
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   853
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   854
    ^
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   855
     
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   856
       #(#FullSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   857
          #window: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   858
           #(#WindowSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   859
              #name: 'UILayoutTool-Rectangle'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   860
              #layout: #(#LayoutFrame 291 0 130 0 632 0 328 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   861
              #label: 'UILayoutTool-Rectangle'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   862
              #min: #(#Point 10 10)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   863
              #max: #(#Point 1152 900)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   864
              #bounds: #(#Rectangle 291 130 633 329)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   865
              #usePreferredExtent: false
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   866
          )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   867
          #component: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   868
           #(#SpecCollection
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   869
              #collection: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   870
               #(
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   871
                 #(#UISubSpecification
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   872
                    #name: 'subSpecification'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   873
                    #layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 96 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   874
                    #majorKey: #UILayoutTool
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   875
                    #minorKey: #layoutPointSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   876
                )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   877
                 #(#FramedBoxSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   878
                    #name: 'FramedBox'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   879
                    #layout: #(#LayoutFrame 1 0.0 99 0 0 1.0 194 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   880
                    #component: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   881
                     #(#SpecCollection
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   882
                        #collection: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   883
                         #(
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   884
                           #(#LabelSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   885
                              #name: 'labelCornerY'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   886
                              #layout: #(#AlignmentOrigin 83 0 16 0 1 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   887
                              #label: 'Right:'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   888
                              #adjust: #left
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   889
                          )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   890
                           #(#InputFieldSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   891
                              #name: 'fieldCornerX'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   892
                              #layout: #(#LayoutFrame 85 0 13 0 135 0 35 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   893
                              #activeHelpKey: #cornerX
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   894
                              #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   895
                              #model: #rightOffset
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   896
                              #group: #inputGroup
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   897
                              #type: #numberOrNil
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   898
                              #acceptOnLostFocus: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   899
                    #acceptChannel: #acceptChannel
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   900
                    #modifiedChannel: #modifiedChannel
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   901
                          )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   902
                           #(#LabelSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   903
                              #name: 'labelCornerX'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   904
                              #layout: #(#AlignmentOrigin 83 0 41 0 1 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   905
                              #label: 'Bottom:'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   906
                              #adjust: #left
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   907
                          )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   908
                           #(#InputFieldSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   909
                              #name: 'fieldCornerY'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   910
                              #layout: #(#LayoutFrame 85 0 38 0 135 0 60 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   911
                              #activeHelpKey: #cornerY
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   912
                              #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   913
                              #model: #bottomOffset
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   914
                              #group: #inputGroup
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   915
                              #type: #numberOrNil
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   916
                              #acceptOnLostFocus: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   917
                    #acceptChannel: #acceptChannel
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   918
                    #modifiedChannel: #modifiedChannel
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   919
                          )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   920
                        )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   921
                    )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   922
                    #label: 'Corner'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   923
                    #labelPosition: #topLeft
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   924
                )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   925
              )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   926
          )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   927
      )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   928
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   929
    "Modified: / 13.8.1998 / 19:59:16 / cg"
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   930
! !
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   931
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   932
!UILayoutTool::Rectangle methodsFor:'accessing'!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   933
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   934
fetch:aView spec:aSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   935
    "fetch rectangle
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   936
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   937
    |origin corner|
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   938
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   939
    origin := aView computeOrigin.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   940
    corner := aView computeCorner.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   941
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   942
    (self aspectFor:#leftOffset)   value:(origin x).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   943
    (self aspectFor:#rightOffset)  value:(corner x).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   944
    (self aspectFor:#topOffset)    value:(origin y).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   945
    (self aspectFor:#bottomOffset) value:(corner y).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   946
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   947
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   948
!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   949
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   950
layout
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   951
    "returns current layout as rectangle
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   952
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   953
  ^ Smalltalk::Rectangle left:(((self aspectFor:#leftOffset)   value) ? 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   954
                          top:(((self aspectFor:#topOffset)    value) ? 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   955
                        right:(((self aspectFor:#rightOffset)  value) ? 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   956
                       bottom:(((self aspectFor:#bottomOffset) value) ? 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   957
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   958
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   959
! !
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   960
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   961
!UILayoutTool::AlignmentOrigin class methodsFor:'help specs'!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   962
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   963
helpSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   964
    "This resource specification was automatically generated
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   965
     by the UIHelpTool of ST/X."
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   966
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   967
    "Do not manually edit this!! If it is corrupted,
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   968
     the UIHelpTool may not be able to read the specification."
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   969
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   970
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   971
     UIHelpTool openOnClass:UILayoutTool::AlignmentOrigin    
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   972
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   973
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   974
    <resource: #help>
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   975
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   976
    ^super helpSpec addPairsFrom:#(
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   977
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   978
#alignBottomCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   979
'Aligns the selected widget bottomCenter to location.'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   980
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   981
#alignBottomLeft
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   982
'Aligns the selected widget bottomLeft to location.'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   983
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   984
#alignBottomRight
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   985
'Aligns the selected widget bottomRight to location.'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   986
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   987
#alignCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   988
'Aligns the selected widget center to location.'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   989
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   990
#alignHorizontal
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   991
'Horizontal inset to the location point of the selected widget.'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   992
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   993
#alignLeftCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   994
'Aligns the selected widget leftCenter to location.'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   995
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   996
#alignRightCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   997
'Aligns the selected widget rightCenter to location.'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   998
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   999
#alignTopCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1000
'Aligns the selected widget topCenter to location.'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1001
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1002
#alignTopLeft
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1003
'Aligns the selected widget topLeft to location.'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1004
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1005
#alignTopRight
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1006
'Aligns the selected widget topRight to location.'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1007
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1008
#alignVertical
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1009
'Vertical inset to the location point of the widget.'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1010
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1011
)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1012
! !
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1013
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1014
!UILayoutTool::AlignmentOrigin class methodsFor:'interface specs'!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1015
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1016
windowSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1017
    "This resource specification was automatically generated
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1018
     by the UIPainter of ST/X."
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1019
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1020
    "Do not manually edit this!! If it is corrupted,
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1021
     the UIPainter may not be able to read the specification."
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1022
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1023
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1024
     UIPainter new openOnClass:UILayoutTool::AlignmentOrigin andSelector:#windowSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1025
     UILayoutTool::AlignmentOrigin new openInterface:#windowSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1026
     UILayoutTool::AlignmentOrigin open
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1027
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1028
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1029
    <resource: #canvas>
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1030
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1031
    ^ 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1032
     #(#FullSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1033
        #name: #windowSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1034
        #window: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1035
       #(#WindowSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1036
          #label: 'UILayoutTool-AlignmentOrigin'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1037
          #name: 'UILayoutTool-AlignmentOrigin'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1038
          #min: #(#Point 10 10)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1039
          #max: #(#Point 1152 900)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1040
          #bounds: #(#Rectangle 42 231 447 438)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1041
        )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1042
        #component: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1043
       #(#SpecCollection
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1044
          #collection: #(
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1045
           #(#UISubSpecification
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1046
              #name: 'layoutOriginSpec'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1047
              #layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 111 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1048
              #majorKey: #UILayoutTool
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1049
              #minorKey: #layoutOriginSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1050
            )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1051
           #(#FramedBoxSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1052
              #label: 'Alignment'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1053
              #name: 'FramedBox'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1054
              #layout: #(#LayoutFrame 1 0.0 113 0 0 1.0 208 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1055
              #labelPosition: #topLeft
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1056
              #component: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1057
             #(#SpecCollection
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1058
                #collection: #(
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1059
                 #(#LabelSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1060
                    #label: 'Horizontal:'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1061
                    #name: 'alignHLabel'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1062
                    #layout: #(#AlignmentOrigin 88 0 17 0 1 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1063
                    #adjust: #right
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1064
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1065
                 #(#InputFieldSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1066
                    #attributes: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1067
                   #(#tabable
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1068
                      true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1069
                    )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1070
                    #name: 'leftAlignmentFractionField'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1071
                    #layout: #(#LayoutFrame 90 0 14 0 147 0 36 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1072
                    #activeHelpKey: #alignHorizontal
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1073
                    #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1074
                    #model: #leftAlignmentFraction
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1075
                    #group: #inputGroup
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1076
                    #type: #numberOrNil
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1077
                    #acceptOnLostFocus: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1078
                    #acceptChannel: #acceptChannel
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1079
                    #modifiedChannel: #modifiedChannel
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1080
                    #acceptOnPointerLeave: false
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1081
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1082
                 #(#LabelSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1083
                    #label: 'Vertical:'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1084
                    #name: 'alignVLabel'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1085
                    #layout: #(#AlignmentOrigin 88 0 43 0 1 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1086
                    #adjust: #right
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1087
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1088
                 #(#InputFieldSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1089
                    #attributes: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1090
                   #(#tabable
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1091
                      true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1092
                    )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1093
                    #name: 'topAlignmentFractionField'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1094
                    #layout: #(#LayoutFrame 90 0 40 0 147 0 62 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1095
                    #activeHelpKey: #alignVertical
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1096
                    #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1097
                    #model: #topAlignmentFraction
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1098
                    #group: #inputGroup
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1099
                    #type: #numberOrNil
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1100
                    #acceptOnLostFocus: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1101
                    #acceptChannel: #acceptChannel
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1102
                    #modifiedChannel: #modifiedChannel
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1103
                    #acceptOnPointerLeave: false
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1104
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1105
                 #(#DividerSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1106
                    #name: 'separator1'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1107
                    #layout: #(#LayoutFrame 204 0 19 0 245 0 22 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1108
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1109
                 #(#DividerSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1110
                    #name: 'separator2'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1111
                    #layout: #(#LayoutFrame 204 0 55 0 245 0 58 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1112
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1113
                 #(#DividerSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1114
                    #name: 'separator3'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1115
                    #layout: #(#LayoutFrame 196 0 28 0 199 0 50 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1116
                    #orientation: #vertical
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1117
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1118
                 #(#DividerSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1119
                    #name: 'separator4'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1120
                    #layout: #(#LayoutFrame 250 0 28 0 253 0 50 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1121
                    #orientation: #vertical
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1122
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1123
                 #(#ActionButtonSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1124
                    #attributes: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1125
                   #(#tabable
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1126
                      true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1127
                    )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1128
                    #name: 'alignTopLeft'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1129
                    #layout: #(#LayoutFrame 190 0 14 0 204 0 28 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1130
                    #activeHelpKey: #alignTopLeft
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1131
                    #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1132
                    #model: #alignTopLeft
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1133
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1134
                 #(#ActionButtonSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1135
                    #attributes: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1136
                   #(#tabable
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1137
                      true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1138
                    )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1139
                    #name: 'alignTopCenter'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1140
                    #layout: #(#LayoutFrame 217 0 14 0 231 0 28 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1141
                    #activeHelpKey: #alignTopCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1142
                    #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1143
                    #model: #alignTopCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1144
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1145
                 #(#ActionButtonSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1146
                    #attributes: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1147
                   #(#tabable
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1148
                      true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1149
                    )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1150
                    #name: 'alignTopRight'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1151
                    #layout: #(#LayoutFrame 245 0 14 0 259 0 28 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1152
                    #activeHelpKey: #alignTopRight
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1153
                    #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1154
                    #model: #alignTopRight
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1155
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1156
                 #(#ActionButtonSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1157
                    #attributes: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1158
                   #(#tabable
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1159
                      true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1160
                    )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1161
                    #name: 'alignLeftCenter'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1162
                    #layout: #(#LayoutFrame 190 0 32 0 204 0 46 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1163
                    #activeHelpKey: #alignLeftCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1164
                    #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1165
                    #model: #alignLeftCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1166
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1167
                 #(#ActionButtonSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1168
                    #attributes: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1169
                   #(#tabable
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1170
                      true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1171
                    )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1172
                    #name: 'alignCenter'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1173
                    #layout: #(#LayoutFrame 217 0 32 0 231 0 46 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1174
                    #activeHelpKey: #alignCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1175
                    #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1176
                    #model: #alignCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1177
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1178
                 #(#ActionButtonSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1179
                    #attributes: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1180
                   #(#tabable
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1181
                      true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1182
                    )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1183
                    #name: 'alignRightCenter'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1184
                    #layout: #(#LayoutFrame 245 0 32 0 259 0 46 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1185
                    #activeHelpKey: #alignRightCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1186
                    #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1187
                    #model: #alignRightCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1188
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1189
                 #(#ActionButtonSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1190
                    #attributes: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1191
                   #(#tabable
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1192
                      true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1193
                    )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1194
                    #name: 'alignBottomLeft'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1195
                    #layout: #(#LayoutFrame 190 0 50 0 204 0 64 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1196
                    #activeHelpKey: #alignBottomLeft
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1197
                    #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1198
                    #model: #alignBottomLeft
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1199
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1200
                 #(#ActionButtonSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1201
                    #attributes: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1202
                   #(#tabable
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1203
                      true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1204
                    )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1205
                    #name: 'alignBottomCenter'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1206
                    #layout: #(#LayoutFrame 217 0 50 0 231 0 64 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1207
                    #activeHelpKey: #alignBottomCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1208
                    #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1209
                    #model: #alignBottomCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1210
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1211
                 #(#ActionButtonSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1212
                    #attributes: 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1213
                   #(#tabable
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1214
                      true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1215
                    )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1216
                    #name: 'alignBottomRight'
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1217
                    #layout: #(#LayoutFrame 245 0 50 0 259 0 64 0)
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1218
                    #activeHelpKey: #alignBottomRight
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1219
                    #tabable: true
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1220
                    #model: #alignBottomRight
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1221
                  )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1222
                 )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1223
               
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1224
              )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1225
            )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1226
           )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1227
         
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1228
        )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1229
      )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1230
! !
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1231
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1232
!UILayoutTool::AlignmentOrigin methodsFor:'accessing'!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1233
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1234
fetch:aView spec:aSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1235
    "fetch alignmentOrigin
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1236
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1237
    |layout type 
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1238
     leftAlignmentFractionHolder topAlignmentFractionHolder
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1239
     leftOffsetHolder leftFractionHolder topOffsetHolder topFractionHolder|
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1240
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1241
    type   := UIPainterView layoutType:aView.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1242
    layout := aView geometryLayout.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1243
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1244
    leftOffsetHolder := (self aspectFor:#leftOffset).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1245
    leftFractionHolder := (self aspectFor:#leftFraction).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1246
    topOffsetHolder := (self aspectFor:#topOffset).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1247
    topFractionHolder := (self aspectFor:#topFraction).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1248
    leftAlignmentFractionHolder := (self aspectFor:#leftAlignmentFraction).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1249
    topAlignmentFractionHolder := (self aspectFor:#topAlignmentFraction).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1250
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1251
    layout isLayout ifTrue:[
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1252
        leftOffsetHolder   value:(layout leftOffset).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1253
        leftFractionHolder value:(layout leftFraction).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1254
        topOffsetHolder    value:(layout topOffset).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1255
        topFractionHolder  value:(layout topFraction).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1256
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1257
        type == #AlignmentOrigin ifTrue:[
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1258
            leftAlignmentFractionHolder value:(layout leftAlignmentFraction).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1259
            topAlignmentFractionHolder  value:(layout topAlignmentFraction).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1260
          ^ self
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1261
        ]
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1262
    ] ifFalse:[
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1263
        layout := aView computeOrigin.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1264
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1265
        leftOffsetHolder   value:(layout x).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1266
        leftFractionHolder value:0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1267
        topOffsetHolder    value:(layout y).
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1268
        topFractionHolder  value:0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1269
    ].
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1270
    leftAlignmentFractionHolder value:0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1271
    topAlignmentFractionHolder  value:0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1272
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1273
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1274
!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1275
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1276
layout
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1277
    "returns current layout as alignmentOrigin
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1278
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1279
    |layout|
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1280
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1281
    layout  := Smalltalk::AlignmentOrigin new.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1282
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1283
    layout   leftOffset:((self aspectFor:#leftOffset)   value) ? 0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1284
    layout    topOffset:((self aspectFor:#topOffset)    value) ? 0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1285
    layout leftFraction:((self aspectFor:#leftFraction) value) ? 0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1286
    layout  topFraction:((self aspectFor:#topFraction)  value) ? 0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1287
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1288
    layout leftAlignmentFraction:((self aspectFor:#leftAlignmentFraction) value) ? 0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1289
    layout  topAlignmentFraction:((self aspectFor:#topAlignmentFraction)  value) ? 0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1290
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1291
  ^ layout
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1292
! !
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1293
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1294
!UILayoutTool::AlignmentOrigin methodsFor:'alignment'!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1295
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1296
alignBottomCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1297
    self makeAlignLeft:0.5 top:1
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1298
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1299
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1300
!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1301
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1302
alignBottomLeft
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1303
    self makeAlignLeft:0 top:1
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1304
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1305
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1306
!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1307
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1308
alignBottomRight
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1309
    self makeAlignLeft:1 top:1
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1310
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1311
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1312
!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1313
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1314
alignCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1315
    self makeAlignLeft:0.5 top:0.5
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1316
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1317
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1318
!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1319
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1320
alignLeftCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1321
    self makeAlignLeft:0 top:0.5
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1322
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1323
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1324
!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1325
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1326
alignRightCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1327
    self makeAlignLeft:1 top:0.5
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1328
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1329
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1330
!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1331
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1332
alignTopCenter
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1333
    self makeAlignLeft:0.5 top:0
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1334
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1335
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1336
!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1337
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1338
alignTopLeft
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1339
    self makeAlignLeft:0 top:0
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1340
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1341
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1342
!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1343
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1344
alignTopRight
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1345
    self makeAlignLeft:1 top:0
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1346
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1347
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1348
!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1349
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1350
makeAlignLeft:leftAlignmentFraction top:topAlignmentFraction
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1351
    |lAF tAF lO tO ext lAHolder tAHolder lOHolder tOHolder|
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1352
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1353
    lAF     := (lAHolder := self aspectFor:#leftAlignmentFraction) value ? 0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1354
    tAF     := (tAHolder := self aspectFor:#topAlignmentFraction)  value ? 0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1355
    ext     := (self aspectFor:#layoutView) computeExtent.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1356
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1357
    lAHolder value:leftAlignmentFraction.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1358
    tAHolder  value:topAlignmentFraction.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1359
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1360
    lO := (lOHolder := self aspectFor:#leftOffset) value ? 0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1361
    tO := (tOHolder := self aspectFor:#topOffset)  value ? 0.
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1362
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1363
    lO := lO + (ext x * (leftAlignmentFraction - lAF)).