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