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