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