UISelectionPanel.st
author ca
Wed, 28 May 1997 12:35:20 +0200
changeset 135 8f4b6117ccaa
parent 125 8d408045b018
child 139 dc64ad7c0267
permissions -rw-r--r--
new withDefault
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
     1
"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
     3
              All Rights Reserved
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
     4
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
     5
 This software is furnished under a license and may be used
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    10
 hereby transferred.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    11
"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    12
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    13
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    14
ApplicationModel subclass:#UISelectionPanel
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    15
	instanceVariableNames:'selection selectors receiver'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    16
	classVariableNames:''
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    17
	poolDictionaries:''
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    18
	category:'Interface-UIPainter'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    19
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    20
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    21
View subclass:#Canvas
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    22
	instanceVariableNames:'inputView selection specification lastClickPoint labelHolder
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    23
		nameHolder'
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    24
	classVariableNames:''
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    25
	poolDictionaries:''
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    26
	privateIn:UISelectionPanel
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    27
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    28
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    29
DropObject subclass:#DropSpecification
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    30
	instanceVariableNames:''
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    31
	classVariableNames:''
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    32
	poolDictionaries:''
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    33
	privateIn:UISelectionPanel::Canvas
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    34
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    35
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    36
!UISelectionPanel class methodsFor:'documentation'!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    37
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    38
copyright
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    39
"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    40
 COPYRIGHT (c) 1997 by eXept Software AG
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    41
              All Rights Reserved
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    42
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    43
 This software is furnished under a license and may be used
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    44
 only in accordance with the terms of that license and with the
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    45
 inclusion of the above copyright notice.   This software may not
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    46
 be provided or otherwise made available to, or used by, any
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    47
 other person.  No title to or ownership of the software is
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    48
 hereby transferred.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    49
"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    50
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    51
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    52
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    53
documentation
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    54
"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    55
    implements a selection panel, keeping widgets which could be placed
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    56
    into the UIPainter by drag & drop.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    57
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    58
    [author:]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    59
        Claus Atzkern
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    60
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    61
    [see also:]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    62
        TabView
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    63
        UIPainter
104
da9db8500b67 update:
ca
parents: 98
diff changeset
    64
da9db8500b67 update:
ca
parents: 98
diff changeset
    65
    [start with:]
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    66
        UISelectionPanel open
104
da9db8500b67 update:
ca
parents: 98
diff changeset
    67
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    68
"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    69
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    70
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    71
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    72
!UISelectionPanel class methodsFor:'instance creation'!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    73
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
    74
newDefault
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    75
    |appl|
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    76
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    77
    appl := self new.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    78
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    79
    appl labels:#( 'Button & Toggle'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    80
                   'Panel'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    81
                   'Text'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    82
                   'View'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    83
                   'Menu & Combo'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
    84
                   'Slider'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    85
                 )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    86
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    87
      selectors:#( #buttonToggleSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    88
                   #panelSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    89
                   #textSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    90
                   #viewsSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    91
                   #menuComboSpec
104
da9db8500b67 update:
ca
parents: 98
diff changeset
    92
                   #sliderSpec
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    93
                 )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    94
       receiver:self.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    95
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
    96
  ^ appl.
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
    97
!
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
    98
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
    99
open
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   100
    |appl|
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   101
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   102
    appl := self newDefault.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   103
    appl open.
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   104
    ^ appl.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   105
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   106
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   107
!UISelectionPanel class methodsFor:'default specs'!
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   108
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   109
buttonToggleSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   110
    "this window spec was automatically generated by the ST/X UIPainter"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   111
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   112
    "do not manually edit this - the painter/builder may not be able to
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   113
     handle the specification if its corrupted."
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   114
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   115
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   116
     UIPainter new openOnClass:UISelectionPanel andSelector:#buttonToggleSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   117
     UISelectionPanel new openInterface:#buttonToggleSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   118
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   119
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   120
    <resource: #canvas>
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   121
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   122
    ^
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   123
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   124
       #(#FullSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   125
          #'window:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   126
           #(#WindowSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   127
              #'name:' 'uIPainterView'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   128
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   129
              #'label:' 'unnamed'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   130
              #'bounds:' #(#Rectangle 0 0 439 193)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   131
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   132
          #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   133
           #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   134
              #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   135
               #(
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   136
                 #(#ArrowButtonSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   137
                    #'name:' 'ArrowButton up'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   138
                    #'layout:' #(#LayoutFrame 237 0 20 0 259 0 42 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   139
                    #'hasCharacterOrientedLabel:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   140
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   141
                    #'direction:' #up
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   142
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   143
                 #(#ActionButtonSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   144
                    #'name:' 'Button'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   145
                    #'layout:' #(#LayoutFrame 20 0 20 0 119 0 42 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   146
                    #'label:' 'Button'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   147
                    #'isTriggerOnDown:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   148
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   149
                 #(#RadioButtonSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   150
                    #'name:' 'RadioButton'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   151
                    #'layout:' #(#LayoutFrame 127 0.0 20 0 226 0 42 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   152
                    #'label:' 'RadioButton'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   153
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   154
                    #'showLamp:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   155
                    #'lampColor:' #(#Color 100.0 100.0 0.0)
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   156
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   157
                 #(#ArrowButtonSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   158
                    #'name:' 'ArrowButton down'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   159
                    #'layout:' #(#LayoutFrame 238 0 51 0 260 0 73 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   160
                    #'hasCharacterOrientedLabel:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   161
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   162
                    #'direction:' #down
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   163
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   164
                 #(#ArrowButtonSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   165
                    #'name:' 'ArrowButton left'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   166
                    #'layout:' #(#LayoutFrame 238 0 82 0 260 0 104 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   167
                    #'hasCharacterOrientedLabel:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   168
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   169
                    #'direction:' #left
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   170
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   171
                 #(#ArrowButtonSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   172
                    #'name:' 'ArrowButton right'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   173
                    #'layout:' #(#LayoutFrame 238 0 113 0 260 0 135 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   174
                    #'hasCharacterOrientedLabel:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   175
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   176
                    #'direction:' #right
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   177
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   178
                 #(#CheckToggleSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   179
                    #'name:' 'CheckToggle'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   180
                    #'layout:' #(#LayoutFrame 297 0 82 0 317 0 102 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   181
                    #'hasCharacterOrientedLabel:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   182
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   183
                    #'showLamp:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   184
                    #'lampColor:' #(#Color 100.0 100.0 0.0)
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   185
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   186
                 #(#ToggleSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   187
                    #'name:' 'Toggle'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   188
                    #'layout:' #(#LayoutFrame 297 0 20 0 396 0 42 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   189
                    #'label:' 'Toggle'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   190
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   191
                    #'showLamp:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   192
                    #'lampColor:' #(#Color 100.0 100.0 0.0)
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   193
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   194
                 #(#CheckBoxSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   195
                    #'name:' 'CheckBox'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   196
                    #'layout:' #(#LayoutFrame 295 0 51 0 396 0 73 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   197
                    #'tabable:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   198
                    #'label:' 'CheckBox'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   199
                    #'translateLabel:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   200
                )
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   201
                 #(#ActionButtonSpec
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   202
                    #'name:' 'ok'
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   203
                    #'layout:' #(#LayoutFrame 20 0 51 0 119 0 73 0)
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   204
                    #'label:' 'ok'
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   205
                    #'model:' #accept
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   206
                    #'isTriggerOnDown:' false
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   207
                )
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   208
                 #(#ActionButtonSpec
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   209
                    #'name:' 'cancel'
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   210
                    #'layout:' #(#LayoutFrame 20 0 82 0 119 0 104 0)
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   211
                    #'label:' 'cancel'
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   212
                    #'model:' #cancel
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   213
                    #'isTriggerOnDown:' false
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   214
                )
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   215
                 #(#ActionButtonSpec
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   216
                    #'name:' 'help'
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   217
                    #'layout:' #(#LayoutFrame 20 0 113 0 119 0 135 0)
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   218
                    #'label:' 'help'
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   219
                    #'model:' #help
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   220
                    #'isTriggerOnDown:' false
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   221
                )
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   222
              )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   223
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   224
      )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   225
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   226
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   227
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   228
116
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   229
menuComboSpec
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   230
    "this window spec was automatically generated by the ST/X UIPainter"
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   231
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   232
    "do not manually edit this - the painter/builder may not be able to
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   233
     handle the specification if its corrupted."
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   234
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   235
    "
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   236
     UIPainter new openOnClass:UISelectionPanel andSelector:#menuComboSpec
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   237
     UISelectionPanel new openInterface:#menuComboSpec
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   238
    "
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   239
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   240
    <resource: #canvas>
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   241
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   242
    ^
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   243
     
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   244
       #(#FullSpec
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   245
          #'window:' 
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   246
           #(#WindowSpec
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   247
              #'name:' 'uIPainterView'
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   248
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   249
              #'label:' 'unnamed'
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   250
              #'bounds:' #(#Rectangle 0 0 464 253)
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   251
          )
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   252
          #'component:' 
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   253
           #(#SpecCollection
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   254
              #'collection:' 
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   255
               #(
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   256
                 #(#ComboBoxSpec
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   257
                    #'name:' 'ComboBox'
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   258
                    #'layout:' #(#LayoutFrame 20 0 20 0 123 0 40 0)
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   259
                    #'immediateAccept:' false
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   260
                    #'acceptOnLeave:' true
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   261
                    #'acceptOnReturn:' true
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   262
                    #'acceptOnTab:' true
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   263
                    #'acceptOnLostFocus:' true
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   264
                    #'hasBorder:' false
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   265
                )
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   266
                 #(#ComboListSpec
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   267
                    #'name:' 'ComboList'
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   268
                    #'layout:' #(#LayoutFrame 20 0 51 0 123 0 71 0)
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   269
                    #'tabable:' false
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   270
                )
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   271
                 #(#PopUpListSpec
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   272
                    #'name:' 'PopUpList'
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   273
                    #'layout:' #(#LayoutFrame 145 0 20 0 248 0 42 0)
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   274
                    #'label:' 'PopUpList'
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   275
                )
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   276
                 #(#MenuPanelSpec
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   277
                    #'name:' 'MenuPanel'
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   278
                    #'layout:' #(#LayoutFrame 147 0 67 0 250 0 89 0)
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   279
                )
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   280
                 #(#TabViewSpec
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   281
                    #'name:' 'TabView'
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   282
                    #'layout:' #(#LayoutFrame 269 0 20 0 409 0 56 0)
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   283
                    #'tabWidget:' #Window
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   284
                    #'direction:' #top
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   285
                    #'useIndex:' false
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   286
                    #'fitLastRow:' true
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   287
                    #'moveSelectedRow:' true
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   288
                )
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   289
                 #(#NoteBookViewSpec
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   290
                    #'name:' 'noteBookView'
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   291
                    #'layout:' #(#LayoutFrame 269 0 66 0 409 0 182 0)
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   292
                    #'tabWidget:' #Window
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   293
                    #'direction:' #top
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   294
                    #'useIndex:' false
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   295
                    #'fitLastRow:' true
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   296
                    #'moveSelectedRow:' true
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   297
                    #'level:' 2
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   298
                )
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   299
                 #(#LabelSpec
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   300
                    #'name:' 'label1'
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   301
                    #'layout:' #(#LayoutFrame 147 0 51 0 250 0 67 0)
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   302
                    #'label:' 'MenuPanel'
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   303
                    #'level:' 0
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   304
                    #'adjust:' #center
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   305
                    #'hasCharacterOrientedLabel:' true
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   306
                    #'canUIDrag:' false
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   307
                )
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   308
              )
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   309
          )
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   310
      )
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   311
!
61628bedc85a add menuBar as drag&drop object
ca
parents: 112
diff changeset
   312
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   313
panelSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   314
    "this window spec was automatically generated by the ST/X UIPainter"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   315
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   316
    "do not manually edit this - the painter/builder may not be able to
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   317
     handle the specification if its corrupted."
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   318
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   319
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   320
     UIPainter new openOnClass:UISelectionPanel andSelector:#panelSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   321
     UISelectionPanel new openInterface:#panelSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   322
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   323
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   324
    <resource: #canvas>
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   325
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   326
    ^
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   327
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   328
       #(#FullSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   329
          #'window:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   330
           #(#WindowSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   331
              #'name:' 'uIPainterView'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   332
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   333
              #'label:' 'unnamed'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   334
              #'bounds:' #(#Rectangle 0 0 475 136)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   335
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   336
          #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   337
           #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   338
              #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   339
               #(
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   340
                 #(#HorizontalPanelViewSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   341
                    #'name:' 'HorizontalPanelView'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   342
                    #'layout:' #(#LayoutFrame 20 0 20 0 104 0 105 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   343
                    #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   344
                     #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   345
                        #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   346
                         #(
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   347
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   348
                              #'name:' 'label1'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   349
                              #'label:' 'A'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   350
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   351
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   352
                              #'hasCharacterOrientedLabel:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   353
                              #'extent:' #(#Point 23 23)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   354
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   355
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   356
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   357
                              #'name:' 'label2'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   358
                              #'label:' 'B'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   359
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   360
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   361
                              #'hasCharacterOrientedLabel:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   362
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   363
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   364
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   365
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   366
                              #'name:' 'label3'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   367
                              #'label:' 'C'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   368
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   369
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   370
                              #'hasCharacterOrientedLabel:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   371
                              #'extent:' #(#Point 23 23)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   372
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   373
                          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   374
                        )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   375
                    )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   376
                    #'level:' 0
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   377
                    #'horizontalLayout:' #center
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   378
                    #'verticalLayout:' #center
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   379
                    #'horizontalSpace:' 3
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   380
                    #'verticalSpace:' 3
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   381
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   382
                 #(#VariableHorizontalPanelSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   383
                    #'name:' 'VariableHorizontalPanel'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   384
                    #'layout:' #(#LayoutFrame 249 0 20 0 337 0 105 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   385
                    #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   386
                     #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   387
                        #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   388
                         #(
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   389
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   390
                              #'name:' 'label4'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   391
                              #'label:' 'A'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   392
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   393
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   394
                              #'hasCharacterOrientedLabel:' true
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   395
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   396
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   397
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   398
                              #'name:' 'label5'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   399
                              #'label:' 'B'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   400
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   401
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   402
                              #'hasCharacterOrientedLabel:' true
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   403
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   404
                          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   405
                        )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   406
                    )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   407
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   408
                 #(#VerticalPanelViewSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   409
                    #'name:' 'VerticalPanelView'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   410
                    #'layout:' #(#LayoutFrame 110 0 20 0 168 0 105 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   411
                    #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   412
                     #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   413
                        #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   414
                         #(
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   415
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   416
                              #'name:' 'label6'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   417
                              #'label:' 'A'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   418
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   419
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   420
                              #'hasCharacterOrientedLabel:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   421
                              #'extent:' #(#Point 23 23)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   422
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   423
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   424
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   425
                              #'name:' 'label7'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   426
                              #'label:' 'B'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   427
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   428
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   429
                              #'hasCharacterOrientedLabel:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   430
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   431
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   432
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   433
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   434
                              #'name:' 'label8'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   435
                              #'label:' 'C'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   436
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   437
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   438
                              #'hasCharacterOrientedLabel:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   439
                              #'extent:' #(#Point 23 23)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   440
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   441
                          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   442
                        )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   443
                    )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   444
                    #'level:' 0
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   445
                    #'horizontalLayout:' #center
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   446
                    #'verticalLayout:' #center
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   447
                    #'horizontalSpace:' 3
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   448
                    #'verticalSpace:' 3
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   449
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   450
                 #(#VariableVerticalPanelSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   451
                    #'name:' 'VariableVerticalPanel'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   452
                    #'layout:' #(#LayoutFrame 342 0 20 0 426 0 105 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   453
                    #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   454
                     #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   455
                        #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   456
                         #(
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   457
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   458
                              #'name:' 'label9'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   459
                              #'label:' 'A'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   460
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   461
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   462
                              #'hasCharacterOrientedLabel:' true
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   463
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   464
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   465
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   466
                              #'name:' 'label10'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   467
                              #'label:' 'B'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   468
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   469
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   470
                              #'hasCharacterOrientedLabel:' true
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   471
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   472
                          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   473
                        )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   474
                    )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   475
                )
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   476
                 #(#PanelViewSpec
da9db8500b67 update:
ca
parents: 98
diff changeset
   477
                    #'name:' 'PanelView'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   478
                    #'layout:' #(#LayoutFrame 174 0 20 0 232 0 105 0)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   479
                    #'component:' 
da9db8500b67 update:
ca
parents: 98
diff changeset
   480
                     #(#SpecCollection
da9db8500b67 update:
ca
parents: 98
diff changeset
   481
                        #'collection:' 
da9db8500b67 update:
ca
parents: 98
diff changeset
   482
                         #(
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   483
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   484
                              #'name:' 'label11'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   485
                              #'label:' 'A'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   486
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   487
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   488
                              #'hasCharacterOrientedLabel:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   489
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   490
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   491
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   492
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   493
                              #'name:' 'label12'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   494
                              #'label:' 'B'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   495
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   496
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   497
                              #'hasCharacterOrientedLabel:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   498
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   499
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   500
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   501
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   502
                              #'name:' 'label13'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   503
                              #'label:' 'C'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   504
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   505
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   506
                              #'hasCharacterOrientedLabel:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   507
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   508
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   509
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   510
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   511
                              #'name:' 'label14'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   512
                              #'label:' 'D'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   513
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   514
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   515
                              #'hasCharacterOrientedLabel:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   516
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   517
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   518
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   519
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   520
                              #'name:' 'label15'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   521
                              #'label:' 'E'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   522
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   523
                              #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   524
                              #'hasCharacterOrientedLabel:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   525
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   526
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   527
                          )
da9db8500b67 update:
ca
parents: 98
diff changeset
   528
                        )
da9db8500b67 update:
ca
parents: 98
diff changeset
   529
                    )
da9db8500b67 update:
ca
parents: 98
diff changeset
   530
                    #'level:' 0
da9db8500b67 update:
ca
parents: 98
diff changeset
   531
                    #'horizontalLayout:' #fitSpace
da9db8500b67 update:
ca
parents: 98
diff changeset
   532
                    #'verticalLayout:' #fitSpace
da9db8500b67 update:
ca
parents: 98
diff changeset
   533
                    #'horizontalSpace:' 3
da9db8500b67 update:
ca
parents: 98
diff changeset
   534
                    #'verticalSpace:' 3
da9db8500b67 update:
ca
parents: 98
diff changeset
   535
                )
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   536
              )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   537
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   538
      )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   539
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   540
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   541
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   542
sliderSpec
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   543
    "this window spec was automatically generated by the ST/X UIPainter"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   544
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   545
    "do not manually edit this - the painter/builder may not be able to
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   546
     handle the specification if its corrupted."
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   547
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   548
    "
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   549
     UIPainter new openOnClass:UISelectionPanel andSelector:#sliderSpec
da9db8500b67 update:
ca
parents: 98
diff changeset
   550
     UISelectionPanel new openInterface:#sliderSpec
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   551
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   552
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   553
    <resource: #canvas>
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   554
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   555
    ^
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   556
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   557
       #(#FullSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   558
          #'window:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   559
           #(#WindowSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   560
              #'name:' 'uIPainterView'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   561
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   562
              #'label:' 'unnamed'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   563
              #'bounds:' #(#Rectangle 0 0 445 162)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   564
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   565
          #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   566
           #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   567
              #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   568
               #(
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   569
                 #(#SliderSpec
da9db8500b67 update:
ca
parents: 98
diff changeset
   570
                    #'name:' 'Vertical Slider'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   571
                    #'layout:' #(#LayoutFrame 20 0 20 0 38 0 108 0)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   572
                    #'orientation:' #vertical
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   573
                )
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   574
                 #(#ThumbWheelSpec
da9db8500b67 update:
ca
parents: 98
diff changeset
   575
                    #'name:' 'Vertical ThumbWheel'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   576
                    #'layout:' #(#LayoutFrame 48 0 20 0 63 0 108 0)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   577
                    #'orientation:' #vertical
da9db8500b67 update:
ca
parents: 98
diff changeset
   578
                    #'start:' 0
da9db8500b67 update:
ca
parents: 98
diff changeset
   579
                    #'stop:' 360
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   580
                )
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   581
                 #(#ThumbWheelSpec
da9db8500b67 update:
ca
parents: 98
diff changeset
   582
                    #'name:' 'Horizontal ThumbWheel'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   583
                    #'layout:' #(#LayoutFrame 102 0 20 0 191 0 35 0)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   584
                    #'orientation:' #horizontal
da9db8500b67 update:
ca
parents: 98
diff changeset
   585
                    #'start:' 0
da9db8500b67 update:
ca
parents: 98
diff changeset
   586
                    #'stop:' 360
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   587
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   588
                 #(#SliderSpec
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   589
                    #'name:' 'Horizontal Slider'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   590
                    #'layout:' #(#LayoutFrame 102 0 47 0 191 0 65 0)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   591
                    #'orientation:' #horizontal
da9db8500b67 update:
ca
parents: 98
diff changeset
   592
                    #'start:' 0
da9db8500b67 update:
ca
parents: 98
diff changeset
   593
                    #'stop:' 100
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   594
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   595
              )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   596
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   597
      )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   598
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   599
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   600
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   601
textSpec
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   602
    "this window spec was automatically generated by the ST/X UIPainter"
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   603
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   604
    "do not manually edit this - the painter/builder may not be able to
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   605
     handle the specification if its corrupted."
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   606
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   607
    "
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   608
     UIPainter new openOnClass:UISelectionPanel andSelector:#textSpec
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   609
     UISelectionPanel new openInterface:#textSpec
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   610
    "
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   611
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   612
    <resource: #canvas>
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   613
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   614
    ^
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   615
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   616
       #(#FullSpec
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   617
          #'window:' 
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   618
           #(#WindowSpec
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   619
              #'name:' 'uIPainterView'
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   620
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   621
              #'label:' 'unnamed'
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   622
              #'bounds:' #(#Rectangle 0 0 573 264)
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   623
          )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   624
          #'component:' 
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   625
           #(#SpecCollection
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   626
              #'collection:' 
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   627
               #(
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   628
                 #(#InputFieldSpec
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   629
                    #'name:' 'EditField'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   630
                    #'layout:' #(#LayoutFrame 20 0 20 0 115 0 42 0)
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   631
                    #'immediateAccept:' true
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   632
                )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   633
                 #(#LabelSpec
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   634
                    #'name:' 'Text Label'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   635
                    #'layout:' #(#LayoutFrame 20 0 50 0 115 0 66 0)
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   636
                    #'label:' 'Text Label'
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   637
                    #'level:' 0
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   638
                    #'adjust:' #center
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   639
                    #'hasCharacterOrientedLabel:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   640
                )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   641
                 #(#TextEditorSpec
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   642
                    #'name:' 'EditTextView'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   643
                    #'layout:' #(#LayoutFrame 130 0 20 0 234 0 100 0)
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   644
                    #'hasHorizontalScrollBar:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   645
                    #'hasVerticalScrollBar:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   646
                    #'miniScrollerHorizontal:' false
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   647
                    #'miniScrollerVertical:' false
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   648
                )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   649
                 #(#TextEditorSpec
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   650
                    #'name:' 'EditTextView miniH'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   651
                    #'layout:' #(#LayoutFrame 246 0 20 0 350 0 100 0)
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   652
                    #'hasHorizontalScrollBar:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   653
                    #'hasVerticalScrollBar:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   654
                    #'miniScrollerHorizontal:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   655
                    #'miniScrollerVertical:' false
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   656
                )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   657
                 #(#SequenceViewSpec
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   658
                    #'name:' 'SelectionInListView miniH'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   659
                    #'layout:' #(#LayoutFrame 246 0 116 0 350 0 196 0)
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   660
                    #'hasHorizontalScrollBar:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   661
                    #'hasVerticalScrollBar:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   662
                    #'miniScrollerHorizontal:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   663
                    #'miniScrollerVertical:' false
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   664
                )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   665
                 #(#SequenceViewSpec
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   666
                    #'name:' 'SelectionInListView'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   667
                    #'layout:' #(#LayoutFrame 130 0 116 0 234 0 196 0)
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   668
                    #'hasHorizontalScrollBar:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   669
                    #'hasVerticalScrollBar:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   670
                    #'miniScrollerHorizontal:' false
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   671
                    #'miniScrollerVertical:' false
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   672
                )
98
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   673
                 #(#TextEditorSpec
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   674
                    #'name:' 'EditTextView noH'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   675
                    #'layout:' #(#LayoutFrame 364 0 20 0 468 0 100 0)
98
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   676
                    #'hasHorizontalScrollBar:' false
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   677
                    #'hasVerticalScrollBar:' true
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   678
                    #'miniScrollerHorizontal:' false
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   679
                    #'miniScrollerVertical:' false
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   680
                )
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   681
                 #(#SequenceViewSpec
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   682
                    #'name:' 'scrollableView2'
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   683
                    #'layout:' #(#LayoutFrame 365 0 116 0 469 0 196 0)
98
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   684
                    #'hasHorizontalScrollBar:' false
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   685
                    #'hasVerticalScrollBar:' true
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   686
                    #'miniScrollerHorizontal:' false
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   687
                    #'miniScrollerVertical:' false
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   688
                )
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   689
              )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   690
          )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   691
      )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   692
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   693
!
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   694
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   695
viewsSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   696
    "this window spec was automatically generated by the ST/X UIPainter"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   697
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   698
    "do not manually edit this - the painter/builder may not be able to
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   699
     handle the specification if its corrupted."
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   700
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   701
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   702
     UIPainter new openOnClass:UISelectionPanel andSelector:#viewsSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   703
     UISelectionPanel new openInterface:#viewsSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   704
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   705
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   706
    <resource: #canvas>
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   707
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   708
    ^
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   709
     
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   710
       #(#FullSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   711
          #'window:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   712
           #(#WindowSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   713
              #'name:' 'uIPainterView'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   714
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   715
              #'label:' 'unnamed'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   716
              #'bounds:' #(#Rectangle 0 0 485 245)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   717
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   718
          #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   719
           #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   720
              #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   721
               #(
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   722
                 #(#FramedBoxSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   723
                    #'name:' 'FramedBox'
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   724
                    #'layout:' #(#LayoutFrame 8 0 20 0 110 0 85 0)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   725
                    #'label:' 'FramedBox'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   726
                    #'labelPosition:' #topCenter
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   727
                    #'showFrame:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   728
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   729
                 #(#ViewSpec
98
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   730
                    #'name:' 'View'
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   731
                    #'layout:' #(#LayoutFrame 124 0 20 0 206 0 85 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   732
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   733
                 #(#SubCanvasSpec
98
b913c0f095ab checkin from browser
Claus Gittinger <cg@exept.de>
parents: 97
diff changeset
   734
                    #'name:' 'SubCanvas'
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   735
                    #'layout:' #(#LayoutFrame 218 0 20 0 311 0 85 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   736
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   737
                 #(#LabelSpec
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   738
                    #'name:' 'subCanvasLabel'
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   739
                    #'layout:' #(#LayoutFrame 230 0 25 0 301 0 42 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   740
                    #'label:' 'SubCanvas'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   741
                    #'level:' 0
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   742
                    #'adjust:' #center
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   743
                    #'hasCharacterOrientedLabel:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   744
                    #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   745
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   746
                 #(#DividerSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   747
                    #'name:' 'Horizontal Seperator'
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   748
                    #'layout:' #(#LayoutFrame 8 0 93 0 110 0 110 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   749
                    #'orientation:' #horizontal
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   750
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   751
                 #(#DividerSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   752
                    #'name:' 'Vertical Seperator'
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   753
                    #'layout:' #(#LayoutFrame 124 0 93 0 143 0 171 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   754
                    #'orientation:' #vertical
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   755
                )
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   756
                 #(#LabelSpec
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   757
                    #'name:' 'viewLabel'
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   758
                    #'layout:' #(#LayoutFrame 138 0 25 0 189 0 42 0)
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   759
                    #'label:' 'View'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   760
                    #'level:' 0
da9db8500b67 update:
ca
parents: 98
diff changeset
   761
                    #'adjust:' #center
da9db8500b67 update:
ca
parents: 98
diff changeset
   762
                    #'hasCharacterOrientedLabel:' true
da9db8500b67 update:
ca
parents: 98
diff changeset
   763
                    #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   764
                )
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   765
                 #(#HTMLViewSpec
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   766
                    #'name:' 'HTMLView'
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   767
                    #'layout:' #(#LayoutFrame 324 0 20 0 449 0 85 0)
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   768
                    #'hasHorizontalScrollBar:' false
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   769
                    #'hasVerticalScrollBar:' true
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   770
                    #'miniScrollerHorizontal:' false
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   771
                    #'miniScrollerVertical:' false
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   772
                )
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   773
                 #(#LabelSpec
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   774
                    #'name:' 'HTMLViewLabel'
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   775
                    #'layout:' #(#LayoutFrame 355 0 25 0 436 0 42 0)
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   776
                    #'label:' 'HTML View'
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   777
                    #'level:' 0
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   778
                    #'adjust:' #center
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   779
                    #'hasCharacterOrientedLabel:' true
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   780
                    #'canUIDrag:' false
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   781
                )
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   782
              )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   783
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   784
      )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   785
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   786
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   787
!UISelectionPanel class methodsFor:'interface specs'!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   788
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   789
windowSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   790
    "this window spec was automatically generated by the ST/X UIPainter"
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   791
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   792
    "do not manually edit this - the painter/builder may not be able to
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   793
     handle the specification if its corrupted."
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   794
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   795
    "
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   796
     UIPainter new openOnClass:UISelectionPanel andSelector:#windowSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   797
     UISelectionPanel new openInterface:#windowSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   798
    "
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   799
    "UISelectionPanel open"
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   800
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   801
    <resource: #canvas>
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   802
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   803
    ^
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   804
     
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   805
       #(#FullSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   806
          #'window:' 
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   807
           #(#WindowSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   808
              #'name:' 'uIPainterView'
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   809
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
125
8d408045b018 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 116
diff changeset
   810
              #'label:' 'Component Gallery'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   811
              #'bounds:' #(#Rectangle 0 0 480 260)
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   812
          )
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   813
          #'component:' 
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   814
           #(#SpecCollection
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   815
              #'collection:' 
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   816
               #(
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   817
                 #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   818
                    #'name:' 'label1'
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   819
                    #'layout:' #(#LayoutFrame 0 0.0 -20 1.0 0 1.0 0 1.0)
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   820
                    #'label:' 'selection'
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   821
                    #'labelChannel:' #'nameOfObject'
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   822
                    #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   823
                    #'adjust:' #center
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   824
                    #'hasCharacterOrientedLabel:' false
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   825
                )
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   826
                 #(#NoteBookViewSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   827
                    #'name:' 'noteBookView1'
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   828
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -21 1.0)
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   829
                    #'model:' #tabModel
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   830
                    #'menu:' #tabList
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   831
                    #'tabWidget:' #Window
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   832
                    #'direction:' #top
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   833
                    #'fitLastRow:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   834
                    #'useIndex:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   835
                    #'moveSelectedRow:' true
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   836
                    #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   837
                    #'canvas:' #canvas
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   838
                )
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   839
              )
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   840
          )
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   841
      )
125
8d408045b018 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 116
diff changeset
   842
8d408045b018 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 116
diff changeset
   843
    "Modified: 26.5.1997 / 10:29:41 / cg"
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   844
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   845
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   846
!UISelectionPanel methodsFor:'accessing'!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   847
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   848
labels:loLabels selectors:loSelectors receiver:aReceiver
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   849
    selectors := loSelectors.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   850
    receiver := aReceiver.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   851
    (self tabList) value:loLabels.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   852
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   853
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   854
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   855
!UISelectionPanel methodsFor:'aspects'!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   856
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   857
canvas
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   858
    |holder|
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   859
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   860
    (holder := builder bindingAt:#canvas) isNil ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   861
        builder aspectAt:#canvas put:(holder := Canvas new)
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   862
    ].
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   863
    ^ holder
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   864
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   865
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   866
nameOfObject
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   867
    |holder canvas|
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   868
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   869
    (holder := builder bindingAt:#nameOfObject) isNil ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   870
        builder aspectAt:#nameOfObject put:(holder := ValueHolder new).
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   871
        canvas := self canvas.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   872
        canvas nameHolder:holder.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   873
    ].
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   874
    ^ holder
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   875
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   876
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   877
tabList
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   878
    "returns list of tab-labels
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   879
    "
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   880
    |holder|
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   881
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   882
    (holder := builder bindingAt:#tabList) isNil ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   883
        builder aspectAt:#tabList put:(holder := ValueHolder new).
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   884
    ].
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   885
    ^ holder
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   886
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   887
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   888
tabModel
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   889
    "returns my model; catching select notifications
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   890
    "
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   891
    |holder|
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   892
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   893
    (holder := builder bindingAt:#tabModel) isNil ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   894
        holder := AspectAdaptor new subject:self; forAspect:#selection.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   895
        builder aspectAt:#tabModel put:holder.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   896
    ].
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   897
    ^ holder
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   898
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   899
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   900
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   901
!UISelectionPanel methodsFor:'selection'!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   902
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   903
selection
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   904
    ^ selection
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   905
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   906
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   907
selection:aValue
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   908
    |spec|
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   909
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   910
    selection ~~ aValue ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   911
        (selection := aValue) notNil ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   912
            selectors size >= aValue ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   913
                spec := receiver perform:(selectors at:selection)
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   914
            ]
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   915
        ].
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   916
        (builder aspectAt:#canvas) specification:spec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   917
    ].
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   918
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   919
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   920
!UISelectionPanel::Canvas methodsFor:'accessing'!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   921
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   922
nameHolder:aValueHolder
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   923
    "set value holder which keeps the name of the object
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   924
     under the cursor or selected
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   925
    "
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   926
    nameHolder := aValueHolder
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   927
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   928
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   929
specification:aSpecOrSpecArray
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   930
    "load a new specification
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   931
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   932
    |builder|
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   933
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   934
    self selection:nil.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   935
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   936
    self subViews copy do:[:aSubView|
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   937
        aSubView ~~ inputView ifTrue:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   938
            aSubView destroy
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   939
        ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   940
    ].
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   941
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   942
    aSpecOrSpecArray notNil ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   943
        specification := UISpecification from:aSpecOrSpecArray.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   944
        builder := UIBuilder new.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   945
        specification buildViewFor:builder in:self.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   946
        self realizeAllSubViews.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   947
        inputView raise.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   948
    ] ifFalse:[
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   949
        specification := nil
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   950
    ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   951
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   952
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   953
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   954
!UISelectionPanel::Canvas methodsFor:'drag & drop'!
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   955
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   956
buildSpecFrom:aSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   957
    "build spec out of spec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   958
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   959
    |spec comp coll|
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   960
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   961
    (aSpec notNil and:[aSpec canUIDrag]) ifFalse:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   962
        ^ nil
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   963
    ].
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   964
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   965
    spec := aSpec copy.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   966
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   967
    (aSpec class supportsSubComponents and:[aSpec component notNil]) ifFalse:[
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   968
        ^ spec
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   969
    ].
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   970
    comp := aSpec component.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   971
    spec component:nil.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   972
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   973
    comp canUIDrag ifFalse:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   974
      ^ spec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   975
    ].
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   976
    coll := OrderedCollection new.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   977
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   978
    comp do:[:anEntry||spc|
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   979
        (spc := self buildSpecFrom:anEntry) notNil ifTrue:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   980
            coll add:spc
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   981
        ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   982
    ].
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   983
    coll isEmpty ifTrue:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   984
      ^ spec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   985
    ].
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   986
    comp := comp copy.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   987
    comp collection:coll.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   988
    spec component:comp.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   989
  ^ spec
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   990
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   991
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   992
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   993
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   994
startDrag
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   995
    "start drag of selection
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   996
    "
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   997
    |dragObj spec name|
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   998
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   999
    spec := self findSpecFor:selection.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1000
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1001
    spec notNil ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1002
        spec := self buildSpecFrom:spec.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1003
        name := spec className asString.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1004
        name := name copyFrom:1 to:(name size - ('Spec' size) + 1). 
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1005
        name at:1 put:(name at:1) asLowercase.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1006
        name at:(name size) put:$1.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1007
        spec name:name.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1008
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1009
        self showUnselected.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1010
        dragObj := DropSpecification for:selection specification:spec.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1011
        self showSelected.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1012
        DragAndDropManager startDrag:dragObj from:inputView.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1013
    ]
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1014
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1015
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1016
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1017
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1018
!UISelectionPanel::Canvas methodsFor:'event handling'!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1019
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1020
buttonMotion:state x:x y:y
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1021
    "start a drag on selection
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1022
    "
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1023
    |obj sensor|
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1024
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1025
    (state ~~ 0 and:[selection notNil]) ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1026
        sensor := self sensor.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1027
        sensor anyButtonPressed ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1028
            (lastClickPoint dist:(x@y)) > 10.0 ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1029
                self startDrag
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1030
            ]
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1031
        ]
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1032
    ] ifFalse:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1033
        (nameHolder notNil and:[(obj := self findObjectAtX:x y:y) notNil]) ifTrue:[
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1034
            nameHolder value:(obj name)
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1035
        ]
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1036
    ]
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1037
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1038
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1039
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1040
buttonPress:button x:x y:y
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1041
    "change selection
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1042
    "
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1043
    lastClickPoint := Point x:x y:y.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1044
    self selection:(self findObjectAtX:x y:y).
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1045
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1046
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1047
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1048
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1049
exposeX:x y:y width:w height:h
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1050
    "handle an expose event from device; redraw selection
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1051
    "
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1052
    super exposeX:x y:y width:w height:h.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1053
    self showSelected.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1054
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1055
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1056
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1057
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1058
!UISelectionPanel::Canvas methodsFor:'initialization'!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1059
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1060
initialize
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1061
    super initialize.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1062
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1063
    inputView := InputView origin:0.0@0.0 extent:1.0@1.0 in:self.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1064
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1065
    inputView eventReceiver:self.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1066
    inputView enableButtonEvents.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1067
    inputView enableButtonMotionEvents.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1068
    inputView enableMotionEvents.
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1069
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1070
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1071
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1072
!UISelectionPanel::Canvas methodsFor:'searching'!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1073
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1074
findObjectAtX:x y:y
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1075
    "find the origin/corner of the currentWidget
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1076
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1077
    |view viewId point|
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1078
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1079
    point   := Point x:x y:y.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1080
    point   := device translatePoint:point from:(inputView id)
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1081
                                             to:(inputView device rootView id).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1082
    inputView lower.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1083
    viewId := device viewIdFromPoint:point in:(self id).
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1084
    view   := device viewFromId:viewId.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1085
    inputView raise.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1086
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1087
    (view ~~ self and:[view ~~ inputView]) ifTrue:[
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1088
        (self findSpecFor:view) notNil ifTrue:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1089
             ^ view
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1090
        ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1091
    ].
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1092
    ^ nil
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1093
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1094
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1095
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1096
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1097
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1098
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1099
findSpecFor:anObject
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1100
    "returns subspec assigned to instance or nil
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1101
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1102
    |name components spec|
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1103
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1104
    anObject notNil ifTrue:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1105
        name := anObject name.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1106
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1107
        specification do:[:aSpec|
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1108
            aSpec name = name ifTrue:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1109
                aSpec canUIDrag ifTrue:[^ aSpec]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1110
                               ifFalse:[^ nil]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1111
            ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1112
        ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1113
    ].
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1114
    ^ nil
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1115
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1116
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1117
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1118
!UISelectionPanel::Canvas methodsFor:'selection'!
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1119
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1120
handlesOf:aComponent do:aOneArgBlock
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1121
    "evaluate the block on each handle; the argument to the block
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1122
     is a rectangle
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1123
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1124
    aComponent notNil ifTrue:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1125
        aOneArgBlock value:(aComponent origin       - (4@4) extent:7@7).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1126
        aOneArgBlock value:(aComponent corner       - (4@4) extent:7@7).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1127
        aOneArgBlock value:(aComponent topRight     - (4@4) extent:7@7).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1128
        aOneArgBlock value:(aComponent bottomLeft   - (4@4) extent:7@7).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1129
        aOneArgBlock value:(aComponent leftCenter   - (4@4) extent:7@7).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1130
        aOneArgBlock value:(aComponent rightCenter  - (4@4) extent:7@7).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1131
        aOneArgBlock value:(aComponent topCenter    - (4@4) extent:7@7).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1132
        aOneArgBlock value:(aComponent bottomCenter - (4@4) extent:7@7).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1133
    ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1134
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1135
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1136
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1137
selection:anObject
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1138
    "selection changed
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1139
    "
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1140
    |name|
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1141
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1142
    selection ~~ anObject ifTrue:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1143
        self showUnselected.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1144
        (self findSpecFor:anObject) notNil ifTrue:[
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1145
            selection := anObject.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1146
            name := anObject name.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1147
            self showSelected
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1148
        ] ifFalse:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1149
            selection := nil
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1150
        ].
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1151
        nameHolder notNil ifTrue:[nameHolder value:name]
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1152
    ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1153
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1154
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1155
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1156
showSelected
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1157
    "show selected
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1158
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1159
    selection notNil ifTrue:[
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1160
        self clippedByChildren:false.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1161
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1162
        self handlesOf:selection do:[:aRectangle|
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1163
            self fillRectangle:aRectangle
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1164
        ].
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1165
        self clippedByChildren:true.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1166
    ].
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1167
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1168
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1169
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1170
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1171
showUnselected
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1172
    "show unselected
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1173
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1174
    |r|
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1175
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1176
    selection isNil ifTrue:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1177
        ^ self
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1178
    ].
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1179
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1180
    self clippedByChildren:false.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1181
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1182
    self handlesOf:selection do:[:aRectangle|
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1183
        self clearRectangle:aRectangle
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1184
    ].
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1185
    self clippedByChildren:true.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1186
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1187
"must redraw all components which are affected b the handles
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1188
"
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1189
    r := (selection originRelativeTo:self) - (4@4) extent:(selection extent + (4@4)).
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1190
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1191
    self subViews do:[:aComponent |
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1192
        |absOrg absFrame|
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1193
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1194
        aComponent ~~ inputView ifTrue:[
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1195
            absOrg   := aComponent originRelativeTo:self.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1196
            absFrame := absOrg extent:(aComponent extent).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1197
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1198
            (absFrame intersects:r) ifTrue:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1199
                aComponent withAllSubViewsDo:[:aView|
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1200
                    aView clear.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1201
                    aView exposeX:0 y:0 width:9999 height:9999.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1202
                ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1203
            ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1204
        ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1205
    ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1206
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1207
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1208
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1209
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1210
!UISelectionPanel::Canvas::DropSpecification class methodsFor:'instance creation'!
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1211
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1212
for:aView specification:aSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1213
    "create drop object for a view derived from a specification
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1214
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1215
    aView topView raise.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1216
    aView device sync.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1217
    aView invalidate.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1218
    aView windowGroup processExposeEvents.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1219
    DisplayObject := Image fromView:aView grab:false.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1220
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1221
    DisplayObject extent ~= aView extent ifTrue:[
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1222
        DisplayObject := Form extent:(aView extent) depth:1.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1223
        DisplayObject colorMap:(Array with:Color white with:Color black).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1224
        DisplayObject fill:(Color colorId:0).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1225
        DisplayObject paint:(Color colorId:1).
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1226
        DisplayObject displayRectangleX:0 y:0 width:aView extent x height:aView extent y.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1227
    ].
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1228
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1229
    ^ self new theObject:aSpec
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1230
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1231
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1232
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1233
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1234
!UISelectionPanel class methodsFor:'documentation'!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1235
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1236
version
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1237
    ^ '$Header$'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1238
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1239
! !