UILayoutTool.st
author Claus Gittinger <cg@exept.de>
Mon, 28 Jun 1999 13:46:55 +0200
changeset 1150 a3879a40eb37
parent 1077 46793bf50415
child 1198 6b7cfe55105b
permissions -rw-r--r--
checkin from browser
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
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
    17
	instanceVariableNames:'modifiedHolder aspects selection layoutView tabList layoutSpec'
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
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   228
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   229
                    #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   230
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   231
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   232
                              #name: 'actionRelativeLeft'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   233
                              #layout: #(#LayoutFrame 142 0 24 0 164 0 46 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   234
                              #activeHelpKey: #makeLeftRelative
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   235
                              #model: #relativeLeft
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   236
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   237
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   238
                              #name: 'fieldLeftOffset'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   239
                              #layout: #(#LayoutFrame 187 0 24 0 237 0 46 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   240
                              #activeHelpKey: #leftAbsolute
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   241
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   242
                              #model: #leftOffset
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   243
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   244
                              #type: #numberOrNil
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   245
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   246
                    #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   247
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   248
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   249
                              #name: 'actionAbsoluteLeft'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   250
                              #layout: #(#LayoutFrame 242 0 24 0 264 0 46 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   251
                              #activeHelpKey: #makeLeftAbsolute
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   252
                              #model: #absoluteLeft
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   253
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   254
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   255
                              #name: 'labelTop'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   256
                              #layout: #(#AlignmentOrigin 85 0 54 0 1 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   257
                              #label: 'Top:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   258
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   259
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   260
                              #name: 'fieldTopFraction'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   261
                              #layout: #(#LayoutFrame 87 0 51 0 137 0 73 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   262
                              #activeHelpKey: #topRelative
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   263
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   264
                              #model: #topFraction
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   265
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   266
                              #type: #numberOrNil
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   267
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   268
                    #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   269
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   270
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   271
                              #name: 'actionRelativeTop'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   272
                              #layout: #(#LayoutFrame 142 0 51 0 164 0 73 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   273
                              #activeHelpKey: #makeTopRelative
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   274
                              #model: #relativeTop
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   275
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   276
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   277
                              #name: 'fieldTopOffset'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   278
                              #layout: #(#LayoutFrame 187 0 51 0 237 0 73 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   279
                              #activeHelpKey: #topAbsolute
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   280
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   281
                              #model: #topOffset
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   282
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   283
                              #type: #numberOrNil
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   284
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   285
                    #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   286
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   287
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   288
                              #name: 'actionAbsoluteTop'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   289
                              #layout: #(#LayoutFrame 242 0 51 0 264 0 73 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   290
                              #activeHelpKey: #makeTopAbsolute
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   291
                              #model: #absoluteTop
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   292
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   293
                        )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   294
                    )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   295
                    #label: 'Origin'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   296
                    #labelPosition: #topLeft
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   297
                )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   298
              )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   299
          )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   300
      )
922
0a5799408f54 assign all inputFields to a common group.
Claus Gittinger <cg@exept.de>
parents: 751
diff changeset
   301
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   302
    "Modified: / 13.8.1998 / 19:52:04 / cg"
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   303
!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   304
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   305
layoutPointSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   306
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   307
     by the UIPainter of ST/X."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   308
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   309
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   310
     the UIPainter may not be able to read the specification."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   311
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   312
    "
259
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   313
     UIPainter new openOnClass:UILayoutTool andSelector:#layoutPointSpec
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   314
     UILayoutTool new openInterface:#layoutPointSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   315
    "
259
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   316
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   317
    <resource: #canvas>
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   318
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   319
    ^
259
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   320
     
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   321
       #(#FullSpec
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   322
          #window: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   323
           #(#WindowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   324
              #name: 'UILayoutTool'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   325
              #layout: #(#LayoutFrame 216 0 173 0 493 0 296 0)
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   326
              #label: 'UILayoutTool'
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   327
              #min: #(#Point 10 10)
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   328
              #max: #(#Point 1152 900)
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   329
              #bounds: #(#Rectangle 216 173 494 297)
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   330
              #usePreferredExtent: false
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   331
          )
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   332
          #component: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   333
           #(#SpecCollection
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   334
              #collection: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   335
               #(
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   336
                 #(#FramedBoxSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   337
                    #name: 'FramedBox'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   338
                    #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 94 0)
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   339
                    #component: 
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   340
                     #(#SpecCollection
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   341
                        #collection: 
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   342
                         #(
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   343
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   344
                              #name: 'labelOriginY'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   345
                              #layout: #(#AlignmentOrigin 83 0 14 0 1 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   346
                              #label: 'Left:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   347
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   348
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   349
                              #name: 'fieldOriginX'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   350
                              #layout: #(#LayoutFrame 85 0 11 0 135 0 33 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   351
                              #activeHelpKey: #originX
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   352
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   353
                              #model: #leftOffset
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   354
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   355
                              #type: #numberOrNil
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   356
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   357
                    #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   358
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   359
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   360
                              #name: 'labelOriginX'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   361
                              #layout: #(#AlignmentOrigin 83 0 39 0 1 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   362
                              #label: 'Top:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   363
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   364
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   365
                              #name: 'fieldOriginY'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   366
                              #layout: #(#LayoutFrame 85 0 36 0 135 0 58 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   367
                              #activeHelpKey: #originY
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   368
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   369
                              #model: #topOffset
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   370
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   371
                              #type: #numberOrNil
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   372
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   373
                    #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   374
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   375
                        )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   376
                    )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   377
                    #label: 'Origin'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   378
                    #labelPosition: #topLeft
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   379
                )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   380
              )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   381
          )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   382
      )
922
0a5799408f54 assign all inputFields to a common group.
Claus Gittinger <cg@exept.de>
parents: 751
diff changeset
   383
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   384
    "Modified: / 13.8.1998 / 19:52:15 / cg"
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   385
!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   386
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   387
slices
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   388
    ^ #(
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   389
        ( 'Frame'          LayoutFrame)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   390
        ( 'Origin'         LayoutOrigin)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   391
        ( 'Alig.Origin'    AlignmentOrigin)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   392
        ( 'Point'          Point)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   393
        ( 'Rectangle'      Rectangle)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   394
        ( 'Extent'         Extent)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   395
       ) 
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   396
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   397
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   398
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   399
windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   400
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   401
     by the UIPainter of ST/X."
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   402
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   403
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   404
     the UIPainter may not be able to read the specification."
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   405
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   406
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   407
     UIPainter new openOnClass:UILayoutTool andSelector:#windowSpec
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   408
     UILayoutTool new openInterface:#windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   409
     UILayoutTool open
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   410
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   411
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   412
    <resource: #canvas>
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   413
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   414
    ^
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   415
     
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   416
       #(#FullSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   417
          #window: 
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   418
           #(#WindowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   419
              #name: 'UILayoutTool'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   420
              #layout: #(#LayoutFrame 571 0 290 0 870 0 589 0)
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   421
              #label: 'UILayoutTool'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   422
              #min: #(#Point 10 10)
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   423
              #max: #(#Point 1152 900)
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   424
              #bounds: #(#Rectangle 571 290 871 590)
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   425
              #usePreferredExtent: false
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   426
          )
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   427
          #component: 
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   428
           #(#SpecCollection
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   429
              #collection: 
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   430
               #(
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   431
                 #(#NoteBookViewSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   432
                    #name: 'NoteBook'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   433
                    #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   434
                    #activeHelpKey: #layoutTool
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   435
                    #enableChannel: #enableChannel
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   436
                    #tabable: true
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   437
                    #model: #noteBookModel
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   438
                    #menu: #noteBookList
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   439
                    #style: #(#FontDescription #helvetica #medium #roman #'10')
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   440
                    #direction: #bottom
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   441
                    #canvas: #noteBookView
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   442
                )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   443
              )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   444
          )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   445
      )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   446
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   447
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   448
!UILayoutTool methodsFor:'accessing'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   449
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   450
acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   451
    "return the value of the instance variable 'acceptChannel' (automatically generated)"
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   452
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   453
    ^ masterApplication acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   454
!
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   455
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   456
layout
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   457
    "returns configued layout or nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   458
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   459
    |appl|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   460
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   461
    (appl := self noteBookView application) notNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   462
        ^ appl layout
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   463
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   464
  ^ nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   465
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   466
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   467
layoutType
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   468
    "returns current layout type or nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   469
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   470
    |slice|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   471
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   472
    (slice := self selectedSlice) notNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   473
        ^ slice last
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   474
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   475
  ^ nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   476
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   477
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   478
layoutView
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   479
    "returns current edited view
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   480
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   481
    ^ layoutView
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   482
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   483
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   484
layoutView:aView type:aTypeOrNil spec:aSpec
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   485
    "change current edited view
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   486
    "
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   487
    |type name list|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   488
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   489
    layoutView := aView.
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   490
    layoutSpec := aSpec.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   491
1074
49ef9991d1d5 disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents: 1072
diff changeset
   492
    (self aspectFor:#defaultExtentEnabled) value:(aSpec class ==  WindowSpec) not.
49ef9991d1d5 disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents: 1072
diff changeset
   493
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   494
    aTypeOrNil notNil ifTrue:[
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   495
        self class slices findFirst:[:e|
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   496
            e last == aTypeOrNil ifTrue:[name := e first. true]
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   497
        ].
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   498
        list := Array with:name
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   499
    ] ifFalse:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   500
        (type := UIPainterView layoutType:layoutView) notNil ifTrue:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   501
            self class slices findFirst:[:e|
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   502
                e last == type ifTrue:[name := e first. true]
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   503
            ].
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   504
            list := tabList.
235
4e6c0d0c6ba5 in case of layout container set extent otherwise all
ca
parents: 221
diff changeset
   505
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   506
            type == #Extent ifTrue:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   507
                aView superView specClass isLayoutContainer ifTrue:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   508
                    list := Array with:name
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   509
                ] ifFalse:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   510
                    list := list copyWith:name
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   511
                ]
235
4e6c0d0c6ba5 in case of layout container set extent otherwise all
ca
parents: 221
diff changeset
   512
            ]
4e6c0d0c6ba5 in case of layout container set extent otherwise all
ca
parents: 221
diff changeset
   513
        ]
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   514
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   515
    self noteBookList  value:list.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   516
    self noteBookModel value:name.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   517
    self update.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   518
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   519
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   520
modifiedHolder:aValueHolder
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   521
    "set the value holder set to true in case of modifying attributes
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   522
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   523
    modifiedHolder notNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   524
        modifiedHolder removeDependent:self. 
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   525
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   526
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   527
    (modifiedHolder := aValueHolder) notNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   528
        modifiedHolder addDependent:self.
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
update
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   534
    "update from view
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   535
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   536
    |view appl|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   537
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   538
    selection notNil ifTrue:[
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   539
        (view := layoutView) notNil ifTrue:[
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   540
            (appl := self noteBookView application) notNil ifTrue:[
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   541
                appl fetch:view spec:layoutSpec
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   542
            ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   543
        ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   544
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   545
        
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   546
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   547
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   548
!UILayoutTool methodsFor:'aspects'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   549
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   550
aspectFor:aKey
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   551
    "returns aspect for a key or nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   552
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   553
  ^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   554
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   555
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   556
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   557
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   558
notUsingDefaultExtent
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   559
    |holder|
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   560
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   561
    (holder := builder bindingAt:#notUsingDefaultExtent) isNil ifTrue:[
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   562
        holder := BlockValue forLogicalNot:(self aspectFor:#useDefaultExtent).
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   563
        builder aspectAt:#notUsingDefaultExtent put:holder.
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   564
    ].
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   565
    ^ holder
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   566
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   567
!
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   568
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   569
noteBookList
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   570
    "returns list of tab labels
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   571
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   572
    |holder|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   573
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   574
    (holder := builder bindingAt:#noteBookList) isNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   575
        holder := nil asValue.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   576
        builder aspectAt:#noteBookList put:holder
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   577
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   578
  ^ holder
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   579
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   580
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   581
noteBookModel
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   582
    "automatically generated by UIPainter ..."
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   583
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   584
    |holder|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   585
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   586
    (holder := builder bindingAt:#noteBookModel) isNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   587
        holder := AspectAdaptor new subject:self; forAspect:#selection.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   588
        builder aspectAt:#noteBookModel put:holder.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   589
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   590
    ^ holder
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   591
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   592
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   593
noteBookView
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   594
    "automatically generated by UIPainter ...
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   595
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   596
    |holder|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   597
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   598
    (holder := builder bindingAt:#noteBookView) isNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   599
        holder := SubCanvas new.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   600
        builder aspectAt:#noteBookView put:holder
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   601
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   602
  ^ holder
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   603
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   604
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   605
!UILayoutTool methodsFor:'change & update'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   606
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   607
update:something with:aParameter from:changedObject
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   608
    "one of my models changed its value
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   609
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   610
    changedObject ~~ modifiedHolder ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   611
        modifiedHolder value ~~ true ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   612
            modifiedHolder isNil ifFalse:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   613
                modifiedHolder value:true
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   614
            ]
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
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   619
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   620
!UILayoutTool methodsFor:'converting absolute'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   621
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   622
absolute:what xOrY:xOrY
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   623
    |extent fraction offset fractSymb offsetSymb|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   624
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   625
    extent     := (self layoutView superView computeExtent) perform:xOrY.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   626
    fractSymb  := (what, 'Fraction') asSymbol.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   627
    offsetSymb := (what,   'Offset') asSymbol.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   628
    fraction   := (self aspectFor:fractSymb)  value.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   629
    offset     := (self aspectFor:offsetSymb) value.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   630
    offset     := offset + ((fraction * extent) asInteger).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   631
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   632
    (self aspectFor:offsetSymb) value:offset.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   633
    (self aspectFor:fractSymb)  value:0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   634
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   635
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   636
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   637
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   638
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   639
absoluteBottom
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   640
    self absolute:'bottom' xOrY:#y
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   641
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   642
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   643
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   644
absoluteLeft
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   645
    self absolute:'left' xOrY:#x
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   646
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   647
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   648
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   649
absoluteRight
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   650
    self absolute:'right' xOrY:#x
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
absoluteTop
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   655
    self absolute:'top' xOrY:#y
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   656
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   657
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   658
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   659
!UILayoutTool methodsFor:'converting relative'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   660
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   661
relative:what xOrY:xOrY
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   662
    |extent fraction offset fractSymb offsetSymb|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   663
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   664
    extent     := (self layoutView superView computeExtent) perform:xOrY.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   665
    fractSymb  := (what, 'Fraction') asSymbol.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   666
    offsetSymb := (what,   'Offset') asSymbol.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   667
    fraction   := (self aspectFor:fractSymb)  value.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   668
    offset     := (self aspectFor:offsetSymb) value.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   669
    fraction   := (fraction + (offset / extent)) asFloat.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   670
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   671
    (fraction > 1.0) ifTrue:[ fraction := 1.0 ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   672
    (fraction < 0.0) ifTrue:[ fraction := 0 ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   673
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   674
    (self aspectFor:offsetSymb) value:0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   675
    (self aspectFor:fractSymb)  value:fraction.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   676
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   677
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   678
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   679
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   680
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   681
relativeBottom
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   682
    self relative:'bottom' xOrY:#y
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   683
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   684
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   685
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   686
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   687
relativeLeft
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   688
    self relative:'left' xOrY:#x
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   689
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   690
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   691
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   692
relativeRight
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   693
    self relative:'right' xOrY:#x
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   694
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   695
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   696
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   697
relativeTop
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   698
    self relative:'top' xOrY:#y
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   699
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   700
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   701
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   702
!UILayoutTool methodsFor:'initialization'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   703
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   704
initialize
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   705
    "initialize channels
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   706
    "
221
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   707
    |slices size|
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   708
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   709
    super initialize.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   710
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   711
    aspects  := IdentityDictionary new.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   712
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   713
    #(  bottomFraction          bottomOffset
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   714
        leftFraction            leftOffset
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   715
        topFraction             topOffset
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   716
        rightFraction           rightOffset
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   717
        leftAlignmentFraction   topAlignmentFraction
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   718
        useDefaultExtent
1074
49ef9991d1d5 disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents: 1072
diff changeset
   719
        defaultExtentEnabled
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   720
    )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   721
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   722
    do:[:aKey||holder|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   723
        holder := ValueHolder new.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   724
        holder addDependent:self.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   725
        aspects at:aKey put:holder.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   726
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   727
221
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   728
    slices  := self class slices.
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   729
    size    := slices size - 1.
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   730
    tabList := Array new:size.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   731
221
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   732
    1 to:size do:[:i| tabList at:i put:((slices at:i) first) ].
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   733
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   734
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   735
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   736
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   737
!UILayoutTool methodsFor:'selection'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   738
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   739
selectedSlice
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   740
    "returns slice assigned to selection or nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   741
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   742
    selection notNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   743
        self class slices do:[:aSlice|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   744
            aSlice first = selection ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   745
                ^ aSlice
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   746
            ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   747
        ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   748
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   749
    ^ nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   750
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   751
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   752
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   753
selection
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   754
    ^ selection
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   755
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   756
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   757
selection:aSelection
296
e542c6fb0de7 set the background color for the client view
ca
parents: 293
diff changeset
   758
    |appl slice sel noteBook|
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   759
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   760
    aSelection isNumber ifTrue:[
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   761
        aSelection ~~ 0 ifTrue:[sel := tabList at:aSelection]
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   762
    ] ifFalse:[
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   763
        sel := aSelection
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   764
    ].
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   765
    selection = sel ifFalse:[
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   766
        (selection := sel) notNil ifTrue:[
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   767
            slice := self selectedSlice.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   768
            appl  := slice last asString.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   769
            appl := Smalltalk classNamed:(self class name asString, '::', appl).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   770
            appl := appl new.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   771
            appl masterApplication:self.
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   772
            modifiedHolder value:true.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   773
        ].
296
e542c6fb0de7 set the background color for the client view
ca
parents: 293
diff changeset
   774
        noteBook := self noteBookView.
e542c6fb0de7 set the background color for the client view
ca
parents: 293
diff changeset
   775
        noteBook client:appl.
e542c6fb0de7 set the background color for the client view
ca
parents: 293
diff changeset
   776
e542c6fb0de7 set the background color for the client view
ca
parents: 293
diff changeset
   777
        appl notNil ifTrue:[
e542c6fb0de7 set the background color for the client view
ca
parents: 293
diff changeset
   778
            noteBook scrolledView allViewBackground:(noteBook viewBackground).
e542c6fb0de7 set the background color for the client view
ca
parents: 293
diff changeset
   779
        ]
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   780
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   781
    self update
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   782
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   783
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   784
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   785
!UILayoutTool::AlignmentOrigin class methodsFor:'help specs'!
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   786
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   787
helpSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   788
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   789
     by the UIHelpTool of ST/X."
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   790
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   791
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   792
     the UIHelpTool may not be able to read the specification."
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   793
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   794
    "
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   795
     UIHelpTool openOnClass:UILayoutTool::AlignmentOrigin    
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   796
    "
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   797
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   798
    <resource: #help>
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   799
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   800
    ^super helpSpec addPairsFrom:#(
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   801
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   802
#alignBottomCenter
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   803
'Aligns the selected widget bottomCenter to location.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   804
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   805
#alignBottomLeft
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   806
'Aligns the selected widget bottomLeft to location.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   807
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   808
#alignBottomRight
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   809
'Aligns the selected widget bottomRight to location.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   810
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   811
#alignCenter
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   812
'Aligns the selected widget center to location.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   813
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   814
#alignHorizontal
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   815
'Horizontal inset to the location point of the selected widget.'
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   816
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   817
#alignLeftCenter
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
   818
'Aligns the selected widget leftCenter to location.'
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   819
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   820
#alignRightCenter
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   821
'Aligns the selected widget rightCenter to location.'
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   822
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   823
#alignTopCenter
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
   824
'Aligns the selected widget topCenter to location.'
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   825
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   826
#alignTopLeft
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
   827
'Aligns the selected widget topLeft to location.'
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   828
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   829
#alignTopRight
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
   830
'Aligns the selected widget topRight to location.'
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   831
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   832
#alignVertical
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
   833
'Vertical inset to the location point of the widget.'
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   834
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   835
)
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   836
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   837
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   838
!UILayoutTool::AlignmentOrigin class methodsFor:'interface specs'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   839
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   840
windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   841
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   842
     by the UIPainter of ST/X."
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   843
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   844
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   845
     the UIPainter may not be able to read the specification."
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   846
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   847
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   848
     UIPainter new openOnClass:UILayoutTool::AlignmentOrigin andSelector:#windowSpec
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   849
     UILayoutTool::AlignmentOrigin new openInterface:#windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   850
     UILayoutTool::AlignmentOrigin open
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   851
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   852
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   853
    <resource: #canvas>
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   854
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   855
    ^
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   856
     
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   857
       #(#FullSpec
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   858
          #window: 
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   859
           #(#WindowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   860
              #name: 'UILayoutTool-AlignmentOrigin'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   861
              #layout: #(#LayoutFrame 291 0 130 0 695 0 336 0)
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   862
              #label: 'UILayoutTool-AlignmentOrigin'
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   863
              #min: #(#Point 10 10)
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   864
              #max: #(#Point 1152 900)
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   865
              #bounds: #(#Rectangle 291 130 696 337)
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   866
              #usePreferredExtent: false
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   867
          )
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   868
          #component: 
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   869
           #(#SpecCollection
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   870
              #collection: 
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   871
               #(
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   872
                 #(#UISubSpecification
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   873
                    #name: 'layoutOriginSpec'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   874
                    #layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 111 0)
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   875
                    #majorKey: #UILayoutTool
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
   876
                    #minorKey: #layoutOriginSpec
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   877
                )
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   878
                 #(#FramedBoxSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   879
                    #name: 'FramedBox'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   880
                    #layout: #(#LayoutFrame 1 0.0 113 0 0 1.0 208 0)
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   881
                    #component: 
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   882
                     #(#SpecCollection
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   883
                        #collection: 
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   884
                         #(
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   885
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   886
                              #name: 'alignHLabel'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   887
                              #layout: #(#AlignmentOrigin 88 0 17 0 1 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   888
                              #label: 'Horizontal:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   889
                              #adjust: #right
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   890
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   891
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   892
                              #name: 'alignVLabel'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   893
                              #layout: #(#AlignmentOrigin 88 0 43 0 1 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   894
                              #label: 'Vertical:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   895
                              #adjust: #right
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   896
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   897
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   898
                              #name: 'leftAlignmentFractionField'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   899
                              #layout: #(#LayoutFrame 90 0 14 0 147 0 36 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   900
                              #activeHelpKey: #alignHorizontal
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   901
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   902
                              #model: #leftAlignmentFraction
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   903
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   904
                              #type: #numberOrNil
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   905
                              #acceptOnLostFocus: true
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   906
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   907
                    #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   908
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   909
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   910
                              #name: 'topAlignmentFractionField'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   911
                              #layout: #(#LayoutFrame 90 0 40 0 147 0 62 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   912
                              #activeHelpKey: #alignVertical
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   913
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   914
                              #model: #topAlignmentFraction
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   915
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   916
                              #type: #numberOrNil
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   917
                              #acceptOnLostFocus: true
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   918
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   919
                    #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   920
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   921
                           #(#DividerSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   922
                              #name: 'separator1'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   923
                              #layout: #(#LayoutFrame 204 0 19 0 245 0 22 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   924
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   925
                           #(#DividerSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   926
                              #name: 'separator2'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   927
                              #layout: #(#LayoutFrame 204 0 55 0 245 0 58 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   928
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   929
                           #(#DividerSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   930
                              #name: 'separator3'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   931
                              #layout: #(#LayoutFrame 196 0 28 0 199 0 50 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   932
                              #orientation: #vertical
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   933
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   934
                           #(#DividerSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   935
                              #name: 'separator4'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   936
                              #layout: #(#LayoutFrame 250 0 28 0 253 0 50 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   937
                              #orientation: #vertical
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   938
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   939
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   940
                              #name: 'alignBottomRight'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   941
                              #layout: #(#LayoutFrame 245 0 50 0 259 0 64 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   942
                              #activeHelpKey: #alignBottomRight
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   943
                              #model: #alignBottomRight
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   944
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   945
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   946
                              #name: 'alignTopLeft'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   947
                              #layout: #(#LayoutFrame 190 0 14 0 204 0 28 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   948
                              #activeHelpKey: #alignTopLeft
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   949
                              #model: #alignTopLeft
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   950
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   951
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   952
                              #name: 'alignTopRight'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   953
                              #layout: #(#LayoutFrame 245 0 14 0 259 0 28 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   954
                              #activeHelpKey: #alignTopRight
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   955
                              #model: #alignTopRight
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   956
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   957
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   958
                              #name: 'alignBottomLeft'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   959
                              #layout: #(#LayoutFrame 190 0 50 0 204 0 64 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   960
                              #activeHelpKey: #alignBottomLeft
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   961
                              #model: #alignBottomLeft
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   962
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   963
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   964
                              #name: 'alignTopCenter'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   965
                              #layout: #(#LayoutFrame 217 0 14 0 231 0 28 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   966
                              #activeHelpKey: #alignTopCenter
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   967
                              #model: #alignTopCenter
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   968
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   969
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   970
                              #name: 'alignBottomCenter'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   971
                              #layout: #(#LayoutFrame 217 0 50 0 231 0 64 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   972
                              #activeHelpKey: #alignBottomCenter
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   973
                              #model: #alignBottomCenter
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   974
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   975
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   976
                              #name: 'alignLeftCenter'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   977
                              #layout: #(#LayoutFrame 190 0 32 0 204 0 46 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   978
                              #activeHelpKey: #alignLeftCenter
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   979
                              #model: #alignLeftCenter
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   980
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   981
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   982
                              #name: 'alignRightCenter'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   983
                              #layout: #(#LayoutFrame 245 0 32 0 259 0 46 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   984
                              #activeHelpKey: #alignRightCenter
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   985
                              #model: #alignRightCenter
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   986
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   987
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   988
                              #name: 'alignCenter'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
   989
                              #layout: #(#LayoutFrame 217 0 32 0 231 0 46 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   990
                              #activeHelpKey: #alignCenter
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   991
                              #model: #alignCenter
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   992
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   993
                        )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   994
                    )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   995
                    #label: 'Alignment'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
   996
                    #labelPosition: #topLeft
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   997
                )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   998
              )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   999
          )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1000
      )
922
0a5799408f54 assign all inputFields to a common group.
Claus Gittinger <cg@exept.de>
parents: 751
diff changeset
  1001
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1002
    "Modified: / 13.8.1998 / 19:57:47 / cg"
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1003
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1004
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1005
!UILayoutTool::AlignmentOrigin methodsFor:'accessing'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1006
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1007
fetch:aView spec:aSpec
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1008
    "fetch alignmentOrigin
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1009
    "
252
c7ee94ff51c1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
  1010
    |layout type|
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1011
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1012
    type   := UIPainterView layoutType:aView.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1013
    layout := aView geometryLayout.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1014
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1015
    layout isLayout ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1016
        (self aspectFor:#leftOffset)   value:(layout leftOffset).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1017
        (self aspectFor:#leftFraction) value:(layout leftFraction).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1018
        (self aspectFor:#topOffset)    value:(layout topOffset).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1019
        (self aspectFor:#topFraction)  value:(layout topFraction).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1020
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1021
        type == #AlignmentOrigin ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1022
            (self aspectFor:#leftAlignmentFraction) value:(layout leftAlignmentFraction).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1023
            (self aspectFor:#topAlignmentFraction)  value:(layout topAlignmentFraction).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1024
          ^ self
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1025
        ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1026
    ] ifFalse:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1027
        layout := aView computeOrigin.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1028
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1029
        (self aspectFor:#leftOffset)   value:(layout x).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1030
        (self aspectFor:#leftFraction) value:0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1031
        (self aspectFor:#topOffset)    value:(layout y).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1032
        (self aspectFor:#topFraction)  value:0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1033
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1034
    (self aspectFor:#leftAlignmentFraction) value:0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1035
    (self aspectFor:#topAlignmentFraction)  value:0.
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
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1040
layout
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1041
    "returns current layout as alignmentOrigin
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1042
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1043
    |layout|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1044
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1045
    layout  := Smalltalk::AlignmentOrigin new.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1046
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1047
    layout   leftOffset:((self aspectFor:#leftOffset)   value) ? 0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1048
    layout    topOffset:((self aspectFor:#topOffset)    value) ? 0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1049
    layout leftFraction:((self aspectFor:#leftFraction) value) ? 0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1050
    layout  topFraction:((self aspectFor:#topFraction)  value) ? 0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1051
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1052
    layout leftAlignmentFraction:((self aspectFor:#leftAlignmentFraction) value) ? 0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1053
    layout  topAlignmentFraction:((self aspectFor:#topAlignmentFraction)  value) ? 0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1054
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1055
  ^ layout
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1056
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1057
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1058
!UILayoutTool::AlignmentOrigin methodsFor:'alignment'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1059
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1060
alignBottomCenter
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1061
    self makeAlignLeft:0.5 top:1
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1062
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1063
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1064
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1065
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1066
alignBottomLeft
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1067
    self makeAlignLeft:0 top:1
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1068
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1069
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1070
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1071
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1072
alignBottomRight
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1073
    self makeAlignLeft:1 top:1
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1074
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1075
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1076
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1077
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1078
alignCenter
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1079
    self makeAlignLeft:0.5 top:0.5
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1080
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1081
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1082
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1083
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1084
alignLeftCenter
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1085
    self makeAlignLeft:0 top:0.5
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1086
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1087
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1088
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1089
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1090
alignRightCenter
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1091
    self makeAlignLeft:1 top:0.5
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1092
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1093
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1094
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1095
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1096
alignTopCenter
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1097
    self makeAlignLeft:0.5 top:0
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1098
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
alignTopLeft
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1103
    self makeAlignLeft:0 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
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1108
alignTopRight
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1109
    self makeAlignLeft:1 top:0
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1110
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1111
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1112
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1113
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1114
makeAlignLeft:leftAlignmentFraction top:topAlignmentFraction
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1115
    |lAF tAF lO tO ext|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1116
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1117
    lAF     := (self aspectFor:#leftAlignmentFraction) value ? 0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1118
    tAF     := (self aspectFor:#topAlignmentFraction)  value ? 0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1119
    ext     := (self aspectFor:#layoutView) computeExtent.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1120
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1121
    (self aspectFor:#leftAlignmentFraction) value:leftAlignmentFraction.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1122
    (self aspectFor:#topAlignmentFraction)  value:topAlignmentFraction.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1123
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1124
    lO := (self aspectFor:#leftOffset) value ? 0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1125
    tO := (self aspectFor:#topOffset)  value ? 0.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1126
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1127
    lO := lO + (ext x * (leftAlignmentFraction - lAF)).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1128
    tO := tO + (ext y * (topAlignmentFraction  - tAF)).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1129
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1130
    (self aspectFor:#leftOffset) value:(lO rounded).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1131
    (self aspectFor:#topOffset)  value:(tO rounded).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1132
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1133
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1134
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1135
makeAlignTopRight
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1136
    self makeAlignLeft:1 top:0
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1137
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1138
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1139
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1140
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1141
!UILayoutTool::Extent class methodsFor:'help specs'!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1142
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1143
helpSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1144
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1145
     by the UIHelpTool of ST/X."
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1146
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1147
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1148
     the UIHelpTool may not be able to read the specification."
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
  1149
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1150
    "
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1151
     UIHelpTool openOnClass:UILayoutTool::Extent    
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
  1152
    "
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
  1153
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1154
    <resource: #help>
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1155
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1156
    ^super helpSpec addPairsFrom:#(
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1157
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1158
#hrzExtent
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1159
'Horizontal extent of the selected widget.'
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1160
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
  1161
#vrtExtent
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
  1162
'Vertical extent of the selected widget.'
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
  1163
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1164
)
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1165
! !
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1166
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1167
!UILayoutTool::Extent class methodsFor:'interface specs'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1168
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1169
windowSpec
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1170
    "This resource specification was automatically generated
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1171
     by the UIPainter of ST/X."
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1172
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1173
    "Do not manually edit this!! If it is corrupted,
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1174
     the UIPainter may not be able to read the specification."
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1175
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1176
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1177
     UIPainter new openOnClass:UILayoutTool::Extent andSelector:#windowSpec
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1178
     UILayoutTool::Extent new openInterface:#windowSpec
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1179
     UILayoutTool::Extent open
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1180
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1181
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1182
    <resource: #canvas>
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1183
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1184
    ^
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1185
     
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1186
       #(#FullSpec
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1187
          #name: #windowSpec
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1188
          #window: 
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1189
           #(#WindowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1190
              #name: 'UILayoutTool-Extent'
1074
49ef9991d1d5 disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents: 1072
diff changeset
  1191
              #layout: #(#LayoutFrame 216 0 173 0 541 0 321 0)
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1192
              #level: 0
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1193
              #label: 'UILayoutTool-Extent'
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1194
              #min: #(#Point 10 10)
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1195
              #max: #(#Point 1152 900)
1074
49ef9991d1d5 disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents: 1072
diff changeset
  1196
              #bounds: #(#Rectangle 216 173 542 322)
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1197
              #usePreferredExtent: false
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1198
              #returnIsOKInDialog: true
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1199
              #escapeIsCancelInDialog: true
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1200
          )
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1201
          #component: 
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1202
           #(#SpecCollection
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1203
              #collection: 
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1204
               #(
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1205
                 #(#FramedBoxSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1206
                    #name: 'FramedBox'
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1207
                    #layout: #(#LayoutFrame 0 0.0 6 0.0 0 1.0 137 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1208
                    #component: 
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1209
                     #(#SpecCollection
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1210
                        #collection: 
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1211
                         #(
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1212
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1213
                              #name: 'labelWidth'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1214
                              #layout: #(#AlignmentOrigin 89 0 24 0 1 0.5)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1215
                              #label: 'Width:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1216
                              #adjust: #right
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1217
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1218
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1219
                              #name: 'fieldLeftOffset'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1220
                              #layout: #(#LayoutFrame 90 0 13 0 140 0 35 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1221
                              #activeHelpKey: #hrzExtent
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1222
                              #enableChannel: #notUsingDefaultExtent
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1223
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1224
                              #model: #leftOffset
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1225
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1226
                              #type: #numberOrNil
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1227
                              #acceptOnLostFocus: true
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1228
                              #acceptChannel: #acceptChannel
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1229
                              #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1230
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1231
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1232
                              #name: 'labelHeight'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1233
                              #layout: #(#AlignmentOrigin 89 0 49 0 1 0.5)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1234
                              #label: 'Height:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1235
                              #adjust: #right
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1236
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1237
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1238
                              #name: 'fieldRightOffset'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1239
                              #layout: #(#LayoutFrame 90 0 38 0 140 0 60 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1240
                              #activeHelpKey: #vrtExtent
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1241
                              #enableChannel: #notUsingDefaultExtent
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1242
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1243
                              #model: #rightOffset
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1244
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1245
                              #type: #numberOrNil
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1246
                              #acceptOnLostFocus: true
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1247
                              #acceptChannel: #acceptChannel
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1248
                              #modifiedChannel: #modifiedChannel
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1249
                          )
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1250
                           #(#CheckBoxSpec
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1251
                              #name: 'useDefaultExtentCheckBox'
1074
49ef9991d1d5 disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents: 1072
diff changeset
  1252
                              #layout: #(#LayoutFrame -1 0 75 0 296 0 97 0)
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1253
                              #model: #useDefaultExtent
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1254
                              #label: 'Use Widgets Default Extent'
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1255
                              #translateLabel: true
1074
49ef9991d1d5 disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents: 1072
diff changeset
  1256
                              #enableChannel: #defaultExtentEnabled
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1257
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1258
                        )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1259
                    )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1260
                    #label: 'Extent'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1261
                    #labelPosition: #topLeft
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1262
                )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1263
              )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1264
          )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1265
      )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1266
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1267
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1268
!UILayoutTool::Extent methodsFor:'accessing'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1269
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1270
fetch:aView spec:aSpec
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1271
    "fetch extent
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1272
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1273
    |extent|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1274
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1275
    extent  := aView computeExtent.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1276
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1277
    (self aspectFor:#leftOffset)  value:(extent x).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1278
    (self aspectFor:#rightOffset) value:(extent y).
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1279
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1280
    (self aspectFor:#useDefaultExtent) value:aSpec useDefaultExtent 
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1281
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1282
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1283
layout
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1284
    "returns current extent
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1285
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1286
  ^ Smalltalk::Point x:(((self aspectFor:#leftOffset)   value) ? 0)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1287
                     y:(((self aspectFor:#rightOffset)  value) ? 0)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1288
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1289
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  1290
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1291
!UILayoutTool::LayoutFrame class methodsFor:'help specs'!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1292
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1293
helpSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1294
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1295
     by the UIHelpTool of ST/X."
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1296
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1297
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1298
     the UIHelpTool may not be able to read the specification."
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
  1299
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1300
    "
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1301
     UIHelpTool openOnClass:UILayoutTool::LayoutFrame    
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
  1302
    "
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
  1303
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1304
    <resource: #help>
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1305
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1306
    ^super helpSpec addPairsFrom:#(
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
  1307
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
  1308
#bottomAbsolute
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
  1309
'Offset of the bottom edge; positive is to the bottom, negative to the top.'
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
  1310
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1311
#bottomFixPartLayout
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1312
'Set the layout for a fixed area at the bottom of the widgets containers space'
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1313
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1314
#bottomHalfLayout
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1315
'Set the layout for the bottom half of the widgets containers space'
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1316
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1317
#bottomRelative
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1318
'Relative corner y of the selected widget.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1319
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1320
#leftHalfLayout
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1321
'Set the layout for the left half of the widgets containers space'
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1322
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1323
#makeBottomAbsolute
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1324
'Computes current bottom offset and relative corner y to an absolute corner y.'
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1325
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1326
#makeBottomRelative
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
  1327
'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
  1328
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1329
#makeRightAbsolute
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
  1330
'Computes current right offset and relative corner x to an absolute corner x.'
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1331
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1332
#makeRightRelative
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1333
'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
  1334
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1335
#rightAbsolute
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
  1336
'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
  1337
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1338
#rightHalfLayout
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1339
'Set the layout for the right half of the widgets containers space'
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1340
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1341
#rightRelative
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1342
'Relative corner x of the selected widget.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1343
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1344
#topFixPartLayout
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1345
'Set the layout for a fixed area at the top of the widgets containers space'
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1346
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1347
#topHalfLayout
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1348
'Set the layout for the top half of the widgets containers space'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1349
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1350
#topLeftQuarterLayout
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1351
'Set the layout for the top-left quarter of the widgets containers space'
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1352
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1353
#topRightQuarterLayout
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1354
'Set the layout for the top-right quarter of the widgets containers space'
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1355
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1356
#bottomRightQuarterLayout
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1357
'Set the layout for the bottom-right quarter of the widgets containers space'
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1358
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1359
#bottomLeftQuarterLayout
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1360
'Set the layout for the bottom-left quarter of the widgets containers space'
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1361
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1362
)
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1363
! !
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1364
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1365
!UILayoutTool::LayoutFrame class methodsFor:'image specs'!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1366
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1367
setBottomFixPartIcon
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1368
    "This resource specification was automatically generated
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1369
     by the ImageEditor of ST/X."
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1370
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1371
    "Do not manually edit this!! If it is corrupted,
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1372
     the ImageEditor may not be able to read the specification."
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1373
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1374
    "
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1375
     self setBottomFixPartIcon inspect
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1376
     ImageEditor openOnClass:self andSelector:#setBottomFixPartIcon
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1377
    "
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1378
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1379
    <resource: #image>
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1380
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1381
    ^Icon
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1382
        constantNamed:#'UILayoutTool::LayoutFrame setBottomFixPartIcon'
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1383
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H"H"@BH"H @!!DQD@DQDR@BDQDP@QDQH@H"H"@BH"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@X@A @G???????????????<b') ; yourself); yourself]!
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1384
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1385
setBottomHalfIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1386
    "This resource specification was automatically generated
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1387
     by the ImageEditor of ST/X."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1388
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1389
    "Do not manually edit this!! If it is corrupted,
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1390
     the ImageEditor may not be able to read the specification."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1391
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1392
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1393
     self setBottomHalfIcon inspect
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1394
     ImageEditor openOnClass:self andSelector:#setBottomHalfIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1395
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1396
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1397
    <resource: #image>
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1398
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1399
    ^Icon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1400
        constantNamed:#'UILayoutTool::LayoutFrame setBottomHalfIcon'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1401
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"H"H"@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H"H"H"H"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@_????????????????????<b') ; yourself); yourself]!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1402
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1403
setBottomLeftQuarterIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1404
    "This resource specification was automatically generated
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1405
     by the ImageEditor of ST/X."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1406
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1407
    "Do not manually edit this!! If it is corrupted,
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1408
     the ImageEditor may not be able to read the specification."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1409
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1410
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1411
     self setBottomLeftQuarterIcon inspect
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1412
     ImageEditor openOnClass:self andSelector:#setBottomLeftQuarterIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1413
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1414
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1415
    <resource: #image>
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1416
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1417
    ^Icon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1418
        constantNamed:#'UILayoutTool::LayoutFrame setBottomLeftQuarterIcon'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1419
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H"H"@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@H"H"@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @G?@_<A?0G?@_<A?0G?@_<A??<b') ; yourself); yourself]!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1420
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1421
setBottomRightQuarterIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1422
    "This resource specification was automatically generated
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1423
     by the ImageEditor of ST/X."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1424
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1425
    "Do not manually edit this!! If it is corrupted,
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1426
     the ImageEditor may not be able to read the specification."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1427
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1428
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1429
     self setBottomRightQuarterIcon inspect
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1430
     ImageEditor openOnClass:self andSelector:#setBottomRightQuarterIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1431
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1432
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1433
    <resource: #image>
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1434
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1435
    ^Icon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1436
        constantNamed:#'UILayoutTool::LayoutFrame setBottomRightQuarterIcon'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1437
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@@@@!!DQD @@@@@BDQDR@@@@@@HQDQH@@@@@@"H"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@XG? _>A?8G? _>A?8G???<b') ; yourself); yourself]!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1438
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1439
setLeftHalfIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1440
    "This resource specification was automatically generated
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1441
     by the ImageEditor of ST/X."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1442
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1443
    "Do not manually edit this!! If it is corrupted,
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1444
     the ImageEditor may not be able to read the specification."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1445
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1446
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1447
     self setLeftHalfIcon inspect
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1448
     ImageEditor openOnClass:self andSelector:#setLeftHalfIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1449
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1450
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1451
    <resource: #image>
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1452
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1453
    ^Icon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1454
        constantNamed:#'UILayoutTool::LayoutFrame setLeftHalfIcon'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1455
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@BH"H @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@H"H"@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'????@_<A?0G?@_<A?0G?@_<A?0G?@_<A?0G?@_<A??<b') ; yourself); yourself]!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1456
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1457
setRightHalfIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1458
    "This resource specification was automatically generated
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1459
     by the ImageEditor of ST/X."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1460
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1461
    "Do not manually edit this!! If it is corrupted,
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1462
     the ImageEditor may not be able to read the specification."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1463
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1464
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1465
     self setRightHalfIcon inspect
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1466
     ImageEditor openOnClass:self andSelector:#setRightHalfIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1467
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1468
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1469
    <resource: #image>
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1470
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1471
    ^Icon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1472
        constantNamed:#'UILayoutTool::LayoutFrame setRightHalfIcon'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1473
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@"H"H@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BH"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@?8C? O>@?8C? O>@?8C? O>@?8C? O>@?8C???<b') ; yourself); yourself]!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1474
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1475
setToRightQuarterIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1476
    "This resource specification was automatically generated
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1477
     by the ImageEditor of ST/X."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1478
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1479
    "Do not manually edit this!! If it is corrupted,
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1480
     the ImageEditor may not be able to read the specification."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1481
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1482
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1483
     self setToRightQuarterIcon inspect
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1484
     ImageEditor openOnClass:self andSelector:#setToRightQuarterIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1485
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1486
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1487
    <resource: #image>
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1488
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1489
    ^Icon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1490
        constantNamed:#'UILayoutTool::LayoutFrame setToRightQuarterIcon'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1491
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@"H"H@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@?8C? O>@?8C? O>@?8C? @F@@X@A @F@@X@A??<b') ; yourself); yourself]!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1492
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1493
setTopFixPartIcon
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1494
    "This resource specification was automatically generated
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1495
     by the ImageEditor of ST/X."
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1496
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1497
    "Do not manually edit this!! If it is corrupted,
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1498
     the ImageEditor may not be able to read the specification."
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1499
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1500
    "
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1501
     self setTopFixPartIcon inspect
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1502
     ImageEditor openOnClass:self andSelector:#setTopFixPartIcon
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1503
    "
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1504
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1505
    <resource: #image>
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1506
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1507
    ^Icon
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1508
        constantNamed:#'UILayoutTool::LayoutFrame setTopFixPartIcon'
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1509
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@BH"H @"H"H@HQDQ@ADQD @!!DQD@DQDR@BH"H @"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???????????????? @F@@X@A @F@@X@A @F@@X@A??<b') ; yourself); yourself]!
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1510
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1511
setTopHalfIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1512
    "This resource specification was automatically generated
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1513
     by the ImageEditor of ST/X."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1514
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1515
    "Do not manually edit this!! If it is corrupted,
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1516
     the ImageEditor may not be able to read the specification."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1517
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1518
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1519
     self setTopHalfIcon inspect
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1520
     ImageEditor openOnClass:self andSelector:#setTopHalfIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1521
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1522
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1523
    <resource: #image>
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1524
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1525
    ^Icon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1526
        constantNamed:#'UILayoutTool::LayoutFrame setTopHalfIcon'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1527
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @"H"H"H"H"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?????????????????????8@A @F@@X@A @F@@X@A??<b') ; yourself); yourself]!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1528
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1529
setTopLeftQuarterIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1530
    "This resource specification was automatically generated
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1531
     by the ImageEditor of ST/X."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1532
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1533
    "Do not manually edit this!! If it is corrupted,
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1534
     the ImageEditor may not be able to read the specification."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1535
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1536
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1537
     self setTopLeftQuarterIcon inspect
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1538
     ImageEditor openOnClass:self andSelector:#setTopLeftQuarterIcon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1539
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1540
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1541
    <resource: #image>
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1542
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1543
    ^Icon
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1544
        constantNamed:#'UILayoutTool::LayoutFrame setTopLeftQuarterIcon'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1545
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@@@@!!DQD @@@@@BDQDR@@@@@@HQDQH@@@@@@"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???? _>A?8G? _>A?8G? X@A @F@@X@A @F@@X@A??<b') ; yourself); yourself]! !
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1546
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1547
!UILayoutTool::LayoutFrame class methodsFor:'interface specs'!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1548
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1549
windowSpec
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1550
    "This resource specification was automatically generated
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1551
     by the UIPainter of ST/X."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1552
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1553
    "Do not manually edit this!! If it is corrupted,
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1554
     the UIPainter may not be able to read the specification."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1555
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1556
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1557
     UIPainter new openOnClass:UILayoutTool::LayoutFrame andSelector:#windowSpec
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1558
     UILayoutTool::LayoutFrame new openInterface:#windowSpec
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1559
     UILayoutTool::LayoutFrame open
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1560
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1561
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1562
    <resource: #canvas>
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1563
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1564
    ^
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1565
     
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1566
       #(#FullSpec
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1567
          #name: #windowSpec
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1568
          #window: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1569
           #(#WindowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1570
              #name: 'UILayoutTool-LayoutFrame'
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1571
              #layout: #(#LayoutFrame 216 0 173 0 614 0 475 0)
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1572
              #level: 0
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1573
              #label: 'UILayoutTool-LayoutFrame'
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1574
              #min: #(#Point 10 10)
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1575
              #max: #(#Point 1152 900)
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1576
              #bounds: #(#Rectangle 216 173 615 476)
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1577
              #usePreferredExtent: false
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1578
              #forceRecursiveBackground: false
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1579
              #returnIsOKInDialog: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1580
              #escapeIsCancelInDialog: true
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1581
          )
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1582
          #component: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1583
           #(#SpecCollection
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1584
              #collection: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1585
               #(
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1586
                 #(#UISubSpecification
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1587
                    #name: 'layoutOriginSpec'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1588
                    #layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 110 0)
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1589
                    #majorKey: #UILayoutTool
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  1590
                    #minorKey: #layoutOriginSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1591
                )
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1592
                 #(#FramedBoxSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1593
                    #name: 'FramedBox'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1594
                    #layout: #(#LayoutFrame 1 0.0 113 0 0 1.0 214 0)
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1595
                    #component: 
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1596
                     #(#SpecCollection
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1597
                        #collection: 
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1598
                         #(
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1599
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1600
                              #name: 'labelRight'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1601
                              #layout: #(#AlignmentOrigin 88 0 25 0 1 0.5)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1602
                              #label: 'Right:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1603
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1604
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1605
                              #name: 'fieldRightFraction'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1606
                              #layout: #(#LayoutFrame 90 0 14 0 140 0 36 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1607
                              #activeHelpKey: #rightRelative
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1608
                              #model: #rightFraction
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1609
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1610
                              #type: #numberOrNil
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1611
                              #acceptOnLostFocus: true
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1612
                              #acceptChannel: #acceptChannel
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1613
                              #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1614
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1615
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1616
                              #name: 'actionRelativeRight'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1617
                              #layout: #(#LayoutFrame 145 0 14 0 167 0 36 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1618
                              #activeHelpKey: #makeRightRelative
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1619
                              #model: #relativeRight
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1620
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1621
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1622
                              #name: 'fieldRightOffset'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1623
                              #layout: #(#LayoutFrame 190 0 14 0 240 0 36 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1624
                              #activeHelpKey: #rightAbsolute
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1625
                              #model: #rightOffset
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1626
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1627
                              #type: #numberOrNil
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1628
                              #acceptOnLostFocus: true
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1629
                              #acceptChannel: #acceptChannel
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1630
                              #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1631
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1632
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1633
                              #name: 'actionAbsoluteRight'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1634
                              #layout: #(#LayoutFrame 245 0 14 0 267 0 36 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1635
                              #activeHelpKey: #makeRightAbsolute
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1636
                              #model: #absoluteRight
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1637
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1638
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1639
                              #name: 'labelBottom'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1640
                              #layout: #(#AlignmentOrigin 88 0 53 0 1 0.5)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1641
                              #label: 'Bottom:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1642
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1643
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1644
                              #name: 'fieldBottomFraction'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1645
                              #layout: #(#LayoutFrame 90 0 42 0 140 0 64 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1646
                              #activeHelpKey: #bottomRelative
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1647
                              #model: #bottomFraction
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1648
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1649
                              #type: #numberOrNil
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1650
                              #acceptOnLostFocus: true
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1651
                              #acceptChannel: #acceptChannel
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1652
                              #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1653
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1654
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1655
                              #name: 'actionRelativeBottom'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1656
                              #layout: #(#LayoutFrame 145 0 42 0 167 0 64 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1657
                              #activeHelpKey: #makeBottomRelative
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1658
                              #model: #relativeBottom
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1659
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1660
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1661
                              #name: 'fieldBottomOffset'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1662
                              #layout: #(#LayoutFrame 190 0 42 0 240 0 64 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1663
                              #activeHelpKey: #bottomAbsolute
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1664
                              #model: #bottomOffset
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1665
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1666
                              #type: #numberOrNil
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1667
                              #acceptOnLostFocus: true
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1668
                              #acceptChannel: #acceptChannel
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1669
                              #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1670
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1671
                           #(#ActionButtonSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1672
                              #name: 'actionAbsoluteBottom'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  1673
                              #layout: #(#LayoutFrame 245 0 42 0 267 0 64 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1674
                              #activeHelpKey: #makeBottomAbsolute
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1675
                              #model: #absoluteBottom
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1676
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1677
                        )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1678
                    )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1679
                    #label: 'Corner'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1680
                    #labelPosition: #topLeft
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1681
                )
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1682
                 #(#MenuPanelSpec
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1683
                    #name: 'commonLayoutToolBar'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1684
                    #layout: #(#LayoutFrame 10 0.0 224 0 0 1.0 256 0)
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1685
                    #level: 0
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1686
                    #menu: #commonFrameLayoutsMenu
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1687
                    #textDefault: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1688
                )
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1689
              )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1690
          )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1691
      )
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1692
! !
922
0a5799408f54 assign all inputFields to a common group.
Claus Gittinger <cg@exept.de>
parents: 751
diff changeset
  1693
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1694
!UILayoutTool::LayoutFrame class methodsFor:'menu specs'!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1695
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1696
commonFrameLayoutsMenu
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1697
    "This resource specification was automatically generated
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1698
     by the MenuEditor of ST/X."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1699
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1700
    "Do not manually edit this!! If it is corrupted,
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1701
     the MenuEditor may not be able to read the specification."
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1702
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1703
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1704
     MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1705
     (Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu)) startUp
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1706
    "
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1707
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1708
    <resource: #menu>
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1709
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1710
    ^
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1711
     
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1712
       #(#Menu
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1713
          
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1714
           #(
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1715
             #(#MenuItem
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1716
                #label: 'setTopHalfFrame'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1717
                #translateLabel: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1718
                #isButton: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1719
                #nameKey: #setTopHalfFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1720
                #value: #setTopHalfFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1721
                #activeHelpKey: #topHalfLayout
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1722
                #labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setTopHalfIcon)
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1723
            )
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1724
             #(#MenuItem
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1725
                #label: 'setBottomHalfFrame'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1726
                #translateLabel: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1727
                #isButton: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1728
                #nameKey: #setBottomHalfFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1729
                #value: #setBottomHalfFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1730
                #activeHelpKey: #bottomHalfLayout
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1731
                #labelImage: #(#ResourceRetriever nil #setBottomHalfIcon)
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1732
            )
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1733
             #(#MenuItem
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1734
                #label: 'setLeftHalfFrame'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1735
                #translateLabel: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1736
                #isButton: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1737
                #nameKey: #setLeftHalfFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1738
                #value: #setLeftHalfFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1739
                #activeHelpKey: #leftHalfLayout
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1740
                #labelImage: #(#ResourceRetriever nil #setLeftHalfIcon)
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1741
            )
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1742
             #(#MenuItem
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1743
                #label: 'setRightHalfFrame'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1744
                #translateLabel: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1745
                #isButton: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1746
                #nameKey: #setRightHalfFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1747
                #value: #setRightHalfFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1748
                #activeHelpKey: #rightHalfLayout
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1749
                #labelImage: #(#ResourceRetriever nil #setRightHalfIcon)
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1750
            )
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1751
             #(#MenuItem
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1752
                #label: ''
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1753
            )
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1754
             #(#MenuItem
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1755
                #label: 'setTopLeftQuarterFrame'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1756
                #translateLabel: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1757
                #isButton: true
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1758
                #activeHelpKey: #topLeftQuarterLayout
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1759
                #nameKey: #setTopLeftQuarterFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1760
                #value: #setTopLeftQuarterFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1761
                #labelImage: #(#ResourceRetriever nil #setTopLeftQuarterIcon)
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1762
            )
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1763
             #(#MenuItem
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1764
                #label: 'setTopRightQuarterFrame'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1765
                #translateLabel: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1766
                #isButton: true
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1767
                #activeHelpKey: #topRightQuarterLayout
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1768
                #nameKey: #setTopRightQuarterFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1769
                #value: #setTopRightQuarterFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1770
                #labelImage: #(#ResourceRetriever nil #setToRightQuarterIcon)
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1771
            )
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1772
             #(#MenuItem
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1773
                #label: 'setBottomRightQuarterFrame'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1774
                #translateLabel: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1775
                #isButton: true
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1776
                #activeHelpKey: #bottomRightQuarterLayout
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1777
                #nameKey: #setBottomRightQuarterFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1778
                #value: #setBottomRightQuarterFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1779
                #labelImage: #(#ResourceRetriever nil #setBottomRightQuarterIcon)
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1780
            )
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1781
             #(#MenuItem
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1782
                #label: 'setBottomLeftQuarterFrame'
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1783
                #translateLabel: true
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1784
                #activeHelpKey: #bottomLeftQuarterLayout
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1785
                #isButton: true
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1786
                #nameKey: #setBottomLeftQuarterFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1787
                #value: #setBottomLeftQuarterFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1788
                #labelImage: #(#ResourceRetriever nil #setBottomLeftQuarterIcon)
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1789
            )
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1790
             #(#MenuItem
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1791
                #label: ''
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1792
            )
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1793
             #(#MenuItem
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1794
                #label: 'setTopFixPartFrame'
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1795
                #translateLabel: true
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1796
                #isButton: true
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1797
                #nameKey: #setTopFixPartFrame
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1798
                #value: #setTopFixPartFrame
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1799
                #activeHelpKey: #topFixPartLayout
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1800
                #labelImage: #(#ResourceRetriever nil #setTopFixPartIcon)
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1801
            )
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1802
             #(#MenuItem
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1803
                #label: 'setBottomFixPartFrame'
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1804
                #translateLabel: true
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1805
                #isButton: true
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1806
                #nameKey: #setBottomFixPartFrame
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1807
                #value: #setBottomFixPartFrame
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1808
                #activeHelpKey: #bottomFixPartLayout
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1809
                #labelImage: #(#ResourceRetriever nil #setBottomFixPartIcon)
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1810
            )
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1811
          ) nil
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1812
          nil
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1813
      )
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1814
! !
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1815
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1816
!UILayoutTool::LayoutFrame methodsFor:'accessing'!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1817
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1818
fetch:aView spec:aSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1819
    |layout|
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1820
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1821
    layout  := UIPainterView asLayoutFrameFromView:aView.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1822
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1823
    (self aspectFor:#leftOffset)     value:(layout leftOffset).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1824
    (self aspectFor:#leftFraction)   value:(layout leftFraction).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1825
    (self aspectFor:#topOffset)      value:(layout topOffset).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1826
    (self aspectFor:#topFraction)    value:(layout topFraction).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1827
    (self aspectFor:#rightOffset)    value:(layout rightOffset).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1828
    (self aspectFor:#bottomOffset)   value:(layout bottomOffset).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1829
    (self aspectFor:#rightFraction)  value:(layout rightFraction).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1830
    (self aspectFor:#bottomFraction) value:(layout bottomFraction).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1831
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1832
!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1833
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1834
layout
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1835
    "returns current layout as layoutFrame
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1836
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1837
    |layout|
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1838
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1839
    layout  := Smalltalk::LayoutFrame new.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1840
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1841
    layout     leftOffset:((self aspectFor:#leftOffset)     value) ? 0.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1842
    layout    rightOffset:((self aspectFor:#rightOffset)    value) ? 0.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1843
    layout      topOffset:((self aspectFor:#topOffset)      value) ? 0.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1844
    layout   bottomOffset:((self aspectFor:#bottomOffset)   value) ? 0.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1845
    layout   leftFraction:((self aspectFor:#leftFraction)   value) ? 0.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1846
    layout  rightFraction:((self aspectFor:#rightFraction)  value) ? 0.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1847
    layout    topFraction:((self aspectFor:#topFraction)    value) ? 0.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1848
    layout bottomFraction:((self aspectFor:#bottomFraction) value) ? 0.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1849
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1850
  ^ layout
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1851
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1852
! !
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1853
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1854
!UILayoutTool::LayoutFrame methodsFor:'common frames'!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1855
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1856
setBottomFixPartFrame
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1857
    self
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1858
        setFrameLeft:0   offset:0 
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1859
        right:1          offset:0 
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1860
        top:1            offset:-30 
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1861
        bottom:1         offset:0
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1862
!
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1863
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1864
setBottomHalfFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1865
    self
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1866
        setFrameLeft:0  offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1867
        right:1         offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1868
        top:0.5         offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1869
        bottom:1        offset:0
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1870
!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1871
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1872
setBottomLeftQuarterFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1873
    self
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1874
        setFrameLeft:0   offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1875
        right:0.5        offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1876
        top:0.5          offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1877
        bottom:1         offset:0
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1878
!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1879
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1880
setBottomRightQuarterFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1881
    self
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1882
        setFrameLeft:0.5 offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1883
        right:1          offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1884
        top:0.5          offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1885
        bottom:1         offset:0
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1886
!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1887
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1888
setFrameLeft:lF offset:lO right:rF offset:rO top:tF offset:tO bottom:bF offset:bO
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1889
    (self aspectFor:#leftOffset)     value:lO.
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1890
    (self aspectFor:#rightOffset)    value:rO.
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1891
    (self aspectFor:#topOffset)      value:tO.
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1892
    (self aspectFor:#bottomOffset)   value:bO.
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1893
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1894
    (self aspectFor:#leftFraction)   value:lF.
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1895
    (self aspectFor:#rightFraction)  value:rF.
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1896
    (self aspectFor:#topFraction)    value:tF.
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1897
    (self aspectFor:#bottomFraction) value:bF.
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1898
!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1899
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1900
setLeftHalfFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1901
    self
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1902
        setFrameLeft:0  offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1903
        right:0.5       offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1904
        top:0           offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1905
        bottom:1        offset:0
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1906
!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1907
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1908
setRightHalfFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1909
    self
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1910
        setFrameLeft:0.5 offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1911
        right:1          offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1912
        top:0            offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1913
        bottom:1         offset:0
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1914
!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1915
1077
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1916
setTopFixPartFrame
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1917
    self
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1918
        setFrameLeft:0   offset:0 
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1919
        right:1          offset:0 
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1920
        top:0            offset:0 
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1921
        bottom:0         offset:30
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1922
!
46793bf50415 two more common layouts added.
Claus Gittinger <cg@exept.de>
parents: 1074
diff changeset
  1923
1070
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1924
setTopHalfFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1925
    self
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1926
        setFrameLeft:0   offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1927
        right:1          offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1928
        top:0            offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1929
        bottom:0.5       offset:0
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1930
!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1931
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1932
setTopLeftQuarterFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1933
    self
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1934
        setFrameLeft:0   offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1935
        right:0.5        offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1936
        top:0            offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1937
        bottom:0.5       offset:0
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1938
!
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1939
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1940
setTopRightQuarterFrame
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1941
    self
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1942
        setFrameLeft:0.5 offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1943
        right:1          offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1944
        top:0            offset:0 
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1945
        bottom:0.5       offset:0
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1946
! !
1735e40c6825 added quick-buttons for common layouts.
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  1947
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1948
!UILayoutTool::LayoutOrigin class methodsFor:'interface specs'!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1949
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1950
windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1951
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1952
     by the UIPainter of ST/X."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1953
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1954
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1955
     the UIPainter may not be able to read the specification."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1956
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1957
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1958
     UIPainter new openOnClass:UILayoutTool::LayoutOrigin andSelector:#windowSpec
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1959
     UILayoutTool::LayoutOrigin new openInterface:#windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1960
     UILayoutTool::LayoutOrigin open
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1961
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1962
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1963
    <resource: #canvas>
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1964
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1965
    ^
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1966
     
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1967
       #(#FullSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1968
          #window: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1969
           #(#WindowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1970
              #name: 'UILayoutTool-LayoutOrigin'
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1971
              #layout: #(#LayoutFrame 290 0 420 0 647 0 565 0)
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1972
              #label: 'UILayoutTool-LayoutOrigin'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1973
              #min: #(#Point 10 10)
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1974
              #max: #(#Point 1152 900)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1975
              #bounds: #(#Rectangle 290 420 648 566)
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1976
              #usePreferredExtent: false
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1977
          )
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1978
          #component: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1979
           #(#SpecCollection
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1980
              #collection: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1981
               #(
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1982
                 #(#UISubSpecification
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1983
                    #name: 'layoutOriginSpec'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  1984
                    #layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 110 0)
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1985
                    #majorKey: #UILayoutTool
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  1986
                    #minorKey: #layoutOriginSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1987
                )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1988
              )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1989
          )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1990
      )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1991
! !
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1992
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1993
!UILayoutTool::LayoutOrigin methodsFor:'accessing'!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1994
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  1995
fetch:aView spec:aSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1996
    "fetch layoutOrigin
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1997
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1998
    |layout|
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  1999
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2000
    layout  := UIPainterView asLayoutFrameFromView:aView.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2001
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2002
    (self aspectFor:#leftOffset)   value:(layout leftOffset).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2003
    (self aspectFor:#leftFraction) value:(layout leftFraction).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2004
    (self aspectFor:#topOffset)    value:(layout topOffset).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2005
    (self aspectFor:#topFraction)  value:(layout topFraction).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2006
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2007
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2008
!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2009
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2010
layout
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2011
    "returns current layout as layoutOrigin
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2012
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2013
    |layout|
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2014
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2015
    layout  := Smalltalk::LayoutOrigin new.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2016
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2017
    layout   leftOffset:((self aspectFor:#leftOffset)   value) ? 0.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2018
    layout    topOffset:((self aspectFor:#topOffset)    value) ? 0.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2019
    layout leftFraction:((self aspectFor:#leftFraction) value) ? 0.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2020
    layout  topFraction:((self aspectFor:#topFraction)  value) ? 0.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2021
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2022
  ^ layout
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2023
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2024
! !
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2025
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2026
!UILayoutTool::Point class methodsFor:'interface specs'!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2027
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2028
windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2029
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2030
     by the UIPainter of ST/X."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2031
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2032
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2033
     the UIPainter may not be able to read the specification."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2034
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2035
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2036
     UIPainter new openOnClass:UILayoutTool::Point andSelector:#windowSpec
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2037
     UILayoutTool::Point new openInterface:#windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2038
     UILayoutTool::Point open
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2039
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2040
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2041
    <resource: #canvas>
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2042
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2043
    ^
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2044
     
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2045
       #(#FullSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2046
          #window: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2047
           #(#WindowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2048
              #name: 'UILayoutTool-Point'
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2049
              #layout: #(#LayoutFrame 324 0 410 0 618 0 547 0)
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2050
              #label: 'UILayoutTool-Point'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2051
              #min: #(#Point 10 10)
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2052
              #max: #(#Point 1152 900)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2053
              #bounds: #(#Rectangle 324 410 619 548)
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2054
              #usePreferredExtent: false
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2055
          )
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2056
          #component: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2057
           #(#SpecCollection
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2058
              #collection: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2059
               #(
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2060
                 #(#UISubSpecification
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2061
                    #name: 'layoutPointSpec'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2062
                    #layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 100 0)
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2063
                    #majorKey: #UILayoutTool
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2064
                    #minorKey: #layoutPointSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2065
                )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2066
              )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2067
          )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2068
      )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2069
! !
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2070
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2071
!UILayoutTool::Point methodsFor:'accessing'!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2072
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  2073
fetch:aView spec:aSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2074
    "fetch point
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2075
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2076
    |origin|
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2077
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2078
    origin  := aView computeOrigin.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2079
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2080
    (self aspectFor:#leftOffset) value:(origin x).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2081
    (self aspectFor:#topOffset)  value:(origin y).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2082
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2083
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2084
!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2085
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2086
layout
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2087
    "returns current layout as point
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2088
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2089
  ^ Smalltalk::Point x:(((self aspectFor:#leftOffset) value) ? 0)
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2090
                     y:(((self aspectFor:#topOffset)  value) ? 0)
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2091
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2092
! !
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2093
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2094
!UILayoutTool::Rectangle class methodsFor:'interface specs'!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2095
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2096
windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2097
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2098
     by the UIPainter of ST/X."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2099
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2100
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2101
     the UIPainter may not be able to read the specification."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2102
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2103
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2104
     UIPainter new openOnClass:UILayoutTool::Rectangle andSelector:#windowSpec
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2105
     UILayoutTool::Rectangle new openInterface:#windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2106
     UILayoutTool::Rectangle open
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2107
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2108
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2109
    <resource: #canvas>
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2110
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2111
    ^
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2112
     
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2113
       #(#FullSpec
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  2114
          #window: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2115
           #(#WindowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2116
              #name: 'UILayoutTool-Rectangle'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  2117
              #layout: #(#LayoutFrame 291 0 130 0 632 0 328 0)
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
  2118
              #label: 'UILayoutTool-Rectangle'
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  2119
              #min: #(#Point 10 10)
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  2120
              #max: #(#Point 1152 900)
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  2121
              #bounds: #(#Rectangle 291 130 633 329)
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  2122
              #usePreferredExtent: false
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2123
          )
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  2124
          #component: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2125
           #(#SpecCollection
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  2126
              #collection: 
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2127
               #(
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2128
                 #(#UISubSpecification
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  2129
                    #name: 'subSpecification'
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2130
                    #layout: #(#LayoutFrame 1 0.0 6 0 0 1.0 96 0)
690
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  2131
                    #majorKey: #UILayoutTool
a1033b88a8e8 consistent naming of the labels
tz
parents: 296
diff changeset
  2132
                    #minorKey: #layoutPointSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2133
                )
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2134
                 #(#FramedBoxSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2135
                    #name: 'FramedBox'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2136
                    #layout: #(#LayoutFrame 1 0.0 99 0 0 1.0 194 0)
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2137
                    #component: 
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2138
                     #(#SpecCollection
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2139
                        #collection: 
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2140
                         #(
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2141
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2142
                              #name: 'labelCornerY'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  2143
                              #layout: #(#AlignmentOrigin 83 0 16 0 1 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2144
                              #label: 'Right:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2145
                              #adjust: #left
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2146
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2147
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2148
                              #name: 'fieldCornerX'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  2149
                              #layout: #(#LayoutFrame 85 0 13 0 135 0 35 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2150
                              #activeHelpKey: #cornerX
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2151
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2152
                              #model: #rightOffset
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  2153
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2154
                              #type: #numberOrNil
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  2155
                              #acceptOnLostFocus: true
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
  2156
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
  2157
                    #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2158
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2159
                           #(#LabelSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2160
                              #name: 'labelCornerX'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  2161
                              #layout: #(#AlignmentOrigin 83 0 41 0 1 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2162
                              #label: 'Bottom:'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2163
                              #adjust: #left
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2164
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2165
                           #(#InputFieldSpec
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2166
                              #name: 'fieldCornerY'
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  2167
                              #layout: #(#LayoutFrame 85 0 38 0 135 0 60 0)
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2168
                              #activeHelpKey: #cornerY
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2169
                              #tabable: true
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2170
                              #model: #bottomOffset
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  2171
                              #group: #inputGroup
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2172
                              #type: #numberOrNil
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  2173
                              #acceptOnLostFocus: true
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
  2174
                    #acceptChannel: #acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
  2175
                    #modifiedChannel: #modifiedChannel
751
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2176
                          )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2177
                        )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2178
                    )
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2179
                    #label: 'Corner'
b182b42defd0 FramedBoxes for the UILayoutTool!
tz
parents: 741
diff changeset
  2180
                    #labelPosition: #topLeft
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2181
                )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2182
              )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2183
          )
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2184
      )
922
0a5799408f54 assign all inputFields to a common group.
Claus Gittinger <cg@exept.de>
parents: 751
diff changeset
  2185
949
2e3469100a6a fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 922
diff changeset
  2186
    "Modified: / 13.8.1998 / 19:59:16 / cg"
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2187
! !
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2188
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2189
!UILayoutTool::Rectangle methodsFor:'accessing'!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2190
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
  2191
fetch:aView spec:aSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2192
    "fetch rectangle
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2193
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2194
    |origin corner|
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2195
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2196
    origin := aView computeOrigin.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2197
    corner := aView computeCorner.
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2198
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2199
    (self aspectFor:#leftOffset)   value:(origin x).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2200
    (self aspectFor:#rightOffset)  value:(corner x).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2201
    (self aspectFor:#topOffset)    value:(origin y).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2202
    (self aspectFor:#bottomOffset) value:(corner y).
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2203
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2204
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2205
!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2206
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2207
layout
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2208
    "returns current layout as rectangle
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2209
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2210
  ^ Smalltalk::Rectangle left:(((self aspectFor:#leftOffset)   value) ? 0)
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2211
                          top:(((self aspectFor:#topOffset)    value) ? 0)
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2212
                        right:(((self aspectFor:#rightOffset)  value) ? 0)
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2213
                       bottom:(((self aspectFor:#bottomOffset) value) ? 0)
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2214
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2215
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2216
! !
700f2ee9911e add help for components
ca
parents: 163
diff changeset
  2217
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  2218
!UILayoutTool class methodsFor:'documentation'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  2219
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  2220
version
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  2221
    ^ '$Header$'
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  2222
! !