UISelectionPanel.st
author tz
Tue, 24 Feb 1998 20:56:34 +0100
changeset 673 6039e1d88048
parent 671 3e3d7f168024
child 677 aa0b1c1ebfe6
permissions -rw-r--r--
some unused methods found
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
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
    95
        #( 'Clipboard'  #(
182
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
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
   270
              #'name:' 'Widget Gallery'
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   271
              #'layout:' #(#LayoutFrame 78 0 70 0 598 0 352 0)
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
   272
              #'label:' 'Widget 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'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   375
              #layout: #(#LayoutFrame 93 0 141 0 593 0 380 0)
663
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)
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   379
              #bounds: #(#Rectangle 93 141 594 381)
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'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   394
                    #style: #(#FontDescription #helvetica #medium #roman 10)
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'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   403
                    #style: #(#FontDescription #helvetica #medium #roman 10)
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'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   467
                    #style: #(#FontDescription #helvetica #medium #roman 10)
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'
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
   625
              #layout: #(#LayoutFrame 197 0 172 0 675 0 371 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)
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
   629
              #bounds: #(#Rectangle 197 172 676 372)
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'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   641
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   642
                 #(#ActionButtonSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   643
                    #name: 'Button - OK'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   644
                    #layout: #(#LayoutFrame 15 0 47 0 130 0 69 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   645
                    #label: 'OK'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   646
                    #model: #accept
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   647
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   648
                 #(#ActionButtonSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   649
                    #name: 'Button - Cancel'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   650
                    #layout: #(#LayoutFrame 15 0 79 0 130 0 101 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   651
                    #label: 'Cancel'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   652
                    #model: #cancel
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   653
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   654
                 #(#ActionButtonSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   655
                    #name: 'Button - Help'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   656
                    #layout: #(#LayoutFrame 15 0 111 0 130 0 133 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   657
                    #label: 'Help'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   658
                    #model: #help
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   659
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   660
                 #(#ActionButtonSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   661
                    #name: 'Button - Close'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   662
                    #layout: #(#LayoutFrame 15 0 143 0 130 0 165 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   663
                    #label: 'Close'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   664
                    #model: #closeRequest
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   665
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   666
                 #(#RadioButtonSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   667
                    #name: 'RadioButton'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   668
                    #layout: #(#LayoutFrame 151 0.0 15 0 266 0 37 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   669
                    #label: 'RadioButton'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   670
                    #isTriggerOnDown: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   671
                    #showLamp: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   672
                    #lampColor: #(#Color 100.0 100.0 0.0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   673
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   674
                 #(#ButtonSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   675
                    #name: 'ModelButton'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   676
                    #layout: #(#LayoutFrame 151 0 47 0 266 0 69 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   677
                    #label: 'ModelButton'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   678
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   679
                 #(#SliderSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   680
                    #name: 'Slider'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   681
                    #layout: #(#LayoutFrame 151 0 79 0 266 0 101 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   682
                    #orientation: #horizontal
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   683
                    #start: 0
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   684
                    #stop: 100
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   685
                    #step: 1
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   686
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   687
                 #(#LabelSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   688
                    #name: 'SliderLabel'
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
   689
                    #layout: #(#AlignmentOrigin 196 0 83 0 0 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   690
                    #label: 'Slider'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   691
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   692
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   693
                    #canUIDrag: false
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   694
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   695
                 #(#LabelSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   696
                    #name: 'ThumbWheelLabel'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   697
                    #layout: #(#AlignmentOrigin 151 0 121 0 0 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   698
                    #label: 'ThumbWheel'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   699
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
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
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   702
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   703
                 #(#ThumbWheelSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   704
                    #name: 'ThumbWheel'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   705
                    #layout: #(#LayoutFrame 151 0 143 0 266 0 165 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   706
                    #orientation: #horizontal
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   707
                    #start: 0
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   708
                    #stop: 360
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   709
                    #step: 1
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   710
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   711
                 #(#ArrowButtonSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   712
                    #name: 'ArrowButton - Up'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   713
                    #layout: #(#LayoutFrame 287 0 15 0 309 0 37 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   714
                    #isTriggerOnDown: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   715
                    #direction: #up
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   716
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   717
                 #(#ArrowButtonSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   718
                    #name: 'ArrowButton - Down'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   719
                    #layout: #(#LayoutFrame 287 0 47 0 309 0 69 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   720
                    #isTriggerOnDown: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   721
                    #direction: #down
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   722
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   723
                 #(#ArrowButtonSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   724
                    #name: 'ArrowButton - Left'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   725
                    #layout: #(#LayoutFrame 287 0 79 0 309 0 101 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   726
                    #isTriggerOnDown: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   727
                    #direction: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   728
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   729
                 #(#ArrowButtonSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   730
                    #name: 'ArrowButton - Right'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   731
                    #layout: #(#LayoutFrame 287 0 111 0 309 0 133 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   732
                    #isTriggerOnDown: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   733
                    #direction: #right
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   734
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   735
                 #(#ToggleSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   736
                    #name: 'Toggle'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   737
                    #layout: #(#LayoutFrame 330 0 15 0 445 0 37 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   738
                    #label: 'Toggle'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   739
                    #isTriggerOnDown: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   740
                    #showLamp: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   741
                    #lampColor: #(#Color 100.0 100.0 0.0)
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   742
                )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   743
                 #(#CheckBoxSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   744
                    #name: 'CheckBox'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   745
                    #layout: #(#LayoutFrame 330 0 47 0 445 0 69 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   746
                    #label: 'CheckBox'
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   747
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   748
                 #(#CheckToggleSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   749
                    #name: 'CheckToggle'
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
   750
                    #layout: #(#LayoutFrame 332 0 79 0 351 0 98 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   751
                    #isTriggerOnDown: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   752
                    #showLamp: false
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   753
                    #lampColor: #(#Color 100.0 100.0 0.0)
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   754
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   755
                 #(#LabelSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   756
                    #name: 'CheckToggleLabel'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   757
                    #layout: #(#AlignmentOrigin 358 0 84 0 0 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   758
                    #label: 'CheckToggle'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   759
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   760
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   761
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   762
                    #canUIDrag: false
105
23c7896c2e49 add new objects
ca
parents: 104
diff changeset
   763
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   764
                 #(#UpDownButtonSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   765
                    #name: 'UpDownButton'
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
   766
                    #layout: #(#LayoutFrame 330 0 111 0 346 0 123 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   767
                    #orientation: #horizontal
323
8b98ae257e5c added dismiss button
Claus Gittinger <cg@exept.de>
parents: 308
diff changeset
   768
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   769
                 #(#LabelSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   770
                    #name: 'UpDownButtonLabel'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   771
                    #layout: #(#AlignmentOrigin 361 0 112 0 0 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   772
                    #label: 'UpDownButton'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   773
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   774
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   775
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   776
                    #canUIDrag: false
531
ca500f8698eb added ModelButton
Claus Gittinger <cg@exept.de>
parents: 397
diff changeset
   777
                )
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   778
              )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   779
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   780
      )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   781
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
   782
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   783
standardLists
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   784
    "this window spec was automatically generated by the ST/X UIPainter"
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   785
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   786
    "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
   787
     handle the specification if its corrupted."
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   788
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   789
    "
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   790
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardLists
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   791
     UISelectionPanel new openInterface:#standardLists
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   792
    "
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   793
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   794
    <resource: #canvas>
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   795
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
     
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   798
       #(#FullSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   799
          #window: 
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   800
           #(#WindowSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   801
              #name: 'Lists'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   802
              #layout: #(#LayoutFrame 93 0 141 0 562 0 383 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   803
              #label: 'Lists'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   804
              #min: #(#Point 10 10)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   805
              #max: #(#Point 1280 1024)
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   806
              #bounds: #(#Rectangle 93 141 563 384)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   807
              #usePreferredExtent: false
182
ca
parents: 167
diff changeset
   808
          )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   809
          #component: 
182
ca
parents: 167
diff changeset
   810
           #(#SpecCollection
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   811
              #collection: 
182
ca
parents: 167
diff changeset
   812
               #(
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   813
                 #(#SequenceViewSpec
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   814
                    #name: 'SelectionInListView'
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   815
                    #layout: #(#LayoutFrame 15 0 15 0 220 0 110 0)
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   816
                    #hasHorizontalScrollBar: true
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   817
                    #hasVerticalScrollBar: true
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   818
                    #useIndex: false
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   819
                )
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   820
                 #(#LabelSpec
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   821
                    #name: 'SelectionInListLabel'
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   822
                    #layout: #(#AlignmentOrigin 42 0 19 0 0 0)
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   823
                    #label: 'SelectionInListView'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   824
                    #style: #(#FontDescription #helvetica #medium #roman 10)
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   825
                    #adjust: #left
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   826
                    #resizeForLabel: true
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   827
                    #canUIDrag: false
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   828
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   829
                 #(#SelectionInTreeViewSpec
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   830
                    #name: 'SelectionInTreeView'
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   831
                    #layout: #(#LayoutFrame 15 0 130 0 220 0 225 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   832
                    #hasHorizontalScrollBar: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   833
                    #hasVerticalScrollBar: true
663
fe6ee38d4eda consistent naming of the subcanvases
tz
parents: 660
diff changeset
   834
                    #hierarchicalList: #exampleTree
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   835
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   836
                 #(#LabelSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   837
                    #name: 'SelectionInTreeLabel'
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   838
                    #layout: #(#AlignmentOrigin 42 0 134 0 0 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   839
                    #label: 'SelectionInTreeView'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   840
                    #style: #(#FontDescription #helvetica #medium #roman 10)
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   841
                    #adjust: #left
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   842
                    #resizeForLabel: true
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   843
                    #canUIDrag: false
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   844
                )
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   845
                 #(#DataSetSpec
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   846
                    #name: 'DataSetView'
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   847
                    #layout: #(#LayoutFrame 240 0 15 0 445 0 110 0)
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   848
                    #hasHorizontalScrollBar: true
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   849
                    #hasVerticalScrollBar: true
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   850
                )
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   851
                 #(#LabelSpec
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   852
                    #name: 'DataSetSpecLabel'
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   853
                    #layout: #(#AlignmentOrigin 267 0 19 0 0 0)
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   854
                    #label: 'DataSetView'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   855
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   856
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   857
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   858
                    #canUIDrag: false
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   859
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   860
                 #(#FileSelectionTreeSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   861
                    #name: 'FileSelectionTree'
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   862
                    #layout: #(#LayoutFrame 240 0 130 0 445 0 225 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   863
                    #hasHorizontalScrollBar: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   864
                    #hasVerticalScrollBar: true
182
ca
parents: 167
diff changeset
   865
                )
ca
parents: 167
diff changeset
   866
                 #(#LabelSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   867
                    #name: 'FileSelectionTreeLabel'
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   868
                    #layout: #(#AlignmentOrigin 267 0 134 0 0 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   869
                    #label: 'FileSelectionTree'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   870
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   871
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   872
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   873
                    #canUIDrag: false
182
ca
parents: 167
diff changeset
   874
                )
ca
parents: 167
diff changeset
   875
              )
ca
parents: 167
diff changeset
   876
          )
ca
parents: 167
diff changeset
   877
      )
ca
parents: 167
diff changeset
   878
!
ca
parents: 167
diff changeset
   879
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
   880
standardMenus
182
ca
parents: 167
diff changeset
   881
    "this window spec was automatically generated by the ST/X UIPainter"
ca
parents: 167
diff changeset
   882
ca
parents: 167
diff changeset
   883
    "do not manually edit this - the painter/builder may not be able to
ca
parents: 167
diff changeset
   884
     handle the specification if its corrupted."
ca
parents: 167
diff changeset
   885
ca
parents: 167
diff changeset
   886
    "
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   887
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardMenus
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   888
     UISelectionPanel new openInterface:#standardMenus
182
ca
parents: 167
diff changeset
   889
    "
ca
parents: 167
diff changeset
   890
ca
parents: 167
diff changeset
   891
    <resource: #canvas>
ca
parents: 167
diff changeset
   892
ca
parents: 167
diff changeset
   893
    ^
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   894
     
182
ca
parents: 167
diff changeset
   895
       #(#FullSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   896
          #window: 
182
ca
parents: 167
diff changeset
   897
           #(#WindowSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   898
              #name: 'Menus'
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
   899
              #layout: #(#LayoutFrame 43 0 175 0 614 0 546 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   900
              #label: 'Menus'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   901
              #min: #(#Point 10 10)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   902
              #max: #(#Point 1280 1024)
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
   903
              #bounds: #(#Rectangle 43 175 615 547)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   904
              #usePreferredExtent: false
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   905
          )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   906
          #component: 
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   907
           #(#SpecCollection
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   908
              #collection: 
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   909
               #(
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   910
                 #(#MenuPanelSpec
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   911
                    #name: 'MenuPanel'
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   912
                    #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
   913
                    #menu: #menuPanelMenu
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   914
                )
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   915
                 #(#LabelSpec
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   916
                    #name: 'MenuPanelLabel'
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   917
                    #layout: #(#Point 18 22)
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   918
                    #label: 'MenuPanel'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   919
                    #style: #(#FontDescription #helvetica #medium #roman 10)
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   920
                    #adjust: #left
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   921
                    #resizeForLabel: true
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   922
                    #canUIDrag: false
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   923
                )
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   924
                 #(#PopUpListSpec
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   925
                    #name: 'PopUpList'
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   926
                    #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
   927
                    #label: 'PopUpList'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   928
                    #style: #(#FontDescription #helvetica #medium #roman 10)
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   929
                    #useIndex: false
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   930
                )
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   931
                 #(#ComboListSpec
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   932
                    #name: 'ComboListView'
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   933
                    #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
   934
                    #useIndex: false
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   935
                )
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   936
                 #(#LabelSpec
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   937
                    #name: 'ComboListLabel'
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
   938
                    #layout: #(#LayoutFrame 17 0 96 0 95 0 114 0)
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   939
                    #label: 'ComboListView'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   940
                    #style: #(#FontDescription #helvetica #medium #roman 10)
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   941
                    #adjust: #left
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   942
                    #resizeForLabel: true
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   943
                    #canUIDrag: false
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   944
                )
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   945
                 #(#ComboBoxSpec
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   946
                    #name: 'ComboBoxView'
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   947
                    #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
   948
                )
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   949
                 #(#LabelSpec
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   950
                    #name: 'ComboBoxLabel'
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
   951
                    #layout: #(#LayoutFrame 17 0 132 0 96 0 150 0)
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   952
                    #label: 'ComboBoxView'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   953
                    #style: #(#FontDescription #helvetica #medium #roman 10)
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   954
                    #adjust: #left
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   955
                    #resizeForLabel: true
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   956
                    #canUIDrag: false
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   957
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   958
                 #(#TabViewSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   959
                    #name: 'TabView'
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   960
                    #layout: #(#LayoutFrame 157 0 15 0 292 0 51 0)
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   961
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   962
                 #(#LabelSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   963
                    #name: 'TabLabel'
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   964
                    #layout: #(#Point 160 35)
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
   965
                    #label: ' TabView '
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   966
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   967
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   968
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   969
                    #canUIDrag: false
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   970
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   971
                 #(#NoteBookViewSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   972
                    #name: 'NoteBookView'
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   973
                    #layout: #(#LayoutFrame 157 0 58 0 292 0 150 0)
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   974
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   975
                 #(#LabelSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   976
                    #name: 'NoteBookLabel'
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   977
                    #layout: #(#Point 161 134)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   978
                    #label: 'NoteBookView'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   979
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   980
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   981
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   982
                    #canUIDrag: false
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   983
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   984
                 #(#UIGalleryViewSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   985
                    #name: 'GalleryView'
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   986
                    #layout: #(#LayoutFrame 309 0 15 0 445 0 150 0)
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   987
                )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
   988
                 #(#LabelSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   989
                    #name: 'GalleryLabel'
660
46f55243f1f1 once again some rearranges of the gallery (sorry, it's for the docu)
tz
parents: 659
diff changeset
   990
                    #layout: #(#Point 313 134)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   991
                    #label: 'GalleryView'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
   992
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   993
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   994
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
   995
                    #canUIDrag: false
142
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   996
                )
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   997
              )
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   998
          )
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
   999
      )
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
  1000
!
75f927b856f6 update specs; remove color and default values
ca
parents: 139
diff changeset
  1001
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1002
standardMisc
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1003
    "this window spec was automatically generated by the ST/X UIPainter"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1004
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1005
    "do not manually edit this - the painter/builder may not be able to
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1006
     handle the specification if its corrupted."
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1007
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1008
    "
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1009
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardMisc
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1010
     UISelectionPanel new openInterface:#standardMisc
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1011
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1012
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1013
    <resource: #canvas>
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1014
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1015
    ^
182
ca
parents: 167
diff changeset
  1016
     
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1017
       #(#FullSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1018
          #window: 
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1019
           #(#WindowSpec
663
fe6ee38d4eda consistent naming of the subcanvases
tz
parents: 660
diff changeset
  1020
              #name: 'Misc'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1021
              #layout: #(#LayoutFrame 93 0 141 0 560 0 425 0)
663
fe6ee38d4eda consistent naming of the subcanvases
tz
parents: 660
diff changeset
  1022
              #label: 'Misc'
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1023
              #min: #(#Point 10 10)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1024
              #max: #(#Point 1280 1024)
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1025
              #bounds: #(#Rectangle 93 141 561 426)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1026
              #usePreferredExtent: false
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1027
          )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1028
          #component: 
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1029
           #(#SpecCollection
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1030
              #collection: 
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1031
               #(
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1032
                 #(#ArbitraryComponentSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1033
                    #name: 'ArbitraryComponent'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1034
                    #layout: #(#LayoutFrame 15 0 15 0 220 0 110 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1035
                    #hasBorder: false
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1036
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1037
                 #(#LabelSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1038
                    #name: 'ArbitraryComponentLabel'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1039
                    #layout: #(#AlignmentOrigin 19 0 17 0 0 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1040
                    #label: 'ArbitraryComponent'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1041
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1042
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1043
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1044
                    #canUIDrag: false
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1045
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1046
                 #(#SubCanvasSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1047
                    #name: 'SubCanvas'
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
  1048
                    #layout: #(#LayoutFrame 15 0 130 0 220 0 225 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1049
                    #hasHorizontalScrollBar: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1050
                    #hasVerticalScrollBar: true
104
da9db8500b67 update:
ca
parents: 98
diff changeset
  1051
                )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1052
                 #(#LabelSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1053
                    #name: 'subCanvasLabel'
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
  1054
                    #layout: #(#AlignmentOrigin 42 0 134 0 0 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1055
                    #label: 'SubCanvas'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1056
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1057
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1058
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1059
                    #canUIDrag: false
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1060
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1061
                 #(#UISubSpecification
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1062
                    #name: 'SubSpecification'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1063
                    #layout: #(#LayoutFrame 240 0 15 0 445 0 110 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1064
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1065
                 #(#LabelSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1066
                    #name: 'SubSpecificationLabel'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1067
                    #layout: #(#Point 245 17)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1068
                    #label: 'SubSpecification'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1069
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1070
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1071
                    #canUIDrag: false
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1072
                )
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1073
                 #(#LabelSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1074
                    #name: 'ProgressIndicatorLabel'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1075
                    #layout: #(#AlignmentOrigin 240 0 133 0 0 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1076
                    #label: 'ProgressIndicator'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1077
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1078
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1079
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1080
                    #canUIDrag: false
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1081
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1082
                 #(#ProgressIndicatorSpec
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
  1083
                    #name: 'ProgressIndicator'
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1084
                    #layout: #(#LayoutFrame 350 0 131 0 445 0 149 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1085
                    #showPercentage: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1086
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1087
                 #(#LabelSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1088
                    #name: 'SeparatorLabel'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1089
                    #layout: #(#AlignmentOrigin 240 0 154 0 0 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1090
                    #label: 'Separator'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1091
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1092
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1093
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1094
                    #canUIDrag: false
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1095
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1096
                 #(#DividerSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1097
                    #name: 'Separator'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1098
                    #layout: #(#LayoutFrame 350 0 159 0 445 0 163 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1099
                    #orientation: #horizontal
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1100
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1101
                 #(#LabelSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1102
                    #name: 'VisualRegionLabel'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1103
                    #layout: #(#AlignmentOrigin 240 0 184 0 0 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1104
                    #label: 'VisualRegion'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1105
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1106
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1107
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1108
                    #canUIDrag: false
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1109
                )
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1110
                 #(#RegionSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1111
                    #name: 'VisualRegion'
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
  1112
                    #layout: #(#LayoutFrame 350 0 172 0 445 0 225 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1113
                    #lineWidth: 2
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1114
                    #regionType: #ellipse
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1115
                )
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1116
              )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1117
          )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1118
      )
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1119
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1120
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1121
standardTextViews
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1122
    "this window spec was automatically generated by the ST/X UIPainter"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1123
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1124
    "do not manually edit this - the painter/builder may not be able to
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1125
     handle the specification if its corrupted."
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1126
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1127
    "
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1128
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardTextViews
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1129
     UISelectionPanel new openInterface:#standardTextViews
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1130
    "
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1131
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1132
    <resource: #canvas>
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1133
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1134
    ^
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1135
     
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1136
       #(#FullSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1137
          #window: 
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1138
           #(#WindowSpec
663
fe6ee38d4eda consistent naming of the subcanvases
tz
parents: 660
diff changeset
  1139
              #name: 'Text Views'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1140
              #layout: #(#LayoutFrame 40 0 280 0 506 0 486 0)
663
fe6ee38d4eda consistent naming of the subcanvases
tz
parents: 660
diff changeset
  1141
              #label: 'Text Views'
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1142
              #min: #(#Point 10 10)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1143
              #max: #(#Point 1280 1024)
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1144
              #bounds: #(#Rectangle 40 280 507 487)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1145
              #usePreferredExtent: false
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1146
          )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1147
          #component: 
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1148
           #(#SpecCollection
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1149
              #collection: 
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1150
               #(
659
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
  1151
                 #(#TextEditorSpec
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
  1152
                    #name: 'TextView'
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
  1153
                    #layout: #(#LayoutFrame 15 0 15 0 220 0 110 0)
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
  1154
                    #hasHorizontalScrollBar: true
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
  1155
                    #hasVerticalScrollBar: true
b86448fe2605 same font for all gallery description labels
tz
parents: 658
diff changeset
  1156
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1157
                 #(#LabelSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1158
                    #name: 'EditTextLabel'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1159
                    #layout: #(#AlignmentOrigin 50 0 19 0 0 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1160
                    #label: 'TextView'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1161
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1162
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1163
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1164
                    #canUIDrag: false
150
9f88bc99e0af subCanvas
ca
parents: 147
diff changeset
  1165
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1166
                 #(#HTMLViewSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1167
                    #name: 'HTMLView'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1168
                    #layout: #(#LayoutFrame 240 0 15 0 445 0 110 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1169
                    #hasHorizontalScrollBar: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1170
                    #hasVerticalScrollBar: true
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1171
                )
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1172
                 #(#LabelSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1173
                    #name: 'HTMLViewLabel'
663
fe6ee38d4eda consistent naming of the subcanvases
tz
parents: 660
diff changeset
  1174
                    #layout: #(#AlignmentOrigin 267 0 19 0 0 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1175
                    #label: 'HTMLView'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1176
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1177
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1178
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1179
                    #canUIDrag: false
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1180
                )
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1181
                 #(#InputFieldSpec
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1182
                    #name: 'EditField'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1183
                    #layout: #(#LayoutFrame 15 0 125 0 220 0 147 0)
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1184
                )
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1185
                 #(#LabelSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1186
                    #name: 'EditFieldLabel'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1187
                    #layout: #(#LayoutFrame 50 0 127 0 103 0 147 0)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1188
                    #label: 'EditField'
670
c77522d9e388 smaller font choosen (-> cg)
tz
parents: 663
diff changeset
  1189
                    #style: #(#FontDescription #helvetica #medium #roman 10)
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1190
                    #adjust: #left
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1191
                    #resizeForLabel: true
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1192
                    #canUIDrag: false
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1193
                )
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1194
                 #(#LabelSpec
658
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1195
                    #name: 'Label'
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1196
                    #layout: #(#LayoutFrame 240 0 125 0 445 0 147 0)
05282b2363d4 some rearranges of the gallery
tz
parents: 598
diff changeset
  1197
                    #label: 'Label'
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
  1198
                )
97
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1199
              )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1200
          )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1201
      )
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1202
!
1887c994511b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
  1203
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
  1204
standardUserPanel
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1205
    "this window spec was automatically generated by the ST/X UIPainter"
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1206
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1207
    "do not manually edit this - the painter/builder may not be able to
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1208
     handle the specification if its corrupted."
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1209
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1210
    "
190
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
  1211
     UIPainter new openOnClass:UISelectionPanel andSelector:#standardUserPanel
8110fbe94104 change standart to standard( it's english !) ??
ca
parents: 189
diff changeset
  1212
     UISelectionPanel new openInterface:#standardUserPanel
182
ca
parents: 167
diff changeset
  1213
    "
ca
parents: 167
diff changeset
  1214
ca
parents: 167
diff changeset
  1215
    <resource: #canvas>
ca
parents: 167
diff changeset
  1216
ca
parents: 167
diff changeset
  1217
    ^
ca
parents: 167
diff changeset
  1218
     
ca
parents: 167
diff changeset
  1219
       #(#FullSpec
ca
parents: 167
diff changeset
  1220
          #'window:' 
ca
parents: 167
diff changeset
  1221
           #(#WindowSpec
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1222
              #'name:' 'UserPanel'
182
ca
parents: 167
diff changeset
  1223
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1224
              #'label:' 'UserPanel'
182
ca
parents: 167
diff changeset
  1225
              #'bounds:' #(#Rectangle 0 0 445 162)
ca
parents: 167
diff changeset
  1226
          )
ca
parents: 167
diff changeset
  1227
          #'component:' 
ca
parents: 167
diff changeset
  1228
           #(#SpecCollection
ca
parents: 167
diff changeset
  1229
              #'collection:' 
ca
parents: 167
diff changeset
  1230
               #(
ca
parents: 167
diff changeset
  1231
                 #(#LabelSpec
ca
parents: 167
diff changeset
  1232
                    #'name:' 'helpText'
ca
parents: 167
diff changeset
  1233
                    #'layout:' #(#Point 10 0)
ca
parents: 167
diff changeset
  1234
                    #'labelChannel:' #userDefinedHelpText
ca
parents: 167
diff changeset
  1235
                    #'resizeForLabel:' true
ca
parents: 167
diff changeset
  1236
                    #'canUIDrag:' false
ca
parents: 167
diff changeset
  1237
                )
ca
parents: 167
diff changeset
  1238
              )
ca
parents: 167
diff changeset
  1239
          )
ca
parents: 167
diff changeset
  1240
      )
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1241
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1242
182
ca
parents: 167
diff changeset
  1243
!UISelectionPanel methodsFor:'actions'!
ca
parents: 167
diff changeset
  1244
ca
parents: 167
diff changeset
  1245
defineClassAndSelector
ca
parents: 167
diff changeset
  1246
    |bd cls sel lbl|
ca
parents: 167
diff changeset
  1247
ca
parents: 167
diff changeset
  1248
    bd := IdentityDictionary new.
ca
parents: 167
diff changeset
  1249
    bd at:#className put:( userClass asValue).
ca
parents: 167
diff changeset
  1250
    bd at:#specsKey  put:( (userSpecs  ? '') asValue).
ca
parents: 167
diff changeset
  1251
    bd at:#labelsKey put:( (userLabels ? '') asValue).
ca
parents: 167
diff changeset
  1252
    bd at:#updateDefaultResources put:(false asValue).
ca
parents: 167
diff changeset
  1253
ca
parents: 167
diff changeset
  1254
    (self openDialogInterface:#nameAndSelectorSpec withBindings:bd) ifTrue:[
ca
parents: 167
diff changeset
  1255
        (      (cls := (bd at:#className) value) notNil
ca
parents: 167
diff changeset
  1256
          and:[(sel := (bd at:#specsKey)  value) notNil
ca
parents: 167
diff changeset
  1257
          and:[(lbl := (bd at:#labelsKey) value) notNil]]
ca
parents: 167
diff changeset
  1258
        ) ifTrue:[
ca
parents: 167
diff changeset
  1259
            userClass  := cls.
ca
parents: 167
diff changeset
  1260
            userSpecs  := sel.
ca
parents: 167
diff changeset
  1261
            userLabels := lbl.
ca
parents: 167
diff changeset
  1262
ca
parents: 167
diff changeset
  1263
            (bd at:#updateDefaultResources) value ifTrue:[
ca
parents: 167
diff changeset
  1264
                UserClass  := userClass.
ca
parents: 167
diff changeset
  1265
                UserSpecs  := userSpecs.
ca
parents: 167
diff changeset
  1266
                UserLabels := userLabels.
ca
parents: 167
diff changeset
  1267
            ]
ca
parents: 167
diff changeset
  1268
        ]
ca
parents: 167
diff changeset
  1269
    ].
ca
parents: 167
diff changeset
  1270
!
ca
parents: 167
diff changeset
  1271
ca
parents: 167
diff changeset
  1272
paste:something
ca
parents: 167
diff changeset
  1273
    "paste something at a point
ca
parents: 167
diff changeset
  1274
    "
ca
parents: 167
diff changeset
  1275
    |coll specs point device gallery ext spec|
ca
parents: 167
diff changeset
  1276
ca
parents: 167
diff changeset
  1277
    clipBoardSpec isNil ifTrue:[
ca
parents: 167
diff changeset
  1278
        clipBoardSpec := SpecCollection new.
ca
parents: 167
diff changeset
  1279
        clipBoardSpec collection:(OrderedCollection new).
ca
parents: 167
diff changeset
  1280
    ].
ca
parents: 167
diff changeset
  1281
    coll    := clipBoardSpec collection.
ca
parents: 167
diff changeset
  1282
    gallery := self builder componentAt:#gallery.
ca
parents: 167
diff changeset
  1283
    device  := gallery device.
ca
parents: 167
diff changeset
  1284
ca
parents: 167
diff changeset
  1285
    point   := device translatePoint:(device pointerPosition)
ca
parents: 167
diff changeset
  1286
                                from:(device rootView id)
ca
parents: 167
diff changeset
  1287
                                  to:(gallery canvas id).
ca
parents: 167
diff changeset
  1288
ca
parents: 167
diff changeset
  1289
    point y < 1 ifTrue:[point y:1].
ca
parents: 167
diff changeset
  1290
    ext := gallery extent - (10@10).
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1291
182
ca
parents: 167
diff changeset
  1292
    (specs := something) isCollection ifFalse:[
ca
parents: 167
diff changeset
  1293
        specs := Array with:something
ca
parents: 167
diff changeset
  1294
    ].
ca
parents: 167
diff changeset
  1295
ca
parents: 167
diff changeset
  1296
    specs do:[:aSpec|
ca
parents: 167
diff changeset
  1297
        point x > ext x ifTrue:[point x:1].
ca
parents: 167
diff changeset
  1298
        point y > ext y ifTrue:[point y:1].
ca
parents: 167
diff changeset
  1299
ca
parents: 167
diff changeset
  1300
        spec := aSpec copy.
ca
parents: 167
diff changeset
  1301
        spec layout:(LayoutOrigin fromPoint:point).
ca
parents: 167
diff changeset
  1302
        coll add:spec.
ca
parents: 167
diff changeset
  1303
        point := point + (20@20).
ca
parents: 167
diff changeset
  1304
    ].
ca
parents: 167
diff changeset
  1305
    gallery update.
ca
parents: 167
diff changeset
  1306
!
ca
parents: 167
diff changeset
  1307
ca
parents: 167
diff changeset
  1308
raiseMenu
ca
parents: 167
diff changeset
  1309
    "can open menu
ca
parents: 167
diff changeset
  1310
    "
251
ea4577f6cc41 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
  1311
    |spec menu value paste|
182
ca
parents: 167
diff changeset
  1312
ca
parents: 167
diff changeset
  1313
    spec := self clientSpec value.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1314
182
ca
parents: 167
diff changeset
  1315
    spec notNil ifTrue:[
ca
parents: 167
diff changeset
  1316
        menu := self class menuSelected decodeAsLiteralArray.
ca
parents: 167
diff changeset
  1317
        self isClipBoard ifFalse:[
ca
parents: 167
diff changeset
  1318
            (menu someMenuItemWithValue:#cut) disable.
ca
parents: 167
diff changeset
  1319
        ].
ca
parents: 167
diff changeset
  1320
ca
parents: 167
diff changeset
  1321
        (value := menu startUp) == #cut ifTrue:[
ca
parents: 167
diff changeset
  1322
            clipBoardSpec collection remove:spec ifAbsent:nil.
ca
parents: 167
diff changeset
  1323
            (self builder componentAt:#gallery) update.
ca
parents: 167
diff changeset
  1324
        ] ifFalse:[
ca
parents: 167
diff changeset
  1325
            value == #copy ifTrue:[
ca
parents: 167
diff changeset
  1326
                self window setSelection:spec
ca
parents: 167
diff changeset
  1327
            ]
ca
parents: 167
diff changeset
  1328
        ].
ca
parents: 167
diff changeset
  1329
      ^ self
ca
parents: 167
diff changeset
  1330
    ].
ca
parents: 167
diff changeset
  1331
ca
parents: 167
diff changeset
  1332
    self isUserBoard ifTrue:[
ca
parents: 167
diff changeset
  1333
        ^ self defineClassAndSelector
ca
parents: 167
diff changeset
  1334
    ].
ca
parents: 167
diff changeset
  1335
ca
parents: 167
diff changeset
  1336
    paste := self window getSelection.
ca
parents: 167
diff changeset
  1337
ca
parents: 167
diff changeset
  1338
    (self canPaste:paste) ifTrue:[
ca
parents: 167
diff changeset
  1339
        menu := self class menuUnselected decodeAsLiteralArray.
ca
parents: 167
diff changeset
  1340
ca
parents: 167
diff changeset
  1341
        (menu startUp) == #paste ifTrue:[
ca
parents: 167
diff changeset
  1342
            self paste:paste
ca
parents: 167
diff changeset
  1343
        ]
ca
parents: 167
diff changeset
  1344
    ].
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1345
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1346
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1347
!UISelectionPanel methodsFor:'aspects'!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1348
182
ca
parents: 167
diff changeset
  1349
clientSpec
ca
parents: 167
diff changeset
  1350
    "automatically generated by UIPainter ..."
ca
parents: 167
diff changeset
  1351
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1352
    |holder|
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1353
182
ca
parents: 167
diff changeset
  1354
    (holder := builder bindingAt:#clientSpec) isNil ifTrue:[
ca
parents: 167
diff changeset
  1355
        builder aspectAt:#clientSpec put:(holder :=  ValueHolder new).
ca
parents: 167
diff changeset
  1356
        holder addDependent:self.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1357
    ].
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1358
    ^ holder
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1359
!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1360
182
ca
parents: 167
diff changeset
  1361
clipBoardSpec
ca
parents: 167
diff changeset
  1362
    ^ clipBoardSpec
ca
parents: 167
diff changeset
  1363
!
ca
parents: 167
diff changeset
  1364
ca
parents: 167
diff changeset
  1365
galleryList
ca
parents: 167
diff changeset
  1366
    "automatically generated by UIPainter ..."
ca
parents: 167
diff changeset
  1367
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1368
    |holder|
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1369
182
ca
parents: 167
diff changeset
  1370
    (holder := builder bindingAt:#galleryList) isNil ifTrue:[
ca
parents: 167
diff changeset
  1371
        builder aspectAt:#galleryList put:(holder :=  ValueHolder new).
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1372
    ].
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1373
    ^ holder
182
ca
parents: 167
diff changeset
  1374
!
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1375
182
ca
parents: 167
diff changeset
  1376
galleryModel
ca
parents: 167
diff changeset
  1377
    "automatically generated by UIPainter ..."
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1378
182
ca
parents: 167
diff changeset
  1379
    |holder|
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1380
182
ca
parents: 167
diff changeset
  1381
    (holder := builder bindingAt:#galleryModel) isNil ifTrue:[
ca
parents: 167
diff changeset
  1382
        builder aspectAt:#galleryModel put:(holder :=  ValueHolder new).
ca
parents: 167
diff changeset
  1383
    ].
ca
parents: 167
diff changeset
  1384
    ^ holder
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1385
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1386
182
ca
parents: 167
diff changeset
  1387
majorChannel
ca
parents: 167
diff changeset
  1388
    "automatically generated by UIPainter ..."
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1389
182
ca
parents: 167
diff changeset
  1390
    |holder|
ca
parents: 167
diff changeset
  1391
ca
parents: 167
diff changeset
  1392
    (holder := builder bindingAt:#majorChannel) isNil ifTrue:[
ca
parents: 167
diff changeset
  1393
        holder := AspectAdaptor new subject:self; forAspect:#majorSelection.
ca
parents: 167
diff changeset
  1394
        builder aspectAt:#majorChannel put:holder.
139
dc64ad7c0267 update selection panel menus
ca
parents: 135
diff changeset
  1395
    ].
182
ca
parents: 167
diff changeset
  1396
    ^ holder
ca
parents: 167
diff changeset
  1397
!
ca
parents: 167
diff changeset
  1398
ca
parents: 167
diff changeset
  1399
majorList
ca
parents: 167
diff changeset
  1400
    "automatically generated by UIPainter ...
ca
parents: 167
diff changeset
  1401
    "
ca
parents: 167
diff changeset
  1402
  ^ self class specifications collect:[:el| el first]
ca
parents: 167
diff changeset
  1403
!
ca
parents: 167
diff changeset
  1404
ca
parents: 167
diff changeset
  1405
minorKeys
ca
parents: 167
diff changeset
  1406
    "automatically generated by UIPainter ..."
ca
parents: 167
diff changeset
  1407
ca
parents: 167
diff changeset
  1408
    |holder|
ca
parents: 167
diff changeset
  1409
ca
parents: 167
diff changeset
  1410
    (holder := builder bindingAt:#minorKeys) isNil ifTrue:[
ca
parents: 167
diff changeset
  1411
        builder aspectAt:#minorKeys put:(holder :=  ValueHolder new).
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1412
    ].
182
ca
parents: 167
diff changeset
  1413
    ^ holder
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1414
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1415
182
ca
parents: 167
diff changeset
  1416
!UISelectionPanel methodsFor:'change & update'!
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1417
182
ca
parents: 167
diff changeset
  1418
update:something with:aParameter from:changedObject
ca
parents: 167
diff changeset
  1419
    "one of my models changed its value
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1420
    "
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1421
    |channel label topView|
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1422
182
ca
parents: 167
diff changeset
  1423
    (channel := self clientSpec) == changedObject ifTrue:[
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1424
        topView := builder window topView.
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1425
302
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1426
        (label := channel value) notNil ifTrue:[
26cdfd3e1773 new component: SelectionInHierarchyView
ca
parents: 291
diff changeset
  1427
            topView label:label name, ' '.
182
ca
parents: 167
diff changeset
  1428
        ] ifFalse:[
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
  1429
            topView label:'Widget Gallery '
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1430
        ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1431
    ].
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1432
182
ca
parents: 167
diff changeset
  1433
    super update:something with:aParameter from:changedObject.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1434
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1435
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1436
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1437
182
ca
parents: 167
diff changeset
  1438
!UISelectionPanel methodsFor:'drag & drop'!
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1439
182
ca
parents: 167
diff changeset
  1440
canDrop:something in:aComponent
ca
parents: 167
diff changeset
  1441
    ^ self canPaste:(something collect:[:el| el theObject ]).
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1442
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1443
182
ca
parents: 167
diff changeset
  1444
drop:something in:aComponent at:aPoint
ca
parents: 167
diff changeset
  1445
ca
parents: 167
diff changeset
  1446
    |spc top|
ca
parents: 167
diff changeset
  1447
ca
parents: 167
diff changeset
  1448
    top := DragAndDropManager dragOriginatorQuerySignal raise topView.
ca
parents: 167
diff changeset
  1449
ca
parents: 167
diff changeset
  1450
    top == aComponent topView ifTrue:[
ca
parents: 167
diff changeset
  1451
        spc := self clientSpec value.
ca
parents: 167
diff changeset
  1452
        spc isNil ifTrue:[^ self].
ca
parents: 167
diff changeset
  1453
ca
parents: 167
diff changeset
  1454
        (clipBoardSpec collection remove:spc ifAbsent:nil) isNil ifTrue:[
ca
parents: 167
diff changeset
  1455
            ^ self
ca
parents: 167
diff changeset
  1456
        ].
ca
parents: 167
diff changeset
  1457
    ] ifFalse:[
ca
parents: 167
diff changeset
  1458
        spc := something collect:[:el| el theObject].
ca
parents: 167
diff changeset
  1459
    ].
ca
parents: 167
diff changeset
  1460
    self paste:spc.
ca
parents: 167
diff changeset
  1461
! !
ca
parents: 167
diff changeset
  1462
ca
parents: 167
diff changeset
  1463
!UISelectionPanel methodsFor:'queries'!
ca
parents: 167
diff changeset
  1464
ca
parents: 167
diff changeset
  1465
canPaste:something
ca
parents: 167
diff changeset
  1466
    "returns true if something could be paste
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1467
    "
182
ca
parents: 167
diff changeset
  1468
    (self isClipBoard and:[something notNil]) ifTrue:[
ca
parents: 167
diff changeset
  1469
        something isCollection ifTrue:[
ca
parents: 167
diff changeset
  1470
            something notEmpty ifTrue:[
ca
parents: 167
diff changeset
  1471
                ^ (something at:1) isKindOf:UISpecification
ca
parents: 167
diff changeset
  1472
            ]
ca
parents: 167
diff changeset
  1473
        ] ifFalse:[
ca
parents: 167
diff changeset
  1474
            ^ something isKindOf:UISpecification
ca
parents: 167
diff changeset
  1475
        ]
ca
parents: 167
diff changeset
  1476
    ].
ca
parents: 167
diff changeset
  1477
    ^ false
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1478
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1479
!
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1480
182
ca
parents: 167
diff changeset
  1481
isClipBoard
ca
parents: 167
diff changeset
  1482
    "returns true if current view is clip board
ca
parents: 167
diff changeset
  1483
    "
291
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1484
    majorSelection ~~ 0 ifTrue:[
182
ca
parents: 167
diff changeset
  1485
        ^ (self majorList at:majorSelection) startsWith:'Clip'
ca
parents: 167
diff changeset
  1486
    ].
ca
parents: 167
diff changeset
  1487
  ^ false
ca
parents: 167
diff changeset
  1488
!
ca
parents: 167
diff changeset
  1489
ca
parents: 167
diff changeset
  1490
isUserBoard
ca
parents: 167
diff changeset
  1491
    "returns true if current view is clip board
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1492
    "
291
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1493
    majorSelection ~~ 0 ifTrue:[
182
ca
parents: 167
diff changeset
  1494
        ^ (self majorList at:majorSelection) startsWith:'User'
ca
parents: 167
diff changeset
  1495
    ].
ca
parents: 167
diff changeset
  1496
  ^ false
ca
parents: 167
diff changeset
  1497
! !
ca
parents: 167
diff changeset
  1498
ca
parents: 167
diff changeset
  1499
!UISelectionPanel methodsFor:'selection'!
ca
parents: 167
diff changeset
  1500
ca
parents: 167
diff changeset
  1501
majorSelection
291
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1502
    ^ majorSelection ? 0
182
ca
parents: 167
diff changeset
  1503
!
ca
parents: 167
diff changeset
  1504
ca
parents: 167
diff changeset
  1505
majorSelection:aSelection
ca
parents: 167
diff changeset
  1506
    |spec channel|
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1507
291
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1508
    (majorSelection == aSelection or:[aSelection == 0]) ifTrue:[
182
ca
parents: 167
diff changeset
  1509
        ^ self
167
01cbd385f878 added new specification:
ca
parents: 150
diff changeset
  1510
    ].
182
ca
parents: 167
diff changeset
  1511
    (self builder componentAt:#gallery) builder:nil.
ca
parents: 167
diff changeset
  1512
    majorSelection := aSelection.
ca
parents: 167
diff changeset
  1513
    spec := ((self class specifications) at:aSelection) last.
ca
parents: 167
diff changeset
  1514
ca
parents: 167
diff changeset
  1515
    spec isSymbol ifFalse:[
ca
parents: 167
diff changeset
  1516
        self galleryList value:(spec collect:[:a| a first]).
ca
parents: 167
diff changeset
  1517
        self minorKeys   value:(spec collect:[:a| a last]).
ca
parents: 167
diff changeset
  1518
    ] ifTrue:[
ca
parents: 167
diff changeset
  1519
        self perform:spec
ca
parents: 167
diff changeset
  1520
    ].
ca
parents: 167
diff changeset
  1521
    channel := self galleryModel.
ca
parents: 167
diff changeset
  1522
ca
parents: 167
diff changeset
  1523
    channel value notNil ifTrue:[
ca
parents: 167
diff changeset
  1524
        channel setValue:nil
ca
parents: 167
diff changeset
  1525
    ].
ca
parents: 167
diff changeset
  1526
    channel value:1.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1527
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1528
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1529
182
ca
parents: 167
diff changeset
  1530
!UISelectionPanel methodsFor:'startup / release'!
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1531
182
ca
parents: 167
diff changeset
  1532
allButOpenInterface:aSpec
ca
parents: 167
diff changeset
  1533
    "setup default values
ca
parents: 167
diff changeset
  1534
    "
ca
parents: 167
diff changeset
  1535
    userClass  := UserClass.
ca
parents: 167
diff changeset
  1536
    userSpecs  := UserSpecs.
ca
parents: 167
diff changeset
  1537
    userLabels := UserLabels.
598
fba415c8cf52 care for return value of allButOpenInterface:
Claus Gittinger <cg@exept.de>
parents: 531
diff changeset
  1538
    ^ super allButOpenInterface:aSpec.
fba415c8cf52 care for return value of allButOpenInterface:
Claus Gittinger <cg@exept.de>
parents: 531
diff changeset
  1539
fba415c8cf52 care for return value of allButOpenInterface:
Claus Gittinger <cg@exept.de>
parents: 531
diff changeset
  1540
    "Modified: / 5.2.1998 / 20:12:15 / cg"
182
ca
parents: 167
diff changeset
  1541
!
ca
parents: 167
diff changeset
  1542
ca
parents: 167
diff changeset
  1543
closeRequest
ca
parents: 167
diff changeset
  1544
    |sav|
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1545
182
ca
parents: 167
diff changeset
  1546
    (sav := masterApplication) notNil ifTrue:[
ca
parents: 167
diff changeset
  1547
        masterApplication := nil.
244
b70597d2a39b do not send #closeRequest to nil.
Claus Gittinger <cg@exept.de>
parents: 216
diff changeset
  1548
        sav closeRequestFor:(self window).
182
ca
parents: 167
diff changeset
  1549
        masterApplication := sav.
ca
parents: 167
diff changeset
  1550
    ] ifFalse:[
ca
parents: 167
diff changeset
  1551
        super closeRequest.
ca
parents: 167
diff changeset
  1552
    ]
244
b70597d2a39b do not send #closeRequest to nil.
Claus Gittinger <cg@exept.de>
parents: 216
diff changeset
  1553
b70597d2a39b do not send #closeRequest to nil.
Claus Gittinger <cg@exept.de>
parents: 216
diff changeset
  1554
    "Modified: 28.7.1997 / 09:44:40 / cg"
182
ca
parents: 167
diff changeset
  1555
!
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1556
291
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1557
initialize
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1558
    super initialize.
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1559
    majorSelection := 0.
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1560
!
1fd3867c08cc an empty selection now is specified by 0
ca
parents: 251
diff changeset
  1561
182
ca
parents: 167
diff changeset
  1562
openWindow
ca
parents: 167
diff changeset
  1563
    "setup default values
ca
parents: 167
diff changeset
  1564
    "
ca
parents: 167
diff changeset
  1565
    super openWindow.
ca
parents: 167
diff changeset
  1566
    "/ self window waitForExpose.
ca
parents: 167
diff changeset
  1567
    Delay waitForSeconds:1.
ca
parents: 167
diff changeset
  1568
    self majorChannel value:1.
112
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1569
! !
6fe6c4d1672e build with builder
ca
parents: 107
diff changeset
  1570
182
ca
parents: 167
diff changeset
  1571
!UISelectionPanel methodsFor:'user defined'!
ca
parents: 167
diff changeset
  1572
ca
parents: 167
diff changeset
  1573
userDefined
ca
parents: 167
diff changeset
  1574
    |cls lbl sel builder|
329
ca
parents: 324
diff changeset
  1575
ca
parents: 324
diff changeset
  1576
    cls := self resolveName:userClass.
ca
parents: 324
diff changeset
  1577
ca
parents: 324
diff changeset
  1578
    (cls notNil and:[(cls respondsTo:userLabels)]) ifTrue:[
ca
parents: 324
diff changeset
  1579
        lbl := cls perform:userLabels.
ca
parents: 324
diff changeset
  1580
        sel := Array new:(lbl size) withAll:#userDefinedSpec.
ca
parents: 324
diff changeset
  1581
        self galleryList value:lbl.
ca
parents: 324
diff changeset
  1582
        self minorKeys   value:sel.
ca
parents: 324
diff changeset
  1583
    ] ifFalse:[
397
be1357e3bf7f checkin from browser
ca
parents: 387
diff changeset
  1584
        builder := UIBuilder new isEditing:true.
be1357e3bf7f checkin from browser
ca
parents: 387
diff changeset
  1585
329
ca
parents: 324
diff changeset
  1586
        builder application:self.
ca
parents: 324
diff changeset
  1587
        (self builder componentAt:#gallery) builder:builder. 
ca
parents: 324
diff changeset
  1588
        self galleryList value:#( '???' ).
ca
parents: 324
diff changeset
  1589
        self minorKeys   value:#( standardUserPanel ).
ca
parents: 324
diff changeset
  1590
    ]
182
ca
parents: 167
diff changeset
  1591
!
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
  1592
182
ca
parents: 167
diff changeset
  1593
userDefinedHelpText
ca
parents: 167
diff changeset
  1594
ca
parents: 167
diff changeset
  1595
^ '
ca
parents: 167
diff changeset
  1596
no user defined specifications are configured yet. To assign
ca
parents: 167
diff changeset
  1597
user defined specifications to the gallery press the middle
ca
parents: 167
diff changeset
  1598
button of your mouse to open a dialog.
ca
parents: 167
diff changeset
  1599
'
ca
parents: 167
diff changeset
  1600
!
ca
parents: 167
diff changeset
  1601
ca
parents: 167
diff changeset
  1602
userDefinedSpec
ca
parents: 167
diff changeset
  1603
    |cls spc idx|
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1604
329
ca
parents: 324
diff changeset
  1605
    cls := self resolveName:userClass.
182
ca
parents: 167
diff changeset
  1606
329
ca
parents: 324
diff changeset
  1607
    (cls notNil and:[(cls respondsTo:userSpecs)]) ifTrue:[
ca
parents: 324
diff changeset
  1608
        spc := cls perform:userSpecs.
ca
parents: 324
diff changeset
  1609
        idx := self galleryModel value.
ca
parents: 324
diff changeset
  1610
ca
parents: 324
diff changeset
  1611
        idx <= spc size ifTrue:[
ca
parents: 324
diff changeset
  1612
            spc := spc at:idx.
ca
parents: 324
diff changeset
  1613
            (cls respondsTo:spc) ifTrue:[
ca
parents: 324
diff changeset
  1614
                ^ cls perform:spc
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
  1615
            ]
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1616
        ]
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1617
    ].
147
060fc1ac8d82 *** empty log message ***
ca
parents: 143
diff changeset
  1618
  ^ nil
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1619
! !
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1620
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1621
!UISelectionPanel::UserDefinedGallery class methodsFor:'class initialization'!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1622
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1623
initialize
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1624
    "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
  1625
     I.e. provide a clocks entry"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1626
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1627
    LabelList := self defaultListOfLabels asOrderedCollection.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1628
    SelectorList := self defaultListOfSelectors asOrderedCollection.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1629
    HolderList := OrderedCollection new grow:(SelectorList size).
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1630
    NextUniqueNumber := 1.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1631
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1632
    UISelectionPanel 
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1633
        userClass:self
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1634
        specSelector:#listOfSelectors
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1635
        labelSelector:#listOfLabels.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1636
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1637
    "
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1638
     self initialize
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1639
    "
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1640
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1641
    "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
  1642
    "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
  1643
! !
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1644
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1645
!UISelectionPanel::UserDefinedGallery class methodsFor:'defaults'!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1646
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1647
defaultListOfLabels
671
3e3d7f168024 some labels renamed
tz
parents: 670
diff changeset
  1648
    ^ #( 'Clocks' )
387
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
    "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
  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
defaultListOfSelectors
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1654
    ^ #( clocksSpec )
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
    "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
  1657
    "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
  1658
! !
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1659
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1660
!UISelectionPanel::UserDefinedGallery class methodsFor:'documentation'!
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
copyright
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
 COPYRIGHT (c) 1997 by eXept Software AG
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1665
              All Rights Reserved
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1666
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1667
 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
  1668
 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
  1669
 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
  1670
 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
  1671
 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
  1672
 hereby transferred.
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
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
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1677
!
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
documentation
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1680
"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1681
    The standard user-defined selectionPanel entry.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1682
    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
  1683
    an analog and digital clock.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1684
    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
  1685
    extended dynamically.
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
    Frameworks which provide additional widgets may dynamically
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1688
    add more entries, by sending #addUserSpecHolder:label:
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1689
    or #removeUserSpecWithLabel:.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1690
    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
  1691
    frameworks class-initialization methods.
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
    [start with:]
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1694
        UISelectionPanel open
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1695
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1696
    [author:]
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1697
        Claus Gittinger
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1698
        Claus Atzkern
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1699
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1700
    [see also:]
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1701
        TabView
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1702
        NoteBookView
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1703
        UIGalleryView
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1704
        UIPainter
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1705
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1706
"
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
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1709
! !
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1710
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1711
!UISelectionPanel::UserDefinedGallery class methodsFor:'installation / deinstallation'!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1712
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1713
addUserSpecHolder:aValueHolder label:aLabelString
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1714
    "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
  1715
     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
  1716
     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
  1717
     This spec is installed under that label."
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
    |syntheticSelector idx|
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
    syntheticSelector := ('userSpec' , NextUniqueNumber printString) asSymbol.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1722
    NextUniqueNumber := NextUniqueNumber + 1.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1723
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1724
    idx := LabelList indexOf:aLabelString.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1725
    idx ~~ 0 ifTrue:[
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1726
        SelectorList at:idx put:syntheticSelector.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1727
        HolderList at:idx put:aValueHolder
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1728
    ] ifFalse:[
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1729
        LabelList addLast:aLabelString.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1730
        SelectorList addLast:syntheticSelector.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1731
        HolderList addLast:aValueHolder
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
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1734
    "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
  1735
    "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
  1736
!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1737
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1738
removeUserSpecWithLabel:aLabelString
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1739
    "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
  1740
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1741
    |idx|
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1742
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1743
    idx := LabelList indexOf:aLabelString.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1744
    idx ~~ 0 ifTrue:[
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1745
        LabelList removeIndex:idx.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1746
        SelectorList removeIndex:idx.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1747
        HolderList removeIndex:idx
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
    "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
  1751
    "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
  1752
! !
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1753
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1754
!UISelectionPanel::UserDefinedGallery class methodsFor:'user defined gallery'!
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1755
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1756
clocksSpec
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1757
    "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
  1758
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1759
    "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
  1760
     handle the specification if its corrupted."
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1761
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1762
    "
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1763
     UIPainter new openOnClass:UISelectionPanel::ExampleUserDefinedGallery andSelector:#clocksSpec
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1764
     UISelectionPanel::ExampleUserDefinedGallery new openInterface:#clocksSpec
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1765
    "
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1766
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1767
    <resource: #canvas>
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1768
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1769
    ^
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
       #(#FullSpec
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1772
          #'window:' 
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1773
           #(#WindowSpec
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1774
              #'name:' 'Interface Builder'
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1775
              #'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
  1776
              #'label:' 'Interface Builder'
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1777
              #'min:' #(#Point 10 10)
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1778
              #'max:' #(#Point 1280 1024)
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1779
              #'bounds:' #(#Rectangle 22 236 402 507)
207
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
          #'component:' 
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1782
           #(#SpecCollection
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1783
              #'collection:' 
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1784
               #(
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1785
                 #(#ArbitraryComponentSpec
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1786
                    #'name:' 'ClockView'
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1787
                    #'layout:' #(#LayoutFrame 11 0 11 0 125 0 123 0)
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1788
                    #'component:' #ClockView
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1789
                    #'hasBorder:' false
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1790
                )
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1791
                 #(#ArbitraryComponentSpec
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1792
                    #'name:' 'DigitalClockView'
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1793
                    #'layout:' #(#LayoutOrigin 136 0 11 0)
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1794
                    #'component:' #DigitalClockView
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1795
                    #'hasBorder:' false
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
              )
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1798
          )
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1799
      )
324
2898d6c12330 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 323
diff changeset
  1800
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1801
    "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
  1802
    "Created: / 8.12.1997 / 18:40:22 / cg"
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1803
!
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1804
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1805
listOfLabels
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1806
    ^ LabelList
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1807
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1808
    "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
  1809
    "Modified: / 8.12.1997 / 18:51:20 / cg"
207
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
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1812
listOfSelectors
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1813
    ^ SelectorList
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1814
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1815
    "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
  1816
    "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
  1817
! !
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1818
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1819
!UISelectionPanel::UserDefinedGallery class methodsFor:'user spec access'!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1820
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1821
doesNotUnderstand:aMessage
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1822
    "catch queries for a userSpec"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1823
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1824
    |sel idx|
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1825
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1826
    ((sel := aMessage selector) startsWith:'userSpec') ifTrue:[
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1827
        idx := SelectorList indexOf:sel.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1828
        idx ~~ 0 ifTrue:[
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1829
            ^ (HolderList at:idx) value
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
    ].
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1832
    ^ super doesNotUnderstand:aMessage
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1833
387
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1834
    "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
  1835
    "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
  1836
!
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1837
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1838
respondsTo:aSelector
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1839
    "catch queries for a userSpec"
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1840
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1841
    |idx|
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
    (aSelector startsWith:'userSpec') ifTrue:[
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1844
        idx := Number fromString:(aSelector copyFrom:9).
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1845
        idx := SelectorList indexOf:aSelector.
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1846
        idx ~~ 0 ifTrue:[^ true].
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1847
    ].
8fa6afe1b929 allow dynamic change of user defined selectionPanel
Claus Gittinger <cg@exept.de>
parents: 359
diff changeset
  1848
    ^ super respondsTo:aSelector
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
    "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
  1851
    "Created: / 8.12.1997 / 18:51:57 / cg"
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1852
! !
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1853
93
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1854
!UISelectionPanel class methodsFor:'documentation'!
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1855
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1856
version
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1857
    ^ '$Header$'
6c3ff0721248 intitial checkin
ca
parents:
diff changeset
  1858
! !
207
a31cc933368a set user defined specification during initialization of class
ca
parents: 190
diff changeset
  1859
UISelectionPanel initialize!