UILayoutTool.st
author Stefan Vogel <sv@exept.de>
Thu, 16 Jan 2014 15:32:51 +0100
changeset 3066 a8e197ceebed
parent 3052 8734833de8fe
child 3116 21e748176901
permissions -rw-r--r--
Replace references to Diplay with "Screen current" - where appropriate
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
"
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
    12
"{ Package: 'stx:libtool2' }"
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
    13
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    14
ApplicationModel subclass:#UILayoutTool
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
    15
	instanceVariableNames:'modifiedHolder aspects selection currentTool layoutView tabList
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
    16
		layoutSpec toolsDictionary'
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    17
	classVariableNames:''
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    18
	poolDictionaries:''
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    19
	category:'Interface-UIPainter'
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    20
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    21
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
    22
ApplicationModel subclass:#AnyLayout
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
    23
	instanceVariableNames:''
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
    24
	classVariableNames:''
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
    25
	poolDictionaries:''
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
    26
	privateIn:UILayoutTool
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
    27
!
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
    28
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    29
UILayoutTool::AnyLayout subclass:#AlignmentOrigin
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    30
	instanceVariableNames:''
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    31
	classVariableNames:''
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    32
	poolDictionaries:''
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    33
	privateIn:UILayoutTool
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    34
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    35
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    36
UILayoutTool::AnyLayout subclass:#Extent
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    37
	instanceVariableNames:''
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    38
	classVariableNames:''
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    39
	poolDictionaries:''
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    40
	privateIn:UILayoutTool
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    41
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    42
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
    43
UILayoutTool::AnyLayout subclass:#LayoutFrame
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
    44
	instanceVariableNames:''
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
    45
	classVariableNames:'DefaultFixPartHeight'
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
    46
	poolDictionaries:''
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
    47
	privateIn:UILayoutTool
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
    48
!
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
    49
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
    50
UILayoutTool::AnyLayout subclass:#LayoutOrigin
1310
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    51
	instanceVariableNames:''
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    52
	classVariableNames:''
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    53
	poolDictionaries:''
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    54
	privateIn:UILayoutTool
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    55
!
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    56
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
    57
UILayoutTool::AnyLayout subclass:#Point
1310
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    58
	instanceVariableNames:''
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    59
	classVariableNames:''
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    60
	poolDictionaries:''
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    61
	privateIn:UILayoutTool
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    62
!
572125002ce9 make tabable in LayoutFrame
ca
parents: 1305
diff changeset
    63
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
    64
UILayoutTool::AnyLayout subclass:#Rectangle
1304
ca
parents: 1268
diff changeset
    65
	instanceVariableNames:''
ca
parents: 1268
diff changeset
    66
	classVariableNames:''
ca
parents: 1268
diff changeset
    67
	poolDictionaries:''
ca
parents: 1268
diff changeset
    68
	privateIn:UILayoutTool
ca
parents: 1268
diff changeset
    69
!
ca
parents: 1268
diff changeset
    70
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    71
!UILayoutTool class methodsFor:'documentation'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    72
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    73
copyright
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    74
"
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    75
 COPYRIGHT (c) 1995 by eXept Software AG
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    76
              All Rights Reserved
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    77
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    78
 This software is furnished under a license and may be used
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    79
 only in accordance with the terms of that license and with the
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    80
 inclusion of the above copyright notice.   This software may not
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    81
 be provided or otherwise made available to, or used by, any
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    82
 other person.  No title to or ownership of the software is
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    83
 hereby transferred.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    84
"
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    85
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
documentation
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    91
"
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    92
    used by the UIPainter to manipulate the layout of the selected component
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    93
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    94
    [author:]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    95
        Claus Atzkern
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    96
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    97
    [see also:]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    98
        UIPainter
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
    99
        UIHelpTool
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   100
        UISpecificationTool
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   101
"
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   102
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
!UILayoutTool class methodsFor:'constants'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   107
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   108
label
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   109
    ^ 'Layout'
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   110
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   111
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   112
!UILayoutTool class methodsFor:'help specs'!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   113
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   114
helpSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   115
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   116
     by the UIHelpTool of ST/X."
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   117
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   118
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   119
     the UIHelpTool may not be able to read the specification."
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   120
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   121
    "
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   122
     UIHelpTool openOnClass:UILayoutTool    
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   123
    "
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   124
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   125
    <resource: #help>
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   126
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   127
    ^super helpSpec addPairsFrom:#(
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   128
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   129
#cornerX
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   130
'Absolute corner x of the selected widget.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   131
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   132
#cornerY
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   133
'Absolute corner y of the selected widget.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   134
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   135
#layoutTool
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   136
'Tool to set the layout of the selected widget.'
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   137
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   138
#leftAbsolute
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
   139
'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
   140
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   141
#leftRelative
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   142
'Relative origin x of the selected widget.'
201
b10f071028cb *** empty log message ***
ca
parents: 186
diff changeset
   143
b10f071028cb *** empty log message ***
ca
parents: 186
diff changeset
   144
#makeLeftAbsolute
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   145
'Compute pure-absolute x'
201
b10f071028cb *** empty log message ***
ca
parents: 186
diff changeset
   146
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   147
#makeLeftRelative
1955
91610d2b87f7 help texts
Claus Gittinger <cg@exept.de>
parents: 1874
diff changeset
   148
'Compute pure-fractional x.'
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   149
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   150
#makeLeftRelativeFromRight
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   151
'Compute fraction+offset for x relative to containers right.'
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   152
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   153
#makeTopAbsolute
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   154
'Compute pure-absolute y.'
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   155
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   156
#makeTopRelative
1955
91610d2b87f7 help texts
Claus Gittinger <cg@exept.de>
parents: 1874
diff changeset
   157
'Compute pure-fractional y.'
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   158
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   159
#makeTopRelativeFromBottom
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   160
'Compute fraction+offset for y relative to containers bottom.'
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   161
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   162
#originX
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   163
'Absolute origin x of the selected widget.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   164
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   165
#originY
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   166
'Absolute origin y of the selected widget.'
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   167
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   168
#topAbsolute
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
   169
'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
   170
201
b10f071028cb *** empty log message ***
ca
parents: 186
diff changeset
   171
#topRelative
714
61d4a7df2574 some changes for the docu
tz
parents: 690
diff changeset
   172
'Relative origin y of the selected widget.'
201
b10f071028cb *** empty log message ***
ca
parents: 186
diff changeset
   173
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   174
)
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   175
! !
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   176
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   177
!UILayoutTool class methodsFor:'interface specs'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   178
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   179
layoutOriginSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   180
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   181
     by the UIPainter of ST/X."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   182
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   183
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   184
     the UIPainter may not be able to read the specification."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   185
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   186
    "
259
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   187
     UIPainter new openOnClass:UILayoutTool andSelector:#layoutOriginSpec
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   188
     UILayoutTool new openInterface:#layoutOriginSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   189
    "
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   190
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   191
    <resource: #canvas>
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   192
1304
ca
parents: 1268
diff changeset
   193
    ^ 
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   194
    #(FullSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   195
       name: layoutOriginSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   196
       window: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   197
      (WindowSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   198
         label: 'UILayoutTool'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   199
         name: 'UILayoutTool'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   200
         min: (Point 10 10)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   201
         bounds: (Rectangle 0 0 345 107)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   202
       )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   203
       component: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   204
      (SpecCollection
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   205
         collection: (
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   206
          (FramedBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   207
             label: 'Origin'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   208
             name: 'FramedBox'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   209
             layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 108 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   210
             labelPosition: topLeft
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   211
             translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   212
             component: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   213
            (SpecCollection
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   214
               collection: (
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   215
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   216
                   label: 'Relative:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   217
                   name: 'labelRelative'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   218
                   layout: (Point 103 6)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   219
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   220
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   221
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   222
                   label: 'Offset:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   223
                   name: 'labelAbsolute'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   224
                   layout: (Point 203 6)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   225
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   226
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   227
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   228
                   label: 'Left:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   229
                   name: 'labelLeft'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   230
                   layout: (AlignmentOrigin 68 0 27 0 1 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   231
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   232
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   233
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   234
                   label: 'imageFractX'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   235
                   name: 'actionRelativeLeft'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   236
                   layout: (LayoutFrame 77 0 24 0 99 0 46 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   237
                   activeHelpKey: makeLeftRelative
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   238
                   hasCharacterOrientedLabel: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   239
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   240
                   model: relativeLeft
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   241
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   242
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   243
                   name: 'fieldLeftFraction'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   244
                   layout: (LayoutFrame 102 0 25 0 152 0 47 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   245
                   activeHelpKey: leftRelative
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   246
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   247
                   model: leftFraction
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   248
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   249
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   250
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   251
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   252
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   253
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   254
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   255
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   256
                   label: 'imageAbsX'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   257
                   name: 'actionAbsoluteLeft'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   258
                   layout: (LayoutFrame 178 0 24 0 200 0 46 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   259
                   activeHelpKey: makeLeftAbsolute
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   260
                   hasCharacterOrientedLabel: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   261
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   262
                   model: absoluteLeft
1304
ca
parents: 1268
diff changeset
   263
                 )
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   264
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   265
                   name: 'fieldLeftOffset'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   266
                   layout: (LayoutFrame 203 0 24 0 253 0 46 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   267
                   activeHelpKey: leftAbsolute
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   268
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   269
                   model: leftOffset
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   270
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   271
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   272
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   273
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   274
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   275
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   276
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   277
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   278
                   label: 'imageAbsXFromRight'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   279
                   name: 'actionRightRelativeLeft'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   280
                   layout: (LayoutFrame 257 0 24 0 279 0 46 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   281
                   activeHelpKey: makeLeftRelativeFromRight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   282
                   hasCharacterOrientedLabel: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   283
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   284
                   model: rightRelativeLeft
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   285
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   286
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   287
                   label: 'Top:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   288
                   name: 'labelTop'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   289
                   layout: (AlignmentOrigin 68 0 54 0 1 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   290
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   291
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   292
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   293
                   label: 'imageFractY'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   294
                   name: 'actionRelativeTop'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   295
                   layout: (LayoutFrame 77 0 51 0 99 0 73 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   296
                   activeHelpKey: makeTopRelative
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   297
                   hasCharacterOrientedLabel: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   298
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   299
                   model: relativeTop
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   300
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   301
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   302
                   name: 'fieldTopFraction'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   303
                   layout: (LayoutFrame 103 0 51 0 153 0 73 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   304
                   activeHelpKey: topRelative
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   305
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   306
                   model: topFraction
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   307
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   308
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   309
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   310
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   311
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   312
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   313
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   314
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   315
                   label: 'imageAbsY'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   316
                   name: 'actionAbsoluteTop'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   317
                   layout: (LayoutFrame 178 0 51 0 200 0 73 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   318
                   activeHelpKey: makeTopAbsolute
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   319
                   hasCharacterOrientedLabel: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   320
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   321
                   model: absoluteTop
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   322
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   323
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   324
                   name: 'fieldTopOffset'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   325
                   layout: (LayoutFrame 203 0 51 0 253 0 73 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   326
                   activeHelpKey: topAbsolute
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   327
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   328
                   model: topOffset
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   329
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   330
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   331
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   332
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   333
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   334
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   335
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   336
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   337
                   label: 'imageAbsYFromBottom'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   338
                   name: 'actionBottomRelativeTop'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   339
                   layout: (LayoutFrame 257 0 51 0 279 0 73 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   340
                   activeHelpKey: makeTopRelativeFromBottom
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   341
                   hasCharacterOrientedLabel: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   342
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   343
                   model: bottomRelativeTop
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   344
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   345
                )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   346
              
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   347
             )
1304
ca
parents: 1268
diff changeset
   348
           )
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   349
          )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   350
        
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   351
       )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   352
     )
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   353
!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   354
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   355
layoutPointSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   356
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   357
     by the UIPainter of ST/X."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   358
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   359
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   360
     the UIPainter may not be able to read the specification."
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   361
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   362
    "
259
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   363
     UIPainter new openOnClass:UILayoutTool andSelector:#layoutPointSpec
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   364
     UILayoutTool new openInterface:#layoutPointSpec
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   365
    "
259
83440731fc3d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 252
diff changeset
   366
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   367
    <resource: #canvas>
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   368
1738
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   369
    ^ 
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   370
    #(FullSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   371
       name: layoutPointSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   372
       window: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   373
      (WindowSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   374
         label: 'UILayoutTool'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   375
         name: 'UILayoutTool'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   376
         min: (Point 10 10)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   377
         bounds: (Rectangle 0 0 278 124)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   378
       )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   379
       component: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   380
      (SpecCollection
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   381
         collection: (
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   382
          (FramedBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   383
             label: 'Origin'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   384
             name: 'FramedBox'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   385
             layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 94 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   386
             labelPosition: topLeft
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   387
             translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   388
             component: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   389
            (SpecCollection
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   390
               collection: (
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   391
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   392
                   label: 'Left:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   393
                   name: 'labelOriginY'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   394
                   layout: (AlignmentOrigin 83 0 14 0 1 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   395
                   translateLabel: true
1738
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   396
                 )
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   397
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   398
                   name: 'fieldOriginX'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   399
                   layout: (LayoutFrame 85 0 11 0 135 0 33 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   400
                   activeHelpKey: originX
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   401
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   402
                   model: leftOffset
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   403
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   404
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   405
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   406
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   407
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   408
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   409
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   410
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   411
                   label: 'Top:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   412
                   name: 'labelOriginX'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   413
                   layout: (AlignmentOrigin 83 0 39 0 1 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   414
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   415
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   416
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   417
                   name: 'fieldOriginY'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   418
                   layout: (LayoutFrame 85 0 36 0 135 0 58 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   419
                   activeHelpKey: originY
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   420
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   421
                   model: topOffset
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   422
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   423
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   424
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   425
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   426
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   427
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   428
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   429
                )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   430
              
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   431
             )
1738
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   432
           )
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   433
          )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   434
        
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   435
       )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
   436
     )
184
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   437
!
700f2ee9911e add help for components
ca
parents: 163
diff changeset
   438
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   439
slices
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   440
    ^ #(
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   441
        ( 'Frame'          LayoutFrame)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   442
        ( 'Origin'         LayoutOrigin)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   443
        ( 'Alig.Origin'    AlignmentOrigin)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   444
        ( 'Point'          Point)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   445
        ( 'Rectangle'      Rectangle)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   446
        ( 'Extent'         Extent)
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   447
       ) 
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   448
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   449
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   450
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   451
windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   452
    "This resource specification was automatically generated
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   453
     by the UIPainter of ST/X."
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   454
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   455
    "Do not manually edit this!! If it is corrupted,
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   456
     the UIPainter may not be able to read the specification."
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   457
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   458
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   459
     UIPainter new openOnClass:UILayoutTool andSelector:#windowSpec
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   460
     UILayoutTool new openInterface:#windowSpec
741
c94606aecebf user defined font support
tz
parents: 714
diff changeset
   461
     UILayoutTool open
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   462
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   463
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   464
    <resource: #canvas>
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   465
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   466
    ^ 
1738
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   467
     #(FullSpec
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   468
        name: windowSpec
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   469
        window: 
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   470
       (WindowSpec
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   471
          label: 'UILayoutTool'
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   472
          name: 'UILayoutTool'
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   473
          min: (Point 10 10)
1790
51711e3c7046 translateLabel in NoteBookView
ca
parents: 1781
diff changeset
   474
          bounds: (Rectangle 12 22 354 321)
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   475
        )
1738
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   476
        component: 
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   477
       (SpecCollection
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   478
          collection: (
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   479
           (NoteBookViewSpec
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   480
              name: 'NoteBook'
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   481
              layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   482
              activeHelpKey: layoutTool
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   483
              enableChannel: enableChannel
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   484
              tabable: true
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   485
              model: noteBookModel
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   486
              menu: noteBookList
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   487
              direction: bottom
1790
51711e3c7046 translateLabel in NoteBookView
ca
parents: 1781
diff changeset
   488
              translateLabel: true
1738
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   489
              canvas: layoutCanvasHolder
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   490
              tabTopMargin: 0
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   491
              tabBottomMargin: 0
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   492
              keepCanvasAlive: true
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
   493
              tabLevel: 0
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   494
            )
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   495
           )
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   496
         
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   497
        )
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   498
      )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   499
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   500
1781
d67090b1ad57 resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents: 1738
diff changeset
   501
!UILayoutTool class methodsFor:'resources'!
d67090b1ad57 resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents: 1738
diff changeset
   502
d67090b1ad57 resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents: 1738
diff changeset
   503
classResources
d67090b1ad57 resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents: 1738
diff changeset
   504
    "my translations are found in the UIPainter classes resources"
d67090b1ad57 resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents: 1738
diff changeset
   505
d67090b1ad57 resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents: 1738
diff changeset
   506
    ^ UIPainter classResources 
d67090b1ad57 resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents: 1738
diff changeset
   507
! !
d67090b1ad57 resources shared with UIPainter class
Claus Gittinger <cg@exept.de>
parents: 1738
diff changeset
   508
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   509
!UILayoutTool methodsFor:'accessing'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   510
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   511
acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   512
    "return the value of the instance variable 'acceptChannel' (automatically generated)"
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   513
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   514
    ^ masterApplication acceptChannel
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   515
!
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
   516
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   517
layout
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   518
    "returns configued layout or nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   519
    "
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   520
    ^ currentTool notNil ifTrue:[currentTool layout]
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   521
                        ifFalse:[nil]
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   522
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   523
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   524
layoutType
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   525
    "returns current layout type or nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   526
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   527
    |slice|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   528
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   529
    (slice := self selectedSlice) notNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   530
        ^ slice last
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   531
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   532
  ^ nil
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   533
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   534
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   535
layoutView
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   536
    "returns current edited view
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   537
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   538
    ^ layoutView
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   539
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   540
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   541
layoutView:aView type:aTypeOrNil spec:aSpec
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   542
    "change current edited view
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   543
    "
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   544
    |type name list|
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   545
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   546
    layoutView := aView.
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   547
    layoutSpec := aSpec.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   548
1074
49ef9991d1d5 disable defaultExtent button when editing the top-windows spec.
Claus Gittinger <cg@exept.de>
parents: 1072
diff changeset
   549
    (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
   550
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
   551
    aTypeOrNil notNil ifTrue:[ 
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   552
        self class slices findFirst:[:e|
2533
460098ee1f39 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2478
diff changeset
   553
            e last == aTypeOrNil 
460098ee1f39 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2478
diff changeset
   554
                ifTrue:[name := e first. true] 
460098ee1f39 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2478
diff changeset
   555
                ifFalse:[false].
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   556
        ].
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
   557
        list := Array with:name with: 'Frame'.
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   558
    ] ifFalse:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   559
        (type := UIPainterView layoutType:layoutView) notNil ifTrue:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   560
            self class slices findFirst:[:e|
2533
460098ee1f39 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2478
diff changeset
   561
                e last == type ifTrue:[name := e first. true] ifFalse:[false]
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   562
            ].
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   563
            list := tabList.
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
   564
            type == #Extent ifTrue:[ 
283
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   565
                aView superView specClass isLayoutContainer ifTrue:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   566
                    list := Array with:name
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   567
                ] ifFalse:[
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   568
                    list := list copyWith:name
2f98233309f0 support layout of canvas view
ca
parents: 264
diff changeset
   569
                ]
235
4e6c0d0c6ba5 in case of layout container set extent otherwise all
ca
parents: 221
diff changeset
   570
            ]
4e6c0d0c6ba5 in case of layout container set extent otherwise all
ca
parents: 221
diff changeset
   571
        ]
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   572
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   573
    self noteBookList  value:list.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   574
    self noteBookModel value:name.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   575
    self update.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   576
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   577
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   578
modifiedHolder:aValueHolder
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   579
    "set the value holder set to true in case of modifying attributes
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   580
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   581
    modifiedHolder notNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   582
        modifiedHolder removeDependent:self. 
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   583
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   584
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   585
    (modifiedHolder := aValueHolder) notNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   586
        modifiedHolder addDependent:self.
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
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   591
update
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   592
    "update from view
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   593
    "
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   594
    |view|
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   595
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   596
    (selection notNil and:[currentTool notNil]) ifTrue:[
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   597
        (view := layoutView) notNil ifTrue:[
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   598
            currentTool fetch:view spec:layoutSpec
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   599
        ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   600
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   601
        
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   602
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   603
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   604
!UILayoutTool methodsFor:'aspects'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   605
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   606
aspectFor:aKey
2365
b63bf46bc18a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2322
diff changeset
   607
    "returns the aspect for a aKey or nil"
b63bf46bc18a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2322
diff changeset
   608
b63bf46bc18a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2322
diff changeset
   609
    ^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   610
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   611
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   612
layoutCanvasHolder
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   613
    |holder|
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   614
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   615
    (holder := builder bindingAt:#layoutCanvasHolder) isNil ifTrue:[
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   616
        holder := ValueHolder new.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   617
        builder aspectAt:#layoutCanvasHolder put:holder
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   618
    ].
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   619
  ^ holder
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   620
!
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   621
1072
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   622
notUsingDefaultExtent
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   623
    |holder|
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   624
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   625
    (holder := builder bindingAt:#notUsingDefaultExtent) isNil ifTrue:[
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   626
        holder := BlockValue forLogicalNot:(self aspectFor:#useDefaultExtent).
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   627
        builder aspectAt:#notUsingDefaultExtent put:holder.
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   628
    ].
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   629
    ^ holder
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   630
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   631
!
84ae04e0af72 defaultExtent (in panels)
Claus Gittinger <cg@exept.de>
parents: 1070
diff changeset
   632
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   633
noteBookList
2322
14839acab637 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
   634
    "holds the list of tab labels"
14839acab637 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
   635
14839acab637 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2269
diff changeset
   636
    ^ builder valueAspectFor:#noteBookList initialValue:nil
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   637
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   638
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   639
noteBookModel
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   640
    "automatically generated by UIPainter ..."
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
    (holder := builder bindingAt:#noteBookModel) isNil ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   645
        holder := AspectAdaptor new subject:self; forAspect:#selection.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   646
        builder aspectAt:#noteBookModel put:holder.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   647
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   648
    ^ holder
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   649
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   650
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   651
!UILayoutTool methodsFor:'change & update'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   652
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   653
update:something with:aParameter from:changedObject
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   654
    "one of my models changed its value
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   655
    "
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   656
    changedObject ~~ modifiedHolder ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   657
        modifiedHolder value ~~ true ifTrue:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   658
            modifiedHolder isNil ifFalse:[
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   659
                modifiedHolder value:true
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   660
            ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   661
        ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   662
    ]
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   663
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   664
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   665
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   666
!UILayoutTool methodsFor:'converting absolute'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   667
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   668
absolute:what xOrY:xOrY
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   669
    "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
   670
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   671
    |extent fraction offset fractSymb offsetSymb 
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   672
     newOffset newFraction fractHolder offsetHolder|
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   673
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   674
    extent     := (self layoutView superView computeExtent) perform:xOrY.
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   675
    fractSymb  := (what, 'Fraction') asSymbol.
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   676
    offsetSymb := (what,   'Offset') asSymbol.
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   677
    fractHolder := (self aspectFor:fractSymb).
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   678
    offsetHolder := (self aspectFor:offsetSymb).
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   679
    fraction   := fractHolder  value.
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   680
    offset     := offsetHolder value.
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
    newOffset := offset + ((fraction * extent) asInteger).
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   683
    newFraction := 0.
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   684
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   685
    fractHolder  value:newFraction.
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   686
    offsetHolder value:newOffset.
1339
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
absoluteBottom
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   690
    "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
   691
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   692
    self absolute:'bottom' xOrY:#y
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   693
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   694
!
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
absoluteLeft
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   697
    "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
   698
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   699
    self absolute:'left' xOrY:#x
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   700
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
absoluteRight
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   704
    "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
   705
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   706
    self absolute:'right' xOrY:#x
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   707
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
absoluteTop
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   711
    "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
   712
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   713
    self absolute:'top' xOrY:#y
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   714
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
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   717
!UILayoutTool methodsFor:'converting absolute from corner'!
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
bottomRelativeBottom
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   720
    "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
   721
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   722
    self cornerRelative:'bottom' xOrY:#y
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   723
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
bottomRelativeTop
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   727
    "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
   728
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   729
    self cornerRelative:'top' xOrY:#y
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   730
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   731
!
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   732
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   733
cornerRelative:what xOrY:xOrY
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   734
    "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
   735
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   736
    |extent fraction offset fractSymb offsetSymb 
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   737
     newFraction newOffset fractHolder offsetHolder|
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   738
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   739
    extent     := (self layoutView superView computeExtent) perform:xOrY.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   740
    fractSymb  := (what, 'Fraction') asSymbol.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   741
    offsetSymb := (what,   'Offset') asSymbol.
1198
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   742
    fractHolder := (self aspectFor:fractSymb).
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   743
    offsetHolder := (self aspectFor:offsetSymb).
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   744
    fraction   := fractHolder  value.
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   745
    offset     := offsetHolder value.
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   746
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   747
    newOffset := offset + ((fraction * extent) asInteger).
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   748
    newOffset := newOffset - extent.
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   749
    newFraction := 1.
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   750
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   751
    fractHolder  value:newFraction.
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   752
    offsetHolder value:newOffset.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   753
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   754
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   755
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   756
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   757
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   758
rightRelativeLeft
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   759
    "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
   760
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   761
    self cornerRelative:'left' xOrY:#x
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   762
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   763
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   764
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   765
rightRelativeRight
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   766
    "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
   767
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   768
    self cornerRelative:'right' xOrY:#x
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   769
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   770
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   771
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   772
!UILayoutTool methodsFor:'converting relative'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   773
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   774
relative:what xOrY:xOrY
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   775
    "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
   776
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   777
    |extent fraction offset fractSymb offsetSymb 
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   778
     newFraction newOffset
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   779
     fractHolder offsetHolder|
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   780
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   781
    extent     := (self layoutView superView computeExtent) perform:xOrY.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   782
    fractSymb  := (what, 'Fraction') asSymbol.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   783
    offsetSymb := (what,   'Offset') asSymbol.
1198
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   784
    fractHolder := (self aspectFor:fractSymb).
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   785
    offsetHolder := (self aspectFor:offsetSymb).
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   786
    fraction   := fractHolder  value.
6b7cfe55105b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1077
diff changeset
   787
    offset     := offsetHolder value.
1339
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
    newFraction   := (fraction + (offset / extent)) asFloat.
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   790
    newOffset := 0.
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   791
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   792
    (newFraction > 1.0) ifTrue:[newFraction := 1.0].
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   793
    (newFraction < 0.0) ifTrue:[newFraction := 0].
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   794
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   795
    offsetHolder value:newOffset.
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   796
    fractHolder  value:newFraction.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   797
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   798
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   799
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   800
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   801
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   802
relativeBottom
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   803
    "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
   804
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   805
    self relative:'bottom' xOrY:#y
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   806
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   807
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   808
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   809
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   810
relativeLeft
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   811
    "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
   812
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   813
    self relative:'left' xOrY:#x
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   814
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   815
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   816
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   817
relativeRight
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   818
    "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
   819
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   820
    self relative:'right' xOrY:#x
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   821
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   822
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   823
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   824
relativeTop
1339
b989732e3610 added make right/bottom relative functions
Claus Gittinger <cg@exept.de>
parents: 1334
diff changeset
   825
    "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
   826
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   827
    self relative:'top' xOrY:#y
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   828
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   829
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   830
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   831
!UILayoutTool methodsFor:'initialization'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   832
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   833
initialize
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   834
    "initialize channels
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   835
    "
221
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   836
    |slices size|
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   837
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   838
    super initialize.
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   839
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   840
    aspects  := IdentityDictionary new.
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   841
    toolsDictionary := IdentityDictionary new.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   842
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   843
    #(  bottomFraction          bottomOffset
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   844
        leftFraction            leftOffset
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   845
        topFraction             topOffset
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   846
        rightFraction           rightOffset
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   847
        leftAlignmentFraction   topAlignmentFraction
1268
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   848
        (useDefaultExtent     false)
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   849
        (defaultExtentEnabled false)
2379
d54bd94c8090 pref w/h + dynamic
Claus Gittinger <cg@exept.de>
parents: 2365
diff changeset
   850
d54bd94c8090 pref w/h + dynamic
Claus Gittinger <cg@exept.de>
parents: 2365
diff changeset
   851
        (usePreferredWidth false)
d54bd94c8090 pref w/h + dynamic
Claus Gittinger <cg@exept.de>
parents: 2365
diff changeset
   852
        (usePreferredHeight false)
d54bd94c8090 pref w/h + dynamic
Claus Gittinger <cg@exept.de>
parents: 2365
diff changeset
   853
        (useDynamicPreferredWidth false)
d54bd94c8090 pref w/h + dynamic
Claus Gittinger <cg@exept.de>
parents: 2365
diff changeset
   854
        (useDynamicPreferredHeight false)
2953
934578ff722b class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2949
diff changeset
   855
        (keepSpaceForOSXResizeHandleV false)
934578ff722b class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2949
diff changeset
   856
        (keepSpaceForOSXResizeHandleH false)
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   857
    )
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   858
1268
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   859
    do:[:aKeyOrPair| |holder key val|
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   860
        (key := aKeyOrPair) isSymbol ifFalse:[
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   861
            key := aKeyOrPair first.
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   862
            val := aKeyOrPair second
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   863
        ].
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   864
        holder := val asValue.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   865
        holder addDependent:self.
1268
1bc516d840bf must initialize some valueHolders with real boolean
Claus Gittinger <cg@exept.de>
parents: 1198
diff changeset
   866
        aspects at:key put:holder.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   867
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   868
221
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   869
    slices  := self class slices.
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   870
    size    := slices size - 1.
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   871
    tabList := Array new:size.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   872
221
319a24a1df06 slow grow operation on array removed
ca
parents: 201
diff changeset
   873
    1 to:size do:[:i| tabList at:i put:((slices at:i) first) ].
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   874
! !
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   875
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   876
!UILayoutTool methodsFor:'selection'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   877
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   878
selectedSlice
2022
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   879
    "returns the slice assigned to the selection or nil"
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   880
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   881
    selection isNil ifTrue:[^ nil].
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   882
    ^ self class slices detect:[:aSlice | aSlice first = selection] ifNone:nil
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   883
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   884
"/    selection notNil ifTrue:[
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   885
"/        self class slices do:[:aSlice|
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   886
"/            aSlice first = selection ifTrue:[
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   887
"/                ^ aSlice
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   888
"/            ]
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   889
"/        ]
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   890
"/    ].
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
   891
"/    ^ nil
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   892
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   893
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   894
selection
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   895
    ^ selection
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   896
!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   897
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   898
selection:aSelection
1726
7117789f3020 Remove unused vars
Stefan Vogel <sv@exept.de>
parents: 1709
diff changeset
   899
    |appl slice sel key view|
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   900
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   901
    aSelection isNumber ifTrue:[
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   902
        aSelection ~~ 0 ifTrue:[sel := tabList at:aSelection]
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   903
    ] ifFalse:[
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   904
        sel := aSelection
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   905
    ].
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   906
293
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   907
    selection = sel ifFalse:[
54d00bdebfa9 update help text
ca
parents: 283
diff changeset
   908
        (selection := sel) notNil ifTrue:[
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   909
            key := selection asSymbol.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   910
            appl := toolsDictionary at:key ifAbsent:nil.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   911
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   912
            appl isNil ifTrue:[
1334
36c1ee53aede bug fix for HelpSpec
ca
parents: 1332
diff changeset
   913
                view  := ApplicationSubView new.
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   914
                slice := self selectedSlice.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   915
                appl  := slice last asString.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   916
                appl := Smalltalk classNamed:(self class name asString, '::', appl).
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   917
                appl := appl new.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   918
                appl masterApplication:self.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   919
                appl createBuilder.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   920
                view client:appl.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   921
                appl window:view.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   922
                toolsDictionary at:key put:appl.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   923
            ] ifFalse:[
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   924
                view := appl window
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   925
            ].
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   926
            modifiedHolder value:true.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   927
        ].
1305
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   928
        currentTool := appl.
3aa9dab59633 use the canvasHolder in Notebook
ca
parents: 1304
diff changeset
   929
        self layoutCanvasHolder value:view.
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   930
    ].
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
   931
    self update
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   932
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   933
    "Modified: / 4.2.2000 / 22:31:41 / cg"
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   934
! !
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   935
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   936
!UILayoutTool::AnyLayout class methodsFor:'image specs'!
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   937
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   938
imageAbsX
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   939
    "This resource specification was automatically generated
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   940
     by the ImageEditor of ST/X."
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   941
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   942
    "Do not manually edit this!! If it is corrupted,
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   943
     the ImageEditor may not be able to read the specification."
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   944
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   945
    "
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   946
     self imageAbsX inspect
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   947
     ImageEditor openOnClass:self andSelector:#imageAbsX
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
   948
     Icon flushCachedIcons
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   949
    "
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   950
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   951
    <resource: #image>
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   952
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   953
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
   954
        constantNamed:'UILayoutTool::AnyLayout class imageAbsX'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
   955
        ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   956
<@BP@I@N$L*P*)BZ''8*@@(@B''8*P&)B*$L*PC)@@<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   957
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
   958
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
   959
!
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   960
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   961
imageAbsXFromRight
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   962
    "This resource specification was automatically generated
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   963
     by the ImageEditor of ST/X."
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   964
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   965
    "Do not manually edit this!! If it is corrupted,
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   966
     the ImageEditor may not be able to read the specification."
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   967
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   968
    "
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   969
     self imageAbsXFromRight inspect
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   970
     ImageEditor openOnClass:self andSelector:#imageAbsXFromRight
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
   971
     Icon flushCachedIcons
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   972
    "
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   973
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   974
    <resource: #image>
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   975
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   976
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
   977
        constantNamed:'UILayoutTool::AnyLayout class imageAbsXFromRight'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
   978
        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]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
   979
!
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   980
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   981
imageAbsY
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   982
    "This resource specification was automatically generated
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   983
     by the ImageEditor of ST/X."
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   984
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   985
    "Do not manually edit this!! If it is corrupted,
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   986
     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
   987
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   988
    "
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   989
     self imageAbsY inspect
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   990
     ImageEditor openOnClass:self andSelector:#imageAbsY
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
   991
     Icon flushCachedIcons
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   992
    "
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
   993
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
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
   997
        constantNamed:'UILayoutTool::AnyLayout class imageAbsY'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
   998
        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]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
   999
!
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1000
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1001
imageAbsYFromBottom
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1002
    "This resource specification was automatically generated
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1003
     by the ImageEditor of ST/X."
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1004
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1005
    "Do not manually edit this!! If it is corrupted,
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1006
     the ImageEditor may not be able to read the specification."
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1007
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1008
    "
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1009
     self imageAbsYFromBottom inspect
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1010
     ImageEditor openOnClass:self andSelector:#imageAbsYFromBottom
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1011
     Icon flushCachedIcons
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1012
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1013
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1014
    <resource: #image>
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1015
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1016
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1017
        constantNamed:'UILayoutTool::AnyLayout class imageAbsYFromBottom'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1018
        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]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1019
!
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1020
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1021
imageFractX
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
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1028
    "
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1029
     self imageFractX inspect
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1030
     ImageEditor openOnClass:self andSelector:#imageFractX
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1031
     Icon flushCachedIcons
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1032
    "
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1033
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1034
    <resource: #image>
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1035
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1036
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1037
        constantNamed:'UILayoutTool::AnyLayout class imageFractX'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1038
        ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1039
<@>PBY@I&A&TJYII$X&@@X@A$X&RRYP)&A&PBY@I<@<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1040
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1041
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1042
!
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1043
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1044
imageFractY
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1045
    "This resource specification was automatically generated
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1046
     by the ImageEditor of ST/X."
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1047
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1048
    "Do not manually edit this!! If it is corrupted,
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1049
     the ImageEditor may not be able to read the specification."
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1050
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1051
    "
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1052
     self imageFractY inspect
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1053
     ImageEditor openOnClass:self andSelector:#imageFractY
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1054
     Icon flushCachedIcons
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1055
    "
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1056
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1057
    <resource: #image>
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1058
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  1059
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1060
        constantNamed:'UILayoutTool::AnyLayout class imageFractY'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1061
        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]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1062
! !
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1063
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1064
!UILayoutTool::AlignmentOrigin class methodsFor:'help specs'!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1065
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1066
helpSpec
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1067
    "This resource specification was automatically generated
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1068
     by the UIHelpTool of ST/X."
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1069
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1070
    "Do not manually edit this!! If it is corrupted,
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1071
     the UIHelpTool may not be able to read the specification."
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1072
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1073
    "
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1074
     UIHelpTool openOnClass:UILayoutTool::AlignmentOrigin    
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1075
    "
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1076
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1077
    <resource: #help>
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1078
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1079
    ^super helpSpec addPairsFrom:#(
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1080
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1081
#alignBottomCenter
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1082
'Aligns the widget''s bottomCenter to location.'
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1083
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1084
#alignBottomLeft
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1085
'Aligns the widget''s bottomLeft to location.'
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1086
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1087
#alignBottomRight
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1088
'Aligns the widget''s bottomRight to location.'
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1089
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1090
#alignCenter
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1091
'Aligns the widget''s center to location.'
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1092
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1093
#alignHorizontal
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1094
'Horizontal relative position of the alignment point of the widget (that point is aligned with the above origin).'
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1095
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1096
#alignLeftCenter
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1097
'Aligns the widget''s leftCenter to location.'
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1098
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1099
#alignRightCenter
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1100
'Aligns the widget''s rightCenter to location.'
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1101
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1102
#alignTopCenter
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1103
'Aligns the widget''s topCenter to location.'
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1104
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1105
#alignTopLeft
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1106
'Aligns the widget''s topLeft to location.'
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1107
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1108
#alignTopRight
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1109
'Aligns the widget''s topRight to location.'
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1110
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1111
#alignVertical
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1112
'Vertical relative position of the alignment point of the widget (that point is aligned with the above origin).'
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1113
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1114
)
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1115
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  1116
    "Modified: / 28-07-2010 / 10:05:41 / cg"
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1117
! !
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1118
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1119
!UILayoutTool::AlignmentOrigin class methodsFor:'interface specs'!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1120
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1121
windowSpec
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1122
    "This resource specification was automatically generated
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1123
     by the UIPainter of ST/X."
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1124
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1125
    "Do not manually edit this!! If it is corrupted,
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1126
     the UIPainter may not be able to read the specification."
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1127
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1128
    "
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1129
     UIPainter new openOnClass:UILayoutTool::AlignmentOrigin andSelector:#windowSpec
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1130
     UILayoutTool::AlignmentOrigin new openInterface:#windowSpec
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1131
     UILayoutTool::AlignmentOrigin open
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1132
    "
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1133
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1134
    <resource: #canvas>
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1135
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1136
    ^ 
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1137
    #(FullSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1138
       name: windowSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1139
       window: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1140
      (WindowSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1141
         label: 'UILayoutTool-AlignmentOrigin'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1142
         name: 'UILayoutTool-AlignmentOrigin'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1143
         min: (Point 10 10)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1144
         bounds: (Rectangle 0 0 405 220)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1145
       )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1146
       component: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1147
      (SpecCollection
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1148
         collection: (
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1149
          (UISubSpecification
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1150
             name: 'layoutOriginSpec'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1151
             layout: (LayoutFrame 1 0.0 6 0 0 1.0 111 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1152
             majorKey: UILayoutTool
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1153
             minorKey: layoutOriginSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1154
           )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1155
          (FramedBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1156
             label: 'Alignment'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1157
             name: 'FramedBox'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1158
             layout: (LayoutFrame 1 0.0 113 0 0 1.0 215 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1159
             labelPosition: topLeft
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1160
             translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1161
             component: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1162
            (SpecCollection
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1163
               collection: (
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1164
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1165
                   label: 'Horizontal:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1166
                   name: 'alignHLabel'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1167
                   layout: (AlignmentOrigin 88 0 17 0 1 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1168
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1169
                   adjust: right
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1170
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1171
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1172
                   name: 'leftAlignmentFractionField'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1173
                   layout: (LayoutFrame 90 0 14 0 147 0 36 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1174
                   activeHelpKey: alignHorizontal
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1175
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1176
                   model: leftAlignmentFraction
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1177
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1178
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1179
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1180
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1181
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1182
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1183
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1184
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1185
                   label: 'Vertical:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1186
                   name: 'alignVLabel'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1187
                   layout: (AlignmentOrigin 88 0 43 0 1 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1188
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1189
                   adjust: right
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1190
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1191
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1192
                   name: 'topAlignmentFractionField'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1193
                   layout: (LayoutFrame 90 0 40 0 147 0 62 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1194
                   activeHelpKey: alignVertical
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1195
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1196
                   model: topAlignmentFraction
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1197
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1198
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1199
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1200
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1201
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1202
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1203
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1204
                (DividerSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1205
                   name: 'separator1'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1206
                   layout: (LayoutFrame 204 0 19 0 245 0 22 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1207
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1208
                (DividerSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1209
                   name: 'separator2'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1210
                   layout: (LayoutFrame 204 0 55 0 245 0 58 0)
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1211
                 )
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1212
                (DividerSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1213
                   name: 'separator3'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1214
                   layout: (LayoutFrame 196 0 28 0 199 0 50 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1215
                   orientation: vertical
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1216
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1217
                (DividerSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1218
                   name: 'separator4'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1219
                   layout: (LayoutFrame 250 0 28 0 253 0 50 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1220
                   orientation: vertical
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1221
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1222
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1223
                   name: 'alignTopLeft'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1224
                   layout: (LayoutFrame 190 0 14 0 204 0 28 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1225
                   activeHelpKey: alignTopLeft
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1226
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1227
                   model: alignTopLeft
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1228
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1229
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1230
                   name: 'alignTopCenter'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1231
                   layout: (LayoutFrame 217 0 14 0 231 0 28 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1232
                   activeHelpKey: alignTopCenter
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1233
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1234
                   model: alignTopCenter
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1235
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1236
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1237
                   name: 'alignTopRight'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1238
                   layout: (LayoutFrame 245 0 14 0 259 0 28 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1239
                   activeHelpKey: alignTopRight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1240
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1241
                   model: alignTopRight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1242
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1243
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1244
                   name: 'alignLeftCenter'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1245
                   layout: (LayoutFrame 190 0 32 0 204 0 46 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1246
                   activeHelpKey: alignLeftCenter
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1247
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1248
                   model: alignLeftCenter
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1249
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1250
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1251
                   name: 'alignCenter'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1252
                   layout: (LayoutFrame 217 0 32 0 231 0 46 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1253
                   activeHelpKey: alignCenter
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1254
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1255
                   model: alignCenter
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1256
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1257
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1258
                   name: 'alignRightCenter'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1259
                   layout: (LayoutFrame 245 0 32 0 259 0 46 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1260
                   activeHelpKey: alignRightCenter
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1261
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1262
                   model: alignRightCenter
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1263
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1264
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1265
                   name: 'alignBottomLeft'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1266
                   layout: (LayoutFrame 190 0 50 0 204 0 64 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1267
                   activeHelpKey: alignBottomLeft
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1268
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1269
                   model: alignBottomLeft
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1270
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1271
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1272
                   name: 'alignBottomCenter'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1273
                   layout: (LayoutFrame 217 0 50 0 231 0 64 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1274
                   activeHelpKey: alignBottomCenter
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1275
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1276
                   model: alignBottomCenter
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1277
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1278
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1279
                   name: 'alignBottomRight'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1280
                   layout: (LayoutFrame 245 0 50 0 259 0 64 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1281
                   activeHelpKey: alignBottomRight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1282
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1283
                   model: alignBottomRight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1284
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1285
                )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1286
              
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1287
             )
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1288
           )
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1289
          )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1290
        
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1291
       )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1292
     )
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1293
! !
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1294
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1295
!UILayoutTool::AlignmentOrigin methodsFor:'accessing'!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1296
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1297
fetch:aView spec:aSpec
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1298
    "fetch alignmentOrigin
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1299
    "
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1300
    |layout type 
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1301
     leftAlignmentFractionHolder topAlignmentFractionHolder
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1302
     leftOffsetHolder leftFractionHolder topOffsetHolder topFractionHolder|
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1303
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1304
    type   := UIPainterView layoutType:aView.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1305
    layout := aView geometryLayout.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1306
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1307
    leftOffsetHolder := (self aspectFor:#leftOffset).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1308
    leftFractionHolder := (self aspectFor:#leftFraction).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1309
    topOffsetHolder := (self aspectFor:#topOffset).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1310
    topFractionHolder := (self aspectFor:#topFraction).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1311
    leftAlignmentFractionHolder := (self aspectFor:#leftAlignmentFraction).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1312
    topAlignmentFractionHolder := (self aspectFor:#topAlignmentFraction).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1313
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1314
    layout isLayout ifTrue:[
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1315
        leftOffsetHolder   value:(layout leftOffset).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1316
        leftFractionHolder value:(layout leftFraction).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1317
        topOffsetHolder    value:(layout topOffset).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1318
        topFractionHolder  value:(layout topFraction).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1319
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1320
        type == #AlignmentOrigin ifTrue:[
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1321
            leftAlignmentFractionHolder value:(layout leftAlignmentFraction).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1322
            topAlignmentFractionHolder  value:(layout topAlignmentFraction).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1323
          ^ self
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1324
        ]
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1325
    ] ifFalse:[
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1326
        layout := aView computeOrigin.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1327
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1328
        leftOffsetHolder   value:(layout x).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1329
        leftFractionHolder value:0.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1330
        topOffsetHolder    value:(layout y).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1331
        topFractionHolder  value:0.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1332
    ].
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1333
    leftAlignmentFractionHolder value:0.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1334
    topAlignmentFractionHolder  value:0.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1335
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1336
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1337
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1338
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1339
layout
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1340
    "returns current layout as alignmentOrigin
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1341
    "
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1342
    |layout|
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1343
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1344
    layout  := Smalltalk::AlignmentOrigin new.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1345
1581
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  1346
    layout 
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  1347
        leftFraction:(((self aspectFor:#leftFraction) value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  1348
              offset:(((self aspectFor:#leftOffset)   value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  1349
        topFraction:(((self aspectFor:#topFraction)  value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  1350
             offset:(((self aspectFor:#topOffset)    value) ? 0).
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  1351
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  1352
    layout 
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  1353
        leftAlignmentFraction:(((self aspectFor:#leftAlignmentFraction) value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  1354
        topAlignmentFraction:(((self aspectFor:#topAlignmentFraction)  value) ? 0).
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1355
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1356
  ^ layout
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1357
! !
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1358
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1359
!UILayoutTool::AlignmentOrigin methodsFor:'alignment'!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1360
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1361
alignBottomCenter
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1362
    self makeAlignLeft:0.5 top:1
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1363
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1364
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1365
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1366
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1367
alignBottomLeft
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1368
    self makeAlignLeft:0 top:1
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1369
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1370
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1371
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1372
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1373
alignBottomRight
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1374
    self makeAlignLeft:1 top:1
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1375
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1376
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1377
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1378
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1379
alignCenter
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1380
    self makeAlignLeft:0.5 top:0.5
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1381
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1382
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1383
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1384
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1385
alignLeftCenter
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1386
    self makeAlignLeft:0 top:0.5
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1387
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1388
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1389
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1390
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1391
alignRightCenter
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1392
    self makeAlignLeft:1 top:0.5
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1393
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1394
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1395
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1396
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1397
alignTopCenter
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1398
    self makeAlignLeft:0.5 top:0
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1399
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1400
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1401
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1402
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1403
alignTopLeft
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1404
    self makeAlignLeft:0 top:0
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1405
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1406
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1407
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1408
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1409
alignTopRight
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1410
    self makeAlignLeft:1 top:0
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1411
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1412
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1413
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1414
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1415
makeAlignLeft:leftAlignmentFraction top:topAlignmentFraction
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1416
    |lAF tAF lO tO ext lAHolder tAHolder lOHolder tOHolder|
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1417
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1418
    lAF     := (lAHolder := self aspectFor:#leftAlignmentFraction) value ? 0.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1419
    tAF     := (tAHolder := self aspectFor:#topAlignmentFraction)  value ? 0.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1420
    ext     := (self aspectFor:#layoutView) computeExtent.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1421
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1422
    lAHolder value:leftAlignmentFraction.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1423
    tAHolder  value:topAlignmentFraction.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1424
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1425
    lO := (lOHolder := self aspectFor:#leftOffset) value ? 0.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1426
    tO := (tOHolder := self aspectFor:#topOffset)  value ? 0.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1427
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1428
    lO := lO + (ext x * (leftAlignmentFraction - lAF)).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1429
    tO := tO + (ext y * (topAlignmentFraction  - tAF)).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1430
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1431
    lOHolder value:(lO rounded).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1432
    tOHolder value:(tO rounded).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1433
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1434
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1435
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1436
makeAlignTopRight
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1437
    self makeAlignLeft:1 top:0
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1438
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1439
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1440
! !
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1441
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1442
!UILayoutTool::Extent class methodsFor:'help specs'!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1443
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1444
helpSpec
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1445
    "This resource specification was automatically generated
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1446
     by the UIHelpTool of ST/X."
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1448
    "Do not manually edit this!! If it is corrupted,
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1449
     the UIHelpTool may not be able to read the specification."
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1450
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1451
    "
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1452
     UIHelpTool openOnClass:UILayoutTool::Extent    
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1453
    "
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1454
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1455
    <resource: #help>
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1456
2949
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1457
    ^ super helpSpec addPairsFrom:#(
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1458
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1459
#hrzExtent
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1460
'Horizontal extent of the selected widget.'
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1461
2949
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1462
#useDynamicPreferredWidth
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1463
'Dynamically adapt to any change of the widget''s preferred width'
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1464
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1465
#useDynamicPreferredHeight
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1466
'Dynamically adapt to any change of the widget''s preferred height'
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1467
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1468
#usePreferredHeight
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1469
'Use the widget''s preferred height as initial size'
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1470
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1471
#usePreferredWidth
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1472
'Use the widget''s preferred width as initial size'
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1473
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1474
#useDefaultExtent
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1475
'Use the widget''s default extent as initial size'
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1476
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1477
#vrtExtent
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1478
'Vertical extent of the selected widget.'
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1479
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1480
)
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1481
! !
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1482
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1483
!UILayoutTool::Extent class methodsFor:'interface specs'!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1484
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1485
windowSpec
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1486
    "This resource specification was automatically generated
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1487
     by the UIPainter of ST/X."
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1488
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1489
    "Do not manually edit this!! If it is corrupted,
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1490
     the UIPainter may not be able to read the specification."
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1491
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1492
    "
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1493
     UIPainter new openOnClass:UILayoutTool::Extent andSelector:#windowSpec
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1494
     UILayoutTool::Extent new openInterface:#windowSpec
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1495
     UILayoutTool::Extent open
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1496
    "
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1497
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1498
    <resource: #canvas>
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1499
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1500
    ^ 
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1501
    #(FullSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1502
       name: windowSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1503
       window: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1504
      (WindowSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1505
         label: 'UILayoutTool-Extent'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1506
         name: 'UILayoutTool-Extent'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1507
         min: (Point 10 10)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1508
         bounds: (Rectangle 0 0 506 169)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1509
       )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1510
       component: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1511
      (SpecCollection
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1512
         collection: (
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1513
          (FramedBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1514
             label: 'Extent'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1515
             name: 'FramedBox'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1516
             layout: (LayoutFrame 0 0.0 6 0.0 0 1.0 158 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1517
             labelPosition: topLeft
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1518
             translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1519
             component: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1520
            (SpecCollection
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1521
               collection: (
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1522
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1523
                   label: 'Width:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1524
                   name: 'labelWidth'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1525
                   layout: (AlignmentOrigin 89 0 41 0 1 0.5)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1526
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1527
                   adjust: right
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1528
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1529
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1530
                   name: 'fieldLeftOffset'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1531
                   layout: (LayoutFrame 90 0 30 0 140 0 52 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1532
                   activeHelpKey: hrzExtent
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1533
                   enableChannel: notUsingDefaultExtent
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1534
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1535
                   model: leftOffset
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1536
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1537
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1538
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1539
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1540
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1541
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1542
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1543
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1544
                   label: 'Height:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1545
                   name: 'labelHeight'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1546
                   layout: (AlignmentOrigin 89 0 66 0 1 0.5)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1547
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1548
                   adjust: right
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1549
                 )
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1550
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1551
                   name: 'fieldRightOffset'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1552
                   layout: (LayoutFrame 90 0 55 0 140 0 77 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1553
                   activeHelpKey: vrtExtent
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1554
                   enableChannel: notUsingDefaultExtent
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1555
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1556
                   model: topOffset
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1557
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1558
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1559
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1560
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1561
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1562
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1563
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1564
                (CheckBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1565
                   label: 'Preferred'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1566
                   name: 'CheckBox1'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1567
                   layout: (LayoutFrame 169 0 30 0 275 0 52 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1568
                   activeHelpKey: usePreferredWidth
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1569
                   model: usePreferredWidth
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1570
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1571
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1572
                (CheckBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1573
                   label: 'Dynamic'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1574
                   name: 'CheckBox3'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1575
                   layout: (LayoutFrame 276 0 30 0 371 0 52 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1576
                   activeHelpKey: useDynamicPreferredWidth
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1577
                   model: useDynamicPreferredWidth
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1578
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1579
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1580
                (CheckBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1581
                   label: 'Preferred'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1582
                   name: 'CheckBox2'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1583
                   layout: (LayoutFrame 169 0 58 0 275 0 80 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1584
                   activeHelpKey: usePreferredHeight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1585
                   model: usePreferredHeight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1586
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1587
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1588
                (CheckBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1589
                   label: 'Dynamic'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1590
                   name: 'CheckBox4'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1591
                   layout: (LayoutFrame 276 0 58 0 372 0 80 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1592
                   activeHelpKey: useDynamicPreferredHeight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1593
                   model: useDynamicPreferredHeight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1594
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1595
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1596
                (CheckBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1597
                   label: 'Use Widget''s Default Extent'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1598
                   name: 'useDefaultExtentCheckBox'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1599
                   layout: (Point 5 84)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1600
                   activeHelpKey: useDefaultExtent
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1601
                   enableChannel: defaultExtentEnabled
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1602
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1603
                   model: useDefaultExtent
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1604
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1605
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1606
                )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1607
              
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1608
             )
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1609
           )
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1610
          (PopUpListSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1611
             label: 'Common Extents'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1612
             name: 'CommonExtentsPopUpList'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1613
             layout: (LayoutFrame 189 0 21 0 314 0 43 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1614
             tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1615
             menu: listOfCommonExtents
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1616
             useIndex: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1617
             ignoreReselect: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1618
             stateChangeCallBackSelector: commonExtentSelected:
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1619
           )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1620
          )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1621
        
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1622
       )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  1623
     )
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1624
! !
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1625
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1626
!UILayoutTool::Extent methodsFor:'accessing'!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1627
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1628
fetch:aView spec:aSpec
2022
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1629
    "fetch the extent from aView"
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1630
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1631
    |extent|
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1632
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1633
    extent  := aView computeExtent.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1634
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1635
    (self aspectFor:#leftOffset)  value:(extent x).
2022
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1636
    (self aspectFor:#topOffset)   value:(extent y).
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1637
2478
d0ea9b4d0955 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2379
diff changeset
  1638
    (self aspectFor:#usePreferredWidth) value:(aSpec usePreferredWidth).
d0ea9b4d0955 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2379
diff changeset
  1639
    (self aspectFor:#usePreferredHeight) value:(aSpec usePreferredHeight).
d0ea9b4d0955 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2379
diff changeset
  1640
    (self aspectFor:#useDynamicPreferredWidth) value:(aSpec useDynamicPreferredWidth).
d0ea9b4d0955 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2379
diff changeset
  1641
    (self aspectFor:#useDynamicPreferredHeight) value:(aSpec useDynamicPreferredHeight).
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1642
    (self aspectFor:#useDefaultExtent) value:aSpec useDefaultExtent 
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1643
!
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1644
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1645
layout
2022
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1646
    "returns the current extent"
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1647
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1648
    ^ (((self aspectFor:#leftOffset) value) ? 0) @ (((self aspectFor:#topOffset)  value) ? 0)
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1649
! !
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1650
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1651
!UILayoutTool::Extent methodsFor:'aspects'!
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1652
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1653
commonExtentsSpec
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1654
    ^ #( 
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1655
        ('200 x 100'  (200 100) ) 
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1656
        ('300 x 300'  (300 300) ) 
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1657
        ('640 x 400'  (640 400) ) 
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1658
        ('800 x 600'  (800 600) ) 
2214
c31fd43cbac3 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  1659
        ('1024 x 768'  (1024 768) ) 
c31fd43cbac3 UseViewScroller
Claus Gittinger <cg@exept.de>
parents: 2207
diff changeset
  1660
        ('1200 x 800'  (1200 800) ) 
2022
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1661
      )
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1662
!
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1663
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1664
listOfCommonExtents
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1665
    ^ self commonExtentsSpec collect:[:eachRow | eachRow first].
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1666
! !
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1667
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1668
!UILayoutTool::Extent methodsFor:'user actions'!
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1669
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1670
commonExtentSelected:index
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1671
    |xy x y|
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1672
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1673
    xy := (self commonExtentsSpec at:index) second. 
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1674
    x := xy at:1.
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1675
    y := xy at:2.
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1676
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1677
    (self aspectFor:#leftOffset)  value:x.
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1678
    (self aspectFor:#topOffset)   value:y.
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1679
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1680
    (builder componentAt:#CommonExtentsPopUpList) 
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1681
        label:(resources string:'Common Extents').
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1682
! !
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  1683
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  1684
!UILayoutTool::LayoutFrame class methodsFor:'defaults'!
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  1685
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  1686
defaultFixPartHeight
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  1687
    ^ DefaultFixPartHeight ? 30
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  1688
! !
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  1689
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1690
!UILayoutTool::LayoutFrame class methodsFor:'help specs'!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1691
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1692
helpSpec
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1693
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1694
     by the UIHelpTool of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1695
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1696
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1697
     the UIHelpTool may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1698
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1699
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1700
     UIHelpTool openOnClass:UILayoutTool::LayoutFrame    
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1701
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1702
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1703
    <resource: #help>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1704
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1705
    ^ super helpSpec addPairsFrom:#(
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1706
2949
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1707
#bigBottomFixPartLayout
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1708
'Set layout for a big fixed area at the bottom of the widgets container'
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1709
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1710
#bigHorizontalFixPartLayout
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1711
'Set layout for a big fixed-height area centered vertically in the widgets container'
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1712
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1713
#bigTopFixPartLayout
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1714
'Set layout for a big fixed area at the top of the widgets container'
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1715
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1716
#bottomAbsolute
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1717
'Offset of the bottom edge; positive is to the bottom, negative to the top.'
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1718
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1719
#bottomFixPartLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1720
'Set layout for a small fixed area at the bottom of the widgets container'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1721
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1722
#bottomHalfLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1723
'Set layout for the bottom half of the widgets container'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1724
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1725
#bottomLeftQuarterLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1726
'Set layout for the bottom-left quarter of the widgets container'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1727
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1728
#bottomRelative
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1729
'Relative corner y of the selected widget.'
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1730
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1731
#bottomRightQuarterLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1732
'Set layout for the bottom-right quarter of the widgets container'
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1733
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1734
#fullLayout
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1735
'Set layout to fill all of the widgets container'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1736
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1737
#horizontalFixPartLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1738
'Set layout for a small fixed-height area centered vertically in the widgets container'
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1739
2953
934578ff722b class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2949
diff changeset
  1740
#keepSpaceForOSXResizeHandleH
2949
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1741
'Keep space at the right for the window resize handle under MAXOS-X; ignored when running on other systems'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1742
2953
934578ff722b class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2949
diff changeset
  1743
#keepSpaceForOSXResizeHandleV
934578ff722b class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2949
diff changeset
  1744
'Keep space at the bottom for the window resize handle under MAXOS-X; ignored when running on other systems'
934578ff722b class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2949
diff changeset
  1745
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1746
#leftFixPartLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1747
'Set layout for a small fixed area at the left of the widgets container'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1748
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1749
#leftHalfLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1750
'Set layout for the left half of the widgets container'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1751
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1752
#makeBottomAbsolute
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1753
'Compute pure-absolute y.'
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1754
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1755
#makeBottomRelative
1955
91610d2b87f7 help texts
Claus Gittinger <cg@exept.de>
parents: 1874
diff changeset
  1756
'Compute pure-fractional y.'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1757
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1758
#makeBottomRelativeFromBottom
2022
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1759
'Compute fraction+offset for y relative to containers bottom.'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1760
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1761
#makeRightAbsolute
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1762
'Compute pure-absolute x.'
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1763
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1764
#makeRightRelative
1955
91610d2b87f7 help texts
Claus Gittinger <cg@exept.de>
parents: 1874
diff changeset
  1765
'Compute pure-fractional x.'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1766
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1767
#makeRightRelativeFromRight
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1768
'Compute fraction+offset for x relative to containers right.'
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1769
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1770
#rightAbsolute
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1771
'Offset of the right edge; positive is to the right, negative to the left.'
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1772
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1773
#rightFixPartLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1774
'Set layout for a small fixed area at the right of the widgets container'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1775
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1776
#rightHalfLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1777
'Set layout for the right half of the widgets container'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1778
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1779
#rightRelative
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1780
'Relative corner x of the selected widget.'
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1781
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1782
#screenFrameLayout
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1783
''
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1784
2949
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1785
#useDynamicPreferredWidth
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1786
'Dynamically adapt to any change of the widget''s preferred width'
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1787
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1788
#useDynamicPreferredHeight
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1789
'Dynamically adapt to any change of the widget''s preferred height'
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1790
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1791
#usePreferredHeight
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1792
'Use the widget''s preferred height as initial size'
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1793
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1794
#usePreferredWidth
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1795
'Use the widget''s preferred width as initial size'
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1796
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  1797
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1798
#topFixPartLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1799
'Set layout for a small fixed area at the top of the widgets container'
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1800
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1801
#topHalfLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1802
'Set layout for the top half of the widgets container'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1803
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1804
#topLeftQuarterLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1805
'Set layout for the top-left quarter of the widgets container'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1806
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1807
#topRightQuarterLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1808
'Set layout for the top-right quarter of the widgets container'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1809
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1810
#verticalFixPartLayout
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  1811
'Set layout for a small fixed-width area centered horizontally in the widgets container'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1812
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1813
)
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1814
! !
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1815
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1816
!UILayoutTool::LayoutFrame class methodsFor:'image specs'!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1817
1706
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1818
setBigBottomFixPartIcon
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1819
    "This resource specification was automatically generated
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1820
     by the ImageEditor of ST/X."
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1821
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1822
    "Do not manually edit this!! If it is corrupted,
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1823
     the ImageEditor may not be able to read the specification."
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1824
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1825
    "
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1826
     self setBigBottomFixPartIcon inspect
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1827
     ImageEditor openOnClass:self andSelector:#setBigBottomFixPartIcon
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1828
     Icon flushCachedIcons
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1829
    "
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1830
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1831
    <resource: #image>
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1832
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1833
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1834
        constantNamed:'UILayoutTool::LayoutFrame class setBigBottomFixPartIcon'
2022
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1835
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1836
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"H"H"@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQ
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1837
DQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H"H"H"H"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>A XFA XFA _????????????????????????????<b') ; yourself); yourself]
1706
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1838
!
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1839
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1840
setBigHorizontalFixPartIcon
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1841
    "This resource specification was automatically generated
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1842
     by the ImageEditor of ST/X."
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1843
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1844
    "Do not manually edit this!! If it is corrupted,
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1845
     the ImageEditor may not be able to read the specification."
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1846
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1847
    "
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1848
     self setBigHorizontalFixPartIcon inspect
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1849
     ImageEditor openOnClass:self andSelector:#setBigHorizontalFixPartIcon
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1850
     Icon flushCachedIcons
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1851
    "
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1852
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1853
    <resource: #image>
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1854
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1855
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1856
        constantNamed:'UILayoutTool::LayoutFrame class setBigHorizontalFixPartIcon'
2022
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1857
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1858
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H"
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1859
H"H"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>A XFA??????????????????????????>A XFA??<b') ; yourself); yourself]
1706
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1860
!
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1861
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1862
setBigTopFixPartIcon
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1863
    "This resource specification was automatically generated
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1864
     by the ImageEditor of ST/X."
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1865
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1866
    "Do not manually edit this!! If it is corrupted,
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1867
     the ImageEditor may not be able to read the specification."
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1868
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1869
    "
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1870
     self setBigTopFixPartIcon inspect
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1871
     ImageEditor openOnClass:self andSelector:#setBigTopFixPartIcon
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1872
     Icon flushCachedIcons
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1873
    "
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1874
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1875
    <resource: #image>
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1876
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1877
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1878
        constantNamed:'UILayoutTool::LayoutFrame class setBigTopFixPartIcon'
2022
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1879
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1880
@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @"H"H"H"H"@@@@@@@@@@@@@@
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  1881
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?????????????????????????????8FA XFA XFA??<b') ; yourself); yourself]
1706
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1882
!
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  1883
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1884
setBottomFixPartIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1885
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1886
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1887
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1888
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1889
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1890
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1891
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1892
     self setBottomFixPartIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1893
     ImageEditor openOnClass:self andSelector:#setBottomFixPartIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1894
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1895
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1896
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1897
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1898
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1899
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1900
        constantNamed:'UILayoutTool::LayoutFrame class setBottomFixPartIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1901
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1902
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H"
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1903
H"@BH"H @!!DQD@DQDR@BDQDP@QDQH@H"H"@BH"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@X@A @G???????????????<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1904
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1905
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1906
setBottomHalfIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1907
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1908
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1909
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1910
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1911
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1912
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1913
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1914
     self setBottomHalfIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1915
     ImageEditor openOnClass:self andSelector:#setBottomHalfIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1916
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1917
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1918
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1919
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1920
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1921
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1922
        constantNamed:'UILayoutTool::LayoutFrame class setBottomHalfIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1923
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1924
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H"H"H"@BDQDQDQDQH@HQ
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1925
DQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H"H"H"H"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@_????????????????????<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1926
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1927
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1928
setBottomLeftQuarterIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1929
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1930
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1931
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1932
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1933
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1934
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1935
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1936
     self setBottomLeftQuarterIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1937
     ImageEditor openOnClass:self andSelector:#setBottomLeftQuarterIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1938
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1939
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1940
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1941
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1942
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1943
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1944
        constantNamed:'UILayoutTool::LayoutFrame class setBottomLeftQuarterIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1945
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1946
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H"H"@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQ
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1947
DR@@@@@@@!!DQH@@@@@@BDQD @@@@@@H"H"@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @G?@_<A?0G?@_<A?0G?@_<A??<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1948
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1949
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1950
setBottomRightQuarterIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1951
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1952
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1953
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1954
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1955
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1956
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1957
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1958
     self setBottomRightQuarterIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1959
     ImageEditor openOnClass:self andSelector:#setBottomRightQuarterIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1960
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1961
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1962
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1963
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1964
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1965
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1966
        constantNamed:'UILayoutTool::LayoutFrame class setBottomRightQuarterIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1967
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1968
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1969
@@@!!DQD @@@@@BDQDR@@@@@@HQDQH@@@@@@"H"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@X@A @F@@XG? _>A?8G? _>A?8G???<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  1970
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1971
1680
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1972
setFullIcon
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1973
    "This resource specification was automatically generated
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1974
     by the ImageEditor of ST/X."
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1975
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1976
    "Do not manually edit this!! If it is corrupted,
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1977
     the ImageEditor may not be able to read the specification."
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1978
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1979
    "
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1980
     self setFullIcon inspect
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1981
     ImageEditor openOnClass:self andSelector:#setFullIcon
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1982
     Icon flushCachedIcons
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1983
    "
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1984
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1985
    <resource: #image>
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1986
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1987
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1988
        constantNamed:'UILayoutTool::LayoutFrame class setFullIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1989
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
1680
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1990
@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQ
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  1991
DQDQDQD @!!DQDQDQDR@BDQDQDQDQH@H"H"H"H"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??????????????????????????????????????????<b') ; yourself); yourself]
1680
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1992
!
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  1993
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1994
setHorizontalFixPartIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1995
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1996
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1997
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1998
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  1999
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2000
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2001
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2002
     self setHorizontalFixPartIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2003
     ImageEditor openOnClass:self andSelector:#setHorizontalFixPartIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2004
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2005
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2006
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2007
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2008
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2009
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2010
        constantNamed:'UILayoutTool::LayoutFrame class setHorizontalFixPartIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2011
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2012
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"H"H@H"H"@BDQDP@QDQH@HQDQ@ADQD @"H"H@H"H"@@@@@@@@@@@@@@
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2013
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@@X@A @F@@_???????????????8@A @F@@X@A??<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2014
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2015
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2016
setLeftFixPartIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2017
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2018
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2019
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2020
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2021
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2022
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2023
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2024
     self setLeftFixPartIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2025
     ImageEditor openOnClass:self andSelector:#setLeftFixPartIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2026
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2027
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2028
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2029
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2030
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2031
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2032
        constantNamed:'UILayoutTool::LayoutFrame class setLeftFixPartIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2033
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2034
@@@@@@@@@@@BH"@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@@@@@@@@@@@@@@@@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQ
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2035
H@@@@@@@@!!D @@@@@@@BDR@@@@@@@@H"H@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???<@_0A?@G<@_0A?@G<@_0A?@G<@_0A?@G<@_0A??<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2036
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2037
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2038
setLeftHalfIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2039
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2040
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2041
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2042
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2043
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2044
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2045
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2046
     self setLeftHalfIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2047
     ImageEditor openOnClass:self andSelector:#setLeftHalfIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2048
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2049
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2050
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2051
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2052
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2053
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2054
        constantNamed:'UILayoutTool::LayoutFrame class setLeftHalfIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2055
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2056
@@@@@@@@@@@BH"H @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQ
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2057
DR@@@@@@@!!DQH@@@@@@BDQD @@@@@@H"H"@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'????@_<A?0G?@_<A?0G?@_<A?0G?@_<A?0G?@_<A??<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2058
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2059
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2060
setRightFixPartIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2061
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2062
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2063
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2064
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2065
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2066
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2067
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2068
     self setRightFixPartIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2069
     ImageEditor openOnClass:self andSelector:#setRightFixPartIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2070
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2071
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2072
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2073
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2074
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2075
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2076
        constantNamed:'UILayoutTool::LayoutFrame class setRightFixPartIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2077
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2078
@@@@@@@@@@@@@@@@@@H"H@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BDR@@@@@@@@@@@@@@@@@@@@@@@@@@@@@BDR@@@@@@@@HQH@@@
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2079
@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@O8@? C>@O8@? C>@O8@? C>@O8@? C>@O8@???<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2080
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2081
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2082
setRightHalfIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2083
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2084
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2085
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2086
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2087
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2088
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2089
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2090
     self setRightHalfIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2091
     ImageEditor openOnClass:self andSelector:#setRightHalfIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2092
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2093
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2094
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2095
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2096
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2097
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2098
        constantNamed:'UILayoutTool::LayoutFrame class setRightHalfIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2099
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2100
@@@@@@@@@@@@@@@@@"H"H@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2101
@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BH"H @@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@?8C? O>@?8C? O>@?8C? O>@?8C? O>@?8C???<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2102
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2103
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2104
setToRightQuarterIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2105
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2106
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2107
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2108
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2109
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2110
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2111
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2112
     self setToRightQuarterIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2113
     ImageEditor openOnClass:self andSelector:#setToRightQuarterIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2114
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2115
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2116
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2117
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2118
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2119
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2120
        constantNamed:'UILayoutTool::LayoutFrame class setToRightQuarterIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2121
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2122
@@@@@@@@@@@@@@@@@"H"H@@@@@@BDQD @@@@@@HQDR@@@@@@@!!DQH@@@@@@BDQD @@@@@@HQDR@@@@@@@"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2123
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>@?8C? O>@?8C? O>@?8C? @F@@X@A @F@@X@A??<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2124
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2125
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2126
setTopFixPartIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2127
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2128
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2129
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2130
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2131
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2132
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2133
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2134
     self setTopFixPartIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2135
     ImageEditor openOnClass:self andSelector:#setTopFixPartIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2136
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2137
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2138
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2139
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2140
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2141
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2142
        constantNamed:'UILayoutTool::LayoutFrame class setTopFixPartIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2143
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2144
@@@@@@@@@@@BH"H @"H"H@HQDQ@ADQD @!!DQD@DQDR@BH"H @"H"H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2145
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???????????????? @F@@X@A @F@@X@A @F@@X@A??<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2146
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2147
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2148
setTopHalfIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2149
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2150
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2151
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2152
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2153
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2154
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2155
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2156
     self setTopHalfIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2157
     ImageEditor openOnClass:self andSelector:#setTopHalfIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2158
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2159
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2160
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2161
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2162
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2163
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2164
        constantNamed:'UILayoutTool::LayoutFrame class setTopHalfIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2165
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2166
@@@@@@@@@@@BH"H"H"H"H@HQDQDQDQD @!!DQDQDQDR@BDQDQDQDQH@HQDQDQDQD @"H"H"H"H"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2167
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?????????????????????8@A @F@@X@A @F@@X@A??<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2168
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2169
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2170
setTopLeftQuarterIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2171
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2172
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2173
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2174
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2175
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2176
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2177
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2178
     self setTopLeftQuarterIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2179
     ImageEditor openOnClass:self andSelector:#setTopLeftQuarterIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2180
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2181
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2182
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2183
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2184
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2185
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2186
        constantNamed:'UILayoutTool::LayoutFrame class setTopLeftQuarterIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2187
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2188
@@@@@@@@@@@BH"H"@@@@@@HQDQH@@@@@@!!DQD @@@@@BDQDR@@@@@@HQDQH@@@@@@"H"H @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2189
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???? _>A?8G? _>A?8G? X@A @F@@X@A @F@@X@A??<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2190
!
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2191
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2192
setVerticalFixPartIcon
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2193
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2194
     by the ImageEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2195
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2196
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2197
     the ImageEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2198
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2199
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2200
     self setVerticalFixPartIcon inspect
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2201
     ImageEditor openOnClass:self andSelector:#setVerticalFixPartIcon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2202
     Icon flushCachedIcons
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2203
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2204
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2205
    <resource: #image>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2206
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2207
    ^Icon
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2208
        constantNamed:'UILayoutTool::LayoutFrame class setVerticalFixPartIcon'
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2209
        ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2210
@@@@@@@@@@@@@@@"H @@@@@@@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BDR@@@@@@@@HQH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@HQH@@@@@@@@!!D @@@@@@
2269
acc4ae8e5f38 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2214
diff changeset
  2211
@BDR@@@@@@@@HQH@@@@@@@@!!D @@@@@@@BH"@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'??>G8X_!!!!>FG8X_!!!!>FG8X_!!!!>FG8X_!!!!>FG8X_!!??<b') ; yourself); yourself]
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2212
! !
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2213
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2214
!UILayoutTool::LayoutFrame class methodsFor:'interface specs'!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2215
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2216
windowSpec
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2217
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2218
     by the UIPainter of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2219
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2220
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2221
     the UIPainter may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2222
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2223
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2224
     UIPainter new openOnClass:UILayoutTool::LayoutFrame andSelector:#windowSpec
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2225
     UILayoutTool::LayoutFrame new openInterface:#windowSpec
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2226
     UILayoutTool::LayoutFrame open
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2227
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2228
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2229
    <resource: #canvas>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2230
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2231
    ^ 
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2232
    #(FullSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2233
       name: windowSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2234
       window: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2235
      (WindowSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2236
         label: 'UILayoutTool-LayoutFrame'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2237
         name: 'UILayoutTool-LayoutFrame'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2238
         min: (Point 10 10)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2239
         bounds: (Rectangle 0 0 527 393)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2240
       )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2241
       component: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2242
      (SpecCollection
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2243
         collection: (
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2244
          (UISubSpecification
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2245
             name: 'layoutOriginSpec'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2246
             layout: (LayoutFrame 1 0.0 6 0 0 1.0 110 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2247
             majorKey: UILayoutTool
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2248
             minorKey: layoutOriginSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2249
           )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2250
          (FramedBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2251
             label: 'Corner'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2252
             name: 'FramedBox'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2253
             layout: (LayoutFrame 1 0.0 113 0 0 1.0 266 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2254
             labelPosition: topLeft
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2255
             translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2256
             component: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2257
            (SpecCollection
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2258
               collection: (
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2259
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2260
                   label: 'Right:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2261
                   name: 'labelRight'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2262
                   layout: (AlignmentOrigin 68 0 16 0 1 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2263
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2264
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2265
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2266
                   label: 'imageFractX'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2267
                   name: 'actionRelativeRight'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2268
                   layout: (LayoutFrame 78 0 14 0 100 0 36 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2269
                   activeHelpKey: makeRightRelative
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2270
                   hasCharacterOrientedLabel: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2271
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2272
                   model: relativeRight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2273
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2274
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2275
                   name: 'fieldRightFraction'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2276
                   layout: (LayoutFrame 103 0 14 0 153 0 36 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2277
                   activeHelpKey: rightRelative
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2278
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2279
                   model: rightFraction
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2280
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2281
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2282
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2283
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2284
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2285
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2286
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2287
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2288
                   label: 'imageAbsX'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2289
                   name: 'actionAbsoluteRight'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2290
                   layout: (LayoutFrame 178 0 14 0 200 0 36 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2291
                   activeHelpKey: makeRightAbsolute
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2292
                   hasCharacterOrientedLabel: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2293
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2294
                   model: absoluteRight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2295
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2296
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2297
                   name: 'fieldRightOffset'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2298
                   layout: (LayoutFrame 203 0 14 0 253 0 36 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2299
                   activeHelpKey: rightAbsolute
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2300
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2301
                   model: rightOffset
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2302
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2303
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2304
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2305
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2306
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2307
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2308
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2309
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2310
                   label: 'imageAbsXFromRight'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2311
                   name: 'actionRightRelativeRight'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2312
                   layout: (LayoutFrame 257 0 14 0 279 0 36 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2313
                   activeHelpKey: makeRightRelativeFromRight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2314
                   hasCharacterOrientedLabel: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2315
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2316
                   model: rightRelativeRight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2317
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2318
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2319
                   label: 'Bottom:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2320
                   name: 'labelBottom'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2321
                   layout: (AlignmentOrigin 68 0 44 0 1 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2322
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2323
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2324
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2325
                   label: 'imageFractY'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2326
                   name: 'actionRelativeBottom'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2327
                   layout: (LayoutFrame 78 0 42 0 100 0 64 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2328
                   activeHelpKey: makeBottomRelative
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2329
                   hasCharacterOrientedLabel: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2330
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2331
                   model: relativeBottom
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2332
                 )
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2333
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2334
                   name: 'fieldBottomFraction'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2335
                   layout: (LayoutFrame 103 0 42 0 153 0 64 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2336
                   activeHelpKey: bottomRelative
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2337
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2338
                   model: bottomFraction
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2339
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2340
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2341
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2342
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2343
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2344
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2345
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2346
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2347
                   label: 'imageAbsY'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2348
                   name: 'actionAbsoluteBottom'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2349
                   layout: (LayoutFrame 178 0 42 0 200 0 64 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2350
                   activeHelpKey: makeBottomAbsolute
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2351
                   hasCharacterOrientedLabel: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2352
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2353
                   model: absoluteBottom
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2354
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2355
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2356
                   name: 'fieldBottomOffset'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2357
                   layout: (LayoutFrame 203 0 42 0 253 0 64 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2358
                   activeHelpKey: bottomAbsolute
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2359
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2360
                   model: bottomOffset
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2361
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2362
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2363
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2364
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2365
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2366
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2367
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2368
                (ActionButtonSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2369
                   label: 'imageAbsYFromBottom'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2370
                   name: 'actionBottomRelativeBottom'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2371
                   layout: (LayoutFrame 257 0 42 0 279 0 64 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2372
                   activeHelpKey: makeBottomRelativeFromBottom
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2373
                   hasCharacterOrientedLabel: false
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2374
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2375
                   model: bottomRelativeBottom
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2376
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2377
                (CheckBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2378
                   label: 'Preferred'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2379
                   name: 'CheckBox1'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2380
                   layout: (LayoutFrame 287 0 14 0 393 0 36 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2381
                   activeHelpKey: usePreferredWidth
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2382
                   model: usePreferredWidth
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2383
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2384
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2385
                (CheckBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2386
                   label: 'Preferred'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2387
                   name: 'CheckBox2'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2388
                   layout: (LayoutFrame 287 0 42 0 393 0 64 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2389
                   activeHelpKey: usePreferredHeight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2390
                   model: usePreferredHeight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2391
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2392
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2393
                (CheckBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2394
                   label: 'Dynamic'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2395
                   name: 'CheckBox3'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2396
                   layout: (LayoutFrame 394 0 14 0 481 0 36 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2397
                   activeHelpKey: useDynamicPreferredWidth
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2398
                   model: useDynamicPreferredWidth
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2399
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2400
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2401
                (CheckBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2402
                   label: 'Dynamic'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2403
                   name: 'CheckBox4'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2404
                   layout: (LayoutFrame 394 0 42 0 481 0 64 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2405
                   activeHelpKey: useDynamicPreferredWidth
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2406
                   model: useDynamicPreferredHeight
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2407
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2408
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2409
                (CheckBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2410
                   label: 'OSX-ResizeH'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2411
                   name: 'OSXResizeH Checkbox'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2412
                   layout: (LayoutFrame 287 0 70 0 480 0 92 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2413
                   activeHelpKey: keepSpaceForOSXResizeHandleH
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2414
                   model: keepSpaceForOSXResizeHandleH
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2415
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2416
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2417
                (CheckBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2418
                   label: 'OSX-ResizeV'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2419
                   name: 'OSXResizeV Checkbox'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2420
                   layout: (LayoutFrame 287 0 98 0 480 0 120 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2421
                   activeHelpKey: keepSpaceForOSXResizeHandleV
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2422
                   model: keepSpaceForOSXResizeHandleV
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2423
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2424
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2425
                )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2426
              
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2427
             )
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2428
           )
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2429
          (MenuPanelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2430
             name: 'commonLayoutToolBar1'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2431
             layout: (LayoutFrame 6 0.0 267 0 -4 1.0 299 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2432
             level: 0
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2433
             tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2434
             menu: commonFrameLayoutsMenu1
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2435
             textDefault: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2436
           )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2437
          (MenuPanelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2438
             name: 'commonLayoutToolBar2'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2439
             layout: (LayoutFrame 6 0.0 299 0 -4 1.0 331 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2440
             level: 0
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2441
             tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2442
             menu: commonFrameLayoutsMenu2
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2443
             textDefault: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2444
           )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2445
          (MenuPanelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2446
             name: 'commonLayoutToolBar3'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2447
             layout: (LayoutFrame 6 0.0 323 0 -4 1.0 355 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2448
             level: 0
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2449
             tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2450
             menu: commonFrameLayoutsMenu3
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2451
             textDefault: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2452
           )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2453
          )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2454
        
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2455
       )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  2456
     )
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2457
! !
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2458
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2459
!UILayoutTool::LayoutFrame class methodsFor:'menu specs'!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2460
1680
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2461
commonFrameLayoutsMenu1
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2462
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2463
     by the MenuEditor of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2464
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2465
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2466
     the MenuEditor may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2467
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2468
    "
1680
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2469
     MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu1
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2470
     (Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu1)) startUp
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2471
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2472
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2473
    <resource: #menu>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2474
1680
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2475
    ^ 
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2476
     #(#Menu
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2477
        #(
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2478
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2479
            #activeHelpKey: #fullLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2480
            #label: 'setFullFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2481
            #itemValue: #setFullFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2482
            #nameKey: #setFullFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2483
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2484
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2485
            #labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setFullIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2486
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2487
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2488
            #label: ''
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2489
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2490
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2491
            #activeHelpKey: #topHalfLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2492
            #label: 'setTopHalfFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2493
            #itemValue: #setTopHalfFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2494
            #nameKey: #setTopHalfFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2495
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2496
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2497
            #labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setTopHalfIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2498
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2499
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2500
            #activeHelpKey: #bottomHalfLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2501
            #label: 'setBottomHalfFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2502
            #itemValue: #setBottomHalfFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2503
            #nameKey: #setBottomHalfFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2504
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2505
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2506
            #labelImage: #(#ResourceRetriever nil #setBottomHalfIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2507
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2508
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2509
            #activeHelpKey: #leftHalfLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2510
            #label: 'setLeftHalfFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2511
            #itemValue: #setLeftHalfFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2512
            #nameKey: #setLeftHalfFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2513
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2514
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2515
            #labelImage: #(#ResourceRetriever nil #setLeftHalfIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2516
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2517
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2518
            #activeHelpKey: #rightHalfLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2519
            #label: 'setRightHalfFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2520
            #itemValue: #setRightHalfFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2521
            #nameKey: #setRightHalfFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2522
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2523
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2524
            #labelImage: #(#ResourceRetriever nil #setRightHalfIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2525
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2526
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2527
            #label: ''
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2528
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2529
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2530
            #activeHelpKey: #topLeftQuarterLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2531
            #label: 'setTopLeftQuarterFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2532
            #itemValue: #setTopLeftQuarterFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2533
            #nameKey: #setTopLeftQuarterFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2534
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2535
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2536
            #labelImage: #(#ResourceRetriever nil #setTopLeftQuarterIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2537
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2538
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2539
            #activeHelpKey: #topRightQuarterLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2540
            #label: 'setTopRightQuarterFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2541
            #itemValue: #setTopRightQuarterFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2542
            #nameKey: #setTopRightQuarterFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2543
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2544
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2545
            #labelImage: #(#ResourceRetriever nil #setToRightQuarterIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2546
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2547
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2548
            #activeHelpKey: #bottomRightQuarterLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2549
            #label: 'setBottomRightQuarterFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2550
            #itemValue: #setBottomRightQuarterFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2551
            #nameKey: #setBottomRightQuarterFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2552
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2553
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2554
            #labelImage: #(#ResourceRetriever nil #setBottomRightQuarterIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2555
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2556
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2557
            #activeHelpKey: #bottomLeftQuarterLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2558
            #label: 'setBottomLeftQuarterFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2559
            #itemValue: #setBottomLeftQuarterFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2560
            #nameKey: #setBottomLeftQuarterFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2561
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2562
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2563
            #labelImage: #(#ResourceRetriever nil #setBottomLeftQuarterIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2564
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2565
         )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2566
        nil
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2567
        nil
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2568
      )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2569
!
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2570
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2571
commonFrameLayoutsMenu2
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2572
    "This resource specification was automatically generated
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2573
     by the MenuEditor of ST/X."
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2574
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2575
    "Do not manually edit this!! If it is corrupted,
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2576
     the MenuEditor may not be able to read the specification."
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2577
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2578
    "
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2579
     MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu2
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2580
     (Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu2)) startUp
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2581
    "
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2582
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2583
    <resource: #menu>
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2584
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2585
    ^ 
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2586
     #(#Menu
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2587
        #(
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2588
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2589
            #activeHelpKey: #topFixPartLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2590
            #label: 'setTopFixPartFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2591
            #itemValue: #setTopFixPartFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2592
            #nameKey: #setTopFixPartFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2593
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2594
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2595
            #labelImage: #(#ResourceRetriever nil #setTopFixPartIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2596
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2597
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2598
            #activeHelpKey: #horizontalFixPartLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2599
            #label: 'setHorizontalFixPartFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2600
            #itemValue: #setHorizontalFixPartFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2601
            #nameKey: #setHorizontalFixPartFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2602
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2603
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2604
            #labelImage: #(#ResourceRetriever nil #setHorizontalFixPartIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2605
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2606
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2607
            #activeHelpKey: #bottomFixPartLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2608
            #label: 'setBottomFixPartFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2609
            #itemValue: #setBottomFixPartFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2610
            #nameKey: #setBottomFixPartFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2611
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2612
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2613
            #labelImage: #(#ResourceRetriever nil #setBottomFixPartIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2614
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2615
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2616
            #label: ''
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2617
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2618
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2619
            #activeHelpKey: #leftFixPartLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2620
            #label: 'setLeftFixPartFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2621
            #itemValue: #setLeftFixPartFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2622
            #nameKey: #setLeftFixPartFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2623
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2624
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2625
            #labelImage: #(#ResourceRetriever nil #setLeftFixPartIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2626
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2627
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2628
            #activeHelpKey: #verticalFixPartLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2629
            #label: 'setVerticalFixPartFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2630
            #itemValue: #setVerticalFixPartFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2631
            #nameKey: #setVerticalFixPartFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2632
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2633
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2634
            #labelImage: #(#ResourceRetriever nil #setVerticalFixPartIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2635
          )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2636
         #(#MenuItem
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2637
            #activeHelpKey: #rightFixPartLayout
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2638
            #label: 'setRightFixPartFrame'
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2639
            #itemValue: #setRightFixPartFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2640
            #nameKey: #setRightFixPartFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2641
            #translateLabel: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2642
            #isButton: true
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2643
            #labelImage: #(#ResourceRetriever nil #setRightFixPartIcon)
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2644
          )
1706
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2645
         #(#MenuItem
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2646
            #label: ''
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2647
          )
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2648
         #(#MenuItem
1709
f5bb3fc6e05a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  2649
            #activeHelpKey: #bigTopFixPartLayout
1706
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2650
            #label: 'setBigTopFixPartFrame'
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2651
            #itemValue: #setBigTopFixPartFrame
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2652
            #nameKey: #setBigTopFixPartFrame
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2653
            #translateLabel: true
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2654
            #isButton: true
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2655
            #labelImage: #(#ResourceRetriever nil #setBigTopFixPartIcon)
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2656
          )
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2657
         #(#MenuItem
1709
f5bb3fc6e05a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  2658
            #activeHelpKey: #bigHorizontalFixPartLayout
1706
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2659
            #label: 'setBigHorizontalFixPartFrame'
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2660
            #itemValue: #setBigHorizontalFixPartFrame
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2661
            #nameKey: #setBigHorizontalFixPartFrame
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2662
            #translateLabel: true
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2663
            #isButton: true
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2664
            #labelImage: #(#ResourceRetriever nil #setBigHorizontalFixPartIcon)
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2665
          )
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2666
         #(#MenuItem
1709
f5bb3fc6e05a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  2667
            #activeHelpKey: #bigBottomFixPartLayout
1706
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2668
            #label: 'setBigBottomFixPartFrame'
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2669
            #itemValue: #setBigBottomFixPartFrame
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2670
            #nameKey: #setBigBottomFixPartFrame
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2671
            #translateLabel: true
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2672
            #isButton: true
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2673
            #labelImage: #(#ResourceRetriever nil #setBigBottomFixPartIcon)
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2674
          )
1680
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2675
         )
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2676
        nil
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2677
        nil
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2678
      )
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2679
!
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2680
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2681
commonFrameLayoutsMenu3
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2682
    "This resource specification was automatically generated
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2683
     by the MenuEditor of ST/X."
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2684
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2685
    "Do not manually edit this!! If it is corrupted,
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2686
     the MenuEditor may not be able to read the specification."
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2687
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2688
    "
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2689
     MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu3
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2690
     (Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu3)) startUp
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2691
    "
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2692
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2693
    <resource: #menu>
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2694
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2695
    ^ 
1858
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2696
     #(Menu
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2697
        (
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2698
         (MenuItem
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2699
            activeHelpKey: screenFrameLayout
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2700
            label: 'setScreenFrame'
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2701
            itemValue: setScreenFrame
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2702
            nameKey: setScreenFrame
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2703
            translateLabel: true
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2704
            isButton: true
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2705
            isVisible: false
4a73301e4eb4 *** empty log message ***
ca
parents: 1826
diff changeset
  2706
            labelImage: (ResourceRetriever #'UILayoutTool::LayoutFrame' setScreenIcon)
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2707
          )
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2708
         )
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2709
        nil
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2710
        nil
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2711
      )
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2712
! !
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2713
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2714
!UILayoutTool::LayoutFrame methodsFor:'accessing'!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2715
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2716
fetch:aView spec:aSpec
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2717
    |layout|
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2718
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2719
    aSpec class == WindowSpec ifTrue:[
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2720
         (layout := aSpec layout) isNil ifTrue:[
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2721
             layout := aSpec bounds asLayout.
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2722
         ] 
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2723
    ] ifFalse: [
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2724
         layout  := UIPainterView asLayoutFrameFromView:aView.
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2725
    ].
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2726
    (self aspectFor:#leftOffset)     value:(layout leftOffset).
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2727
    (self aspectFor:#leftFraction)   value:(layout leftFraction).
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2728
    (self aspectFor:#topOffset)      value:(layout topOffset).
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2729
    (self aspectFor:#topFraction)    value:(layout topFraction).
2478
d0ea9b4d0955 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2379
diff changeset
  2730
    (self aspectFor:#rightOffset)    value:(layout rightOffset value).  "take care of blocks"
d0ea9b4d0955 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2379
diff changeset
  2731
    (self aspectFor:#bottomOffset)   value:(layout bottomOffset value). "take care of blocks"
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2732
    (self aspectFor:#rightFraction)  value:(layout rightFraction).
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2733
    (self aspectFor:#bottomFraction) value:(layout bottomFraction).
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2734
2379
d54bd94c8090 pref w/h + dynamic
Claus Gittinger <cg@exept.de>
parents: 2365
diff changeset
  2735
    (self aspectFor:#usePreferredWidth) value:(aSpec usePreferredWidth).
d54bd94c8090 pref w/h + dynamic
Claus Gittinger <cg@exept.de>
parents: 2365
diff changeset
  2736
    (self aspectFor:#usePreferredHeight) value:(aSpec usePreferredHeight).
d54bd94c8090 pref w/h + dynamic
Claus Gittinger <cg@exept.de>
parents: 2365
diff changeset
  2737
    (self aspectFor:#useDynamicPreferredWidth) value:(aSpec useDynamicPreferredWidth).
d54bd94c8090 pref w/h + dynamic
Claus Gittinger <cg@exept.de>
parents: 2365
diff changeset
  2738
    (self aspectFor:#useDynamicPreferredHeight) value:(aSpec useDynamicPreferredHeight).
2949
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  2739
2953
934578ff722b class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2949
diff changeset
  2740
    (self aspectFor:#keepSpaceForOSXResizeHandleV) value:(aSpec keepSpaceForOSXResizeHandleV).
934578ff722b class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2949
diff changeset
  2741
    (self aspectFor:#keepSpaceForOSXResizeHandleH) value:(aSpec keepSpaceForOSXResizeHandleH).
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2742
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2743
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2744
layout
2379
d54bd94c8090 pref w/h + dynamic
Claus Gittinger <cg@exept.de>
parents: 2365
diff changeset
  2745
    "returns the current layout as layoutFrame
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2746
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2747
    |layout|
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2748
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2749
    layout  := Smalltalk::LayoutFrame new.
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2750
1581
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2751
    layout 
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2752
        leftFraction:(((self aspectFor:#leftFraction)   value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2753
              offset:(((self aspectFor:#leftOffset)     value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2754
        rightFraction:(((self aspectFor:#rightFraction)  value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2755
              offset:(((self aspectFor:#rightOffset)    value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2756
        topFraction:(((self aspectFor:#topFraction)    value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2757
              offset:(((self aspectFor:#topOffset)      value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2758
        bottomFraction:(((self aspectFor:#bottomFraction) value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2759
              offset:(((self aspectFor:#bottomOffset)   value) ? 0).
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2760
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2761
  ^ layout
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2762
! !
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2763
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2764
!UILayoutTool::LayoutFrame methodsFor:'common frames'!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2765
1706
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2766
setBigBottomFixPartFrame
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2767
    self
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2768
        setFrameLeft:0   offset:0 
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2769
        right:1          offset:0 
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2770
        top:0            offset:(self class defaultFixPartHeight) 
1706
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2771
        bottom:1         offset:0
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2772
!
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2773
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2774
setBigHorizontalFixPartFrame
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2775
    self
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2776
        setFrameLeft:0   offset:0 
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2777
        right:1          offset:0 
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2778
        top:0            offset:(self class defaultFixPartHeight) 
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2779
        bottom:1         offset:(self class defaultFixPartHeight negated)
1706
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2780
!
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2781
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2782
setBigTopFixPartFrame
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2783
    self
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2784
        setFrameLeft:0   offset:0 
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2785
        right:1          offset:0 
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2786
        top:0            offset:0 
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2787
        bottom:1         offset:(self class defaultFixPartHeight negated)
1706
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2788
!
16ec8113198f more layouts
Claus Gittinger <cg@exept.de>
parents: 1680
diff changeset
  2789
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2790
setBottomFixPartFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2791
    self
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2792
        setFrameLeft:0   offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2793
        right:1          offset:0 
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2794
        top:1            offset:(self class defaultFixPartHeight negated) 
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2795
        bottom:1         offset:0
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2796
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2797
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2798
setBottomHalfFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2799
    self
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2800
        setFrameLeft:0  offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2801
        right:1         offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2802
        top:0.5         offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2803
        bottom:1        offset:0
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2804
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2805
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2806
setBottomLeftQuarterFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2807
    self
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2808
        setFrameLeft:0   offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2809
        right:0.5        offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2810
        top:0.5          offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2811
        bottom:1         offset:0
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2812
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2813
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2814
setBottomRightQuarterFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2815
    self
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2816
        setFrameLeft:0.5 offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2817
        right:1          offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2818
        top:0.5          offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2819
        bottom:1         offset:0
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2820
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2821
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2822
setFrameLeft:lF offset:lO right:rF offset:rO top:tF offset:tO bottom:bF offset:bO
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2823
    (self aspectFor:#leftOffset)     value:lO.
2478
d0ea9b4d0955 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2379
diff changeset
  2824
    (self aspectFor:#rightOffset)    value:rO value.
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2825
    (self aspectFor:#topOffset)      value:tO.
2478
d0ea9b4d0955 Fix preferred and dynamic preferred sizes
Stefan Vogel <sv@exept.de>
parents: 2379
diff changeset
  2826
    (self aspectFor:#bottomOffset)   value:bO value.
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2827
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2828
    (self aspectFor:#leftFraction)   value:lF.
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2829
    (self aspectFor:#rightFraction)  value:rF.
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2830
    (self aspectFor:#topFraction)    value:tF.
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2831
    (self aspectFor:#bottomFraction) value:bF.
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2832
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2833
1680
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2834
setFullFrame
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2835
    self
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2836
        setFrameLeft:0   offset:0 
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2837
        right:1          offset:0 
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2838
        top:0            offset:0 
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2839
        bottom:1         offset:0
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2840
!
be9c3f67a19b added full-layout button
Claus Gittinger <cg@exept.de>
parents: 1625
diff changeset
  2841
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2842
setHorizontalFixPartFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2843
    self
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2844
        setFrameLeft:0   offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2845
        right:1          offset:0 
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2846
        top:0.5          offset:(self class defaultFixPartHeight negated // 2) 
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2847
        bottom:0.5       offset:(self class defaultFixPartHeight // 2)
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2848
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2849
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2850
setLeftFixPartFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2851
    self
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2852
        setFrameLeft:0   offset:0 
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2853
        right:0          offset:(self class defaultFixPartHeight) 
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2854
        top:0            offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2855
        bottom:1         offset:0
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2856
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2857
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2858
setLeftHalfFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2859
    self
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2860
        setFrameLeft:0  offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2861
        right:0.5       offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2862
        top:0           offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2863
        bottom:1        offset:0
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2864
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2865
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2866
setRightFixPartFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2867
    self
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2868
        setFrameLeft:1   offset:(self class defaultFixPartHeight negated) 
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2869
        right:1          offset:0 
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2870
        top:0            offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2871
        bottom:1         offset:0
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2872
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2873
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2874
setRightHalfFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2875
    self
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2876
        setFrameLeft:0.5 offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2877
        right:1          offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2878
        top:0            offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2879
        bottom:1         offset:0
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2880
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2881
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2882
setTopFixPartFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2883
    self
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2884
        setFrameLeft:0   offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2885
        right:1          offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2886
        top:0            offset:0 
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2887
        bottom:0         offset:(self class defaultFixPartHeight)
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2888
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2889
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2890
setTopHalfFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2891
    self
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2892
        setFrameLeft:0   offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2893
        right:1          offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2894
        top:0            offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2895
        bottom:0.5       offset:0
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2896
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2897
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2898
setTopLeftQuarterFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2899
    self
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2900
        setFrameLeft:0   offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2901
        right:0.5        offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2902
        top:0            offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2903
        bottom:0.5       offset:0
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2904
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2905
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2906
setTopRightQuarterFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2907
    self
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2908
        setFrameLeft:0.5 offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2909
        right:1          offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2910
        top:0            offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2911
        bottom:0.5       offset:0
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2912
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2913
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2914
setVerticalFixPartFrame
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2915
    self
1826
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2916
        setFrameLeft:0.5   offset:(self class defaultFixPartHeight negated // 2 )
25ddfdfe0bf9 *** empty log message ***
werner
parents: 1804
diff changeset
  2917
        right:0.5          offset:(self class defaultFixPartHeight // 2 ) 
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2918
        top:0          offset:0 
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2919
        bottom:1       offset:0
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2920
! !
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  2921
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2922
!UILayoutTool::LayoutOrigin class methodsFor:'interface specs'!
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2923
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2924
windowSpec
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2925
    "This resource specification was automatically generated
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2926
     by the UIPainter of ST/X."
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2927
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2928
    "Do not manually edit this!! If it is corrupted,
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2929
     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
  2930
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2931
    "
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2932
     UIPainter new openOnClass:UILayoutTool::LayoutOrigin andSelector:#windowSpec
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2933
     UILayoutTool::LayoutOrigin new openInterface:#windowSpec
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2934
     UILayoutTool::LayoutOrigin open
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2935
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2936
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2937
    <resource: #canvas>
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2938
1738
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2939
    ^ 
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2940
     #(FullSpec
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2941
        name: windowSpec
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2942
        window: 
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2943
       (WindowSpec
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2944
          label: 'UILayoutTool-LayoutOrigin'
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2945
          name: 'UILayoutTool-LayoutOrigin'
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2946
          min: (Point 10 10)
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2947
          bounds: (Rectangle 14 46 372 192)
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2948
        )
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2949
        component: 
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2950
       (SpecCollection
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2951
          collection: (
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2952
           (UISubSpecification
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2953
              name: 'layoutOriginSpec'
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2954
              layout: (LayoutFrame 1 0.0 6 0 0 1.0 110 0)
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2955
              majorKey: UILayoutTool
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2956
              minorKey: layoutOriginSpec
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2957
            )
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2958
           )
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2959
         
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  2960
        )
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2961
      )
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2962
! !
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2963
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2964
!UILayoutTool::LayoutOrigin methodsFor:'accessing'!
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2965
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2966
fetch:aView spec:aSpec
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2967
    "fetch layoutOrigin
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2968
    "
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2969
    |layout|
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2970
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2971
    layout  := UIPainterView asLayoutFrameFromView:aView.
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2972
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2973
    (self aspectFor:#leftOffset)   value:(layout leftOffset).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2974
    (self aspectFor:#leftFraction) value:(layout leftFraction).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2975
    (self aspectFor:#topOffset)    value:(layout topOffset).
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2976
    (self aspectFor:#topFraction)  value:(layout topFraction).
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2977
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2978
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2979
!
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2980
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2981
layout
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2982
    "returns current layout as layoutOrigin
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2983
    "
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2984
    |layout|
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2985
1447
bf034d910b27 bug fix when setting FrameLayout from menu
ca
parents: 1409
diff changeset
  2986
    layout  := Smalltalk::LayoutOrigin new.
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2987
1581
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2988
    layout 
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2989
        leftFraction:(((self aspectFor:#leftFraction) value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2990
              offset:(((self aspectFor:#leftOffset)   value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2991
        topFraction:(((self aspectFor:#topFraction)  value) ? 0)
d7afe06ebbae *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1447
diff changeset
  2992
             offset:(((self aspectFor:#topOffset)    value) ? 0).
1332
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2993
ba34b85c14d8 do not overwrite defaultFin windowSpec
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
  2994
  ^ layout
1304
ca
parents: 1268
diff changeset
  2995
! !
ca
parents: 1268
diff changeset
  2996
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  2997
!UILayoutTool::Point class methodsFor:'interface specs'!
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  2998
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  2999
windowSpec
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3000
    "This resource specification was automatically generated
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3001
     by the UIPainter of ST/X."
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3002
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3003
    "Do not manually edit this!! If it is corrupted,
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3004
     the UIPainter may not be able to read the specification."
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3005
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3006
    "
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3007
     UIPainter new openOnClass:UILayoutTool::Point andSelector:#windowSpec
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3008
     UILayoutTool::Point new openInterface:#windowSpec
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3009
     UILayoutTool::Point open
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3010
    "
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3011
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3012
    <resource: #canvas>
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3013
1738
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3014
    ^ 
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3015
     #(FullSpec
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3016
        name: windowSpec
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3017
        window: 
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3018
       (WindowSpec
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3019
          label: 'UILayoutTool-Point'
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3020
          name: 'UILayoutTool-Point'
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3021
          min: (Point 10 10)
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3022
          bounds: (Rectangle 14 46 309 184)
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3023
        )
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3024
        component: 
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3025
       (SpecCollection
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3026
          collection: (
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3027
           (UISubSpecification
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3028
              name: 'layoutPointSpec'
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3029
              layout: (LayoutFrame 1 0.0 6 0 0 1.0 100 0)
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3030
              majorKey: UILayoutTool
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3031
              minorKey: layoutPointSpec
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3032
            )
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3033
           )
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3034
         
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3035
        )
1343
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3036
      )
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3037
! !
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3038
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3039
!UILayoutTool::Point methodsFor:'accessing'!
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3040
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3041
fetch:aView spec:aSpec
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3042
    "fetch point
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3043
    "
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3044
    |origin|
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3045
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3046
    origin  := aView computeOrigin.
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3047
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3048
    (self aspectFor:#leftOffset) value:(origin x).
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3049
    (self aspectFor:#topOffset)  value:(origin y).
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3050
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3051
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3052
!
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3053
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3054
layout
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3055
    "returns current layout as point
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3056
    "
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3057
  ^ Smalltalk::Point x:(((self aspectFor:#leftOffset) value) ? 0)
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3058
                     y:(((self aspectFor:#topOffset)  value) ? 0)
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3059
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3060
! !
7d97b214f2ac buttons
Claus Gittinger <cg@exept.de>
parents: 1339
diff changeset
  3061
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3062
!UILayoutTool::Rectangle class methodsFor:'interface specs'!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3063
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3064
windowSpec
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3065
    "This resource specification was automatically generated
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3066
     by the UIPainter of ST/X."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3067
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3068
    "Do not manually edit this!! If it is corrupted,
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3069
     the UIPainter may not be able to read the specification."
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3070
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3071
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3072
     UIPainter new openOnClass:UILayoutTool::Rectangle andSelector:#windowSpec
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3073
     UILayoutTool::Rectangle new openInterface:#windowSpec
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3074
     UILayoutTool::Rectangle open
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3075
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3076
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3077
    <resource: #canvas>
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3078
1738
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3079
    ^ 
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3080
    #(FullSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3081
       name: windowSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3082
       window: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3083
      (WindowSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3084
         label: 'UILayoutTool-Rectangle'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3085
         name: 'UILayoutTool-Rectangle'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3086
         min: (Point 10 10)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3087
         bounds: (Rectangle 0 0 342 199)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3088
       )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3089
       component: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3090
      (SpecCollection
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3091
         collection: (
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3092
          (UISubSpecification
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3093
             name: 'subSpecification'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3094
             layout: (LayoutFrame 1 0.0 6 0 0 1.0 96 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3095
             majorKey: UILayoutTool
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3096
             minorKey: layoutPointSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3097
           )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3098
          (FramedBoxSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3099
             label: 'Corner'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3100
             name: 'FramedBox'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3101
             layout: (LayoutFrame 1 0.0 99 0 0 1.0 194 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3102
             labelPosition: topLeft
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3103
             translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3104
             component: 
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3105
            (SpecCollection
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3106
               collection: (
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3107
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3108
                   label: 'Right:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3109
                   name: 'labelCornerY'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3110
                   layout: (AlignmentOrigin 83 0 16 0 1 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3111
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3112
                   adjust: left
1738
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3113
                 )
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3114
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3115
                   name: 'fieldCornerX'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3116
                   layout: (LayoutFrame 85 0 13 0 135 0 35 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3117
                   activeHelpKey: cornerX
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3118
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3119
                   model: rightOffset
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3120
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3121
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3122
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3123
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3124
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3125
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3126
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3127
                (LabelSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3128
                   label: 'Bottom:'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3129
                   name: 'labelCornerX'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3130
                   layout: (AlignmentOrigin 83 0 41 0 1 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3131
                   translateLabel: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3132
                   adjust: left
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3133
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3134
                (InputFieldSpec
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3135
                   name: 'fieldCornerY'
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3136
                   layout: (LayoutFrame 85 0 38 0 135 0 60 0)
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3137
                   activeHelpKey: cornerY
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3138
                   tabable: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3139
                   model: bottomOffset
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3140
                   group: inputGroup
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3141
                   type: numberOrNil
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3142
                   acceptOnLostFocus: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3143
                   acceptChannel: acceptChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3144
                   modifiedChannel: modifiedChannel
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3145
                   acceptOnPointerLeave: true
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3146
                 )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3147
                )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3148
              
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3149
             )
1738
bdb5bedd2b57 Delete #max: (- windowsize) in windowSpecs
Stefan Vogel <sv@exept.de>
parents: 1726
diff changeset
  3150
           )
3052
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3151
          )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3152
        
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3153
       )
8734833de8fe class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2954
diff changeset
  3154
     )
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3155
! !
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3156
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3157
!UILayoutTool::Rectangle methodsFor:'accessing'!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3158
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3159
fetch:aView spec:aSpec
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3160
    "fetch rectangle
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3161
    "
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3162
    |origin corner|
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3163
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3164
    origin := aView computeOrigin.
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3165
    corner := aView computeCorner.
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3166
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3167
    (self aspectFor:#leftOffset)   value:(origin x).
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3168
    (self aspectFor:#rightOffset)  value:(corner x).
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3169
    (self aspectFor:#topOffset)    value:(origin y).
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3170
    (self aspectFor:#bottomOffset) value:(corner y).
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3171
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3172
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3173
!
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3174
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3175
layout
2022
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  3176
    "returns current layout as rectangle"
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  3177
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  3178
    ^ Smalltalk::Rectangle 
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  3179
        left:(((self aspectFor:#leftOffset)   value) ? 0)
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  3180
        top:(((self aspectFor:#topOffset)    value) ? 0)
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  3181
        right:(((self aspectFor:#rightOffset)  value) ? 0)
746cc87a768e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1955
diff changeset
  3182
        bottom:(((self aspectFor:#bottomOffset) value) ? 0)
1409
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3183
! !
176ae89e0b31 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1343
diff changeset
  3184
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  3185
!UILayoutTool class methodsFor:'documentation'!
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  3186
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  3187
version
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  3188
    ^ '$Header$'
2794
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  3189
!
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  3190
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  3191
version_CVS
56fb74312287 help texts
Claus Gittinger <cg@exept.de>
parents: 2533
diff changeset
  3192
    ^ '$Header$'
163
dff48b7ca574 intitial checkin
ca
parents:
diff changeset
  3193
! !
2949
325e4c28a579 class: UILayoutTool
Claus Gittinger <cg@exept.de>
parents: 2794
diff changeset
  3194