UISelectionPanel.st
author ca
Mon, 05 Jan 1998 16:48:25 +0100
changeset 395 d39076243277
parent 387 8fa6afe1b929
child 397 be1357e3bf7f
permissions -rw-r--r--
sett UIBuilder isEditing to true
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
     1
"
182
ca
parents: 167
diff changeset
     2
 COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG
ca
parents: 167
diff changeset
     3
              All Rights Reserved
ca
parents: 167
diff changeset
     4
ca
parents: 167
diff changeset
     5
 This software is furnished under a license and may be used
ca
parents: 167
diff changeset
     6
 only in accordance with the terms of that license and with the
ca
parents: 167
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
ca
parents: 167
diff changeset
     8
 be provided or otherwise made available to, or used by, any
ca
parents: 167
diff changeset
     9
 other person.  No title to or ownership of the software is
ca
parents: 167
diff changeset
    10
 hereby transferred.
ca
parents: 167
diff changeset
    11
"
ca
parents: 167
diff changeset
    12
ca
parents: 167
diff changeset
    13
ca
parents: 167
diff changeset
    14
ca
parents: 167
diff changeset
    15
ApplicationModel subclass:#UISelectionPanel
ca
parents: 167
diff changeset
    16
	instanceVariableNames:'userClass userSpecs userLabels majorSelection clipBoardSpec'
ca
parents: 167
diff changeset
    17
	classVariableNames:'UserClass UserSpecs UserLabels'
ca
parents: 167
diff changeset
    18
	poolDictionaries:''
ca
parents: 167
diff changeset
    19
	category:'Interface-UIPainter'
ca
parents: 167
diff changeset
    20
!
ca
parents: 167
diff changeset
    21
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
    22
Object subclass:#UserDefinedGallery
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    23
	instanceVariableNames:''
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
    24
	classVariableNames:'LabelList SelectorList HolderList NextUniqueNumber'
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    25
	poolDictionaries:''
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    26
	privateIn:UISelectionPanel
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    27
!
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    28
182
ca
parents: 167
diff changeset
    29
!UISelectionPanel class methodsFor:'documentation'!
ca
parents: 167
diff changeset
    30
ca
parents: 167
diff changeset
    31
copyright
ca
parents: 167
diff changeset
    32
"
ca
parents: 167
diff changeset
    33
 COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    34
              All Rights Reserved
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    35
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    36
 This software is furnished under a license and may be used
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    37
 only in accordance with the terms of that license and with the
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    38
 inclusion of the above copyright notice.   This software may not
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    39
 be provided or otherwise made available to, or used by, any
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    40
 other person.  No title to or ownership of the software is
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    41
 hereby transferred.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    42
"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    43
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    44
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    45
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    46
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    47
documentation
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    48
"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    49
    implements a selection panel, keeping widgets which could be placed
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    50
    into the UIPainter by drag & drop.
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    51
182
ca
parents: 167
diff changeset
    52
    [start with:]
ca
parents: 167
diff changeset
    53
        UISelectionPanel open
ca
parents: 167
diff changeset
    54
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    55
    [author:]
182
ca
parents: 167
diff changeset
    56
        Claus Gittinger
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    57
        Claus Atzkern
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    58
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    59
    [see also:]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    60
        TabView
182
ca
parents: 167
diff changeset
    61
        NoteBookView
ca
parents: 167
diff changeset
    62
        UIGalleryView
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    63
        UIPainter
104
da9db8500b67 update:
ca
parents: 98
diff changeset
    64
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    65
"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    66
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    67
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    68
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    69
!UISelectionPanel class methodsFor:'initialization'!
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    70
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    71
initialize
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    72
    super initialize.
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
    73
    UserClass  := UISelectionPanel::UserDefinedGallery.
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    74
    UserSpecs  := #listOfSelectors.
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    75
    UserLabels := #listOfLabels.
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
    76
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
    77
    "Modified: / 8.12.1997 / 18:53:06 / cg"
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    78
! !
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
    79
182
ca
parents: 167
diff changeset
    80
!UISelectionPanel class methodsFor:'accessing'!
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    81
182
ca
parents: 167
diff changeset
    82
specifications
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
    83
182
ca
parents: 167
diff changeset
    84
    ^ #(
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
    85
        #( 'Standards'  #( 
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
    86
                            #('Button & Toggle'         standardButtonToggle)
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
    87
                            #('Menus'                   standardMenus)
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
    88
                            #('Panel'                   standardPanels)
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
    89
                            #('Text'                    standardText)
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
    90
                            #('Lists'                   standartLists)
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
    91
                            #('Views'                   standardViews)
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
    92
                            #('Canvas'                  standardCanvas)
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
    93
                            #('Sliders'                 standardSliders)
182
ca
parents: 167
diff changeset
    94
                         )
ca
parents: 167
diff changeset
    95
         )
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
    96
182
ca
parents: 167
diff changeset
    97
        #( 'Clip Board'  #(
ca
parents: 167
diff changeset
    98
                            #('Copy & Paste Buffer'     clipBoardSpec)
ca
parents: 167
diff changeset
    99
                          )
ca
parents: 167
diff changeset
   100
         )
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
   101
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   102
        #( 'User Def.'   #userDefined )
182
ca
parents: 167
diff changeset
   103
     )
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   104
!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   105
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   106
userClass
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   107
    "return the class which provides the user defined gallery specs."
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   108
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   109
    ^ UserClass
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   110
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   111
    "Created: / 5.12.1997 / 15:12:50 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   112
!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   113
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   114
userClass:aClass specSelector:aSpecAccessSelector labelSelector:aLabelListAccessSelector
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   115
    "change the class which provides the user defined gallery specs."
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   116
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   117
    UserClass := aClass.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   118
    UserSpecs := aSpecAccessSelector.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   119
    UserLabels := aLabelListAccessSelector.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   120
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   121
    "
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   122
     UISelectionPanel 
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   123
        userClass:UISelectionPanel::VariableUserDefinedGallery
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   124
        specSelector:#listOfSelectors
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   125
        labelSelector:#listOfLabels
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   126
    "
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   127
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   128
    "Modified: / 5.12.1997 / 13:54:47 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
   129
    "Created: / 5.12.1997 / 13:56:10 / cg"
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   130
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   131
182
ca
parents: 167
diff changeset
   132
!UISelectionPanel class methodsFor:'interface specification'!
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   133
182
ca
parents: 167
diff changeset
   134
nameAndSelectorSpec
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   135
    "this window spec was automatically generated by the ST/X UIPainter"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   136
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   137
    "do not manually edit this - the painter/builder may not be able to
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   138
     handle the specification if its corrupted."
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   139
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   140
    "
182
ca
parents: 167
diff changeset
   141
     UIPainter new openOnClass:UISelectionPanel andSelector:#nameAndSelectorSpec
ca
parents: 167
diff changeset
   142
     UISelectionPanel new openInterface:#nameAndSelectorSpec
ca
parents: 167
diff changeset
   143
    "
ca
parents: 167
diff changeset
   144
ca
parents: 167
diff changeset
   145
    <resource: #canvas>
ca
parents: 167
diff changeset
   146
ca
parents: 167
diff changeset
   147
    ^
ca
parents: 167
diff changeset
   148
     
ca
parents: 167
diff changeset
   149
       #(#FullSpec
ca
parents: 167
diff changeset
   150
          #'window:' 
ca
parents: 167
diff changeset
   151
           #(#WindowSpec
ca
parents: 167
diff changeset
   152
              #'name:' 'uIPainterView'
ca
parents: 167
diff changeset
   153
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
ca
parents: 167
diff changeset
   154
              #'label:' 'Painter'
ca
parents: 167
diff changeset
   155
              #'bounds:' #(#Rectangle 0 0 315 216)
ca
parents: 167
diff changeset
   156
          )
ca
parents: 167
diff changeset
   157
          #'component:' 
ca
parents: 167
diff changeset
   158
           #(#SpecCollection
ca
parents: 167
diff changeset
   159
              #'collection:' 
ca
parents: 167
diff changeset
   160
               #(
ca
parents: 167
diff changeset
   161
                 #(#LabelSpec
ca
parents: 167
diff changeset
   162
                    #'name:' 'title'
ca
parents: 167
diff changeset
   163
                    #'layout:' #(#Point 5 10)
ca
parents: 167
diff changeset
   164
                    #'label:' 'class & selectors to access user specs:'
ca
parents: 167
diff changeset
   165
                    #'adjust:' #left
ca
parents: 167
diff changeset
   166
                    #'resizeForLabel:' true
ca
parents: 167
diff changeset
   167
                )
ca
parents: 167
diff changeset
   168
                 #(#LabelSpec
ca
parents: 167
diff changeset
   169
                    #'name:' 'classLabel'
ca
parents: 167
diff changeset
   170
                    #'layout:' #(#AlignmentOrigin 68 0.11 51 0 1 0.5)
ca
parents: 167
diff changeset
   171
                    #'label:' 'Class:'
ca
parents: 167
diff changeset
   172
                    #'adjust:' #right
ca
parents: 167
diff changeset
   173
                    #'resizeForLabel:' true
ca
parents: 167
diff changeset
   174
                )
ca
parents: 167
diff changeset
   175
                 #(#InputFieldSpec
ca
parents: 167
diff changeset
   176
                    #'name:' 'classField'
ca
parents: 167
diff changeset
   177
                    #'layout:' #(#LayoutFrame 74 0.11 39 0 -5 1.0 61 0)
ca
parents: 167
diff changeset
   178
                    #'tabable:' true
ca
parents: 167
diff changeset
   179
                    #'model:' #className
ca
parents: 167
diff changeset
   180
                    #'type:' #string
ca
parents: 167
diff changeset
   181
                )
ca
parents: 167
diff changeset
   182
                 #(#LabelSpec
ca
parents: 167
diff changeset
   183
                    #'name:' 'labelsLabel'
ca
parents: 167
diff changeset
   184
                    #'layout:' #(#AlignmentOrigin 68 0.11 74 0 1 0.5)
ca
parents: 167
diff changeset
   185
                    #'label:' 'Labels:'
ca
parents: 167
diff changeset
   186
                    #'adjust:' #right
ca
parents: 167
diff changeset
   187
                    #'resizeForLabel:' true
ca
parents: 167
diff changeset
   188
                )
ca
parents: 167
diff changeset
   189
                 #(#InputFieldSpec
ca
parents: 167
diff changeset
   190
                    #'name:' 'labelsField'
ca
parents: 167
diff changeset
   191
                    #'layout:' #(#LayoutFrame 74 0.11 64 0 -5 1.0 86 0)
ca
parents: 167
diff changeset
   192
                    #'tabable:' true
ca
parents: 167
diff changeset
   193
                    #'model:' #labelsKey
ca
parents: 167
diff changeset
   194
                    #'type:' #symbolOrNil
ca
parents: 167
diff changeset
   195
                )
ca
parents: 167
diff changeset
   196
                 #(#LabelSpec
ca
parents: 167
diff changeset
   197
                    #'name:' 'specsLabel'
ca
parents: 167
diff changeset
   198
                    #'layout:' #(#AlignmentOrigin 68 0.11 99 0 1 0.5)
ca
parents: 167
diff changeset
   199
                    #'label:' 'Specifications:'
ca
parents: 167
diff changeset
   200
                    #'adjust:' #right
ca
parents: 167
diff changeset
   201
                    #'resizeForLabel:' true
ca
parents: 167
diff changeset
   202
                )
ca
parents: 167
diff changeset
   203
                 #(#InputFieldSpec
ca
parents: 167
diff changeset
   204
                    #'name:' 'specsField'
ca
parents: 167
diff changeset
   205
                    #'layout:' #(#LayoutFrame 74 0.11 89 0 -5 1.0 111 0)
ca
parents: 167
diff changeset
   206
                    #'tabable:' true
ca
parents: 167
diff changeset
   207
                    #'model:' #specsKey
ca
parents: 167
diff changeset
   208
                    #'type:' #symbolOrNil
ca
parents: 167
diff changeset
   209
                )
ca
parents: 167
diff changeset
   210
                 #(#HorizontalPanelViewSpec
ca
parents: 167
diff changeset
   211
                    #'name:' 'commitPanel'
ca
parents: 167
diff changeset
   212
                    #'layout:' #(#LayoutFrame 0 0.0 -23 1.0 0 1.0 0 1.0)
ca
parents: 167
diff changeset
   213
                    #'component:' 
ca
parents: 167
diff changeset
   214
                     #(#SpecCollection
ca
parents: 167
diff changeset
   215
                        #'collection:' 
ca
parents: 167
diff changeset
   216
                         #(
ca
parents: 167
diff changeset
   217
                           #(#ActionButtonSpec
ca
parents: 167
diff changeset
   218
                              #'name:' 'cancel'
ca
parents: 167
diff changeset
   219
                              #'label:' 'cancel'
ca
parents: 167
diff changeset
   220
                              #'tabable:' true
ca
parents: 167
diff changeset
   221
                              #'model:' #cancel
ca
parents: 167
diff changeset
   222
                              #'extent:' #(#Point 153 23)
ca
parents: 167
diff changeset
   223
                          )
ca
parents: 167
diff changeset
   224
                           #(#ActionButtonSpec
ca
parents: 167
diff changeset
   225
                              #'name:' 'accept'
ca
parents: 167
diff changeset
   226
                              #'label:' 'ok'
ca
parents: 167
diff changeset
   227
                              #'tabable:' true
ca
parents: 167
diff changeset
   228
                              #'isDefault:' true
ca
parents: 167
diff changeset
   229
                              #'model:' #accept
ca
parents: 167
diff changeset
   230
                              #'extent:' #(#Point 153 23)
ca
parents: 167
diff changeset
   231
                          )
ca
parents: 167
diff changeset
   232
                        )
ca
parents: 167
diff changeset
   233
                    )
ca
parents: 167
diff changeset
   234
                    #'horizontalLayout:' #fitSpace
ca
parents: 167
diff changeset
   235
                    #'verticalLayout:' #fit
ca
parents: 167
diff changeset
   236
                    #'horizontalSpace:' 3
ca
parents: 167
diff changeset
   237
                    #'verticalSpace:' 3
ca
parents: 167
diff changeset
   238
                )
ca
parents: 167
diff changeset
   239
                 #(#CheckBoxSpec
ca
parents: 167
diff changeset
   240
                    #'name:' 'updateDefaultResources'
ca
parents: 167
diff changeset
   241
                    #'layout:' #(#Point 5 133)
ca
parents: 167
diff changeset
   242
                    #'model:' #updateDefaultResources
ca
parents: 167
diff changeset
   243
                    #'label:' 'Update Default Resources'
ca
parents: 167
diff changeset
   244
                )
ca
parents: 167
diff changeset
   245
              )
ca
parents: 167
diff changeset
   246
          )
ca
parents: 167
diff changeset
   247
      )
ca
parents: 167
diff changeset
   248
!
ca
parents: 167
diff changeset
   249
ca
parents: 167
diff changeset
   250
windowSpec
ca
parents: 167
diff changeset
   251
    "this window spec was automatically generated by the ST/X UIPainter"
ca
parents: 167
diff changeset
   252
ca
parents: 167
diff changeset
   253
    "do not manually edit this - the painter/builder may not be able to
ca
parents: 167
diff changeset
   254
     handle the specification if its corrupted."
ca
parents: 167
diff changeset
   255
ca
parents: 167
diff changeset
   256
    "
ca
parents: 167
diff changeset
   257
     UIPainter new openOnClass:UISelectionPanel andSelector:#windowSpec
ca
parents: 167
diff changeset
   258
     UISelectionPanel new openInterface:#windowSpec
ca
parents: 167
diff changeset
   259
    "
ca
parents: 167
diff changeset
   260
    "UISelectionPanel open"
ca
parents: 167
diff changeset
   261
ca
parents: 167
diff changeset
   262
    <resource: #canvas>
ca
parents: 167
diff changeset
   263
ca
parents: 167
diff changeset
   264
    ^
ca
parents: 167
diff changeset
   265
     
ca
parents: 167
diff changeset
   266
       #(#FullSpec
ca
parents: 167
diff changeset
   267
          #'window:' 
ca
parents: 167
diff changeset
   268
           #(#WindowSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   269
              #'name:' 'Component Gallery'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   270
              #'layout:' #(#LayoutFrame 78 0 70 0 598 0 352 0)
182
ca
parents: 167
diff changeset
   271
              #'label:' 'Component Gallery'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   272
              #'min:' #(#Point 100 280)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   273
              #'max:' #(#Point 1160 870)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   274
              #'bounds:' #(#Rectangle 78 70 599 353)
182
ca
parents: 167
diff changeset
   275
          )
ca
parents: 167
diff changeset
   276
          #'component:' 
ca
parents: 167
diff changeset
   277
           #(#SpecCollection
ca
parents: 167
diff changeset
   278
              #'collection:' 
ca
parents: 167
diff changeset
   279
               #(
ca
parents: 167
diff changeset
   280
                 #(#UIGalleryViewSpec
ca
parents: 167
diff changeset
   281
                    #'name:' 'gallery'
ca
parents: 167
diff changeset
   282
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 -40 1.0 0 1.0)
ca
parents: 167
diff changeset
   283
                    #'tabable:' true
ca
parents: 167
diff changeset
   284
                    #'menu:' #galleryList
ca
parents: 167
diff changeset
   285
                    #'style:' 
ca
parents: 167
diff changeset
   286
                     #(#FontDescription
ca
parents: 167
diff changeset
   287
                        #helvetica #medium
ca
parents: 167
diff changeset
   288
                        #roman #'10'
ca
parents: 167
diff changeset
   289
                    )
ca
parents: 167
diff changeset
   290
                    #'model:' #galleryModel
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   291
                    #'useIndex:' true
182
ca
parents: 167
diff changeset
   292
                    #'minorKeys:' #minorKeys
ca
parents: 167
diff changeset
   293
                    #'clientSpec:' #clientSpec
ca
parents: 167
diff changeset
   294
                    #'raiseMenu:' #raiseMenu
ca
parents: 167
diff changeset
   295
                )
ca
parents: 167
diff changeset
   296
                 #(#TabViewSpec
ca
parents: 167
diff changeset
   297
                    #'name:' 'major'
ca
parents: 167
diff changeset
   298
                    #'layout:' #(#LayoutFrame -40 1.0 30 0.0 0 1.0 0 1.0)
ca
parents: 167
diff changeset
   299
                    #'menu:' #majorList
ca
parents: 167
diff changeset
   300
                    #'style:' 
ca
parents: 167
diff changeset
   301
                     #(#FontDescription
ca
parents: 167
diff changeset
   302
                        #helvetica #medium
ca
parents: 167
diff changeset
   303
                        #roman #'10'
ca
parents: 167
diff changeset
   304
                    )
ca
parents: 167
diff changeset
   305
                    #'model:' #majorChannel
ca
parents: 167
diff changeset
   306
                    #'direction:' #right
ca
parents: 167
diff changeset
   307
                    #'useIndex:' true
ca
parents: 167
diff changeset
   308
                )
ca
parents: 167
diff changeset
   309
              )
ca
parents: 167
diff changeset
   310
          )
ca
parents: 167
diff changeset
   311
      )
ca
parents: 167
diff changeset
   312
! !
ca
parents: 167
diff changeset
   313
ca
parents: 167
diff changeset
   314
!UISelectionPanel class methodsFor:'menus'!
ca
parents: 167
diff changeset
   315
ca
parents: 167
diff changeset
   316
menuSelected
359
6193ef5b6e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 355
diff changeset
   317
6193ef5b6e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 355
diff changeset
   318
    <resource: #menu>
6193ef5b6e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 355
diff changeset
   319
182
ca
parents: 167
diff changeset
   320
    ^ #(#Menu #(
ca
parents: 167
diff changeset
   321
                #(#MenuItem
ca
parents: 167
diff changeset
   322
                        #'label:' 'copy'
ca
parents: 167
diff changeset
   323
                        #'value:' #copy
ca
parents: 167
diff changeset
   324
                 )
ca
parents: 167
diff changeset
   325
                #(#MenuItem
ca
parents: 167
diff changeset
   326
                        #'label:' 'cut'
ca
parents: 167
diff changeset
   327
                        #'value:' #cut
ca
parents: 167
diff changeset
   328
                 )
ca
parents: 167
diff changeset
   329
                )
ca
parents: 167
diff changeset
   330
               nil
ca
parents: 167
diff changeset
   331
               nil
ca
parents: 167
diff changeset
   332
        )
ca
parents: 167
diff changeset
   333
359
6193ef5b6e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 355
diff changeset
   334
    "Modified: / 29.10.1997 / 03:20:30 / cg"
182
ca
parents: 167
diff changeset
   335
!
ca
parents: 167
diff changeset
   336
ca
parents: 167
diff changeset
   337
menuUnselected
359
6193ef5b6e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 355
diff changeset
   338
    <resource: #menu>
6193ef5b6e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 355
diff changeset
   339
182
ca
parents: 167
diff changeset
   340
    ^ #(#Menu #(
ca
parents: 167
diff changeset
   341
                #(#MenuItem
ca
parents: 167
diff changeset
   342
                        #'label:' 'paste'
ca
parents: 167
diff changeset
   343
                        #'value:' #paste
ca
parents: 167
diff changeset
   344
                 )
ca
parents: 167
diff changeset
   345
                )
ca
parents: 167
diff changeset
   346
               nil
ca
parents: 167
diff changeset
   347
               nil
ca
parents: 167
diff changeset
   348
        )
ca
parents: 167
diff changeset
   349
359
6193ef5b6e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 355
diff changeset
   350
    "Modified: / 29.10.1997 / 03:20:38 / cg"
182
ca
parents: 167
diff changeset
   351
! !
ca
parents: 167
diff changeset
   352
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   353
!UISelectionPanel class methodsFor:'standard specifications'!
182
ca
parents: 167
diff changeset
   354
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   355
standardButtonToggle
182
ca
parents: 167
diff changeset
   356
    "this window spec was automatically generated by the ST/X UIPainter"
ca
parents: 167
diff changeset
   357
ca
parents: 167
diff changeset
   358
    "do not manually edit this - the painter/builder may not be able to
ca
parents: 167
diff changeset
   359
     handle the specification if its corrupted."
ca
parents: 167
diff changeset
   360
ca
parents: 167
diff changeset
   361
    "
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   362
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardButtonToggle
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   363
     UISelectionPanel new openInterface:#standardButtonToggle
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   364
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   365
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   366
    <resource: #canvas>
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   367
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   368
    ^
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
   369
     
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   370
       #(#FullSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   371
          #'window:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   372
           #(#WindowSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   373
              #'name:' 'Buttons'
323
8b98ae257e5c added dismiss button
Claus Gittinger <cg@exept.de>
parents: 308
diff changeset
   374
              #'layout:' #(#LayoutFrame 104 0 416 0 582 0 615 0)
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   375
              #'label:' 'Buttons'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   376
              #'min:' #(#Point 10 10)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   377
              #'max:' #(#Point 1280 1024)
323
8b98ae257e5c added dismiss button
Claus Gittinger <cg@exept.de>
parents: 308
diff changeset
   378
              #'bounds:' #(#Rectangle 104 416 583 616)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   379
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   380
          #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   381
           #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   382
              #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   383
               #(
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   384
                 #(#ArrowButtonSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   385
                    #'name:' 'ArrowButton up'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   386
                    #'layout:' #(#LayoutFrame 276 0 15 0 298 0 37 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   387
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   388
                    #'direction:' #up
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   389
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   390
                 #(#ActionButtonSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   391
                    #'name:' 'Button'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   392
                    #'layout:' #(#LayoutFrame 20 0 15 0 119 0 37 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   393
                    #'label:' 'Button'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   394
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   395
                 #(#RadioButtonSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   396
                    #'name:' 'RadioButton'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   397
                    #'layout:' #(#LayoutFrame 135 0.0 15 0 258 0 37 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   398
                    #'label:' 'RadioButton'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   399
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   400
                    #'showLamp:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   401
                    #'lampColor:' #(#Color 100.0 100.0 0.0)
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   402
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   403
                 #(#ArrowButtonSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   404
                    #'name:' 'ArrowButton down'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   405
                    #'layout:' #(#LayoutFrame 276 0 46 0 298 0 68 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   406
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   407
                    #'direction:' #down
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   408
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   409
                 #(#ArrowButtonSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   410
                    #'name:' 'ArrowButton left'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   411
                    #'layout:' #(#LayoutFrame 276 0 77 0 298 0 99 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   412
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   413
                    #'direction:' #left
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   414
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   415
                 #(#ArrowButtonSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   416
                    #'name:' 'ArrowButton right'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   417
                    #'layout:' #(#LayoutFrame 276 0 108 0 298 0 130 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   418
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   419
                    #'direction:' #right
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   420
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   421
                 #(#CheckToggleSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   422
                    #'name:' 'CheckToggle'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   423
                    #'layout:' #(#LayoutFrame 317 0 77 0 337 0 97 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   424
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   425
                    #'showLamp:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   426
                    #'lampColor:' #(#Color 100.0 100.0 0.0)
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   427
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   428
                 #(#ToggleSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   429
                    #'name:' 'Toggle'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   430
                    #'layout:' #(#LayoutFrame 317 0 15 0 436 0 37 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   431
                    #'label:' 'Toggle'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   432
                    #'isTriggerOnDown:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   433
                    #'showLamp:' true
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   434
                    #'lampColor:' #(#Color 100.0 100.0 0.0)
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   435
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   436
                 #(#CheckBoxSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   437
                    #'name:' 'CheckBox'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   438
                    #'layout:' #(#LayoutFrame 317 0 46 0 436 0 68 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   439
                    #'label:' 'CheckBox'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   440
                )
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   441
                 #(#ActionButtonSpec
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
   442
                    #'name:' 'Button - ok'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   443
                    #'layout:' #(#LayoutFrame 20 0 46 0 119 0 68 0)
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   444
                    #'label:' 'ok'
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   445
                    #'model:' #accept
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   446
                )
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   447
                 #(#ActionButtonSpec
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
   448
                    #'name:' 'Button - cancel'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   449
                    #'layout:' #(#LayoutFrame 20 0 77 0 119 0 99 0)
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   450
                    #'label:' 'cancel'
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   451
                    #'model:' #cancel
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   452
                )
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   453
                 #(#ActionButtonSpec
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
   454
                    #'name:' 'Button - help'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   455
                    #'layout:' #(#LayoutFrame 20 0 108 0 119 0 130 0)
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   456
                    #'label:' 'help'
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   457
                    #'model:' #help
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   458
                )
323
8b98ae257e5c added dismiss button
Claus Gittinger <cg@exept.de>
parents: 308
diff changeset
   459
                 #(#ActionButtonSpec
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
   460
                    #'name:' 'Button - close'
323
8b98ae257e5c added dismiss button
Claus Gittinger <cg@exept.de>
parents: 308
diff changeset
   461
                    #'layout:' #(#LayoutFrame 20 0 139 0 119 0 161 0)
8b98ae257e5c added dismiss button
Claus Gittinger <cg@exept.de>
parents: 308
diff changeset
   462
                    #'label:' 'dismiss'
8b98ae257e5c added dismiss button
Claus Gittinger <cg@exept.de>
parents: 308
diff changeset
   463
                    #'model:' #closeRequest
8b98ae257e5c added dismiss button
Claus Gittinger <cg@exept.de>
parents: 308
diff changeset
   464
                )
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   465
              )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   466
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   467
      )
323
8b98ae257e5c added dismiss button
Claus Gittinger <cg@exept.de>
parents: 308
diff changeset
   468
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
   469
    "Modified: 4.10.1997 / 15:06:03 / cg"
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   470
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   471
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   472
standardCanvas
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   473
    "this window spec was automatically generated by the ST/X UIPainter"
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   474
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   475
    "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
   476
     handle the specification if its corrupted."
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   477
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   478
    "
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   479
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardCanvas
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   480
     UISelectionPanel new openInterface:#standardCanvas
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   481
    "
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   482
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   483
    <resource: #canvas>
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   484
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   485
    ^
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   486
     
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   487
       #(#FullSpec
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   488
          #'window:' 
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   489
           #(#WindowSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   490
              #'name:' 'Canvas'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   491
              #'layout:' #(#LayoutFrame 62 0 64 0 516 0 292 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   492
              #'label:' 'Canvas'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   493
              #'min:' #(#Point 10 10)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   494
              #'max:' #(#Point 1160 870)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   495
              #'bounds:' #(#Rectangle 62 64 517 293)
182
ca
parents: 167
diff changeset
   496
          )
ca
parents: 167
diff changeset
   497
          #'component:' 
ca
parents: 167
diff changeset
   498
           #(#SpecCollection
ca
parents: 167
diff changeset
   499
              #'collection:' 
ca
parents: 167
diff changeset
   500
               #(
ca
parents: 167
diff changeset
   501
                 #(#UIGalleryViewSpec
ca
parents: 167
diff changeset
   502
                    #'name:' 'Gallery'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   503
                    #'layout:' #(#LayoutFrame 20 0 15 0 197 0 106 0)
182
ca
parents: 167
diff changeset
   504
                )
ca
parents: 167
diff changeset
   505
                 #(#LabelSpec
ca
parents: 167
diff changeset
   506
                    #'name:' 'GalleryLabel'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   507
                    #'layout:' #(#Point 24 84)
182
ca
parents: 167
diff changeset
   508
                    #'label:' 'Gallery'
ca
parents: 167
diff changeset
   509
                    #'style:' 
ca
parents: 167
diff changeset
   510
                     #(#FontDescription
ca
parents: 167
diff changeset
   511
                        #helvetica #medium
ca
parents: 167
diff changeset
   512
                        #roman #'10'
ca
parents: 167
diff changeset
   513
                    )
ca
parents: 167
diff changeset
   514
                    #'adjust:' #left
ca
parents: 167
diff changeset
   515
                    #'resizeForLabel:' true
ca
parents: 167
diff changeset
   516
                    #'canUIDrag:' false
ca
parents: 167
diff changeset
   517
                )
ca
parents: 167
diff changeset
   518
                 #(#UISubSpecification
ca
parents: 167
diff changeset
   519
                    #'name:' 'SubSpecification'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   520
                    #'layout:' #(#LayoutFrame 218 0 15 0 395 0 106 0)
182
ca
parents: 167
diff changeset
   521
                )
ca
parents: 167
diff changeset
   522
                 #(#LabelSpec
ca
parents: 167
diff changeset
   523
                    #'name:' 'SubSpecificationLabel'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   524
                    #'layout:' #(#Point 222 84)
182
ca
parents: 167
diff changeset
   525
                    #'label:' 'SubSpecification'
ca
parents: 167
diff changeset
   526
                    #'style:' 
ca
parents: 167
diff changeset
   527
                     #(#FontDescription
ca
parents: 167
diff changeset
   528
                        #helvetica #medium
ca
parents: 167
diff changeset
   529
                        #roman #'10'
ca
parents: 167
diff changeset
   530
                    )
ca
parents: 167
diff changeset
   531
                    #'resizeForLabel:' true
ca
parents: 167
diff changeset
   532
                    #'canUIDrag:' false
ca
parents: 167
diff changeset
   533
                )
ca
parents: 167
diff changeset
   534
                 #(#SubCanvasSpec
ca
parents: 167
diff changeset
   535
                    #'name:' 'SubCanvas'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   536
                    #'layout:' #(#LayoutFrame 20 0 126 0 197 0 217 0)
182
ca
parents: 167
diff changeset
   537
                    #'hasHorizontalScrollBar:' true
ca
parents: 167
diff changeset
   538
                    #'hasVerticalScrollBar:' true
ca
parents: 167
diff changeset
   539
                )
ca
parents: 167
diff changeset
   540
                 #(#LabelSpec
ca
parents: 167
diff changeset
   541
                    #'name:' 'subCanvasLabel'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   542
                    #'layout:' #(#AlignmentOrigin 95 0 197 0 0 0)
182
ca
parents: 167
diff changeset
   543
                    #'label:' 'SubCanvas'
ca
parents: 167
diff changeset
   544
                    #'style:' 
ca
parents: 167
diff changeset
   545
                     #(#FontDescription
ca
parents: 167
diff changeset
   546
                        #helvetica #medium
ca
parents: 167
diff changeset
   547
                        #roman #'10'
ca
parents: 167
diff changeset
   548
                    )
ca
parents: 167
diff changeset
   549
                    #'adjust:' #left
ca
parents: 167
diff changeset
   550
                    #'resizeForLabel:' true
ca
parents: 167
diff changeset
   551
                    #'canUIDrag:' false
ca
parents: 167
diff changeset
   552
                )
ca
parents: 167
diff changeset
   553
              )
ca
parents: 167
diff changeset
   554
          )
ca
parents: 167
diff changeset
   555
      )
ca
parents: 167
diff changeset
   556
!
ca
parents: 167
diff changeset
   557
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   558
standardMenus
182
ca
parents: 167
diff changeset
   559
    "this window spec was automatically generated by the ST/X UIPainter"
ca
parents: 167
diff changeset
   560
ca
parents: 167
diff changeset
   561
    "do not manually edit this - the painter/builder may not be able to
ca
parents: 167
diff changeset
   562
     handle the specification if its corrupted."
ca
parents: 167
diff changeset
   563
ca
parents: 167
diff changeset
   564
    "
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   565
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardMenus
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   566
     UISelectionPanel new openInterface:#standardMenus
182
ca
parents: 167
diff changeset
   567
    "
ca
parents: 167
diff changeset
   568
ca
parents: 167
diff changeset
   569
    <resource: #canvas>
ca
parents: 167
diff changeset
   570
ca
parents: 167
diff changeset
   571
    ^
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   572
     
182
ca
parents: 167
diff changeset
   573
       #(#FullSpec
ca
parents: 167
diff changeset
   574
          #'window:' 
ca
parents: 167
diff changeset
   575
           #(#WindowSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   576
              #'name:' 'Menus'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   577
              #'layout:' #(#LayoutFrame 133 0 90 0 619 0 339 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   578
              #'label:' 'Menus'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   579
              #'min:' #(#Point 10 10)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   580
              #'max:' #(#Point 1280 1024)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   581
              #'bounds:' #(#Rectangle 133 90 620 340)
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   582
          )
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   583
          #'component:' 
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   584
           #(#SpecCollection
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   585
              #'collection:' 
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   586
               #(
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   587
                 #(#ComboBoxSpec
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   588
                    #'name:' 'ComboBox'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   589
                    #'layout:' #(#LayoutFrame 20 0 15 0 145 0 35 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   590
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   591
                 #(#LabelSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   592
                    #'name:' 'ComboBoxLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   593
                    #'layout:' #(#LayoutFrame 22 0 17 0 94 0 35 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   594
                    #'label:' 'ComboBox'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   595
                    #'style:' 
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   596
                     #(#FontDescription
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   597
                        #helvetica #medium
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   598
                        #roman #'10'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   599
                    )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   600
                    #'adjust:' #left
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   601
                    #'resizeForLabel:' true
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   602
                    #'canUIDrag:' false
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   603
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   604
                 #(#PopUpListSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   605
                    #'name:' 'PopUpList'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   606
                    #'layout:' #(#LayoutFrame 184 0 15 0 287 0 37 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   607
                    #'label:' 'PopUpList'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   608
                    #'useIndex:' false
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   609
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   610
                 #(#TabViewSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   611
                    #'name:' 'TabView'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   612
                    #'layout:' #(#LayoutFrame 314 0 15 0 454 0 51 0)
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   613
                )
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   614
                 #(#ComboListSpec
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   615
                    #'name:' 'ComboList'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   616
                    #'layout:' #(#LayoutFrame 20 0 71 0 145 0 91 0)
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
   617
                    #'useIndex:' false
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   618
                )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   619
                 #(#LabelSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   620
                    #'name:' 'ComboListLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   621
                    #'layout:' #(#LayoutFrame 22 0 74 0 94 0 92 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   622
                    #'label:' 'ComboList'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   623
                    #'style:' 
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   624
                     #(#FontDescription
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   625
                        #helvetica #medium
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   626
                        #roman #'10'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   627
                    )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   628
                    #'adjust:' #left
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   629
                    #'resizeForLabel:' true
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   630
                    #'canUIDrag:' false
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   631
                )
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   632
                 #(#MenuPanelSpec
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   633
                    #'name:' 'MenuPanel'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   634
                    #'layout:' #(#LayoutFrame 184 0 71 0 285 0 94 0)
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   635
                )
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   636
                 #(#LabelSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   637
                    #'name:' 'MenuPanelLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   638
                    #'layout:' #(#Point 190 74)
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   639
                    #'label:' 'MenuPanel'
167
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
   640
                    #'style:' 
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
   641
                     #(#FontDescription
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
   642
                        #helvetica #medium
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
   643
                        #roman #'10'
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
   644
                    )
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
   645
                    #'adjust:' #left
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   646
                    #'resizeForLabel:' true
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   647
                    #'canUIDrag:' false
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   648
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   649
                 #(#NoteBookViewSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   650
                    #'name:' 'NoteBookView'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   651
                    #'layout:' #(#LayoutFrame 314 0 71 0 454 0 159 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   652
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   653
                 #(#LabelSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   654
                    #'name:' 'NoteBookLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   655
                    #'layout:' #(#Point 317 139)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   656
                    #'label:' 'NoteBook'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   657
                    #'style:' 
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   658
                     #(#FontDescription
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   659
                        #helvetica #medium
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   660
                        #roman #'10'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   661
                    )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   662
                    #'adjust:' #left
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   663
                    #'resizeForLabel:' true
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   664
                    #'canUIDrag:' false
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   665
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   666
                 #(#LabelSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   667
                    #'name:' 'TabLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   668
                    #'layout:' #(#Point 326 28)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   669
                    #'label:' 'Tabs'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   670
                    #'style:' 
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   671
                     #(#FontDescription
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   672
                        #helvetica #medium
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   673
                        #roman #'10'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   674
                    )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   675
                    #'adjust:' #left
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   676
                    #'resizeForLabel:' true
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   677
                    #'canUIDrag:' false
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   678
                )
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   679
              )
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   680
          )
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   681
      )
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   682
!
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   683
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   684
standardPanels
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   685
    "this window spec was automatically generated by the ST/X UIPainter"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   686
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   687
    "do not manually edit this - the painter/builder may not be able to
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   688
     handle the specification if its corrupted."
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   689
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   690
    "
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   691
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardPanels
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   692
     UISelectionPanel new openInterface:#standardPanels
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   693
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   694
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   695
    <resource: #canvas>
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   696
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   697
    ^
182
ca
parents: 167
diff changeset
   698
     
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   699
       #(#FullSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   700
          #'window:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   701
           #(#WindowSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   702
              #'name:' 'Panels'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   703
              #'layout:' #(#LayoutFrame 88 0 80 0 596 0 298 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   704
              #'label:' 'Panels'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   705
              #'min:' #(#Point 10 10)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   706
              #'max:' #(#Point 1280 1024)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   707
              #'bounds:' #(#Rectangle 88 80 597 299)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   708
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   709
          #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   710
           #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   711
              #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   712
               #(
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   713
                 #(#HorizontalPanelViewSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   714
                    #'name:' 'HorizontalPanelView'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   715
                    #'layout:' #(#LayoutFrame 20 0 15 0 104 0 105 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   716
                    #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   717
                     #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   718
                        #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   719
                         #(
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   720
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   721
                              #'name:' 'label1'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   722
                              #'label:' 'A'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   723
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   724
                              #'extent:' #(#Point 23 23)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   725
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   726
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   727
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   728
                              #'name:' 'label2'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   729
                              #'label:' 'B'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   730
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   731
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   732
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   733
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   734
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   735
                              #'name:' 'label3'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   736
                              #'label:' 'C'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   737
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   738
                              #'extent:' #(#Point 23 23)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   739
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   740
                          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   741
                        )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   742
                    )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   743
                    #'horizontalLayout:' #center
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   744
                    #'verticalLayout:' #center
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   745
                    #'horizontalSpace:' 3
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   746
                    #'verticalSpace:' 3
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   747
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   748
                 #(#VariableHorizontalPanelSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   749
                    #'name:' 'VariableHorizontalPanel'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   750
                    #'layout:' #(#LayoutFrame 264 0 15 0 338 0 105 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   751
                    #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   752
                     #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   753
                        #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   754
                         #(
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   755
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   756
                              #'name:' 'label4'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   757
                              #'label:' 'A'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   758
                              #'level:' 2
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   759
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   760
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   761
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   762
                              #'name:' 'label5'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   763
                              #'label:' 'B'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   764
                              #'level:' 2
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   765
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   766
                          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   767
                        )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   768
                    )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   769
                    #'handles:' #(#Any 0.5 1.0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   770
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   771
                 #(#VerticalPanelViewSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   772
                    #'name:' 'VerticalPanelView'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   773
                    #'layout:' #(#LayoutFrame 112 0 15 0 170 0 105 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   774
                    #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   775
                     #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   776
                        #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   777
                         #(
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   778
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   779
                              #'name:' 'label6'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   780
                              #'label:' 'A'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   781
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   782
                              #'extent:' #(#Point 23 23)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   783
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   784
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   785
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   786
                              #'name:' 'label7'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   787
                              #'label:' 'B'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   788
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   789
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   790
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   791
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   792
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   793
                              #'name:' 'label8'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   794
                              #'label:' 'C'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   795
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   796
                              #'extent:' #(#Point 23 23)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   797
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   798
                          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   799
                        )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   800
                    )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   801
                    #'horizontalLayout:' #center
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   802
                    #'verticalLayout:' #center
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   803
                    #'horizontalSpace:' 3
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   804
                    #'verticalSpace:' 3
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   805
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   806
                 #(#VariableVerticalPanelSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   807
                    #'name:' 'VariableVerticalPanel'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   808
                    #'layout:' #(#LayoutFrame 347 0 15 0 421 0 105 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   809
                    #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   810
                     #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   811
                        #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   812
                         #(
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   813
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   814
                              #'name:' 'label9'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   815
                              #'label:' 'A'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   816
                              #'level:' 2
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   817
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   818
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   819
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   820
                              #'name:' 'label10'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   821
                              #'label:' 'B'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   822
                              #'level:' 2
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   823
                              #'canUIDrag:' false
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   824
                          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   825
                        )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   826
                    )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   827
                    #'handles:' #(#Any 0.5 1.0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   828
                )
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   829
                 #(#PanelViewSpec
da9db8500b67 update:
ca
parents: 98
diff changeset
   830
                    #'name:' 'PanelView'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   831
                    #'layout:' #(#LayoutFrame 178 0 15 0 236 0 105 0)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   832
                    #'component:' 
da9db8500b67 update:
ca
parents: 98
diff changeset
   833
                     #(#SpecCollection
da9db8500b67 update:
ca
parents: 98
diff changeset
   834
                        #'collection:' 
da9db8500b67 update:
ca
parents: 98
diff changeset
   835
                         #(
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   836
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   837
                              #'name:' 'label11'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   838
                              #'label:' 'A'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   839
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   840
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   841
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   842
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   843
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   844
                              #'name:' 'label12'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   845
                              #'label:' 'B'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   846
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   847
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   848
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   849
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   850
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   851
                              #'name:' 'label13'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   852
                              #'label:' 'C'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   853
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   854
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   855
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   856
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   857
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   858
                              #'name:' 'label14'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   859
                              #'label:' 'D'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   860
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   861
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   862
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   863
                          )
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   864
                           #(#LabelSpec
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   865
                              #'name:' 'label15'
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   866
                              #'label:' 'E'
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   867
                              #'level:' 2
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
   868
                              #'extent:' #(#Point 23 23)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   869
                              #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
   870
                          )
da9db8500b67 update:
ca
parents: 98
diff changeset
   871
                        )
da9db8500b67 update:
ca
parents: 98
diff changeset
   872
                    )
da9db8500b67 update:
ca
parents: 98
diff changeset
   873
                    #'horizontalLayout:' #fitSpace
da9db8500b67 update:
ca
parents: 98
diff changeset
   874
                    #'verticalLayout:' #fitSpace
da9db8500b67 update:
ca
parents: 98
diff changeset
   875
                    #'horizontalSpace:' 3
da9db8500b67 update:
ca
parents: 98
diff changeset
   876
                    #'verticalSpace:' 3
da9db8500b67 update:
ca
parents: 98
diff changeset
   877
                )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   878
                 #(#LabelSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   879
                    #'name:' 'PanelLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   880
                    #'layout:' #(#LayoutFrame 22 0 120 0 235 0 143 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   881
                    #'label:' 'Panels'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   882
                    #'canUIDrag:' false
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   883
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   884
                 #(#LabelSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   885
                    #'name:' 'VPanelLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   886
                    #'layout:' #(#LayoutFrame 264 0 120 0 421 0 143 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   887
                    #'label:' 'Variable Panels'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   888
                    #'canUIDrag:' false
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   889
                )
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   890
              )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   891
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   892
      )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   893
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   894
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   895
standardSliders
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   896
    "this window spec was automatically generated by the ST/X UIPainter"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   897
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   898
    "do not manually edit this - the painter/builder may not be able to
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   899
     handle the specification if its corrupted."
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   900
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   901
    "
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   902
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardSliders
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   903
     UISelectionPanel new openInterface:#standardSliders
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   904
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   905
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   906
    <resource: #canvas>
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   907
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   908
    ^
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   909
     
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   910
       #(#FullSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   911
          #'window:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   912
           #(#WindowSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   913
              #'name:' 'Sliders'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   914
              #'layout:' #(#LayoutFrame 314 0 99 0 758 0 260 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   915
              #'label:' 'Sliders'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   916
              #'min:' #(#Point 10 10)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   917
              #'max:' #(#Point 1280 1024)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   918
              #'bounds:' #(#Rectangle 314 99 759 261)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   919
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   920
          #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   921
           #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   922
              #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   923
               #(
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   924
                 #(#SliderSpec
da9db8500b67 update:
ca
parents: 98
diff changeset
   925
                    #'name:' 'Vertical Slider'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   926
                    #'layout:' #(#LayoutFrame 20 0 15 0 38 0 108 0)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   927
                    #'orientation:' #vertical
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   928
                    #'start:' 0
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   929
                    #'stop:' 100
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   930
                    #'step:' 1
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   931
                )
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   932
                 #(#ThumbWheelSpec
da9db8500b67 update:
ca
parents: 98
diff changeset
   933
                    #'name:' 'Vertical ThumbWheel'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   934
                    #'layout:' #(#LayoutFrame 48 0 15 0 63 0 108 0)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   935
                    #'orientation:' #vertical
da9db8500b67 update:
ca
parents: 98
diff changeset
   936
                    #'start:' 0
da9db8500b67 update:
ca
parents: 98
diff changeset
   937
                    #'stop:' 360
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   938
                    #'step:' 1
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   939
                )
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   940
                 #(#ThumbWheelSpec
da9db8500b67 update:
ca
parents: 98
diff changeset
   941
                    #'name:' 'Horizontal ThumbWheel'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   942
                    #'layout:' #(#LayoutFrame 102 0 15 0 191 0 30 0)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   943
                    #'orientation:' #horizontal
da9db8500b67 update:
ca
parents: 98
diff changeset
   944
                    #'start:' 0
da9db8500b67 update:
ca
parents: 98
diff changeset
   945
                    #'stop:' 360
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   946
                    #'step:' 1
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   947
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   948
                 #(#SliderSpec
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   949
                    #'name:' 'Horizontal Slider'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   950
                    #'layout:' #(#LayoutFrame 102 0 52 0 191 0 70 0)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
   951
                    #'orientation:' #horizontal
da9db8500b67 update:
ca
parents: 98
diff changeset
   952
                    #'start:' 0
da9db8500b67 update:
ca
parents: 98
diff changeset
   953
                    #'stop:' 100
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   954
                    #'step:' 1
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   955
                )
150
9f88bc99e0af subCanvas
ca
parents: 147
diff changeset
   956
                 #(#ProgressIndicatorSpec
9f88bc99e0af subCanvas
ca
parents: 147
diff changeset
   957
                    #'name:' 'Progress Indicator'
9f88bc99e0af subCanvas
ca
parents: 147
diff changeset
   958
                    #'layout:' #(#LayoutFrame 102 0 90 0 191 0 108 0)
9f88bc99e0af subCanvas
ca
parents: 147
diff changeset
   959
                    #'showPercentage:' true
9f88bc99e0af subCanvas
ca
parents: 147
diff changeset
   960
                )
349
1f5c236558fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   961
                 #(#'ProgressIndicatorSpec'
1f5c236558fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   962
                    #'name:' 'Progress Indicator 2'
1f5c236558fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   963
                    #'layout:' #(#LayoutFrame 102 0 116 0 191 0 126 0)
1f5c236558fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   964
                    #'showPercentage:' false
1f5c236558fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   965
                    #'foregroundColor:' #(#Color 100.0 0.0 0.0)
1f5c236558fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   966
                )
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   967
              )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   968
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   969
      )
349
1f5c236558fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   970
1f5c236558fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   971
    "Modified: / 24.10.1997 / 03:27:42 / cg"
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   972
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   973
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   974
standardText
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   975
    "this window spec was automatically generated by the ST/X UIPainter"
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   976
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   977
    "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
   978
     handle the specification if its corrupted."
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   979
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   980
    "
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   981
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardText
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   982
     UISelectionPanel new openInterface:#standardText
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   983
    "
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   984
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   985
    <resource: #canvas>
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   986
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   987
    ^
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
   988
     
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   989
       #(#FullSpec
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   990
          #'window:' 
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   991
           #(#WindowSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   992
              #'name:' 'Text'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   993
              #'layout:' #(#LayoutFrame 139 0 32 0 605 0 238 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   994
              #'label:' 'Text'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   995
              #'min:' #(#Point 10 10)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   996
              #'max:' #(#Point 1280 1024)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   997
              #'bounds:' #(#Rectangle 139 32 606 239)
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   998
          )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   999
          #'component:' 
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1000
           #(#SpecCollection
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1001
              #'collection:' 
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1002
               #(
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1003
                 #(#TextEditorSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1004
                    #'name:' 'EditText'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1005
                    #'layout:' #(#LayoutFrame 20 0 15 0 215 0 120 0)
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1006
                    #'hasHorizontalScrollBar:' true
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1007
                    #'hasVerticalScrollBar:' true
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1008
                )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1009
                 #(#LabelSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1010
                    #'name:' 'EditTextLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1011
                    #'layout:' #(#AlignmentOrigin 93 0 120 0 0 1)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1012
                    #'label:' 'EditText'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1013
                    #'style:' 
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1014
                     #(#FontDescription
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1015
                        #helvetica #medium
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1016
                        #roman #'10'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1017
                    )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1018
                    #'adjust:' #left
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1019
                    #'resizeForLabel:' true
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1020
                    #'canUIDrag:' false
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1021
                )
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1022
                 #(#HTMLViewSpec
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1023
                    #'name:' 'HTMLView'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1024
                    #'layout:' #(#LayoutFrame 240 0 15 0 436 0 120 0)
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1025
                    #'hasHorizontalScrollBar:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1026
                    #'hasVerticalScrollBar:' true
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1027
                )
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1028
                 #(#LabelSpec
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1029
                    #'name:' 'HTMLViewLabel'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1030
                    #'layout:' #(#AlignmentOrigin 314 0 120 0 0 1)
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1031
                    #'label:' 'HTMLView'
167
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1032
                    #'style:' 
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1033
                     #(#FontDescription
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1034
                        #helvetica #medium
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1035
                        #roman #'10'
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1036
                    )
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
  1037
                    #'adjust:' #left
182
ca
parents: 167
diff changeset
  1038
                    #'resizeForLabel:' true
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1039
                    #'canUIDrag:' false
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1040
                )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1041
                 #(#InputFieldSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1042
                    #'name:' 'EditField'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1043
                    #'layout:' #(#LayoutFrame 20 0 142 0 215 0 164 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1044
                )
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1045
                 #(#LabelSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1046
                    #'name:' 'EditFieldLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1047
                    #'layout:' #(#LayoutFrame 55 0 144 0 115 0 162 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1048
                    #'label:' 'EditField'
167
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1049
                    #'style:' 
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1050
                     #(#FontDescription
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1051
                        #helvetica #medium
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1052
                        #roman #'10'
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1053
                    )
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
  1054
                    #'adjust:' #left
182
ca
parents: 167
diff changeset
  1055
                    #'resizeForLabel:' true
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1056
                    #'canUIDrag:' false
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1057
                )
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1058
                 #(#LabelSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1059
                    #'name:' 'Label'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1060
                    #'layout:' #(#LayoutFrame 240 0 142 0 436 0 164 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1061
                    #'label:' 'Label'
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
  1062
                )
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1063
              )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1064
          )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1065
      )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1066
!
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1067
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
  1068
standardUserPanel
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1069
    "this window spec was automatically generated by the ST/X UIPainter"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1070
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1071
    "do not manually edit this - the painter/builder may not be able to
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1072
     handle the specification if its corrupted."
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1073
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1074
    "
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
  1075
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardUserPanel
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
  1076
     UISelectionPanel new openInterface:#standardUserPanel
182
ca
parents: 167
diff changeset
  1077
    "
ca
parents: 167
diff changeset
  1078
ca
parents: 167
diff changeset
  1079
    <resource: #canvas>
ca
parents: 167
diff changeset
  1080
ca
parents: 167
diff changeset
  1081
    ^
ca
parents: 167
diff changeset
  1082
     
ca
parents: 167
diff changeset
  1083
       #(#FullSpec
ca
parents: 167
diff changeset
  1084
          #'window:' 
ca
parents: 167
diff changeset
  1085
           #(#WindowSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1086
              #'name:' 'UserPanel'
182
ca
parents: 167
diff changeset
  1087
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1088
              #'label:' 'UserPanel'
182
ca
parents: 167
diff changeset
  1089
              #'bounds:' #(#Rectangle 0 0 445 162)
ca
parents: 167
diff changeset
  1090
          )
ca
parents: 167
diff changeset
  1091
          #'component:' 
ca
parents: 167
diff changeset
  1092
           #(#SpecCollection
ca
parents: 167
diff changeset
  1093
              #'collection:' 
ca
parents: 167
diff changeset
  1094
               #(
ca
parents: 167
diff changeset
  1095
                 #(#LabelSpec
ca
parents: 167
diff changeset
  1096
                    #'name:' 'helpText'
ca
parents: 167
diff changeset
  1097
                    #'layout:' #(#Point 10 0)
ca
parents: 167
diff changeset
  1098
                    #'labelChannel:' #userDefinedHelpText
ca
parents: 167
diff changeset
  1099
                    #'resizeForLabel:' true
ca
parents: 167
diff changeset
  1100
                    #'canUIDrag:' false
ca
parents: 167
diff changeset
  1101
                )
ca
parents: 167
diff changeset
  1102
              )
ca
parents: 167
diff changeset
  1103
          )
ca
parents: 167
diff changeset
  1104
      )
ca
parents: 167
diff changeset
  1105
!
ca
parents: 167
diff changeset
  1106
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
  1107
standardViews
182
ca
parents: 167
diff changeset
  1108
    "this window spec was automatically generated by the ST/X UIPainter"
ca
parents: 167
diff changeset
  1109
ca
parents: 167
diff changeset
  1110
    "do not manually edit this - the painter/builder may not be able to
ca
parents: 167
diff changeset
  1111
     handle the specification if its corrupted."
ca
parents: 167
diff changeset
  1112
ca
parents: 167
diff changeset
  1113
    "
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
  1114
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardViews
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
  1115
     UISelectionPanel new openInterface:#standardViews
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1116
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1117
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1118
    <resource: #canvas>
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1119
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1120
    ^
135
8f4b6117ccaa new withDefault
ca
parents: 125
diff changeset
  1121
     
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1122
       #(#FullSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1123
          #'window:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1124
           #(#WindowSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1125
              #'name:' 'Views'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1126
              #'layout:' #(#LayoutFrame 158 0 56 0 637 0 284 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1127
              #'label:' 'Views'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1128
              #'min:' #(#Point 10 10)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1129
              #'max:' #(#Point 1280 1024)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1130
              #'bounds:' #(#Rectangle 158 56 638 285)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1131
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1132
          #'component:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1133
           #(#SpecCollection
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1134
              #'collection:' 
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1135
               #(
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1136
                 #(#FramedBoxSpec
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1137
                    #'name:' 'FramedBox'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1138
                    #'layout:' #(#LayoutFrame 20 0 15 0 187 0 95 0)
104
da9db8500b67 update:
ca
parents: 98
diff changeset
  1139
                    #'label:' 'FramedBox'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1140
                    #'labelPosition:' #topCenter
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1141
                )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1142
                 #(#ArbitraryComponentSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1143
                    #'name:' 'ArbitraryComponent'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1144
                    #'layout:' #(#LayoutFrame 247 0 15 0 414 0 95 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1145
                    #'hasBorder:' false
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1146
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1147
                 #(#LabelSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1148
                    #'name:' 'ArbitraryComponentLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1149
                    #'layout:' #(#AlignmentOrigin 253 0 21 0 0 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1150
                    #'label:' 'ArbitraryComponent'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1151
                    #'style:' 
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1152
                     #(#FontDescription
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1153
                        #helvetica #medium
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1154
                        #roman #'10'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1155
                    )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1156
                    #'adjust:' #left
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1157
                    #'resizeForLabel:' true
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1158
                    #'canUIDrag:' false
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1159
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1160
                 #(#DividerSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1161
                    #'name:' 'Vertical Separator'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1162
                    #'layout:' #(#LayoutFrame 20 0 115 0 24 0 195 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1163
                    #'orientation:' #vertical
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1164
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1165
                 #(#DividerSpec
216
2bfcf491429e hasCharacterOrientedLabel removed
ca
parents: 207
diff changeset
  1166
                    #'name:' 'Horizontal Separator'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1167
                    #'layout:' #(#LayoutFrame 20 0 115 0 126 0 119 0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1168
                    #'orientation:' #horizontal
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1169
                )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1170
                 #(#LabelSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1171
                    #'name:' 'SeparatorsLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1172
                    #'layout:' #(#AlignmentOrigin 126 0 135 0 1 0.5)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1173
                    #'label:' 'Separators'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1174
                    #'style:' 
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1175
                     #(#FontDescription
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1176
                        #helvetica #medium
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1177
                        #roman #'10'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1178
                    )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1179
                    #'adjust:' #left
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1180
                    #'resizeForLabel:' true
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1181
                    #'canUIDrag:' false
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1182
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1183
                 #(#RegionSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1184
                    #'name:' 'Region'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1185
                    #'layout:' #(#LayoutFrame 147 0 115 0 227 0 195 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1186
                    #'lineWidth:' 2
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1187
                    #'regionType:' #ellipse
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1188
                )
104
da9db8500b67 update:
ca
parents: 98
diff changeset
  1189
                 #(#LabelSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1190
                    #'name:' 'RegionLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1191
                    #'layout:' #(#AlignmentOrigin 186 0 155 0 0.5 0.5)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1192
                    #'label:' 'Region'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1193
                    #'style:' 
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1194
                     #(#FontDescription
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1195
                        #helvetica #medium
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1196
                        #roman #'10'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1197
                    )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1198
                    #'resizeForLabel:' true
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1199
                    #'canUIDrag:' false
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1200
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1201
                 #(#ViewSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1202
                    #'name:' 'View'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1203
                    #'layout:' #(#LayoutFrame 247 0 115 0 414 0 195 0)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1204
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1205
                 #(#LabelSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1206
                    #'name:' 'ViewLabel'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1207
                    #'layout:' #(#AlignmentOrigin 253 0 120 0 0 0)
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1208
                    #'label:' 'View'
167
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1209
                    #'style:' 
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1210
                     #(#FontDescription
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1211
                        #helvetica #medium
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1212
                        #roman #'10'
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1213
                    )
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
  1214
                    #'adjust:' #left
182
ca
parents: 167
diff changeset
  1215
                    #'resizeForLabel:' true
104
da9db8500b67 update:
ca
parents: 98
diff changeset
  1216
                    #'canUIDrag:' false
da9db8500b67 update:
ca
parents: 98
diff changeset
  1217
                )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1218
              )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1219
          )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1220
      )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1221
!
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1222
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1223
standartLists
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1224
    "this window spec was automatically generated by the ST/X UIPainter"
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1225
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1226
    "do not manually edit this - the painter/builder may not be able to
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1227
     handle the specification if its corrupted."
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1228
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1229
    "
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1230
     UIPainter new openOnClass:UISelectionPanel andSelector:#standartLists
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1231
     UISelectionPanel new openInterface:#standartLists
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1232
    "
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1233
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1234
    <resource: #canvas>
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1235
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1236
    ^
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1237
     
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1238
       #(#FullSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1239
          #'window:' 
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1240
           #(#WindowSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1241
              #'name:' 'Lists'
334
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1242
              #'layout:' #(#LayoutFrame 197 0 172 0 666 0 414 0)
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1243
              #'label:' 'Lists'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1244
              #'min:' #(#Point 10 10)
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1245
              #'max:' #(#Point 1280 1024)
334
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1246
              #'bounds:' #(#Rectangle 197 172 667 415)
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1247
          )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1248
          #'component:' 
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1249
           #(#SpecCollection
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1250
              #'collection:' 
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1251
               #(
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1252
                 #(#SequenceViewSpec
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1253
                    #'name:' 'SelectionInList'
308
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1254
                    #'layout:' #(#LayoutFrame 247 0 15 0 452 0 109 0)
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1255
                    #'hasHorizontalScrollBar:' true
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1256
                    #'hasVerticalScrollBar:' true
334
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1257
                    #'useIndex:' false
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1258
                )
143
9add9e2609d9 change SubCanvasSpec; have to update caused by new attributes
ca
parents: 142
diff changeset
  1259
                 #(#LabelSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1260
                    #'name:' 'SelectionInListLabel'
334
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1261
                    #'layout:' #(#AlignmentOrigin 320 0 108 0 0 1)
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1262
                    #'label:' 'SelectionInList'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1263
                    #'style:' #(#FontDescription #helvetica #medium #roman #'10')
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
  1264
                    #'adjust:' #left
182
ca
parents: 167
diff changeset
  1265
                    #'resizeForLabel:' true
143
9add9e2609d9 change SubCanvasSpec; have to update caused by new attributes
ca
parents: 142
diff changeset
  1266
                    #'canUIDrag:' false
9add9e2609d9 change SubCanvasSpec; have to update caused by new attributes
ca
parents: 142
diff changeset
  1267
                )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1268
                 #(#SelectionInTreeViewSpec
308
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1269
                    #'name:' 'SelectionInTree'
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1270
                    #'layout:' #(#LayoutFrame 20 0 15 0 225 0 109 0)
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1271
                    #'hasHorizontalScrollBar:' true
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1272
                    #'hasVerticalScrollBar:' true
150
9f88bc99e0af subCanvas
ca
parents: 147
diff changeset
  1273
                )
9f88bc99e0af subCanvas
ca
parents: 147
diff changeset
  1274
                 #(#LabelSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1275
                    #'name:' 'SelectionInTreeLabel'
334
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1276
                    #'layout:' #(#AlignmentOrigin 93 0 108 0 0 1)
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1277
                    #'label:' 'SelectionInTree'
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1278
                    #'style:' #(#FontDescription #helvetica #medium #roman #'10')
189
bb569079ae6b add ArbitraryComponentSpec
ca
parents: 182
diff changeset
  1279
                    #'adjust:' #left
bb569079ae6b add ArbitraryComponentSpec
ca
parents: 182
diff changeset
  1280
                    #'resizeForLabel:' true
bb569079ae6b add ArbitraryComponentSpec
ca
parents: 182
diff changeset
  1281
                    #'canUIDrag:' false
bb569079ae6b add ArbitraryComponentSpec
ca
parents: 182
diff changeset
  1282
                )
308
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1283
                 #(#FileSelectionTreeSpec
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1284
                    #'name:' 'FileSelectionTree'
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1285
                    #'layout:' #(#LayoutFrame 20 0 130 0 225 0 224 0)
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1286
                    #'hasHorizontalScrollBar:' true
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1287
                    #'hasVerticalScrollBar:' true
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1288
                )
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1289
                 #(#LabelSpec
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1290
                    #'name:' 'FileSelectionTreeLabel'
334
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1291
                    #'layout:' #(#AlignmentOrigin 93 0 223 0 0 1)
308
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1292
                    #'label:' 'FileSelectionTree'
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1293
                    #'style:' #(#FontDescription #helvetica #medium #roman #'10')
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1294
                    #'adjust:' #left
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1295
                    #'resizeForLabel:' true
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1296
                    #'canUIDrag:' false
7d8722ba7569 add FileSelectionTreeSpec
ca
parents: 302
diff changeset
  1297
                )
334
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1298
                 #(#DataSetSpec
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1299
                    #'name:' 'DataSetSpec'
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1300
                    #'layout:' #(#LayoutFrame 247 0 130 0 452 0 224 0)
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1301
                    #'hasHorizontalScrollBar:' true
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1302
                    #'hasVerticalScrollBar:' true
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1303
                )
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1304
                 #(#LabelSpec
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1305
                    #'name:' 'DataSetSpecLabel'
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1306
                    #'layout:' #(#AlignmentOrigin 320 0 223 0 0 1)
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1307
                    #'label:' 'DataSetView'
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1308
                    #'style:' #(#FontDescription #helvetica #medium #roman #'10')
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1309
                    #'adjust:' #left
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1310
                    #'resizeForLabel:' true
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1311
                    #'canUIDrag:' false
3f632e9711e8 add DataSetSpec
ca
parents: 329
diff changeset
  1312
                )
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1313
              )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1314
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1315
      )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1316
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1317
182
ca
parents: 167
diff changeset
  1318
!UISelectionPanel methodsFor:'actions'!
ca
parents: 167
diff changeset
  1319
ca
parents: 167
diff changeset
  1320
defineClassAndSelector
ca
parents: 167
diff changeset
  1321
    |bd cls sel lbl|
ca
parents: 167
diff changeset
  1322
ca
parents: 167
diff changeset
  1323
    bd := IdentityDictionary new.
ca
parents: 167
diff changeset
  1324
    bd at:#className put:( userClass asValue).
ca
parents: 167
diff changeset
  1325
    bd at:#specsKey  put:( (userSpecs  ? '') asValue).
ca
parents: 167
diff changeset
  1326
    bd at:#labelsKey put:( (userLabels ? '') asValue).
ca
parents: 167
diff changeset
  1327
    bd at:#updateDefaultResources put:(false asValue).
ca
parents: 167
diff changeset
  1328
ca
parents: 167
diff changeset
  1329
    (self openDialogInterface:#nameAndSelectorSpec withBindings:bd) ifTrue:[
ca
parents: 167
diff changeset
  1330
        (      (cls := (bd at:#className) value) notNil
ca
parents: 167
diff changeset
  1331
          and:[(sel := (bd at:#specsKey)  value) notNil
ca
parents: 167
diff changeset
  1332
          and:[(lbl := (bd at:#labelsKey) value) notNil]]
ca
parents: 167
diff changeset
  1333
        ) ifTrue:[
ca
parents: 167
diff changeset
  1334
            userClass  := cls.
ca
parents: 167
diff changeset
  1335
            userSpecs  := sel.
ca
parents: 167
diff changeset
  1336
            userLabels := lbl.
ca
parents: 167
diff changeset
  1337
ca
parents: 167
diff changeset
  1338
            (bd at:#updateDefaultResources) value ifTrue:[
ca
parents: 167
diff changeset
  1339
                UserClass  := userClass.
ca
parents: 167
diff changeset
  1340
                UserSpecs  := userSpecs.
ca
parents: 167
diff changeset
  1341
                UserLabels := userLabels.
ca
parents: 167
diff changeset
  1342
            ]
ca
parents: 167
diff changeset
  1343
        ]
ca
parents: 167
diff changeset
  1344
    ].
ca
parents: 167
diff changeset
  1345
!
ca
parents: 167
diff changeset
  1346
ca
parents: 167
diff changeset
  1347
paste:something
ca
parents: 167
diff changeset
  1348
    "paste something at a point
ca
parents: 167
diff changeset
  1349
    "
ca
parents: 167
diff changeset
  1350
    |coll specs point device gallery ext spec|
ca
parents: 167
diff changeset
  1351
ca
parents: 167
diff changeset
  1352
    clipBoardSpec isNil ifTrue:[
ca
parents: 167
diff changeset
  1353
        clipBoardSpec := SpecCollection new.
ca
parents: 167
diff changeset
  1354
        clipBoardSpec collection:(OrderedCollection new).
ca
parents: 167
diff changeset
  1355
    ].
ca
parents: 167
diff changeset
  1356
    coll    := clipBoardSpec collection.
ca
parents: 167
diff changeset
  1357
    gallery := self builder componentAt:#gallery.
ca
parents: 167
diff changeset
  1358
    device  := gallery device.
ca
parents: 167
diff changeset
  1359
ca
parents: 167
diff changeset
  1360
    point   := device translatePoint:(device pointerPosition)
ca
parents: 167
diff changeset
  1361
                                from:(device rootView id)
ca
parents: 167
diff changeset
  1362
                                  to:(gallery canvas id).
ca
parents: 167
diff changeset
  1363
ca
parents: 167
diff changeset
  1364
    point y < 1 ifTrue:[point y:1].
ca
parents: 167
diff changeset
  1365
    ext := gallery extent - (10@10).
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1366
182
ca
parents: 167
diff changeset
  1367
    (specs := something) isCollection ifFalse:[
ca
parents: 167
diff changeset
  1368
        specs := Array with:something
ca
parents: 167
diff changeset
  1369
    ].
ca
parents: 167
diff changeset
  1370
ca
parents: 167
diff changeset
  1371
    specs do:[:aSpec|
ca
parents: 167
diff changeset
  1372
        point x > ext x ifTrue:[point x:1].
ca
parents: 167
diff changeset
  1373
        point y > ext y ifTrue:[point y:1].
ca
parents: 167
diff changeset
  1374
ca
parents: 167
diff changeset
  1375
        spec := aSpec copy.
ca
parents: 167
diff changeset
  1376
        spec layout:(LayoutOrigin fromPoint:point).
ca
parents: 167
diff changeset
  1377
        coll add:spec.
ca
parents: 167
diff changeset
  1378
        point := point + (20@20).
ca
parents: 167
diff changeset
  1379
    ].
ca
parents: 167
diff changeset
  1380
    gallery update.
ca
parents: 167
diff changeset
  1381
!
ca
parents: 167
diff changeset
  1382
ca
parents: 167
diff changeset
  1383
raiseMenu
ca
parents: 167
diff changeset
  1384
    "can open menu
ca
parents: 167
diff changeset
  1385
    "
251
ea4577f6cc41 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
  1386
    |spec menu value paste|
182
ca
parents: 167
diff changeset
  1387
ca
parents: 167
diff changeset
  1388
    spec := self clientSpec value.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1389
182
ca
parents: 167
diff changeset
  1390
    spec notNil ifTrue:[
ca
parents: 167
diff changeset
  1391
        menu := self class menuSelected decodeAsLiteralArray.
ca
parents: 167
diff changeset
  1392
        self isClipBoard ifFalse:[
ca
parents: 167
diff changeset
  1393
            (menu someMenuItemWithValue:#cut) disable.
ca
parents: 167
diff changeset
  1394
        ].
ca
parents: 167
diff changeset
  1395
ca
parents: 167
diff changeset
  1396
        (value := menu startUp) == #cut ifTrue:[
ca
parents: 167
diff changeset
  1397
            clipBoardSpec collection remove:spec ifAbsent:nil.
ca
parents: 167
diff changeset
  1398
            (self builder componentAt:#gallery) update.
ca
parents: 167
diff changeset
  1399
        ] ifFalse:[
ca
parents: 167
diff changeset
  1400
            value == #copy ifTrue:[
ca
parents: 167
diff changeset
  1401
                self window setSelection:spec
ca
parents: 167
diff changeset
  1402
            ]
ca
parents: 167
diff changeset
  1403
        ].
ca
parents: 167
diff changeset
  1404
      ^ self
ca
parents: 167
diff changeset
  1405
    ].
ca
parents: 167
diff changeset
  1406
ca
parents: 167
diff changeset
  1407
    self isUserBoard ifTrue:[
ca
parents: 167
diff changeset
  1408
        ^ self defineClassAndSelector
ca
parents: 167
diff changeset
  1409
    ].
ca
parents: 167
diff changeset
  1410
ca
parents: 167
diff changeset
  1411
    paste := self window getSelection.
ca
parents: 167
diff changeset
  1412
ca
parents: 167
diff changeset
  1413
    (self canPaste:paste) ifTrue:[
ca
parents: 167
diff changeset
  1414
        menu := self class menuUnselected decodeAsLiteralArray.
ca
parents: 167
diff changeset
  1415
ca
parents: 167
diff changeset
  1416
        (menu startUp) == #paste ifTrue:[
ca
parents: 167
diff changeset
  1417
            self paste:paste
ca
parents: 167
diff changeset
  1418
        ]
ca
parents: 167
diff changeset
  1419
    ].
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1420
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1421
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1422
!UISelectionPanel methodsFor:'aspects'!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1423
182
ca
parents: 167
diff changeset
  1424
clientSpec
ca
parents: 167
diff changeset
  1425
    "automatically generated by UIPainter ..."
ca
parents: 167
diff changeset
  1426
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1427
    |holder|
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1428
182
ca
parents: 167
diff changeset
  1429
    (holder := builder bindingAt:#clientSpec) isNil ifTrue:[
ca
parents: 167
diff changeset
  1430
        builder aspectAt:#clientSpec put:(holder :=  ValueHolder new).
ca
parents: 167
diff changeset
  1431
        holder addDependent:self.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1432
    ].
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1433
    ^ holder
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1434
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1435
182
ca
parents: 167
diff changeset
  1436
clipBoardSpec
ca
parents: 167
diff changeset
  1437
    ^ clipBoardSpec
ca
parents: 167
diff changeset
  1438
!
ca
parents: 167
diff changeset
  1439
ca
parents: 167
diff changeset
  1440
galleryList
ca
parents: 167
diff changeset
  1441
    "automatically generated by UIPainter ..."
ca
parents: 167
diff changeset
  1442
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1443
    |holder|
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1444
182
ca
parents: 167
diff changeset
  1445
    (holder := builder bindingAt:#galleryList) isNil ifTrue:[
ca
parents: 167
diff changeset
  1446
        builder aspectAt:#galleryList put:(holder :=  ValueHolder new).
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1447
    ].
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1448
    ^ holder
182
ca
parents: 167
diff changeset
  1449
!
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1450
182
ca
parents: 167
diff changeset
  1451
galleryModel
ca
parents: 167
diff changeset
  1452
    "automatically generated by UIPainter ..."
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1453
182
ca
parents: 167
diff changeset
  1454
    |holder|
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1455
182
ca
parents: 167
diff changeset
  1456
    (holder := builder bindingAt:#galleryModel) isNil ifTrue:[
ca
parents: 167
diff changeset
  1457
        builder aspectAt:#galleryModel put:(holder :=  ValueHolder new).
ca
parents: 167
diff changeset
  1458
    ].
ca
parents: 167
diff changeset
  1459
    ^ holder
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1460
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1461
182
ca
parents: 167
diff changeset
  1462
majorChannel
ca
parents: 167
diff changeset
  1463
    "automatically generated by UIPainter ..."
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1464
182
ca
parents: 167
diff changeset
  1465
    |holder|
ca
parents: 167
diff changeset
  1466
ca
parents: 167
diff changeset
  1467
    (holder := builder bindingAt:#majorChannel) isNil ifTrue:[
ca
parents: 167
diff changeset
  1468
        holder := AspectAdaptor new subject:self; forAspect:#majorSelection.
ca
parents: 167
diff changeset
  1469
        builder aspectAt:#majorChannel put:holder.
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1470
    ].
182
ca
parents: 167
diff changeset
  1471
    ^ holder
ca
parents: 167
diff changeset
  1472
!
ca
parents: 167
diff changeset
  1473
ca
parents: 167
diff changeset
  1474
majorList
ca
parents: 167
diff changeset
  1475
    "automatically generated by UIPainter ...
ca
parents: 167
diff changeset
  1476
    "
ca
parents: 167
diff changeset
  1477
  ^ self class specifications collect:[:el| el first]
ca
parents: 167
diff changeset
  1478
!
ca
parents: 167
diff changeset
  1479
ca
parents: 167
diff changeset
  1480
minorKeys
ca
parents: 167
diff changeset
  1481
    "automatically generated by UIPainter ..."
ca
parents: 167
diff changeset
  1482
ca
parents: 167
diff changeset
  1483
    |holder|
ca
parents: 167
diff changeset
  1484
ca
parents: 167
diff changeset
  1485
    (holder := builder bindingAt:#minorKeys) isNil ifTrue:[
ca
parents: 167
diff changeset
  1486
        builder aspectAt:#minorKeys put:(holder :=  ValueHolder new).
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1487
    ].
182
ca
parents: 167
diff changeset
  1488
    ^ holder
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1489
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1490
182
ca
parents: 167
diff changeset
  1491
!UISelectionPanel methodsFor:'change & update'!
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1492
182
ca
parents: 167
diff changeset
  1493
update:something with:aParameter from:changedObject
ca
parents: 167
diff changeset
  1494
    "one of my models changed its value
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1495
    "
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1496
    |channel label topView|
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1497
182
ca
parents: 167
diff changeset
  1498
    (channel := self clientSpec) == changedObject ifTrue:[
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1499
        topView := builder window topView.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1500
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1501
        (label := channel value) notNil ifTrue:[
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1502
            topView label:label name, ' '.
182
ca
parents: 167
diff changeset
  1503
        ] ifFalse:[
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1504
            topView label:'Component Gallery '
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1505
        ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1506
    ].
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1507
182
ca
parents: 167
diff changeset
  1508
    super update:something with:aParameter from:changedObject.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1509
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1510
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1511
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1512
182
ca
parents: 167
diff changeset
  1513
!UISelectionPanel methodsFor:'drag & drop'!
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1514
182
ca
parents: 167
diff changeset
  1515
canDrop:something in:aComponent
ca
parents: 167
diff changeset
  1516
    ^ self canPaste:(something collect:[:el| el theObject ]).
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1517
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1518
182
ca
parents: 167
diff changeset
  1519
drop:something in:aComponent at:aPoint
ca
parents: 167
diff changeset
  1520
ca
parents: 167
diff changeset
  1521
    |spc top|
ca
parents: 167
diff changeset
  1522
ca
parents: 167
diff changeset
  1523
    top := DragAndDropManager dragOriginatorQuerySignal raise topView.
ca
parents: 167
diff changeset
  1524
ca
parents: 167
diff changeset
  1525
    top == aComponent topView ifTrue:[
ca
parents: 167
diff changeset
  1526
        spc := self clientSpec value.
ca
parents: 167
diff changeset
  1527
        spc isNil ifTrue:[^ self].
ca
parents: 167
diff changeset
  1528
ca
parents: 167
diff changeset
  1529
        (clipBoardSpec collection remove:spc ifAbsent:nil) isNil ifTrue:[
ca
parents: 167
diff changeset
  1530
            ^ self
ca
parents: 167
diff changeset
  1531
        ].
ca
parents: 167
diff changeset
  1532
    ] ifFalse:[
ca
parents: 167
diff changeset
  1533
        spc := something collect:[:el| el theObject].
ca
parents: 167
diff changeset
  1534
    ].
ca
parents: 167
diff changeset
  1535
    self paste:spc.
ca
parents: 167
diff changeset
  1536
! !
ca
parents: 167
diff changeset
  1537
ca
parents: 167
diff changeset
  1538
!UISelectionPanel methodsFor:'queries'!
ca
parents: 167
diff changeset
  1539
ca
parents: 167
diff changeset
  1540
canPaste:something
ca
parents: 167
diff changeset
  1541
    "returns true if something could be paste
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1542
    "
182
ca
parents: 167
diff changeset
  1543
    (self isClipBoard and:[something notNil]) ifTrue:[
ca
parents: 167
diff changeset
  1544
        something isCollection ifTrue:[
ca
parents: 167
diff changeset
  1545
            something notEmpty ifTrue:[
ca
parents: 167
diff changeset
  1546
                ^ (something at:1) isKindOf:UISpecification
ca
parents: 167
diff changeset
  1547
            ]
ca
parents: 167
diff changeset
  1548
        ] ifFalse:[
ca
parents: 167
diff changeset
  1549
            ^ something isKindOf:UISpecification
ca
parents: 167
diff changeset
  1550
        ]
ca
parents: 167
diff changeset
  1551
    ].
ca
parents: 167
diff changeset
  1552
    ^ false
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1553
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1554
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1555
182
ca
parents: 167
diff changeset
  1556
isClipBoard
ca
parents: 167
diff changeset
  1557
    "returns true if current view is clip board
ca
parents: 167
diff changeset
  1558
    "
291
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1559
    majorSelection ~~ 0 ifTrue:[
182
ca
parents: 167
diff changeset
  1560
        ^ (self majorList at:majorSelection) startsWith:'Clip'
ca
parents: 167
diff changeset
  1561
    ].
ca
parents: 167
diff changeset
  1562
  ^ false
ca
parents: 167
diff changeset
  1563
!
ca
parents: 167
diff changeset
  1564
ca
parents: 167
diff changeset
  1565
isUserBoard
ca
parents: 167
diff changeset
  1566
    "returns true if current view is clip board
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1567
    "
291
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1568
    majorSelection ~~ 0 ifTrue:[
182
ca
parents: 167
diff changeset
  1569
        ^ (self majorList at:majorSelection) startsWith:'User'
ca
parents: 167
diff changeset
  1570
    ].
ca
parents: 167
diff changeset
  1571
  ^ false
ca
parents: 167
diff changeset
  1572
! !
ca
parents: 167
diff changeset
  1573
ca
parents: 167
diff changeset
  1574
!UISelectionPanel methodsFor:'selection'!
ca
parents: 167
diff changeset
  1575
ca
parents: 167
diff changeset
  1576
majorSelection
291
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1577
    ^ majorSelection ? 0
182
ca
parents: 167
diff changeset
  1578
!
ca
parents: 167
diff changeset
  1579
ca
parents: 167
diff changeset
  1580
majorSelection:aSelection
ca
parents: 167
diff changeset
  1581
    |spec channel|
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1582
291
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1583
    (majorSelection == aSelection or:[aSelection == 0]) ifTrue:[
182
ca
parents: 167
diff changeset
  1584
        ^ self
167
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1585
    ].
182
ca
parents: 167
diff changeset
  1586
    (self builder componentAt:#gallery) builder:nil.
ca
parents: 167
diff changeset
  1587
    majorSelection := aSelection.
ca
parents: 167
diff changeset
  1588
    spec := ((self class specifications) at:aSelection) last.
ca
parents: 167
diff changeset
  1589
ca
parents: 167
diff changeset
  1590
    spec isSymbol ifFalse:[
ca
parents: 167
diff changeset
  1591
        self galleryList value:(spec collect:[:a| a first]).
ca
parents: 167
diff changeset
  1592
        self minorKeys   value:(spec collect:[:a| a last]).
ca
parents: 167
diff changeset
  1593
    ] ifTrue:[
ca
parents: 167
diff changeset
  1594
        self perform:spec
ca
parents: 167
diff changeset
  1595
    ].
ca
parents: 167
diff changeset
  1596
    channel := self galleryModel.
ca
parents: 167
diff changeset
  1597
ca
parents: 167
diff changeset
  1598
    channel value notNil ifTrue:[
ca
parents: 167
diff changeset
  1599
        channel setValue:nil
ca
parents: 167
diff changeset
  1600
    ].
ca
parents: 167
diff changeset
  1601
    channel value:1.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1602
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1603
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1604
182
ca
parents: 167
diff changeset
  1605
!UISelectionPanel methodsFor:'startup / release'!
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1606
182
ca
parents: 167
diff changeset
  1607
allButOpenInterface:aSpec
ca
parents: 167
diff changeset
  1608
    "setup default values
ca
parents: 167
diff changeset
  1609
    "
ca
parents: 167
diff changeset
  1610
    super allButOpenInterface:aSpec.
ca
parents: 167
diff changeset
  1611
    userClass  := UserClass.
ca
parents: 167
diff changeset
  1612
    userSpecs  := UserSpecs.
ca
parents: 167
diff changeset
  1613
    userLabels := UserLabels.
ca
parents: 167
diff changeset
  1614
!
ca
parents: 167
diff changeset
  1615
ca
parents: 167
diff changeset
  1616
closeRequest
ca
parents: 167
diff changeset
  1617
    |sav|
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1618
182
ca
parents: 167
diff changeset
  1619
    (sav := masterApplication) notNil ifTrue:[
ca
parents: 167
diff changeset
  1620
        masterApplication := nil.
244
b70597d2a39b do not send #closeRequest to nil.
Claus Gittinger <cg@exept.de>
parents: 216
diff changeset
  1621
        sav closeRequestFor:(self window).
182
ca
parents: 167
diff changeset
  1622
        masterApplication := sav.
ca
parents: 167
diff changeset
  1623
    ] ifFalse:[
ca
parents: 167
diff changeset
  1624
        super closeRequest.
ca
parents: 167
diff changeset
  1625
    ]
244
b70597d2a39b do not send #closeRequest to nil.
Claus Gittinger <cg@exept.de>
parents: 216
diff changeset
  1626
b70597d2a39b do not send #closeRequest to nil.
Claus Gittinger <cg@exept.de>
parents: 216
diff changeset
  1627
    "Modified: 28.7.1997 / 09:44:40 / cg"
182
ca
parents: 167
diff changeset
  1628
!
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1629
291
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1630
initialize
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1631
    super initialize.
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1632
    majorSelection := 0.
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1633
!
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1634
182
ca
parents: 167
diff changeset
  1635
openWindow
ca
parents: 167
diff changeset
  1636
    "setup default values
ca
parents: 167
diff changeset
  1637
    "
ca
parents: 167
diff changeset
  1638
    super openWindow.
ca
parents: 167
diff changeset
  1639
    "/ self window waitForExpose.
ca
parents: 167
diff changeset
  1640
    Delay waitForSeconds:1.
ca
parents: 167
diff changeset
  1641
    self majorChannel value:1.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1642
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1643
182
ca
parents: 167
diff changeset
  1644
!UISelectionPanel methodsFor:'user defined'!
ca
parents: 167
diff changeset
  1645
ca
parents: 167
diff changeset
  1646
userDefined
ca
parents: 167
diff changeset
  1647
    |cls lbl sel builder|
329
ca
parents: 324
diff changeset
  1648
ca
parents: 324
diff changeset
  1649
    cls := self resolveName:userClass.
ca
parents: 324
diff changeset
  1650
ca
parents: 324
diff changeset
  1651
    (cls notNil and:[(cls respondsTo:userLabels)]) ifTrue:[
ca
parents: 324
diff changeset
  1652
        lbl := cls perform:userLabels.
ca
parents: 324
diff changeset
  1653
        sel := Array new:(lbl size) withAll:#userDefinedSpec.
ca
parents: 324
diff changeset
  1654
        self galleryList value:lbl.
ca
parents: 324
diff changeset
  1655
        self minorKeys   value:sel.
ca
parents: 324
diff changeset
  1656
    ] ifFalse:[
ca
parents: 324
diff changeset
  1657
        builder := UIBuilder new.
ca
parents: 324
diff changeset
  1658
        builder application:self.
ca
parents: 324
diff changeset
  1659
        (self builder componentAt:#gallery) builder:builder. 
ca
parents: 324
diff changeset
  1660
        self galleryList value:#( '???' ).
ca
parents: 324
diff changeset
  1661
        self minorKeys   value:#( standardUserPanel ).
ca
parents: 324
diff changeset
  1662
    ]
182
ca
parents: 167
diff changeset
  1663
!
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
  1664
182
ca
parents: 167
diff changeset
  1665
userDefinedHelpText
ca
parents: 167
diff changeset
  1666
ca
parents: 167
diff changeset
  1667
^ '
ca
parents: 167
diff changeset
  1668
no user defined specifications are configured yet. To assign
ca
parents: 167
diff changeset
  1669
user defined specifications to the gallery press the middle
ca
parents: 167
diff changeset
  1670
button of your mouse to open a dialog.
ca
parents: 167
diff changeset
  1671
'
ca
parents: 167
diff changeset
  1672
!
ca
parents: 167
diff changeset
  1673
ca
parents: 167
diff changeset
  1674
userDefinedSpec
ca
parents: 167
diff changeset
  1675
    |cls spc idx|
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1676
329
ca
parents: 324
diff changeset
  1677
    cls := self resolveName:userClass.
182
ca
parents: 167
diff changeset
  1678
329
ca
parents: 324
diff changeset
  1679
    (cls notNil and:[(cls respondsTo:userSpecs)]) ifTrue:[
ca
parents: 324
diff changeset
  1680
        spc := cls perform:userSpecs.
ca
parents: 324
diff changeset
  1681
        idx := self galleryModel value.
ca
parents: 324
diff changeset
  1682
ca
parents: 324
diff changeset
  1683
        idx <= spc size ifTrue:[
ca
parents: 324
diff changeset
  1684
            spc := spc at:idx.
ca
parents: 324
diff changeset
  1685
            (cls respondsTo:spc) ifTrue:[
ca
parents: 324
diff changeset
  1686
                ^ cls perform:spc
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
  1687
            ]
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1688
        ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1689
    ].
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
  1690
  ^ nil
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1691
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1692
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1693
!UISelectionPanel::UserDefinedGallery class methodsFor:'class initialization'!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1694
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1695
initialize
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1696
    "initialize my default user-def from the superclasses specs.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1697
     I.e. provide a clocks entry"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1698
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1699
    LabelList := self defaultListOfLabels asOrderedCollection.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1700
    SelectorList := self defaultListOfSelectors asOrderedCollection.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1701
    HolderList := OrderedCollection new grow:(SelectorList size).
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1702
    NextUniqueNumber := 1.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1703
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1704
    UISelectionPanel 
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1705
        userClass:self
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1706
        specSelector:#listOfSelectors
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1707
        labelSelector:#listOfLabels.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1708
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1709
    "
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1710
     self initialize
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1711
    "
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1712
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1713
    "Modified: / 5.12.1997 / 14:25:22 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1714
    "Created: / 8.12.1997 / 18:49:42 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1715
! !
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1716
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1717
!UISelectionPanel::UserDefinedGallery class methodsFor:'defaults'!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1718
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1719
defaultListOfLabels
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1720
    ^ #( 'clocks' )
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1721
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1722
    "Created: / 8.12.1997 / 18:50:06 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1723
!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1724
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1725
defaultListOfSelectors
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1726
    ^ #( clocksSpec )
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1727
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1728
    "Modified: / 5.12.1997 / 14:03:55 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1729
    "Created: / 8.12.1997 / 18:50:21 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1730
! !
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1731
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1732
!UISelectionPanel::UserDefinedGallery class methodsFor:'documentation'!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1733
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1734
copyright
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1735
"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1736
 COPYRIGHT (c) 1997 by eXept Software AG
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1737
              All Rights Reserved
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1738
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1739
 This software is furnished under a license and may be used
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1740
 only in accordance with the terms of that license and with the
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1741
 inclusion of the above copyright notice.   This software may not
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1742
 be provided or otherwise made available to, or used by, any
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1743
 other person.  No title to or ownership of the software is
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1744
 hereby transferred.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1745
"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1746
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1747
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1748
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1749
!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1750
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1751
documentation
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1752
"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1753
    The standard user-defined selectionPanel entry.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1754
    Here, a single item named 'clocks' is provided, containing
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1755
    an analog and digital clock.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1756
    This is a dump example; the actual user-defined panel may be
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1757
    extended dynamically.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1758
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1759
    Frameworks which provide additional widgets may dynamically
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1760
    add more entries, by sending #addUserSpecHolder:label:
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1761
    or #removeUserSpecWithLabel:.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1762
    Typically, this is done when a framework is loaded, by one of the
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1763
    frameworks class-initialization methods.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1764
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1765
    [start with:]
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1766
        UISelectionPanel open
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1767
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1768
    [author:]
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1769
        Claus Gittinger
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1770
        Claus Atzkern
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1771
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1772
    [see also:]
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1773
        TabView
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1774
        NoteBookView
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1775
        UIGalleryView
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1776
        UIPainter
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1777
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1778
"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1779
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1780
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1781
! !
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1782
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1783
!UISelectionPanel::UserDefinedGallery class methodsFor:'installation / deinstallation'!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1784
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1785
addUserSpecHolder:aValueHolder label:aLabelString
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1786
    "add a new entry with the given label.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1787
     The specHolder is typically either a spec, a valueHolder or a block.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1788
     In any case, it should return a valid spec from the #value message.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1789
     This spec is installed under that label."
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1790
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1791
    |syntheticSelector idx|
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1792
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1793
    syntheticSelector := ('userSpec' , NextUniqueNumber printString) asSymbol.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1794
    NextUniqueNumber := NextUniqueNumber + 1.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1795
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1796
    idx := LabelList indexOf:aLabelString.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1797
    idx ~~ 0 ifTrue:[
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1798
        SelectorList at:idx put:syntheticSelector.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1799
        HolderList at:idx put:aValueHolder
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1800
    ] ifFalse:[
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1801
        LabelList addLast:aLabelString.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1802
        SelectorList addLast:syntheticSelector.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1803
        HolderList addLast:aValueHolder
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1804
    ]
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1805
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1806
    "Modified: / 5.12.1997 / 14:13:17 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1807
    "Created: / 8.12.1997 / 18:50:55 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1808
!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1809
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1810
removeUserSpecWithLabel:aLabelString
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1811
    "remove the spec which was previously installed under the given label"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1812
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1813
    |idx|
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1814
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1815
    idx := LabelList indexOf:aLabelString.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1816
    idx ~~ 0 ifTrue:[
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1817
        LabelList removeIndex:idx.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1818
        SelectorList removeIndex:idx.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1819
        HolderList removeIndex:idx
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1820
    ].
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1821
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1822
    "Modified: / 5.12.1997 / 14:13:45 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1823
    "Created: / 8.12.1997 / 18:51:03 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1824
! !
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1825
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1826
!UISelectionPanel::UserDefinedGallery class methodsFor:'user defined gallery'!
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1827
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1828
clocksSpec
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1829
    "this window spec was automatically generated by the ST/X UIPainter"
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1830
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1831
    "do not manually edit this - the painter/builder may not be able to
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1832
     handle the specification if its corrupted."
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1833
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1834
    "
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1835
     UIPainter new openOnClass:UISelectionPanel::ExampleUserDefinedGallery andSelector:#clocksSpec
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1836
     UISelectionPanel::ExampleUserDefinedGallery new openInterface:#clocksSpec
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1837
    "
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1838
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1839
    <resource: #canvas>
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1840
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1841
    ^
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1842
     
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1843
       #(#FullSpec
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1844
          #'window:' 
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1845
           #(#WindowSpec
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1846
              #'name:' 'Interface Builder'
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1847
              #'layout:' #(#LayoutFrame 22 0 236 0 401 0 506 0)
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1848
              #'label:' 'Interface Builder'
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1849
              #'min:' #(#Point 10 10)
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1850
              #'max:' #(#Point 1280 1024)
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1851
              #'bounds:' #(#Rectangle 22 236 402 507)
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1852
          )
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1853
          #'component:' 
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1854
           #(#SpecCollection
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1855
              #'collection:' 
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1856
               #(
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1857
                 #(#ArbitraryComponentSpec
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1858
                    #'name:' 'ClockView'
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1859
                    #'layout:' #(#LayoutFrame 11 0 11 0 125 0 123 0)
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1860
                    #'component:' #ClockView
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1861
                    #'hasBorder:' false
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1862
                )
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1863
                 #(#ArbitraryComponentSpec
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1864
                    #'name:' 'DigitalClockView'
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1865
                    #'layout:' #(#LayoutOrigin 136 0 11 0)
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1866
                    #'component:' #DigitalClockView
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1867
                    #'hasBorder:' false
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1868
                )
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1869
              )
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1870
          )
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1871
      )
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1872
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1873
    "Modified: / 4.10.1997 / 15:12:27 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1874
    "Created: / 8.12.1997 / 18:40:22 / cg"
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1875
!
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1876
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1877
listOfLabels
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1878
    ^ LabelList
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1879
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1880
    "Created: / 5.12.1997 / 13:43:03 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1881
    "Modified: / 8.12.1997 / 18:51:20 / cg"
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1882
!
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1883
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1884
listOfSelectors
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1885
    ^ SelectorList
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1886
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1887
    "Created: / 5.12.1997 / 13:43:13 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1888
    "Modified: / 8.12.1997 / 18:51:28 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1889
! !
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1890
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1891
!UISelectionPanel::UserDefinedGallery class methodsFor:'user spec access'!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1892
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1893
doesNotUnderstand:aMessage
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1894
    "catch queries for a userSpec"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1895
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1896
    |sel idx|
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1897
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1898
    ((sel := aMessage selector) startsWith:'userSpec') ifTrue:[
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1899
        idx := SelectorList indexOf:sel.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1900
        idx ~~ 0 ifTrue:[
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1901
            ^ (HolderList at:idx) value
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1902
        ]
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1903
    ].
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1904
    ^ super doesNotUnderstand:aMessage
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1905
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1906
    "Modified: / 5.12.1997 / 14:23:24 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1907
    "Created: / 8.12.1997 / 18:51:50 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1908
!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1909
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1910
respondsTo:aSelector
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1911
    "catch queries for a userSpec"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1912
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1913
    |idx|
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1914
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1915
    (aSelector startsWith:'userSpec') ifTrue:[
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1916
        idx := Number fromString:(aSelector copyFrom:9).
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1917
        idx := SelectorList indexOf:aSelector.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1918
        idx ~~ 0 ifTrue:[^ true].
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1919
    ].
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1920
    ^ super respondsTo:aSelector
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1921
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1922
    "Modified: / 5.12.1997 / 14:19:55 / cg"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1923
    "Created: / 8.12.1997 / 18:51:57 / cg"
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1924
! !
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1925
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1926
!UISelectionPanel class methodsFor:'documentation'!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1927
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1928
version
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1929
    ^ '$Header$'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1930
! !
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1931
UISelectionPanel initialize!