UIPropertyView.st
author ca
Fri, 20 Jun 1997 19:29:36 +0200
changeset 165 f7df2a53d042
parent 156 b332d7117c40
permissions -rw-r--r--
less change notifications
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
     1
"
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
     3
              All Rights Reserved
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
     4
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
     5
 This software is furnished under a license and may be used
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
     6
 only in accordance with the terms of that license and with the
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
     8
 be provided or otherwise made available to, or used by, any
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
     9
 other person.  No title to or ownership of the software is
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    10
 hereby transferred.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    11
"
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    12
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    13
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    14
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
    15
ApplicationModel subclass:#UIPropertyView
111
ca
parents: 90
diff changeset
    16
	instanceVariableNames:'window specClass aspects modified modifiedHolder'
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
    17
	classVariableNames:''
7276365d9311 intitial checkin
ca
parents:
diff changeset
    18
	poolDictionaries:''
7276365d9311 intitial checkin
ca
parents:
diff changeset
    19
	category:'Interface-UIPainter'
7276365d9311 intitial checkin
ca
parents:
diff changeset
    20
!
7276365d9311 intitial checkin
ca
parents:
diff changeset
    21
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    22
UIPropertyView subclass:#Specification
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    23
	instanceVariableNames:'specEdited specChannel'
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    24
	classVariableNames:''
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    25
	poolDictionaries:''
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    26
	privateIn:UIPropertyView
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    27
!
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    28
140
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
    29
UIPropertyView subclass:#Dimension
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
    30
	instanceVariableNames:'noteBook forView selection layoutTypes'
111
ca
parents: 90
diff changeset
    31
	classVariableNames:''
ca
parents: 90
diff changeset
    32
	poolDictionaries:''
ca
parents: 90
diff changeset
    33
	privateIn:UIPropertyView
ca
parents: 90
diff changeset
    34
!
ca
parents: 90
diff changeset
    35
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    36
!UIPropertyView class methodsFor:'documentation'!
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    37
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    38
copyright
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    39
"
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    40
 COPYRIGHT (c) 1997 by eXept Software AG
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    41
              All Rights Reserved
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    42
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    43
 This software is furnished under a license and may be used
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    44
 only in accordance with the terms of that license and with the
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    45
 inclusion of the above copyright notice.   This software may not
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    46
 be provided or otherwise made available to, or used by, any
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    47
 other person.  No title to or ownership of the software is
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    48
 hereby transferred.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    49
"
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    50
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    51
111
ca
parents: 90
diff changeset
    52
!
ca
parents: 90
diff changeset
    53
ca
parents: 90
diff changeset
    54
documentation
ca
parents: 90
diff changeset
    55
"
126
cf76b1df0473 update layout from view
ca
parents: 122
diff changeset
    56
    provides tools to the UIPainter accessing and manipulation properties
cf76b1df0473 update layout from view
ca
parents: 122
diff changeset
    57
    and/or layouts.
cf76b1df0473 update layout from view
ca
parents: 122
diff changeset
    58
cf76b1df0473 update layout from view
ca
parents: 122
diff changeset
    59
    [see also:]
cf76b1df0473 update layout from view
ca
parents: 122
diff changeset
    60
        UIBuilder
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    61
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    62
    [author:]
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    63
        Claus Atzkern
111
ca
parents: 90
diff changeset
    64
"
ca
parents: 90
diff changeset
    65
ca
parents: 90
diff changeset
    66
! !
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
    67
7276365d9311 intitial checkin
ca
parents:
diff changeset
    68
!UIPropertyView class methodsFor:'instance creation'!
7276365d9311 intitial checkin
ca
parents:
diff changeset
    69
111
ca
parents: 90
diff changeset
    70
for:aTool in:aTopview
ca
parents: 90
diff changeset
    71
    |cls appl|
ca
parents: 90
diff changeset
    72
ca
parents: 90
diff changeset
    73
    cls := Smalltalk classNamed:(self name asString, '::', aTool asString).
ca
parents: 90
diff changeset
    74
    appl := cls new.
ca
parents: 90
diff changeset
    75
    appl origin:0.0@0.0 corner:1.0@1.0 in:aTopview.
ca
parents: 90
diff changeset
    76
  ^ appl
ca
parents: 90
diff changeset
    77
!
ca
parents: 90
diff changeset
    78
ca
parents: 90
diff changeset
    79
in:aTopview
ca
parents: 90
diff changeset
    80
    |appl|
ca
parents: 90
diff changeset
    81
ca
parents: 90
diff changeset
    82
    appl := self new.
ca
parents: 90
diff changeset
    83
    appl origin:0.0@0.0 corner:1.0@1.0 in:aTopview.
ca
parents: 90
diff changeset
    84
  ^ appl
ca
parents: 90
diff changeset
    85
! !
ca
parents: 90
diff changeset
    86
ca
parents: 90
diff changeset
    87
!UIPropertyView methodsFor:'accessing'!
ca
parents: 90
diff changeset
    88
ca
parents: 90
diff changeset
    89
buildFromSpec:aSpec
144
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
    90
    |state subViews backGroundColor v|
111
ca
parents: 90
diff changeset
    91
ca
parents: 90
diff changeset
    92
    aSpec ~= specClass ifTrue:[
ca
parents: 90
diff changeset
    93
        window destroySubViews.
ca
parents: 90
diff changeset
    94
ca
parents: 90
diff changeset
    95
        aSpec notNil ifTrue:[
144
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
    96
            v := builder buildFromSpec:aSpec in:window.
111
ca
parents: 90
diff changeset
    97
            window allViewBackground:(self viewBackground).
144
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
    98
            window realizeAllSubViews.
111
ca
parents: 90
diff changeset
    99
        ]
ca
parents: 90
diff changeset
   100
    ].
ca
parents: 90
diff changeset
   101
    specClass := aSpec.
ca
parents: 90
diff changeset
   102
    self modified:false
ca
parents: 90
diff changeset
   103
        
ca
parents: 90
diff changeset
   104
!
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   105
111
ca
parents: 90
diff changeset
   106
modified
ca
parents: 90
diff changeset
   107
    "returns modifying state
ca
parents: 90
diff changeset
   108
    "
ca
parents: 90
diff changeset
   109
    ^ modified
ca
parents: 90
diff changeset
   110
!
ca
parents: 90
diff changeset
   111
ca
parents: 90
diff changeset
   112
modified:aState
ca
parents: 90
diff changeset
   113
    "set modifying state
ca
parents: 90
diff changeset
   114
    "
ca
parents: 90
diff changeset
   115
    modified := aState.
ca
parents: 90
diff changeset
   116
ca
parents: 90
diff changeset
   117
    modifiedHolder notNil ifTrue:[
ca
parents: 90
diff changeset
   118
        modifiedHolder value ~~ modified ifTrue:[
ca
parents: 90
diff changeset
   119
            modifiedHolder value:modified
ca
parents: 90
diff changeset
   120
        ]
ca
parents: 90
diff changeset
   121
    ]
ca
parents: 90
diff changeset
   122
!
ca
parents: 90
diff changeset
   123
ca
parents: 90
diff changeset
   124
modifiedHolder
ca
parents: 90
diff changeset
   125
    "returns the value holder set to true in case of modifying attributes
ca
parents: 90
diff changeset
   126
    "
ca
parents: 90
diff changeset
   127
    ^ modifiedHolder
ca
parents: 90
diff changeset
   128
!
ca
parents: 90
diff changeset
   129
ca
parents: 90
diff changeset
   130
modifiedHolder:aValueHolder
ca
parents: 90
diff changeset
   131
    "set the value holder set to true in case of modifying attributes
ca
parents: 90
diff changeset
   132
    "
ca
parents: 90
diff changeset
   133
    modifiedHolder notNil ifTrue:[
ca
parents: 90
diff changeset
   134
        modifiedHolder removeDependent:self. 
ca
parents: 90
diff changeset
   135
    ].
ca
parents: 90
diff changeset
   136
ca
parents: 90
diff changeset
   137
    (modifiedHolder := aValueHolder) notNil ifTrue:[
ca
parents: 90
diff changeset
   138
        modifiedHolder addDependent:self.
ca
parents: 90
diff changeset
   139
        modifiedHolder setValue:modified.
ca
parents: 90
diff changeset
   140
    ].
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   141
! !
7276365d9311 intitial checkin
ca
parents:
diff changeset
   142
111
ca
parents: 90
diff changeset
   143
!UIPropertyView methodsFor:'accessing hierarchy'!
ca
parents: 90
diff changeset
   144
ca
parents: 90
diff changeset
   145
lower
ca
parents: 90
diff changeset
   146
    "bring window to back
ca
parents: 90
diff changeset
   147
    "
ca
parents: 90
diff changeset
   148
    self window back
ca
parents: 90
diff changeset
   149
!
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
   150
111
ca
parents: 90
diff changeset
   151
raise
ca
parents: 90
diff changeset
   152
    "bring window to front
ca
parents: 90
diff changeset
   153
    "
ca
parents: 90
diff changeset
   154
    self window raise
ca
parents: 90
diff changeset
   155
!
ca
parents: 90
diff changeset
   156
ca
parents: 90
diff changeset
   157
viewBackground
ca
parents: 90
diff changeset
   158
    ^ window viewBackground
ca
parents: 90
diff changeset
   159
!
ca
parents: 90
diff changeset
   160
ca
parents: 90
diff changeset
   161
viewBackground:aColor
ca
parents: 90
diff changeset
   162
    window viewBackground:aColor
ca
parents: 90
diff changeset
   163
!
ca
parents: 90
diff changeset
   164
ca
parents: 90
diff changeset
   165
window
ca
parents: 90
diff changeset
   166
    "returns window application is running in
ca
parents: 90
diff changeset
   167
    "
ca
parents: 90
diff changeset
   168
    ^ window
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
   169
! !
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
   170
111
ca
parents: 90
diff changeset
   171
!UIPropertyView methodsFor:'bindings'!
ca
parents: 90
diff changeset
   172
ca
parents: 90
diff changeset
   173
aspectFor:aKey
ca
parents: 90
diff changeset
   174
    "returns aspect for a key or nil
ca
parents: 90
diff changeset
   175
    "
ca
parents: 90
diff changeset
   176
    aspects notNil ifTrue:[
ca
parents: 90
diff changeset
   177
        ^ aspects at:aKey ifAbsent:nil
ca
parents: 90
diff changeset
   178
    ].
ca
parents: 90
diff changeset
   179
    ^ super aspectFor:aKey
ca
parents: 90
diff changeset
   180
ca
parents: 90
diff changeset
   181
!
ca
parents: 90
diff changeset
   182
ca
parents: 90
diff changeset
   183
aspects
ca
parents: 90
diff changeset
   184
    "returned monitored aspects
ca
parents: 90
diff changeset
   185
    "
ca
parents: 90
diff changeset
   186
    ^ aspects
ca
parents: 90
diff changeset
   187
!
ca
parents: 90
diff changeset
   188
ca
parents: 90
diff changeset
   189
aspects:aListOfAspects
ca
parents: 90
diff changeset
   190
    "set aspects to be monitored
ca
parents: 90
diff changeset
   191
    "
ca
parents: 90
diff changeset
   192
    (aspects := aListOfAspects) notNil ifTrue:[
ca
parents: 90
diff changeset
   193
        aspects do:[:el | el addDependent:self ].
ca
parents: 90
diff changeset
   194
    ].
ca
parents: 90
diff changeset
   195
    self modified:false.
ca
parents: 90
diff changeset
   196
! !
ca
parents: 90
diff changeset
   197
ca
parents: 90
diff changeset
   198
!UIPropertyView methodsFor:'change & update'!
ca
parents: 90
diff changeset
   199
ca
parents: 90
diff changeset
   200
update:something with:someArgument from:someone
ca
parents: 90
diff changeset
   201
    "any attribute changed its state in the current specification
ca
parents: 90
diff changeset
   202
    "
ca
parents: 90
diff changeset
   203
    someone == modifiedHolder ifTrue:[
ca
parents: 90
diff changeset
   204
        modified := modifiedHolder value
ca
parents: 90
diff changeset
   205
    ] ifFalse:[
ca
parents: 90
diff changeset
   206
        self modified:true
ca
parents: 90
diff changeset
   207
    ]
ca
parents: 90
diff changeset
   208
! !
ca
parents: 90
diff changeset
   209
ca
parents: 90
diff changeset
   210
!UIPropertyView methodsFor:'initialization'!
ca
parents: 90
diff changeset
   211
ca
parents: 90
diff changeset
   212
closeRequest
149
e652608690b1 help ...
ca
parents: 144
diff changeset
   213
111
ca
parents: 90
diff changeset
   214
    modifiedHolder notNil ifTrue:[
ca
parents: 90
diff changeset
   215
        modifiedHolder removeDependent:self. 
ca
parents: 90
diff changeset
   216
        modifiedHolder := nil.
ca
parents: 90
diff changeset
   217
    ].
ca
parents: 90
diff changeset
   218
ca
parents: 90
diff changeset
   219
    super closeRequest
ca
parents: 90
diff changeset
   220
ca
parents: 90
diff changeset
   221
ca
parents: 90
diff changeset
   222
!
ca
parents: 90
diff changeset
   223
ca
parents: 90
diff changeset
   224
initialize
ca
parents: 90
diff changeset
   225
    super initialize.
ca
parents: 90
diff changeset
   226
    modified := false.
ca
parents: 90
diff changeset
   227
!
ca
parents: 90
diff changeset
   228
ca
parents: 90
diff changeset
   229
origin:anOrigin corner:aCorner in:aTopview
ca
parents: 90
diff changeset
   230
    window := SimpleView origin:anOrigin corner:aCorner in:aTopview
ca
parents: 90
diff changeset
   231
ca
parents: 90
diff changeset
   232
! !
ca
parents: 90
diff changeset
   233
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   234
!UIPropertyView::Specification methodsFor:'accessing'!
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   235
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   236
specEdited
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   237
    "gets current edit specification
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   238
    "
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   239
    ^ specEdited
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   240
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   241
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   242
!
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   243
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   244
specEdited:aSpec
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   245
    "sets current edit specification
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   246
    "
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   247
    |aspects|
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   248
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   249
    self modified:false.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   250
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   251
    aSpec isNil ifTrue:[
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   252
        specChannel := nil.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   253
        specEdited  := nil.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   254
    ] ifFalse:[
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   255
        specEdited class == aSpec class ifTrue:[
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   256
            specEdited := aSpec.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   257
            specChannel value:specEdited.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   258
          ^ self modified:false.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   259
        ].
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   260
        specEdited  := aSpec.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   261
        aspects     := IdentityDictionary new.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   262
        specChannel := specEdited asValue.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   263
        specEdited class addBindingsTo:aspects for:specEdited channel:specChannel
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   264
    ].
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   265
    self aspects:aspects.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   266
    self buildFromSpec:nil.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   267
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   268
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   269
! !
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   270
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   271
!UIPropertyView::Specification methodsFor:'action'!
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   272
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   273
reload
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   274
    "reload specification
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   275
    "
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   276
    specChannel notNil ifTrue:[
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   277
        specChannel value:specEdited.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   278
        self modified:false.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   279
    ]
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   280
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   281
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   282
! !
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   283
111
ca
parents: 90
diff changeset
   284
!UIPropertyView::Dimension class methodsFor:'interface specs'!
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   285
7276365d9311 intitial checkin
ca
parents:
diff changeset
   286
specificationAlignmentOrigin
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   287
    "this window spec was automatically generated by the ST/X UIPainter"
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   288
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   289
    "do not manually edit this - the painter/builder may not be able to
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   290
     handle the specification if its corrupted."
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   291
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   292
    "
111
ca
parents: 90
diff changeset
   293
     UIPainter new openOnClass:UIPropertyView::Dimension andSelector:#specificationAlignmentOrigin
ca
parents: 90
diff changeset
   294
     UIPropertyView::Dimension new openInterface:#specificationAlignmentOrigin
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   295
    "
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   296
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   297
    <resource: #canvas>
7276365d9311 intitial checkin
ca
parents:
diff changeset
   298
7276365d9311 intitial checkin
ca
parents:
diff changeset
   299
    ^
140
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
   300
     
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   301
       #(#FullSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   302
          #'window:' 
7276365d9311 intitial checkin
ca
parents:
diff changeset
   303
           #(#WindowSpec
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   304
              #'name:' 'uIPainterView'
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   305
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
7276365d9311 intitial checkin
ca
parents:
diff changeset
   306
              #'label:' 'unnamed'
78
a0a00603a8b6 keep spec in properties
ca
parents: 74
diff changeset
   307
              #'bounds:' #(#Rectangle 0 0 250 365)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   308
          )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   309
          #'component:' 
7276365d9311 intitial checkin
ca
parents:
diff changeset
   310
           #(#SpecCollection
7276365d9311 intitial checkin
ca
parents:
diff changeset
   311
              #'collection:' 
7276365d9311 intitial checkin
ca
parents:
diff changeset
   312
               #(
7276365d9311 intitial checkin
ca
parents:
diff changeset
   313
                 #(#LabelSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   314
                    #'name:' 'label2'
111
ca
parents: 90
diff changeset
   315
                    #'layout:' #(#AlignmentOrigin 49 0 68 0 1 0)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   316
                    #'label:' 'top'
66
b4e629d9cfcb specs beautified
Claus Gittinger <cg@exept.de>
parents: 64
diff changeset
   317
                    #'adjust:' #right
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   318
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   319
                 #(#LabelSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   320
                    #'name:' 'label3'
111
ca
parents: 90
diff changeset
   321
                    #'layout:' #(#Point 58 13)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   322
                    #'label:' 'relative'
7276365d9311 intitial checkin
ca
parents:
diff changeset
   323
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   324
                 #(#LabelSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   325
                    #'name:' 'label4'
111
ca
parents: 90
diff changeset
   326
                    #'layout:' #(#Point 154 14)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   327
                    #'label:' 'offset'
7276365d9311 intitial checkin
ca
parents:
diff changeset
   328
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   329
                 #(#LabelSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   330
                    #'name:' 'label5'
111
ca
parents: 90
diff changeset
   331
                    #'layout:' #(#AlignmentOrigin 63 0 140 0 1 0)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   332
                    #'label:' 'align H'
66
b4e629d9cfcb specs beautified
Claus Gittinger <cg@exept.de>
parents: 64
diff changeset
   333
                    #'adjust:' #right
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   334
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   335
                 #(#LabelSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   336
                    #'name:' 'label6'
111
ca
parents: 90
diff changeset
   337
                    #'layout:' #(#AlignmentOrigin 63 0 166 0 1 0)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   338
                    #'label:' 'align V'
66
b4e629d9cfcb specs beautified
Claus Gittinger <cg@exept.de>
parents: 64
diff changeset
   339
                    #'adjust:' #right
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   340
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   341
                 #(#InputFieldSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   342
                    #'name:' 'editField1'
111
ca
parents: 90
diff changeset
   343
                    #'layout:' #(#LayoutFrame 58 0 41 0 115 0 59 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   344
                    #'model:' #leftFraction
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   345
                    #'tabable:' true
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   346
                    #'type:' #numberOrNil
7276365d9311 intitial checkin
ca
parents:
diff changeset
   347
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   348
                 #(#InputFieldSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   349
                    #'name:' 'editField2'
111
ca
parents: 90
diff changeset
   350
                    #'layout:' #(#LayoutFrame 58 0 68 0 115 0 86 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   351
                    #'model:' #topFraction
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   352
                    #'tabable:' true
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   353
                    #'type:' #numberOrNil
7276365d9311 intitial checkin
ca
parents:
diff changeset
   354
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   355
                 #(#InputFieldSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   356
                    #'name:' 'editField5'
111
ca
parents: 90
diff changeset
   357
                    #'layout:' #(#LayoutFrame 68 0 140 0 125 0 158 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   358
                    #'model:' #leftAlignmentFraction
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   359
                    #'tabable:' true
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   360
                    #'type:' #numberOrNil
7276365d9311 intitial checkin
ca
parents:
diff changeset
   361
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   362
                 #(#InputFieldSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   363
                    #'name:' 'editField6'
111
ca
parents: 90
diff changeset
   364
                    #'layout:' #(#LayoutFrame 68 0 166 0 125 0 184 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   365
                    #'model:' #topAlignmentFraction
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   366
                    #'tabable:' true
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   367
                    #'type:' #numberOrNil
7276365d9311 intitial checkin
ca
parents:
diff changeset
   368
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   369
                 #(#InputFieldSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   370
                    #'name:' 'editField3'
111
ca
parents: 90
diff changeset
   371
                    #'layout:' #(#LayoutFrame 154 0 41 0 212 0 59 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   372
                    #'model:' #leftOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   373
                    #'tabable:' true
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   374
                    #'type:' #numberOrNil
7276365d9311 intitial checkin
ca
parents:
diff changeset
   375
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   376
                 #(#InputFieldSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   377
                    #'name:' 'editField4'
111
ca
parents: 90
diff changeset
   378
                    #'layout:' #(#LayoutFrame 154 0 68 0 212 0 86 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   379
                    #'model:' #topOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   380
                    #'tabable:' true
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   381
                    #'type:' #numberOrNil
7276365d9311 intitial checkin
ca
parents:
diff changeset
   382
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   383
                 #(#ActionButtonSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   384
                    #'name:' 'button1'
111
ca
parents: 90
diff changeset
   385
                    #'layout:' #(#LayoutFrame 119 0 41 0 138 0 59 0)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   386
                    #'label:' ''
7276365d9311 intitial checkin
ca
parents:
diff changeset
   387
                    #'model:' #makeRelativeLeft
111
ca
parents: 90
diff changeset
   388
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   389
                    #'autoRepeat:' false
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   390
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   391
                 #(#ActionButtonSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   392
                    #'name:' 'button2'
111
ca
parents: 90
diff changeset
   393
                    #'layout:' #(#LayoutFrame 119 0 68 0 138 0 86 0)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   394
                    #'label:' ''
7276365d9311 intitial checkin
ca
parents:
diff changeset
   395
                    #'model:' #makeRelativeTop
111
ca
parents: 90
diff changeset
   396
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   397
                    #'autoRepeat:' false
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   398
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   399
                 #(#ActionButtonSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   400
                    #'name:' 'button3'
111
ca
parents: 90
diff changeset
   401
                    #'layout:' #(#LayoutFrame 217 0 41 0 236 0 59 0)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   402
                    #'label:' ''
7276365d9311 intitial checkin
ca
parents:
diff changeset
   403
                    #'model:' #makeOffsetLeft
111
ca
parents: 90
diff changeset
   404
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   405
                    #'autoRepeat:' false
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   406
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   407
                 #(#ActionButtonSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   408
                    #'name:' 'button4'
111
ca
parents: 90
diff changeset
   409
                    #'layout:' #(#LayoutFrame 217 0 68 0 236 0 86 0)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   410
                    #'label:' ''
7276365d9311 intitial checkin
ca
parents:
diff changeset
   411
                    #'model:' #makeOffsetTop
111
ca
parents: 90
diff changeset
   412
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   413
                    #'autoRepeat:' false
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   414
                )
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   415
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   416
                    #'name:' 'button8'
111
ca
parents: 90
diff changeset
   417
                    #'layout:' #(#LayoutFrame 119 0 102 0 138 0 120 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   418
                    #'label:' ''
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   419
                    #'model:' #makeRelativeLeftTop
111
ca
parents: 90
diff changeset
   420
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   421
                    #'autoRepeat:' false
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   422
                )
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   423
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   424
                    #'name:' 'button9'
111
ca
parents: 90
diff changeset
   425
                    #'layout:' #(#LayoutFrame 217 0 102 0 236 0 120 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   426
                    #'label:' ''
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   427
                    #'model:' #makeOffsetLeftTop
111
ca
parents: 90
diff changeset
   428
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   429
                    #'autoRepeat:' false
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   430
                )
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   431
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   432
                    #'name:' 'label7'
111
ca
parents: 90
diff changeset
   433
                    #'layout:' #(#AlignmentOrigin 49 0 102 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   434
                    #'label:' 'all'
66
b4e629d9cfcb specs beautified
Claus Gittinger <cg@exept.de>
parents: 64
diff changeset
   435
                    #'adjust:' #right
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   436
                )
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   437
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   438
                    #'name:' 'label1'
111
ca
parents: 90
diff changeset
   439
                    #'layout:' #(#AlignmentOrigin 49 0 41 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   440
                    #'label:' 'left'
66
b4e629d9cfcb specs beautified
Claus Gittinger <cg@exept.de>
parents: 64
diff changeset
   441
                    #'adjust:' #right
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   442
                )
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   443
                 #(#DividerSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   444
                    #'name:' 'separator1'
111
ca
parents: 90
diff changeset
   445
                    #'layout:' #(#Rectangle 154 142 203 153)
78
a0a00603a8b6 keep spec in properties
ca
parents: 74
diff changeset
   446
                    #'orientation:' #horizontal
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   447
                )
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   448
                 #(#DividerSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   449
                    #'name:' 'separator2'
111
ca
parents: 90
diff changeset
   450
                    #'layout:' #(#Rectangle 154 173 203 184)
78
a0a00603a8b6 keep spec in properties
ca
parents: 74
diff changeset
   451
                    #'orientation:' #horizontal
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   452
                )
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   453
                 #(#DividerSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   454
                    #'name:' 'separator3'
111
ca
parents: 90
diff changeset
   455
                    #'layout:' #(#Rectangle 145 152 155 173)
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   456
                    #'orientation:' #vertical
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   457
                )
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   458
                 #(#DividerSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   459
                    #'name:' 'separator4'
111
ca
parents: 90
diff changeset
   460
                    #'layout:' #(#Rectangle 203 152 213 173)
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   461
                    #'orientation:' #vertical
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   462
                )
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   463
                 #(#ActionButtonSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   464
                    #'name:' 'alignBR'
111
ca
parents: 90
diff changeset
   465
                    #'layout:' #(#Rectangle 201 172 213 184)
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   466
                    #'label:' ''
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   467
                    #'model:' #makeAlignBottomRight
111
ca
parents: 90
diff changeset
   468
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   469
                    #'autoRepeat:' false
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   470
                )
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   471
                 #(#ActionButtonSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   472
                    #'name:' 'alignTL'
111
ca
parents: 90
diff changeset
   473
                    #'layout:' #(#Rectangle 145 141 157 153)
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   474
                    #'label:' ''
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   475
                    #'model:' #makeAlignTopLeft
111
ca
parents: 90
diff changeset
   476
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   477
                    #'autoRepeat:' false
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   478
                )
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   479
                 #(#ActionButtonSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   480
                    #'name:' 'alignTR'
111
ca
parents: 90
diff changeset
   481
                    #'layout:' #(#Rectangle 201 141 213 153)
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   482
                    #'label:' ''
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   483
                    #'model:' #makeAlignTopRight
111
ca
parents: 90
diff changeset
   484
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   485
                    #'autoRepeat:' false
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   486
                )
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   487
                 #(#ActionButtonSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   488
                    #'name:' 'alignBL'
111
ca
parents: 90
diff changeset
   489
                    #'layout:' #(#Rectangle 145 171 157 183)
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   490
                    #'label:' ''
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   491
                    #'model:' #makeAlignBottomLeft
111
ca
parents: 90
diff changeset
   492
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   493
                    #'autoRepeat:' false
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   494
                )
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   495
                 #(#ActionButtonSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   496
                    #'name:' 'alignTC'
111
ca
parents: 90
diff changeset
   497
                    #'layout:' #(#Rectangle 173 141 185 153)
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   498
                    #'label:' ''
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   499
                    #'model:' #makeAlignTopCenter
111
ca
parents: 90
diff changeset
   500
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   501
                    #'autoRepeat:' false
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   502
                )
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   503
                 #(#ActionButtonSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   504
                    #'name:' 'alignBC'
111
ca
parents: 90
diff changeset
   505
                    #'layout:' #(#Rectangle 173 172 185 184)
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   506
                    #'label:' ''
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   507
                    #'model:' #makeAlignBottomCenter
111
ca
parents: 90
diff changeset
   508
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   509
                    #'autoRepeat:' false
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   510
                )
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   511
                 #(#ActionButtonSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   512
                    #'name:' 'alignLC'
111
ca
parents: 90
diff changeset
   513
                    #'layout:' #(#Rectangle 145 156 157 168)
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   514
                    #'label:' ''
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   515
                    #'model:' #makeAlignLeftCenter
111
ca
parents: 90
diff changeset
   516
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   517
                    #'autoRepeat:' false
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   518
                )
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   519
                 #(#ActionButtonSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   520
                    #'name:' 'alignRC'
111
ca
parents: 90
diff changeset
   521
                    #'layout:' #(#Rectangle 201 156 213 168)
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   522
                    #'label:' ''
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   523
                    #'model:' #makeAlignRightCenter
111
ca
parents: 90
diff changeset
   524
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   525
                    #'autoRepeat:' false
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   526
                )
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   527
                 #(#ActionButtonSpec
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   528
                    #'name:' 'alignC'
111
ca
parents: 90
diff changeset
   529
                    #'layout:' #(#Rectangle 173 156 185 168)
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   530
                    #'label:' ''
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   531
                    #'model:' #makeAlignCenter
111
ca
parents: 90
diff changeset
   532
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   533
                    #'autoRepeat:' false
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
   534
                )
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   535
              )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   536
          )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   537
      )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   538
!
7276365d9311 intitial checkin
ca
parents:
diff changeset
   539
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   540
specificationExtent
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   541
    "this window spec was automatically generated by the ST/X UIPainter"
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   542
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   543
    "do not manually edit this - the painter/builder may not be able to
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   544
     handle the specification if its corrupted."
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   545
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   546
    "
111
ca
parents: 90
diff changeset
   547
     UIPainter new openOnClass:UIPropertyView::Dimension andSelector:#specificationExtent
ca
parents: 90
diff changeset
   548
     UIPropertyView::Dimension new openInterface:#specificationExtent
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   549
    "
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   550
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   551
    <resource: #canvas>
7276365d9311 intitial checkin
ca
parents:
diff changeset
   552
7276365d9311 intitial checkin
ca
parents:
diff changeset
   553
    ^
140
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
   554
     
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   555
       #(#FullSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   556
          #'window:' 
7276365d9311 intitial checkin
ca
parents:
diff changeset
   557
           #(#WindowSpec
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   558
              #'name:' 'uIPainterView'
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   559
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
7276365d9311 intitial checkin
ca
parents:
diff changeset
   560
              #'label:' 'unnamed'
111
ca
parents: 90
diff changeset
   561
              #'bounds:' #(#Rectangle 0 0 224 251)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   562
          )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   563
          #'component:' 
7276365d9311 intitial checkin
ca
parents:
diff changeset
   564
           #(#SpecCollection
7276365d9311 intitial checkin
ca
parents:
diff changeset
   565
              #'collection:' 
7276365d9311 intitial checkin
ca
parents:
diff changeset
   566
               #(
7276365d9311 intitial checkin
ca
parents:
diff changeset
   567
                 #(#LabelSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   568
                    #'name:' 'label1'
111
ca
parents: 90
diff changeset
   569
                    #'layout:' #(#AlignmentOrigin 99 0 45 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   570
                    #'label:' 'horizontal:'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   571
                    #'adjust:' #left
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   572
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   573
                 #(#LabelSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   574
                    #'name:' 'label2'
111
ca
parents: 90
diff changeset
   575
                    #'layout:' #(#AlignmentOrigin 99 0 72 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   576
                    #'label:' 'vertical:'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   577
                    #'adjust:' #left
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   578
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   579
                 #(#InputFieldSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   580
                    #'name:' 'editField1'
111
ca
parents: 90
diff changeset
   581
                    #'layout:' #(#LayoutFrame 104 0 45 0 197 0 63 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   582
                    #'model:' #leftOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   583
                    #'tabable:' true
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   584
                    #'type:' #numberOrNil
7276365d9311 intitial checkin
ca
parents:
diff changeset
   585
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   586
                 #(#InputFieldSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   587
                    #'name:' 'editField2'
111
ca
parents: 90
diff changeset
   588
                    #'layout:' #(#LayoutFrame 104 0 72 0 197 0 90 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   589
                    #'model:' #rightOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   590
                    #'tabable:' true
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   591
                    #'type:' #numberOrNil
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   592
                )
111
ca
parents: 90
diff changeset
   593
                 #(#LabelSpec
ca
parents: 90
diff changeset
   594
                    #'name:' 'extentLabel'
ca
parents: 90
diff changeset
   595
                    #'layout:' #(#LayoutFrame 9 0 20 0 63 0 37 0)
ca
parents: 90
diff changeset
   596
                    #'label:' 'Extent:'
ca
parents: 90
diff changeset
   597
                )
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   598
              )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   599
          )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   600
      )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   601
!
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   602
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   603
specificationLayoutFrame
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   604
    "this window spec was automatically generated by the ST/X UIPainter"
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   605
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   606
    "do not manually edit this - the painter/builder may not be able to
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   607
     handle the specification if its corrupted."
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   608
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   609
    "
111
ca
parents: 90
diff changeset
   610
     UIPainter new openOnClass:UIPropertyView::Dimension andSelector:#specificationLayoutFrame
ca
parents: 90
diff changeset
   611
     UIPropertyView::Dimension new openInterface:#specificationLayoutFrame
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   612
    "
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   613
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   614
    <resource: #canvas>
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   615
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   616
    ^
140
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
   617
     
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   618
       #(#FullSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   619
          #'window:' 
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   620
           #(#WindowSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   621
              #'name:' 'uIPainterView'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   622
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   623
              #'label:' 'unnamed'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   624
              #'bounds:' #(#Rectangle 0 0 238 291)
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   625
          )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   626
          #'component:' 
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   627
           #(#SpecCollection
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   628
              #'collection:' 
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   629
               #(
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   630
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   631
                    #'name:' 'label left'
111
ca
parents: 90
diff changeset
   632
                    #'layout:' #(#AlignmentOrigin 60 0 43 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   633
                    #'label:' 'left'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   634
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   635
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   636
                    #'name:' 'label top'
111
ca
parents: 90
diff changeset
   637
                    #'layout:' #(#AlignmentOrigin 60 0 71 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   638
                    #'label:' 'top'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   639
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   640
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   641
                    #'name:' 'label right'
111
ca
parents: 90
diff changeset
   642
                    #'layout:' #(#AlignmentOrigin 60 0 99 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   643
                    #'label:' 'right'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   644
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   645
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   646
                    #'name:' 'label bottom'
111
ca
parents: 90
diff changeset
   647
                    #'layout:' #(#AlignmentOrigin 60 0 127 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   648
                    #'label:' 'bottom'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   649
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   650
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   651
                    #'name:' 'label relative'
111
ca
parents: 90
diff changeset
   652
                    #'layout:' #(#Point 65 14)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   653
                    #'label:' 'relative'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   654
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   655
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   656
                    #'name:' 'label offset'
111
ca
parents: 90
diff changeset
   657
                    #'layout:' #(#Point 159 14)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   658
                    #'label:' 'offset'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   659
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   660
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   661
                    #'name:' 'label all relative'
111
ca
parents: 90
diff changeset
   662
                    #'layout:' #(#AlignmentOrigin 60 0 161 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   663
                    #'label:' 'all'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   664
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   665
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   666
                    #'name:' 'relative E1'
111
ca
parents: 90
diff changeset
   667
                    #'layout:' #(#LayoutFrame 65 0 43 0 113 0 61 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   668
                    #'model:' #leftFraction
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   669
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   670
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   671
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   672
                    #'name:' 'relative E2'
111
ca
parents: 90
diff changeset
   673
                    #'layout:' #(#LayoutFrame 65 0 71 0 113 0 89 0)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   674
                    #'model:' #topFraction
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   675
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   676
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   677
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   678
                    #'name:' 'relative E3'
111
ca
parents: 90
diff changeset
   679
                    #'layout:' #(#LayoutFrame 65 0 99 0 113 0 117 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   680
                    #'model:' #rightFraction
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   681
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   682
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   683
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   684
                    #'name:' 'relative E4'
111
ca
parents: 90
diff changeset
   685
                    #'layout:' #(#LayoutFrame 65 0 127 0 113 0 145 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   686
                    #'model:' #bottomFraction
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   687
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   688
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   689
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   690
                    #'name:' 'offset E1'
111
ca
parents: 90
diff changeset
   691
                    #'layout:' #(#LayoutFrame 159 0 43 0 210 0 61 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   692
                    #'model:' #leftOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   693
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   694
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   695
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   696
                    #'name:' 'offset E2'
111
ca
parents: 90
diff changeset
   697
                    #'layout:' #(#LayoutFrame 159 0 71 0 210 0 89 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   698
                    #'model:' #topOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   699
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   700
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   701
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   702
                    #'name:' 'offset E3'
111
ca
parents: 90
diff changeset
   703
                    #'layout:' #(#LayoutFrame 159 0 99 0 210 0 117 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   704
                    #'model:' #rightOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   705
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   706
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   707
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   708
                    #'name:' 'offset E4'
111
ca
parents: 90
diff changeset
   709
                    #'layout:' #(#LayoutFrame 159 0 127 0 210 0 145 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   710
                    #'model:' #bottomOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   711
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   712
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   713
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   714
                    #'name:' 'relative B1'
111
ca
parents: 90
diff changeset
   715
                    #'layout:' #(#LayoutFrame 117 0 43 0 136 0 61 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   716
                    #'label:' ' '
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   717
                    #'model:' #makeRelativeLeft
111
ca
parents: 90
diff changeset
   718
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   719
                    #'autoRepeat:' false
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   720
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   721
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   722
                    #'name:' 'relative B2'
111
ca
parents: 90
diff changeset
   723
                    #'layout:' #(#LayoutFrame 117 0 71 0 136 0 89 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   724
                    #'label:' ' '
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   725
                    #'model:' #makeRelativeTop
111
ca
parents: 90
diff changeset
   726
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   727
                    #'autoRepeat:' false
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   728
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   729
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   730
                    #'name:' 'relative B3'
111
ca
parents: 90
diff changeset
   731
                    #'layout:' #(#LayoutFrame 117 0 99 0 136 0 117 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   732
                    #'label:' ' '
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   733
                    #'model:' #makeRelativeRight
111
ca
parents: 90
diff changeset
   734
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   735
                    #'autoRepeat:' false
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   736
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   737
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   738
                    #'name:' 'relative B4'
111
ca
parents: 90
diff changeset
   739
                    #'layout:' #(#LayoutFrame 117 0 127 0 136 0 145 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   740
                    #'label:' ' '
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   741
                    #'model:' #makeRelativeBottom
111
ca
parents: 90
diff changeset
   742
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   743
                    #'autoRepeat:' false
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   744
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   745
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   746
                    #'name:' 'relative BAll'
111
ca
parents: 90
diff changeset
   747
                    #'layout:' #(#LayoutFrame 117 0 161 0 136 0 179 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   748
                    #'label:' ' '
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   749
                    #'model:' #makeRelativeAll
111
ca
parents: 90
diff changeset
   750
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   751
                    #'autoRepeat:' false
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   752
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   753
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   754
                    #'name:' 'offset B1'
111
ca
parents: 90
diff changeset
   755
                    #'layout:' #(#LayoutFrame 214 0 43 0 233 0 61 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   756
                    #'label:' ''
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   757
                    #'model:' #makeOffsetLeft
111
ca
parents: 90
diff changeset
   758
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   759
                    #'autoRepeat:' false
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   760
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   761
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   762
                    #'name:' 'offset B2'
111
ca
parents: 90
diff changeset
   763
                    #'layout:' #(#LayoutFrame 214 0 71 0 233 0 89 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   764
                    #'label:' ''
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   765
                    #'model:' #makeOffsetTop
111
ca
parents: 90
diff changeset
   766
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   767
                    #'autoRepeat:' false
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   768
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   769
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   770
                    #'name:' 'offset B3'
111
ca
parents: 90
diff changeset
   771
                    #'layout:' #(#LayoutFrame 214 0 99 0 233 0 117 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   772
                    #'label:' ''
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   773
                    #'model:' #makeOffsetRight
111
ca
parents: 90
diff changeset
   774
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   775
                    #'autoRepeat:' false
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   776
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   777
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   778
                    #'name:' 'offset B4'
111
ca
parents: 90
diff changeset
   779
                    #'layout:' #(#LayoutFrame 214 0 127 0 233 0 145 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   780
                    #'label:' ''
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   781
                    #'model:' #makeOffsetBottom
111
ca
parents: 90
diff changeset
   782
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   783
                    #'autoRepeat:' false
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   784
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   785
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   786
                    #'name:' 'offset BAll'
111
ca
parents: 90
diff changeset
   787
                    #'layout:' #(#LayoutFrame 214 0 161 0 233 0 179 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   788
                    #'label:' ' '
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   789
                    #'model:' #makeOffsetAll
111
ca
parents: 90
diff changeset
   790
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   791
                    #'autoRepeat:' false
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   792
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   793
              )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   794
          )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   795
      )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   796
!
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   797
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   798
specificationLayoutOrigin
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   799
    "this window spec was automatically generated by the ST/X UIPainter"
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   800
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   801
    "do not manually edit this - the painter/builder may not be able to
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   802
     handle the specification if its corrupted."
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   803
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   804
    "
111
ca
parents: 90
diff changeset
   805
     UIPainter new openOnClass:UIPropertyView::Dimension andSelector:#specificationLayoutOrigin
ca
parents: 90
diff changeset
   806
     UIPropertyView::Dimension new openInterface:#specificationLayoutOrigin
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   807
    "
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   808
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   809
    <resource: #canvas>
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   810
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   811
    ^
140
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
   812
     
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   813
       #(#FullSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   814
          #'window:' 
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   815
           #(#WindowSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   816
              #'name:' 'uIPainterView'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   817
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   818
              #'label:' 'unnamed'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   819
              #'bounds:' #(#Rectangle 0 0 238 303)
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   820
          )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   821
          #'component:' 
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   822
           #(#SpecCollection
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   823
              #'collection:' 
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   824
               #(
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   825
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   826
                    #'name:' 'label1'
111
ca
parents: 90
diff changeset
   827
                    #'layout:' #(#AlignmentOrigin 52 0 44 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   828
                    #'label:' 'left'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   829
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   830
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   831
                    #'name:' 'label2'
111
ca
parents: 90
diff changeset
   832
                    #'layout:' #(#AlignmentOrigin 52 0 71 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   833
                    #'label:' 'top'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   834
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   835
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   836
                    #'name:' 'label3'
111
ca
parents: 90
diff changeset
   837
                    #'layout:' #(#Point 57 12)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   838
                    #'label:' 'relative'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   839
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   840
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   841
                    #'name:' 'label4'
111
ca
parents: 90
diff changeset
   842
                    #'layout:' #(#Point 154 13)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   843
                    #'label:' 'offset'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   844
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   845
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   846
                    #'name:' 'editField1'
111
ca
parents: 90
diff changeset
   847
                    #'layout:' #(#LayoutFrame 57 0 44 0 114 0 62 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   848
                    #'model:' #leftFraction
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   849
                    #'tabable:' true
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   850
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   851
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   852
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   853
                    #'name:' 'editField2'
111
ca
parents: 90
diff changeset
   854
                    #'layout:' #(#LayoutFrame 57 0 71 0 114 0 89 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   855
                    #'model:' #topFraction
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   856
                    #'tabable:' true
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   857
                    #'type:' #numberOrNil
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   858
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   859
                 #(#InputFieldSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   860
                    #'name:' 'editField3'
111
ca
parents: 90
diff changeset
   861
                    #'layout:' #(#LayoutFrame 154 0 44 0 212 0 62 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   862
                    #'model:' #leftOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   863
                    #'tabable:' true
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   864
                    #'type:' #numberOrNil
7276365d9311 intitial checkin
ca
parents:
diff changeset
   865
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   866
                 #(#InputFieldSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   867
                    #'name:' 'editField4'
111
ca
parents: 90
diff changeset
   868
                    #'layout:' #(#LayoutFrame 154 0 71 0 212 0 89 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   869
                    #'model:' #topOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   870
                    #'tabable:' true
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   871
                    #'type:' #numberOrNil
7276365d9311 intitial checkin
ca
parents:
diff changeset
   872
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   873
                 #(#ActionButtonSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   874
                    #'name:' 'button1'
111
ca
parents: 90
diff changeset
   875
                    #'layout:' #(#LayoutFrame 119 0 44 0 138 0 62 0)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   876
                    #'label:' ''
7276365d9311 intitial checkin
ca
parents:
diff changeset
   877
                    #'model:' #makeRelativeLeft
111
ca
parents: 90
diff changeset
   878
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   879
                    #'autoRepeat:' false
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   880
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   881
                 #(#ActionButtonSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   882
                    #'name:' 'button2'
111
ca
parents: 90
diff changeset
   883
                    #'layout:' #(#LayoutFrame 119 0 71 0 138 0 89 0)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   884
                    #'label:' ''
7276365d9311 intitial checkin
ca
parents:
diff changeset
   885
                    #'model:' #makeRelativeTop
111
ca
parents: 90
diff changeset
   886
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   887
                    #'autoRepeat:' false
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   888
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   889
                 #(#ActionButtonSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   890
                    #'name:' 'button3'
111
ca
parents: 90
diff changeset
   891
                    #'layout:' #(#LayoutFrame 216 0 44 0 235 0 62 0)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   892
                    #'label:' ''
7276365d9311 intitial checkin
ca
parents:
diff changeset
   893
                    #'model:' #makeOffsetLeft
111
ca
parents: 90
diff changeset
   894
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   895
                    #'autoRepeat:' false
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   896
                )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   897
                 #(#ActionButtonSpec
7276365d9311 intitial checkin
ca
parents:
diff changeset
   898
                    #'name:' 'button4'
111
ca
parents: 90
diff changeset
   899
                    #'layout:' #(#LayoutFrame 216 0 71 0 235 0 89 0)
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   900
                    #'label:' ''
7276365d9311 intitial checkin
ca
parents:
diff changeset
   901
                    #'model:' #makeOffsetTop
111
ca
parents: 90
diff changeset
   902
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   903
                    #'autoRepeat:' false
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   904
                )
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   905
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   906
                    #'name:' 'button8'
111
ca
parents: 90
diff changeset
   907
                    #'layout:' #(#LayoutFrame 119 0 103 0 138 0 121 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   908
                    #'label:' ''
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   909
                    #'model:' #makeRelativeLeftTop
111
ca
parents: 90
diff changeset
   910
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   911
                    #'autoRepeat:' false
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   912
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   913
                 #(#ActionButtonSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   914
                    #'name:' 'button9'
111
ca
parents: 90
diff changeset
   915
                    #'layout:' #(#LayoutFrame 216 0 103 0 235 0 121 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   916
                    #'label:' ''
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   917
                    #'model:' #makeOffsetLeftTop
111
ca
parents: 90
diff changeset
   918
                    #'isTriggerOnDown:' false
ca
parents: 90
diff changeset
   919
                    #'autoRepeat:' false
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   920
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   921
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   922
                    #'name:' 'label5'
111
ca
parents: 90
diff changeset
   923
                    #'layout:' #(#AlignmentOrigin 52 0 103 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   924
                    #'label:' 'all'
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   925
                )
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   926
              )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   927
          )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   928
      )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   929
!
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   930
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   931
specificationPoint
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   932
    "this window spec was automatically generated by the ST/X UIPainter"
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   933
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   934
    "do not manually edit this - the painter/builder may not be able to
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   935
     handle the specification if its corrupted."
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   936
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   937
    "
111
ca
parents: 90
diff changeset
   938
     UIPainter new openOnClass:UIPropertyView::Dimension andSelector:#specificationPoint
ca
parents: 90
diff changeset
   939
     UIPropertyView::Dimension new openInterface:#specificationPoint
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   940
    "
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   941
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   942
    <resource: #canvas>
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   943
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   944
    ^
140
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
   945
     
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   946
       #(#FullSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   947
          #'window:' 
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   948
           #(#WindowSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   949
              #'name:' 'uIPainterView'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   950
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   951
              #'label:' 'unnamed'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   952
              #'bounds:' #(#Rectangle 0 0 238 303)
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   953
          )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   954
          #'component:' 
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   955
           #(#SpecCollection
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   956
              #'collection:' 
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   957
               #(
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   958
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   959
                    #'name:' 'label1'
111
ca
parents: 90
diff changeset
   960
                    #'layout:' #(#AlignmentOrigin 75 0 19 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   961
                    #'label:' 'origin x:'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   962
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   963
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   964
                    #'name:' 'label2'
111
ca
parents: 90
diff changeset
   965
                    #'layout:' #(#AlignmentOrigin 75 0 46 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   966
                    #'label:' 'origin y:'
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   967
                )
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   968
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   969
                    #'name:' 'editField1'
111
ca
parents: 90
diff changeset
   970
                    #'layout:' #(#LayoutFrame 77 0 19 0 170 0 37 0)
66
b4e629d9cfcb specs beautified
Claus Gittinger <cg@exept.de>
parents: 64
diff changeset
   971
                    #'model:' #absLeft
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   972
                    #'tabable:' true
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   973
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   974
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   975
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   976
                    #'name:' 'editField2'
111
ca
parents: 90
diff changeset
   977
                    #'layout:' #(#LayoutFrame 77 0 46 0 170 0 64 0)
66
b4e629d9cfcb specs beautified
Claus Gittinger <cg@exept.de>
parents: 64
diff changeset
   978
                    #'model:' #absTop
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   979
                    #'tabable:' true
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   980
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   981
                )
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   982
              )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   983
          )
7276365d9311 intitial checkin
ca
parents:
diff changeset
   984
      )
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   985
!
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   986
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   987
specificationRectangle
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   988
    "this window spec was automatically generated by the ST/X UIPainter"
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   989
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   990
    "do not manually edit this - the painter/builder may not be able to
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   991
     handle the specification if its corrupted."
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   992
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   993
    "
111
ca
parents: 90
diff changeset
   994
     UIPainter new openOnClass:UIPropertyView::Dimension andSelector:#specificationRectangle
ca
parents: 90
diff changeset
   995
     UIPropertyView::Dimension new openInterface:#specificationRectangle
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   996
    "
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   997
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
   998
    <resource: #canvas>
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
   999
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1000
    ^
140
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
  1001
     
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1002
       #(#FullSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1003
          #'window:' 
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1004
           #(#WindowSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1005
              #'name:' 'uIPainterView'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1006
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1007
              #'label:' 'unnamed'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1008
              #'bounds:' #(#Rectangle 0 0 238 303)
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1009
          )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1010
          #'component:' 
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1011
           #(#SpecCollection
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1012
              #'collection:' 
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1013
               #(
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1014
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1015
                    #'name:' 'label1'
111
ca
parents: 90
diff changeset
  1016
                    #'layout:' #(#AlignmentOrigin 80 0 19 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1017
                    #'label:' 'origin x:'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1018
                    #'adjust:' #left
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1019
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1020
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1021
                    #'name:' 'label2'
111
ca
parents: 90
diff changeset
  1022
                    #'layout:' #(#AlignmentOrigin 80 0 46 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1023
                    #'label:' 'origin y:'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1024
                    #'adjust:' #left
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1025
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1026
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1027
                    #'name:' 'editField1'
111
ca
parents: 90
diff changeset
  1028
                    #'layout:' #(#LayoutFrame 81 0 19 0 174 0 37 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1029
                    #'model:' #leftOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1030
                    #'tabable:' true
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1031
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1032
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1033
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1034
                    #'name:' 'editField2'
111
ca
parents: 90
diff changeset
  1035
                    #'layout:' #(#LayoutFrame 81 0 46 0 174 0 64 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1036
                    #'model:' #topOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1037
                    #'tabable:' true
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1038
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1039
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1040
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1041
                    #'name:' 'label4'
111
ca
parents: 90
diff changeset
  1042
                    #'layout:' #(#AlignmentOrigin 80 0 74 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1043
                    #'label:' 'corner x:'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1044
                    #'adjust:' #left
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1045
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1046
                 #(#LabelSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1047
                    #'name:' 'label5'
111
ca
parents: 90
diff changeset
  1048
                    #'layout:' #(#AlignmentOrigin 80 0 101 0 1 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1049
                    #'label:' 'corner y:'
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1050
                    #'adjust:' #left
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1051
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1052
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1053
                    #'name:' 'editField3'
111
ca
parents: 90
diff changeset
  1054
                    #'layout:' #(#LayoutFrame 81 0 74 0 174 0 92 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1055
                    #'model:' #rightOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1056
                    #'tabable:' true
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1057
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1058
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1059
                 #(#InputFieldSpec
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1060
                    #'name:' 'editField4'
111
ca
parents: 90
diff changeset
  1061
                    #'layout:' #(#LayoutFrame 81 0 101 0 174 0 119 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1062
                    #'model:' #bottomOffset
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1063
                    #'tabable:' true
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1064
                    #'type:' #numberOrNil
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1065
                )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1066
              )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1067
          )
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1068
      )
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1069
! !
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1070
111
ca
parents: 90
diff changeset
  1071
!UIPropertyView::Dimension methodsFor:'accessing'!
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1072
140
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
  1073
forView
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
  1074
    "get the view the layout derives from
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
  1075
    "
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
  1076
  ^ forView
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
  1077
!
1dde784a73d7 update specs; remove color and default values
ca
parents: 129
diff changeset
  1078
111
ca
parents: 90
diff changeset
  1079
forView:aView
ca
parents: 90
diff changeset
  1080
    "set the view the layout derives from
ca
parents: 90
diff changeset
  1081
    "
122
c6f7d7881634 enable/disable state of menu and noteBook's
ca
parents: 111
diff changeset
  1082
    forView := aView.
144
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1083
    self update.
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1084
!
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1085
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1086
label
e652608690b1 help ...
ca
parents: 144
diff changeset
  1087
    ^ 'Layout'
e652608690b1 help ...
ca
parents: 144
diff changeset
  1088
!
e652608690b1 help ...
ca
parents: 144
diff changeset
  1089
111
ca
parents: 90
diff changeset
  1090
layout
ca
parents: 90
diff changeset
  1091
    "returns current layout
ca
parents: 90
diff changeset
  1092
    "
ca
parents: 90
diff changeset
  1093
    |layout|
ca
parents: 90
diff changeset
  1094
ca
parents: 90
diff changeset
  1095
    selection notNil ifTrue:[
ca
parents: 90
diff changeset
  1096
        layout := self perform:(('get', selection asString) asSymbol).
ca
parents: 90
diff changeset
  1097
    ].
ca
parents: 90
diff changeset
  1098
    ^ layout
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1099
!
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1100
111
ca
parents: 90
diff changeset
  1101
layoutType
ca
parents: 90
diff changeset
  1102
    "returns current layoutType
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1103
    "
111
ca
parents: 90
diff changeset
  1104
    ^ selection
144
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1105
!
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1106
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1107
update
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1108
    "update from physical view
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1109
    "
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1110
    |superView|
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1111
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1112
    forView notNil ifTrue:[
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1113
        superView := forView superView
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1114
    ].
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1115
    noteBook enabled:((superView isNil or:[superView specClass isLayoutContainer]) not).
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1116
    self selection:(UIPainterView layoutType:forView).
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1117
bca8b1953ee8 checkin from browser
ca
parents: 140
diff changeset
  1118
111
ca
parents: 90
diff changeset
  1119
! !
74
dfa8644e0287 checkin from browser
ca
parents: 72
diff changeset
  1120
111
ca
parents: 90
diff changeset
  1121
!UIPropertyView::Dimension methodsFor:'accessing hierarchy'!
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1122
111
ca
parents: 90
diff changeset
  1123
window
ca
parents: 90
diff changeset
  1124
    ^ noteBook
74
dfa8644e0287 checkin from browser
ca
parents: 72
diff changeset
  1125
dfa8644e0287 checkin from browser
ca
parents: 72
diff changeset
  1126
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1127
! !
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1128
111
ca
parents: 90
diff changeset
  1129
!UIPropertyView::Dimension methodsFor:'initialization'!
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1130
111
ca
parents: 90
diff changeset
  1131
initialize
ca
parents: 90
diff changeset
  1132
    "initialize channels
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1133
    "
111
ca
parents: 90
diff changeset
  1134
    |layoutAspects|
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1135
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1136
    super initialize.
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1137
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1138
    layoutAspects := IdentityDictionary new.
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1139
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1140
    #(  bottomFraction          bottomOffset
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1141
        leftFraction            leftOffset
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1142
        topFraction             topOffset
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1143
        rightFraction           rightOffset
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1144
        leftAlignmentFraction   topAlignmentFraction
66
b4e629d9cfcb specs beautified
Claus Gittinger <cg@exept.de>
parents: 64
diff changeset
  1145
        absLeft                 absTop               
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1146
    )
111
ca
parents: 90
diff changeset
  1147
    do:[:aKey|
ca
parents: 90
diff changeset
  1148
        layoutAspects at:aKey put:(ValueHolder new)
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1149
    ].
111
ca
parents: 90
diff changeset
  1150
    self aspects:layoutAspects.
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1151
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1152
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1153
!
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1154
111
ca
parents: 90
diff changeset
  1155
origin:anOrigin corner:aCorner in:aTopView
ca
parents: 90
diff changeset
  1156
    "set dimensions
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1157
    "
111
ca
parents: 90
diff changeset
  1158
    noteBook := NoteBookView origin:anOrigin corner:aCorner in:aTopView.
ca
parents: 90
diff changeset
  1159
    window   := noteBook canvas.
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1160
111
ca
parents: 90
diff changeset
  1161
    noteBook direction:#bottom.
ca
parents: 90
diff changeset
  1162
    noteBook useIndex:true.
ca
parents: 90
diff changeset
  1163
    layoutTypes := #( #LayoutFrame #AlignmentOrigin #LayoutOrigin #Point #Rectangle ).     
ca
parents: 90
diff changeset
  1164
    noteBook list:#( 'Frame' 'Alig.Origin' 'LayoutOrigin' 'Point' 'Rectangle' ).
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1165
111
ca
parents: 90
diff changeset
  1166
    noteBook action:[:anIndex|
ca
parents: 90
diff changeset
  1167
        anIndex notNil ifTrue:[self selection:(layoutTypes at:anIndex)].
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1168
    ].
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1169
111
ca
parents: 90
diff changeset
  1170
! !
ca
parents: 90
diff changeset
  1171
ca
parents: 90
diff changeset
  1172
!UIPropertyView::Dimension methodsFor:'layout access'!
ca
parents: 90
diff changeset
  1173
ca
parents: 90
diff changeset
  1174
getAlignmentOrigin
ca
parents: 90
diff changeset
  1175
    "returns current layout as alignmentOrigin
ca
parents: 90
diff changeset
  1176
    "
ca
parents: 90
diff changeset
  1177
    |layout|
ca
parents: 90
diff changeset
  1178
ca
parents: 90
diff changeset
  1179
    layout  := AlignmentOrigin new.
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1180
111
ca
parents: 90
diff changeset
  1181
    layout   leftOffset:((aspects at:#leftOffset)   value) ? 0.
ca
parents: 90
diff changeset
  1182
    layout    topOffset:((aspects at:#topOffset)    value) ? 0.
ca
parents: 90
diff changeset
  1183
    layout leftFraction:((aspects at:#leftFraction) value) ? 0.
ca
parents: 90
diff changeset
  1184
    layout  topFraction:((aspects at:#topFraction)  value) ? 0.
ca
parents: 90
diff changeset
  1185
ca
parents: 90
diff changeset
  1186
    layout leftAlignmentFraction:((aspects at:#leftAlignmentFraction) value) ? 0.
ca
parents: 90
diff changeset
  1187
    layout  topAlignmentFraction:((aspects at:#topAlignmentFraction)  value) ? 0.
ca
parents: 90
diff changeset
  1188
ca
parents: 90
diff changeset
  1189
  ^ layout
ca
parents: 90
diff changeset
  1190
!
ca
parents: 90
diff changeset
  1191
ca
parents: 90
diff changeset
  1192
getExtent
ca
parents: 90
diff changeset
  1193
    "returns current extent
ca
parents: 90
diff changeset
  1194
    "
ca
parents: 90
diff changeset
  1195
  ^ Point x:(((aspects at:#leftOffset)   value) ? 0)
ca
parents: 90
diff changeset
  1196
          y:(((aspects at:#rightOffset)  value) ? 0)
64
6724d2091880 *** empty log message ***
ca
parents: 62
diff changeset
  1197
!
6724d2091880 *** empty log message ***
ca
parents: 62
diff changeset
  1198
111
ca
parents: 90
diff changeset
  1199
getLayoutFrame
ca
parents: 90
diff changeset
  1200
    "returns current layout as layoutFrame
ca
parents: 90
diff changeset
  1201
    "
ca
parents: 90
diff changeset
  1202
    |layout|
ca
parents: 90
diff changeset
  1203
ca
parents: 90
diff changeset
  1204
    layout  := LayoutFrame new.
ca
parents: 90
diff changeset
  1205
ca
parents: 90
diff changeset
  1206
    layout     leftOffset:((aspects at:#leftOffset)     value) ? 0.
ca
parents: 90
diff changeset
  1207
    layout    rightOffset:((aspects at:#rightOffset)    value) ? 0.
ca
parents: 90
diff changeset
  1208
    layout      topOffset:((aspects at:#topOffset)      value) ? 0.
ca
parents: 90
diff changeset
  1209
    layout   bottomOffset:((aspects at:#bottomOffset)   value) ? 0.
ca
parents: 90
diff changeset
  1210
    layout   leftFraction:((aspects at:#leftFraction)   value) ? 0.
ca
parents: 90
diff changeset
  1211
    layout  rightFraction:((aspects at:#rightFraction)  value) ? 0.
ca
parents: 90
diff changeset
  1212
    layout    topFraction:((aspects at:#topFraction)    value) ? 0.
ca
parents: 90
diff changeset
  1213
    layout bottomFraction:((aspects at:#bottomFraction) value) ? 0.
ca
parents: 90
diff changeset
  1214
ca
parents: 90
diff changeset
  1215
  ^ layout
ca
parents: 90
diff changeset
  1216
!
ca
parents: 90
diff changeset
  1217
ca
parents: 90
diff changeset
  1218
getLayoutOrigin
ca
parents: 90
diff changeset
  1219
    "returns current layout as layoutOrigin
64
6724d2091880 *** empty log message ***
ca
parents: 62
diff changeset
  1220
    "
111
ca
parents: 90
diff changeset
  1221
    |layout|
ca
parents: 90
diff changeset
  1222
ca
parents: 90
diff changeset
  1223
    layout  := LayoutOrigin new.
ca
parents: 90
diff changeset
  1224
ca
parents: 90
diff changeset
  1225
    layout   leftOffset:((aspects at:#leftOffset)   value) ? 0.
ca
parents: 90
diff changeset
  1226
    layout    topOffset:((aspects at:#topOffset)    value) ? 0.
ca
parents: 90
diff changeset
  1227
    layout leftFraction:((aspects at:#leftFraction) value) ? 0.
ca
parents: 90
diff changeset
  1228
    layout  topFraction:((aspects at:#topFraction)  value) ? 0.
ca
parents: 90
diff changeset
  1229
ca
parents: 90
diff changeset
  1230
  ^ layout
ca
parents: 90
diff changeset
  1231
!
ca
parents: 90
diff changeset
  1232
ca
parents: 90
diff changeset
  1233
getPoint
ca
parents: 90
diff changeset
  1234
    "returns current layout as point
ca
parents: 90
diff changeset
  1235
    "
ca
parents: 90
diff changeset
  1236
  ^ Point x:(((aspects at:#absLeft) value) ? 0)
ca
parents: 90
diff changeset
  1237
          y:(((aspects at:#absTop)  value) ? 0)
ca
parents: 90
diff changeset
  1238
!
ca
parents: 90
diff changeset
  1239
ca
parents: 90
diff changeset
  1240
getRectangle
ca
parents: 90
diff changeset
  1241
    "returns current layout as rectangle
ca
parents: 90
diff changeset
  1242
    "
ca
parents: 90
diff changeset
  1243
  ^ Rectangle left:(((aspects at:#leftOffset)   value) ? 0)
ca
parents: 90
diff changeset
  1244
               top:(((aspects at:#topOffset)    value) ? 0)
ca
parents: 90
diff changeset
  1245
             right:(((aspects at:#rightOffset)  value) ? 0)
ca
parents: 90
diff changeset
  1246
            bottom:(((aspects at:#bottomOffset) value) ? 0)
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1247
! !
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1248
111
ca
parents: 90
diff changeset
  1249
!UIPropertyView::Dimension methodsFor:'layout fetch'!
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1250
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1251
fetchAlignmentOrigin
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1252
    "fetch alignmentOrigin
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1253
    "
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1254
    |layout type extent|
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1255
111
ca
parents: 90
diff changeset
  1256
    type    := UIPainterView layoutType:forView.
ca
parents: 90
diff changeset
  1257
    layout  := forView geometryLayout.
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1258
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1259
    layout isLayout ifTrue:[
111
ca
parents: 90
diff changeset
  1260
        (aspects at:#leftOffset)   value:(layout leftOffset).
ca
parents: 90
diff changeset
  1261
        (aspects at:#leftFraction) value:(layout leftFraction).
ca
parents: 90
diff changeset
  1262
        (aspects at:#topOffset)    value:(layout topOffset).
ca
parents: 90
diff changeset
  1263
        (aspects at:#topFraction)  value:(layout topFraction).
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1264
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1265
        type == #AlignmentOrigin ifTrue:[
111
ca
parents: 90
diff changeset
  1266
            (aspects at:#leftAlignmentFraction) value:(layout leftAlignmentFraction).
ca
parents: 90
diff changeset
  1267
            (aspects at:#topAlignmentFraction)  value:(layout topAlignmentFraction).
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1268
          ^ self
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1269
        ]
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1270
    ] ifFalse:[
111
ca
parents: 90
diff changeset
  1271
        layout := forView computeOrigin.
64
6724d2091880 *** empty log message ***
ca
parents: 62
diff changeset
  1272
111
ca
parents: 90
diff changeset
  1273
        (aspects at:#leftOffset)   value:(layout x).
ca
parents: 90
diff changeset
  1274
        (aspects at:#leftFraction) value:0.
ca
parents: 90
diff changeset
  1275
        (aspects at:#topOffset)    value:(layout y).
ca
parents: 90
diff changeset
  1276
        (aspects at:#topFraction)  value:0.
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1277
    ].
111
ca
parents: 90
diff changeset
  1278
    (aspects at:#leftAlignmentFraction) value:0.
ca
parents: 90
diff changeset
  1279
    (aspects at:#topAlignmentFraction)  value:0.
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1280
!
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1281
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1282
fetchExtent
111
ca
parents: 90
diff changeset
  1283
    "fetch extent
ca
parents: 90
diff changeset
  1284
    "
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1285
    |extent|
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1286
111
ca
parents: 90
diff changeset
  1287
    extent  := forView computeExtent.
ca
parents: 90
diff changeset
  1288
ca
parents: 90
diff changeset
  1289
    (aspects at:#leftOffset)  value:(extent x).
ca
parents: 90
diff changeset
  1290
    (aspects at:#rightOffset) value:(extent y).
ca
parents: 90
diff changeset
  1291
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1292
!
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1293
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1294
fetchLayoutFrame
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1295
    "fetch layoutFrame
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1296
    "
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1297
    |layout|
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1298
111
ca
parents: 90
diff changeset
  1299
    layout  := UIPainterView asLayoutFrameFromView:forView.
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1300
111
ca
parents: 90
diff changeset
  1301
    (aspects at:#leftOffset)     value:(layout leftOffset).
ca
parents: 90
diff changeset
  1302
    (aspects at:#leftFraction)   value:(layout leftFraction).
ca
parents: 90
diff changeset
  1303
    (aspects at:#topOffset)      value:(layout topOffset).
ca
parents: 90
diff changeset
  1304
    (aspects at:#topFraction)    value:(layout topFraction).
ca
parents: 90
diff changeset
  1305
    (aspects at:#rightOffset)    value:(layout rightOffset).
ca
parents: 90
diff changeset
  1306
    (aspects at:#bottomOffset)   value:(layout bottomOffset).
ca
parents: 90
diff changeset
  1307
    (aspects at:#rightFraction)  value:(layout rightFraction).
ca
parents: 90
diff changeset
  1308
    (aspects at:#bottomFraction) value:(layout bottomFraction).
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1309
!
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1310
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1311
fetchLayoutOrigin
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1312
    "fetch layoutOrigin
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1313
    "
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1314
    |layout|
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1315
111
ca
parents: 90
diff changeset
  1316
    layout  := UIPainterView asLayoutFrameFromView:forView.
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1317
111
ca
parents: 90
diff changeset
  1318
    (aspects at:#leftOffset)   value:(layout leftOffset).
ca
parents: 90
diff changeset
  1319
    (aspects at:#leftFraction) value:(layout leftFraction).
ca
parents: 90
diff changeset
  1320
    (aspects at:#topOffset)    value:(layout topOffset).
ca
parents: 90
diff changeset
  1321
    (aspects at:#topFraction)  value:(layout topFraction).
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1322
!
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1323
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1324
fetchPoint
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1325
    "fetch point
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1326
    "
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1327
    |origin|
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1328
111
ca
parents: 90
diff changeset
  1329
    origin  := forView computeOrigin.
ca
parents: 90
diff changeset
  1330
ca
parents: 90
diff changeset
  1331
    (aspects at:#absLeft) value:(origin x).
ca
parents: 90
diff changeset
  1332
    (aspects at:#absTop)  value:(origin y).
ca
parents: 90
diff changeset
  1333
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1334
!
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1335
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1336
fetchRectangle
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1337
    "fetch rectangle
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1338
    "
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1339
    |origin corner|
62
0e8573b4329a so far so good ...
ca
parents: 60
diff changeset
  1340
111
ca
parents: 90
diff changeset
  1341
    origin  := forView computeOrigin.
ca
parents: 90
diff changeset
  1342
    corner  := forView computeCorner.
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1343
111
ca
parents: 90
diff changeset
  1344
    (aspects at:#leftOffset)   value:(origin x).
ca
parents: 90
diff changeset
  1345
    (aspects at:#rightOffset)  value:(corner x).
ca
parents: 90
diff changeset
  1346
    (aspects at:#topOffset)    value:(origin y).
ca
parents: 90
diff changeset
  1347
    (aspects at:#bottomOffset) value:(corner y).
59
0a2b2ff030a0 so far ...
ca
parents: 56
diff changeset
  1348
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1349
! !
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1350
111
ca
parents: 90
diff changeset
  1351
!UIPropertyView::Dimension methodsFor:'layout make align'!
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1352
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1353
makeAlignBottomCenter
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1354
    self makeAlignLeft:0.5 top:1
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1355
111
ca
parents: 90
diff changeset
  1356
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1357
!
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1358
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1359
makeAlignBottomLeft
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1360
    self makeAlignLeft:0 top:1
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1361
111
ca
parents: 90
diff changeset
  1362
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1363
!
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1364
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1365
makeAlignBottomRight
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1366
    self makeAlignLeft:1 top:1
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1367
111
ca
parents: 90
diff changeset
  1368
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1369
!
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1370
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1371
makeAlignCenter
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1372
    self makeAlignLeft:0.5 top:0.5
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1373
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1374
!
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1375
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1376
makeAlignLeft:leftAlignmentFraction top:topAlignmentFraction
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1377
    |lAF tAF lO tO ext|
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1378
111
ca
parents: 90
diff changeset
  1379
    lAF     := (aspects at:#leftAlignmentFraction) value ? 0.
ca
parents: 90
diff changeset
  1380
    tAF     := (aspects at:#topAlignmentFraction)  value ? 0.
ca
parents: 90
diff changeset
  1381
    ext     := forView computeExtent.
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1382
111
ca
parents: 90
diff changeset
  1383
    (aspects at:#leftAlignmentFraction) value:leftAlignmentFraction.
ca
parents: 90
diff changeset
  1384
    (aspects at:#topAlignmentFraction)  value:topAlignmentFraction.
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1385
111
ca
parents: 90
diff changeset
  1386
    lO := (aspects at:#leftOffset) value ? 0.
ca
parents: 90
diff changeset
  1387
    tO := (aspects at:#topOffset)  value ? 0.
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1388
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1389
    lO := lO + (ext x * (leftAlignmentFraction - lAF)).
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1390
    tO := tO + (ext y * (topAlignmentFraction  - tAF)).
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1391
111
ca
parents: 90
diff changeset
  1392
    (aspects at:#leftOffset) value:(lO rounded).
ca
parents: 90
diff changeset
  1393
    (aspects at:#topOffset)  value:(tO rounded).
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1394
!
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1395
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1396
makeAlignLeftCenter
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1397
    self makeAlignLeft:0 top:0.5
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1398
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1399
!
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1400
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1401
makeAlignRightCenter
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1402
    self makeAlignLeft:1 top:0.5
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1403
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1404
!
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1405
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1406
makeAlignTopCenter
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1407
    self makeAlignLeft:0.5 top:0
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1408
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1409
!
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1410
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1411
makeAlignTopLeft
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1412
    self makeAlignLeft:0 top:0
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1413
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1414
!
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1415
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1416
makeAlignTopRight
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1417
    self makeAlignLeft:1 top:0
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1418
111
ca
parents: 90
diff changeset
  1419
ca
parents: 90
diff changeset
  1420
! !
ca
parents: 90
diff changeset
  1421
ca
parents: 90
diff changeset
  1422
!UIPropertyView::Dimension methodsFor:'layout make relative/absolute'!
68
889c3877baf0 layout ....
ca
parents: 66
diff changeset
  1423
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1424
makeLayout:what xOrY:xOrY offset:aBool
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1425
    |extent fraction offset fractSymb offsetSymb|
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1426
111
ca
parents: 90
diff changeset
  1427
    extent     := (forView superView computeExtent) perform:xOrY.
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1428
    fractSymb  := (what, 'Fraction') asSymbol.
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1429
    offsetSymb := (what,   'Offset') asSymbol.
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1430
111
ca
parents: 90
diff changeset
  1431
    fraction := (aspects at:fractSymb)  value.
ca
parents: 90
diff changeset
  1432
    offset   := (aspects at:offsetSymb) value.
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1433
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1434
    aBool ifTrue:[
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1435
        offset   := offset + ((fraction * extent) asInteger).
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1436
        fraction := 0.
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1437
    ] ifFalse:[
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1438
        fraction   := (fraction + (offset / extent)) asFloat.
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1439
70
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1440
        (fraction > 1.0) ifTrue:[ fraction := 1.0 ].
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1441
        (fraction < 0.0) ifTrue:[ fraction := 0 ].
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1442
        offset := 0.
4e667db10910 checkin from browser
ca
parents: 68
diff changeset
  1443
    ].
111
ca
parents: 90
diff changeset
  1444
    (aspects at:offsetSymb) value:offset.
ca
parents: 90
diff changeset
  1445
    (aspects at:fractSymb)  value:fraction.
56
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1446
!
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1447
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1448
makeOffsetAll
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1449
    self makeOffsetLeft.
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1450
    self makeOffsetTop.
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1451
    self makeOffsetRight.
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1452
    self makeOffsetBottom.
7276365d9311 intitial checkin
ca
parents:
diff changeset
  1453
111
ca
parents: 90