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