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