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