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