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