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