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