MenuEditor.st
author ca
Thu, 17 Jul 1997 18:46:03 +0200
changeset 220 8f0065e7a83d
parent 218 5c88856b360f
child 224 c1d7bffe73f1
permissions -rw-r--r--
update
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     1
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     3
              All Rights Reserved
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     4
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     5
 This software is furnished under a license and may be used
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    10
 hereby transferred.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    11
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    12
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    13
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    14
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    15
ApplicationModel subclass:#MenuEditor
220
ca
parents: 218
diff changeset
    16
	instanceVariableNames:'specClass tabSelection aspects slices activeHelpTool'
ca
parents: 218
diff changeset
    17
	classVariableNames:''
ca
parents: 218
diff changeset
    18
	poolDictionaries:''
ca
parents: 218
diff changeset
    19
	category:'Interface-UIPainter'
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    20
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    21
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    22
Object subclass:#Item
220
ca
parents: 218
diff changeset
    23
	instanceVariableNames:'activeHelpKey enabled label value nameKey indication shortcutKey
ca
parents: 218
diff changeset
    24
		accessCharaterPos retriever icon iconAndLabel submenuChannel'
ca
parents: 218
diff changeset
    25
	classVariableNames:''
ca
parents: 218
diff changeset
    26
	poolDictionaries:''
ca
parents: 218
diff changeset
    27
	privateIn:MenuEditor
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    28
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    29
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    30
SelectionInTreeView subclass:#Painter
220
ca
parents: 218
diff changeset
    31
	instanceVariableNames:'imageMenuLink imageSeparator'
ca
parents: 218
diff changeset
    32
	classVariableNames:'CopyBuffer ImageMenuLink ImageSeparator'
ca
parents: 218
diff changeset
    33
	poolDictionaries:''
ca
parents: 218
diff changeset
    34
	privateIn:MenuEditor
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    35
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    36
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    37
!MenuEditor class methodsFor:'documentation'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    38
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    39
copyright
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    40
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    41
 COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    42
              All Rights Reserved
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    43
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    44
 This software is furnished under a license and may be used
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    45
 only in accordance with the terms of that license and with the
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    46
 inclusion of the above copyright notice.   This software may not
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    47
 be provided or otherwise made available to, or used by, any
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    48
 other person.  No title to or ownership of the software is
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    49
 hereby transferred.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    50
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    51
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    52
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    53
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    54
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    55
documentation
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    56
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    57
    create and modify or inspect popup and pullDown menus of the
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    58
    new style( derives from Menu).
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    59
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    60
    [start with:]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    61
        MenuEditor open
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    62
        MenuEditor new openOnClass:MenuEditor andSelector:#menuPullDown
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    63
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    64
    [see also:]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    65
        UIPainter
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    66
        UIHelpTool
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    67
        UISpecificationTool
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    68
        SelectionInTreeView
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    69
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    70
    [author:]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    71
        Claus Atzkern
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    72
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    73
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    74
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    75
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
    76
!MenuEditor class methodsFor:'icons'!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
    77
220
ca
parents: 218
diff changeset
    78
iconCreateItem
ca
parents: 218
diff changeset
    79
    ^ Painter imageItem
ca
parents: 218
diff changeset
    80
ca
parents: 218
diff changeset
    81
!
ca
parents: 218
diff changeset
    82
ca
parents: 218
diff changeset
    83
iconCreateLink
ca
parents: 218
diff changeset
    84
    ^ Painter imageMenuLink
ca
parents: 218
diff changeset
    85
ca
parents: 218
diff changeset
    86
!
ca
parents: 218
diff changeset
    87
ca
parents: 218
diff changeset
    88
iconCreateMenu
ca
parents: 218
diff changeset
    89
    ^ Painter imageClosed
ca
parents: 218
diff changeset
    90
ca
parents: 218
diff changeset
    91
!
ca
parents: 218
diff changeset
    92
ca
parents: 218
diff changeset
    93
iconCreateSep
ca
parents: 218
diff changeset
    94
    ^ Painter imageSeparator
ca
parents: 218
diff changeset
    95
ca
parents: 218
diff changeset
    96
!
ca
parents: 218
diff changeset
    97
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
    98
iconStepDown
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
    99
    ^ ((Image fromFile:'stepOver.xpm') rotated:90) flipHorizontal
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   100
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   101
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   102
iconStepIn
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   103
    ^ ((Image fromFile:'stepIn.xpm') rotated:90) flipHorizontal
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   104
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   105
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   106
iconStepOut
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   107
    ^ ((Image fromFile:'stepOut.xpm') rotated:90) flipHorizontal
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   108
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   109
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   110
iconStepUp
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   111
    ^ ((Image fromFile:'stepOver.xpm') rotated:90) flipHorizontal flipVertical
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   112
! !
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   113
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   114
!MenuEditor class methodsFor:'interface specs'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   115
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   116
classAndMethodSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   117
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   118
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   119
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   120
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   121
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   122
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   123
     UIPainter new openOnClass:MenuEditor andSelector:#classAndMethodSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   124
     MenuEditor new openInterface:#classAndMethodSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   125
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   126
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   127
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   128
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   129
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   130
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   131
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   132
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   133
           #(#WindowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   134
              #'name:' 'uIPainterView'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   135
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   136
              #'label:' 'Painter'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   137
              #'bounds:' #(#Rectangle 0 0 391 170)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   138
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   139
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   140
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   141
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   142
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   143
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   144
                    #'name:' 'classLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   145
                    #'layout:' #(#AlignmentOrigin 45 0.11 51 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   146
                    #'label:' 'class:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   147
                    #'adjust:' #right
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   148
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   149
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   150
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   151
                    #'name:' 'selectorLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   152
                    #'layout:' #(#AlignmentOrigin 45 0.11 74 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   153
                    #'label:' 'selector:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   154
                    #'adjust:' #right
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   155
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   156
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   157
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   158
                    #'name:' 'methodNameField'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   159
                    #'layout:' #(#LayoutFrame 47 0.11 64 0 -5 1.0 86 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   160
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   161
                    #'model:' #methodNameChannel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   162
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   163
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   164
                    #'name:' 'boxLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   165
                    #'layout:' #(#Point 5 10)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   166
                    #'label:' 'class & selector for code:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   167
                    #'adjust:' #left
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   168
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   169
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   170
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   171
                    #'name:' 'classNameField'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   172
                    #'layout:' #(#LayoutFrame 47 0.11 39 0 -5 1.0 61 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   173
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   174
                    #'model:' #classNameChannel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   175
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   176
                 #(#HorizontalPanelViewSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   177
                    #'name:' 'commitPanel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   178
                    #'layout:' #(#LayoutFrame 0 0.0 -24 1.0 0 1.0 0 1.0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   179
                    #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   180
                     #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   181
                        #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   182
                         #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   183
                           #(#ActionButtonSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   184
                              #'name:' 'button1'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   185
                              #'label:' 'cancel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   186
                              #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   187
                              #'model:' #cancel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   188
                              #'extent:' #(#Point 191 24)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   189
                          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   190
                           #(#ActionButtonSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   191
                              #'name:' 'button2'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   192
                              #'label:' 'ok'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   193
                              #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   194
                              #'isDefault:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   195
                              #'model:' #accept
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   196
                              #'extent:' #(#Point 191 24)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   197
                          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   198
                        )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   199
                    )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   200
                    #'horizontalLayout:' #fitSpace
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   201
                    #'verticalLayout:' #fit
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   202
                    #'horizontalSpace:' 3
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   203
                    #'verticalSpace:' 3
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   204
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   205
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   206
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   207
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   208
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   209
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   210
classDefineSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   211
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   212
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   213
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   214
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   215
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   216
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   217
     UIPainter new openOnClass:MenuEditor andSelector:#classDefineSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   218
     MenuEditor new openInterface:#classDefineSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   219
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   220
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   221
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   222
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   223
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   224
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   225
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   226
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   227
           #(#WindowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   228
              #'name:' 'uIPainterView'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   229
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   230
              #'label:' 'Painter'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   231
              #'bounds:' #(#Rectangle 0 0 383 128)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   232
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   233
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   234
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   235
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   236
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   237
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   238
                    #'name:' 'classLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   239
                    #'layout:' #(#AlignmentOrigin 45 0.11 51 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   240
                    #'label:' 'class:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   241
                    #'adjust:' #right
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   242
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   243
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   244
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   245
                    #'name:' 'boxLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   246
                    #'layout:' #(#Point 5 10)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   247
                    #'label:' 'class for code:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   248
                    #'adjust:' #left
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   249
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   250
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   251
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   252
                    #'name:' 'classNameField'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   253
                    #'layout:' #(#LayoutFrame 47 0.11 39 0 -5 1.0 61 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   254
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   255
                    #'model:' #classNameChannel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   256
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   257
                 #(#HorizontalPanelViewSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   258
                    #'name:' 'commitPanel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   259
                    #'layout:' #(#LayoutFrame 0 0.0 -24 1.0 0 1.0 0 1.0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   260
                    #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   261
                     #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   262
                        #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   263
                         #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   264
                           #(#ActionButtonSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   265
                              #'name:' 'button1'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   266
                              #'label:' 'cancel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   267
                              #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   268
                              #'model:' #cancel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   269
                              #'extent:' #(#Point 187 24)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   270
                          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   271
                           #(#ActionButtonSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   272
                              #'name:' 'button2'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   273
                              #'label:' 'ok'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   274
                              #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   275
                              #'isDefault:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   276
                              #'model:' #accept
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   277
                              #'extent:' #(#Point 187 24)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   278
                          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   279
                        )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   280
                    )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   281
                    #'horizontalLayout:' #fitSpace
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   282
                    #'verticalLayout:' #fit
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   283
                    #'horizontalSpace:' 3
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   284
                    #'verticalSpace:' 3
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   285
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   286
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   287
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   288
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   289
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   290
220
ca
parents: 218
diff changeset
   291
menuButtons
ca
parents: 218
diff changeset
   292
    "this window spec was automatically generated by the ST/X MenuEditor"
ca
parents: 218
diff changeset
   293
ca
parents: 218
diff changeset
   294
    "do not manually edit this - the builder may not be able to
ca
parents: 218
diff changeset
   295
     handle the specification if its corrupted."
ca
parents: 218
diff changeset
   296
ca
parents: 218
diff changeset
   297
    "
ca
parents: 218
diff changeset
   298
     MenuEditor new openOnClass:MenuEditor andSelector:#menuButtons
ca
parents: 218
diff changeset
   299
     (Menu new fromLiteralArrayEncoding:(MenuEditor menuButtons)) startUp
ca
parents: 218
diff changeset
   300
    "
ca
parents: 218
diff changeset
   301
ca
parents: 218
diff changeset
   302
    <resource: #menu>
ca
parents: 218
diff changeset
   303
ca
parents: 218
diff changeset
   304
    ^
ca
parents: 218
diff changeset
   305
     
ca
parents: 218
diff changeset
   306
       #(#Menu
ca
parents: 218
diff changeset
   307
          
ca
parents: 218
diff changeset
   308
           #(
ca
parents: 218
diff changeset
   309
             #(#MenuItem
ca
parents: 218
diff changeset
   310
                #'label:' 'createMenu'
ca
parents: 218
diff changeset
   311
                #'value:' #doCreateMenu
ca
parents: 218
diff changeset
   312
                #'enabled:' #hasAnySingleSelection
ca
parents: 218
diff changeset
   313
                #'labelImage:' 
ca
parents: 218
diff changeset
   314
                 #(#ResourceRetriever
ca
parents: 218
diff changeset
   315
                    #MenuEditor #iconCreateMenu
ca
parents: 218
diff changeset
   316
                )
ca
parents: 218
diff changeset
   317
            )
ca
parents: 218
diff changeset
   318
             #(#MenuItem
ca
parents: 218
diff changeset
   319
                #'label:' 'createLink'
ca
parents: 218
diff changeset
   320
                #'value:' #doCreateLink
ca
parents: 218
diff changeset
   321
                #'enabled:' #hasAnySingleSelection
ca
parents: 218
diff changeset
   322
                #'labelImage:' 
ca
parents: 218
diff changeset
   323
                 #(#ResourceRetriever
ca
parents: 218
diff changeset
   324
                    #MenuEditor #iconCreateLink
ca
parents: 218
diff changeset
   325
                )
ca
parents: 218
diff changeset
   326
            )
ca
parents: 218
diff changeset
   327
             #(#MenuItem
ca
parents: 218
diff changeset
   328
                #'label:' 'createItem'
ca
parents: 218
diff changeset
   329
                #'value:' #doCreateItem
ca
parents: 218
diff changeset
   330
                #'enabled:' #hasAnySingleSelection
ca
parents: 218
diff changeset
   331
                #'labelImage:' 
ca
parents: 218
diff changeset
   332
                 #(#ResourceRetriever
ca
parents: 218
diff changeset
   333
                    #MenuEditor #iconCreateItem
ca
parents: 218
diff changeset
   334
                )
ca
parents: 218
diff changeset
   335
            )
ca
parents: 218
diff changeset
   336
             #(#MenuItem
ca
parents: 218
diff changeset
   337
                #'label:' 'createSeparator'
ca
parents: 218
diff changeset
   338
                #'value:' #doCreateSep
ca
parents: 218
diff changeset
   339
                #'enabled:' #hasAnySingleSelection
ca
parents: 218
diff changeset
   340
                #'labelImage:' 
ca
parents: 218
diff changeset
   341
                 #(#ResourceRetriever
ca
parents: 218
diff changeset
   342
                    #MenuEditor #iconCreateSep
ca
parents: 218
diff changeset
   343
                )
ca
parents: 218
diff changeset
   344
            )
ca
parents: 218
diff changeset
   345
             #(#MenuItem
ca
parents: 218
diff changeset
   346
                #'label:' ''
ca
parents: 218
diff changeset
   347
            )
ca
parents: 218
diff changeset
   348
             #(#MenuItem
ca
parents: 218
diff changeset
   349
                #'label:' 'stepUp'
ca
parents: 218
diff changeset
   350
                #'value:' #doStepUp
ca
parents: 218
diff changeset
   351
                #'enabled:' #enabledStepOver
ca
parents: 218
diff changeset
   352
                #'labelImage:' 
ca
parents: 218
diff changeset
   353
                 #(#ResourceRetriever
ca
parents: 218
diff changeset
   354
                    #MenuEditor #iconStepUp
ca
parents: 218
diff changeset
   355
                )
ca
parents: 218
diff changeset
   356
            )
ca
parents: 218
diff changeset
   357
             #(#MenuItem
ca
parents: 218
diff changeset
   358
                #'label:' 'stepDown'
ca
parents: 218
diff changeset
   359
                #'value:' #doStepDown
ca
parents: 218
diff changeset
   360
                #'enabled:' #enabledStepOver
ca
parents: 218
diff changeset
   361
                #'labelImage:' 
ca
parents: 218
diff changeset
   362
                 #(#ResourceRetriever
ca
parents: 218
diff changeset
   363
                    #MenuEditor #iconStepDown
ca
parents: 218
diff changeset
   364
                )
ca
parents: 218
diff changeset
   365
            )
ca
parents: 218
diff changeset
   366
             #(#MenuItem
ca
parents: 218
diff changeset
   367
                #'label:' 'stepIn'
ca
parents: 218
diff changeset
   368
                #'value:' #doStepIn
ca
parents: 218
diff changeset
   369
                #'enabled:' #enabledStepIn
ca
parents: 218
diff changeset
   370
                #'labelImage:' 
ca
parents: 218
diff changeset
   371
                 #(#ResourceRetriever
ca
parents: 218
diff changeset
   372
                    #MenuEditor #iconStepIn
ca
parents: 218
diff changeset
   373
                )
ca
parents: 218
diff changeset
   374
            )
ca
parents: 218
diff changeset
   375
             #(#MenuItem
ca
parents: 218
diff changeset
   376
                #'label:' 'stepOut'
ca
parents: 218
diff changeset
   377
                #'value:' #doStepOut
ca
parents: 218
diff changeset
   378
                #'enabled:' #enabledStepOut
ca
parents: 218
diff changeset
   379
                #'labelImage:' 
ca
parents: 218
diff changeset
   380
                 #(#ResourceRetriever
ca
parents: 218
diff changeset
   381
                    #MenuEditor #iconStepOut
ca
parents: 218
diff changeset
   382
                )
ca
parents: 218
diff changeset
   383
            )
ca
parents: 218
diff changeset
   384
          ) nil
ca
parents: 218
diff changeset
   385
          nil
ca
parents: 218
diff changeset
   386
      )
ca
parents: 218
diff changeset
   387
!
ca
parents: 218
diff changeset
   388
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   389
menuDefaultLink
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   390
    "this window spec was automatically generated by the ST/X MenuEditor"
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   391
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   392
    "do not manually edit this - the builder may not be able to
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   393
     handle the specification if its corrupted."
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   394
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   395
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   396
     MenuEditor new openOnClass:MenuEditor andSelector:#menuDefaultLink
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   397
     (Menu new fromLiteralArrayEncoding:(MenuEditor menuDefaultLink)) startUp
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   398
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   399
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   400
    <resource: #menu>
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   401
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   402
    ^
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   403
     
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   404
       #(#Menu
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   405
          
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   406
           #(
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   407
             #(#MenuItem
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   408
                #'label:' '!! derives from application !!'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   409
            )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   410
          ) nil
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   411
          nil
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   412
      )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   413
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   414
220
ca
parents: 218
diff changeset
   415
menuPainter
ca
parents: 218
diff changeset
   416
    "this window spec was automatically generated by the ST/X MenuEditor"
ca
parents: 218
diff changeset
   417
ca
parents: 218
diff changeset
   418
    "do not manually edit this - the builder may not be able to
ca
parents: 218
diff changeset
   419
     handle the specification if its corrupted."
ca
parents: 218
diff changeset
   420
ca
parents: 218
diff changeset
   421
    "
ca
parents: 218
diff changeset
   422
     MenuEditor new openOnClass:MenuEditor andSelector:#menuPainter
ca
parents: 218
diff changeset
   423
     (Menu new fromLiteralArrayEncoding:(MenuEditor menuPainter)) startUp
ca
parents: 218
diff changeset
   424
    "
ca
parents: 218
diff changeset
   425
ca
parents: 218
diff changeset
   426
    <resource: #menu>
ca
parents: 218
diff changeset
   427
ca
parents: 218
diff changeset
   428
    ^
ca
parents: 218
diff changeset
   429
     
ca
parents: 218
diff changeset
   430
       #(#Menu
ca
parents: 218
diff changeset
   431
          
ca
parents: 218
diff changeset
   432
           #(
ca
parents: 218
diff changeset
   433
             #(#MenuItem
ca
parents: 218
diff changeset
   434
                #'label:' 'copy'
ca
parents: 218
diff changeset
   435
                #'value:' #doCopy
ca
parents: 218
diff changeset
   436
                #'enabled:' #hasValidSelection
ca
parents: 218
diff changeset
   437
            )
ca
parents: 218
diff changeset
   438
             #(#MenuItem
ca
parents: 218
diff changeset
   439
                #'label:' 'cut'
ca
parents: 218
diff changeset
   440
                #'value:' #doCut
ca
parents: 218
diff changeset
   441
                #'enabled:' #hasValidSelection
ca
parents: 218
diff changeset
   442
            )
ca
parents: 218
diff changeset
   443
             #(#MenuItem
ca
parents: 218
diff changeset
   444
                #'label:' 'paste'
ca
parents: 218
diff changeset
   445
                #'value:' #doPaste
ca
parents: 218
diff changeset
   446
                #'enabled:' #hasAnySingleSelection
ca
parents: 218
diff changeset
   447
            )
ca
parents: 218
diff changeset
   448
             #(#MenuItem
ca
parents: 218
diff changeset
   449
                #'label:' '-'
ca
parents: 218
diff changeset
   450
            )
ca
parents: 218
diff changeset
   451
             #(#MenuItem
ca
parents: 218
diff changeset
   452
                #'label:' 'create'
ca
parents: 218
diff changeset
   453
                #'enabled:' #hasAnySingleSelection
ca
parents: 218
diff changeset
   454
                #'submenu:' 
ca
parents: 218
diff changeset
   455
                 #(#Menu
ca
parents: 218
diff changeset
   456
                    
ca
parents: 218
diff changeset
   457
                     #(
ca
parents: 218
diff changeset
   458
                       #(#MenuItem
ca
parents: 218
diff changeset
   459
                          #'label:' 'submenu static'
ca
parents: 218
diff changeset
   460
                          #'value:' #doCreateMenu
ca
parents: 218
diff changeset
   461
                          #'labelImage:' 
ca
parents: 218
diff changeset
   462
                           #(#ResourceRetriever
ca
parents: 218
diff changeset
   463
                              #MenuEditor #iconCreateMenu
ca
parents: 218
diff changeset
   464
                              'submenu static'
ca
parents: 218
diff changeset
   465
                          )
ca
parents: 218
diff changeset
   466
                      )
ca
parents: 218
diff changeset
   467
                       #(#MenuItem
ca
parents: 218
diff changeset
   468
                          #'label:' 'submenu dynamic'
ca
parents: 218
diff changeset
   469
                          #'value:' #doCreateLink
ca
parents: 218
diff changeset
   470
                          #'labelImage:' 
ca
parents: 218
diff changeset
   471
                           #(#ResourceRetriever
ca
parents: 218
diff changeset
   472
                              #MenuEditor #iconCreateLink
ca
parents: 218
diff changeset
   473
                              'submenu dynamic'
ca
parents: 218
diff changeset
   474
                          )
ca
parents: 218
diff changeset
   475
                      )
ca
parents: 218
diff changeset
   476
                       #(#MenuItem
ca
parents: 218
diff changeset
   477
                          #'label:' '-'
ca
parents: 218
diff changeset
   478
                      )
ca
parents: 218
diff changeset
   479
                       #(#MenuItem
ca
parents: 218
diff changeset
   480
                          #'label:' 'item'
ca
parents: 218
diff changeset
   481
                          #'value:' #doCreateItem
ca
parents: 218
diff changeset
   482
                          #'labelImage:' 
ca
parents: 218
diff changeset
   483
                           #(#ResourceRetriever
ca
parents: 218
diff changeset
   484
                              #MenuEditor #iconCreateItem
ca
parents: 218
diff changeset
   485
                              'item'
ca
parents: 218
diff changeset
   486
                          )
ca
parents: 218
diff changeset
   487
                      )
ca
parents: 218
diff changeset
   488
                       #(#MenuItem
ca
parents: 218
diff changeset
   489
                          #'label:' 'separator'
ca
parents: 218
diff changeset
   490
                          #'value:' #doCreateSep
ca
parents: 218
diff changeset
   491
                          #'labelImage:' 
ca
parents: 218
diff changeset
   492
                           #(#ResourceRetriever
ca
parents: 218
diff changeset
   493
                              #MenuEditor #iconCreateSep
ca
parents: 218
diff changeset
   494
                              'separator'
ca
parents: 218
diff changeset
   495
                          )
ca
parents: 218
diff changeset
   496
                      )
ca
parents: 218
diff changeset
   497
                    ) nil
ca
parents: 218
diff changeset
   498
                    nil
ca
parents: 218
diff changeset
   499
                )
ca
parents: 218
diff changeset
   500
            )
ca
parents: 218
diff changeset
   501
          ) nil
ca
parents: 218
diff changeset
   502
          nil
ca
parents: 218
diff changeset
   503
      )
ca
parents: 218
diff changeset
   504
!
ca
parents: 218
diff changeset
   505
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   506
menuPullDown
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   507
    "this window spec was automatically generated by the ST/X MenuEditor"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   508
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   509
    "do not manually edit this - the builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   510
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   511
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   512
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   513
     MenuEditor new openOnClass:MenuEditor andSelector:#menuPullDown
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   514
     (Menu new fromLiteralArrayEncoding:(MenuEditor menuPullDown)) startUp
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   515
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   516
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   517
    <resource: #menu>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   518
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   519
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   520
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   521
       #(#Menu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   522
          
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   523
           #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   524
             #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   525
                #'label:' 'file'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   526
                #'value:' #file
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   527
                #'submenu:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   528
                 #(#Menu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   529
                    
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   530
                     #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   531
                       #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   532
                          #'label:' 'new'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   533
                          #'value:' #doNew
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   534
                      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   535
                       #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   536
                          #'label:' 'from class ...'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   537
                          #'value:' #doFromClass
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   538
                          #'enabled:' #isOwnerOfHelpTool
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   539
                      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   540
                       #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   541
                          #'label:' 'pick a menu'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   542
                          #'value:' #doPickAMenu
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   543
                          #'enabled:' #isOwnerOfHelpTool
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   544
                      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   545
                       #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   546
                          #'label:' '='
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   547
                      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   548
                       #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   549
                          #'label:' 'quit'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   550
                          #'value:' #closeRequest
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   551
                      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   552
                    ) nil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   553
                    nil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   554
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   555
            )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   556
             #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   557
                #'label:' 'code'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   558
                #'value:' #code
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   559
                #'submenu:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   560
                 #(#Menu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   561
                    
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   562
                     #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   563
                       #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   564
                          #'label:' 'class'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   565
                          #'value:' #doDefineClass
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   566
                          #'enabled:' #isOwnerOfHelpTool
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   567
                      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   568
                       #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   569
                          #'label:' '-'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   570
                      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   571
                       #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   572
                          #'label:' 'install window spec.'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   573
                          #'value:' #doInstallSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   574
                      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   575
                       #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   576
                          #'label:' 'install help spec.'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   577
                          #'value:' #doInstallHelp
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   578
                          #'enabled:' #isOwnerOfHelpTool
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   579
                      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   580
                       #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   581
                          #'label:' '='
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   582
                      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   583
                       #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   584
                          #'label:' 'browse application'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   585
                          #'value:' #doBrowseAppClass
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   586
                      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   587
                    ) nil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   588
                    nil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   589
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   590
            )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   591
             #(#MenuItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   592
                #'label:' 'test'
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   593
                #'submenuChannel:' #submenuTest
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   594
            )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   595
          ) nil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   596
          nil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   597
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   598
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   599
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   600
windowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   601
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   602
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   603
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   604
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   605
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   606
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   607
     UIPainter new openOnClass:MenuEditor andSelector:#windowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   608
     MenuEditor new openInterface:#windowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   609
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   610
    "MenuEditor open"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   611
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   612
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   613
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   614
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   615
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   616
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   617
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   618
           #(#WindowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   619
              #'name:' 'uIPainterView'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   620
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   621
              #'label:' 'Menu Builder'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   622
              #'bounds:' #(#Rectangle 0 0 580 384)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   623
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   624
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   625
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   626
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   627
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   628
                 #(#ArbitraryComponentSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   629
                    #'name:' 'painterView'
220
ca
parents: 218
diff changeset
   630
                    #'layout:' #(#LayoutFrame 0 0.0 57 0 0 0.5 0 1.0)
ca
parents: 218
diff changeset
   631
                    #'menu:' #menuPainter
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   632
                    #'hasHorizontalScrollBar:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   633
                    #'hasVerticalScrollBar:' true
220
ca
parents: 218
diff changeset
   634
                    #'component:' #painter
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   635
                    #'hasBorder:' false
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   636
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   637
                 #(#NoteBookViewSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   638
                    #'name:' 'specificationView'
220
ca
parents: 218
diff changeset
   639
                    #'layout:' #(#LayoutFrame 0 0.5 0 0.0 0 1.0 -25 1.0)
ca
parents: 218
diff changeset
   640
                    #'tabable:' true
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   641
                    #'menu:' #tabList
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   642
                    #'model:' #tabModel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   643
                    #'tabWidget:' #Window
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   644
                    #'useIndex:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   645
                    #'canvas:' #tabCanvas
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   646
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   647
                 #(#HorizontalPanelViewSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   648
                    #'name:' 'confirmationPanel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   649
                    #'layout:' #(#LayoutFrame 0 0.5 -24 1.0 0 1.0 0 1.0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   650
                    #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   651
                     #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   652
                        #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   653
                         #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   654
                           #(#ActionButtonSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   655
                              #'name:' 'cancelButton'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   656
                              #'label:' 'cancel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   657
                              #'model:' #cancel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   658
                              #'enableChannel:' #modifiedChannel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   659
                              #'extent:' #(#Point 140 24)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   660
                          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   661
                           #(#ActionButtonSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   662
                              #'name:' 'acceptButton'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   663
                              #'label:' 'ok'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   664
                              #'model:' #accept
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   665
                              #'enableChannel:' #modifiedChannel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   666
                              #'extent:' #(#Point 141 24)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   667
                          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   668
                        )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   669
                    )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   670
                    #'horizontalLayout:' #fitSpace
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   671
                    #'verticalLayout:' #fit
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   672
                    #'horizontalSpace:' 3
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   673
                    #'verticalSpace:' 3
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   674
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   675
                 #(#MenuPanelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   676
                    #'name:' 'pullDownMenu'
220
ca
parents: 218
diff changeset
   677
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 0.5 24 0)
ca
parents: 218
diff changeset
   678
                    #'tabable:' true
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   679
                    #'menu:' #menuPullDown
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   680
                )
220
ca
parents: 218
diff changeset
   681
                 #(#MenuPanelSpec
ca
parents: 218
diff changeset
   682
                    #'name:' 'menuPanel1'
ca
parents: 218
diff changeset
   683
                    #'layout:' #(#LayoutFrame 0 0 28 0 0 0.5 53 0)
ca
parents: 218
diff changeset
   684
                    #'menu:' #menuButtons
ca
parents: 218
diff changeset
   685
                    #'showSeparatingLines:' true
ca
parents: 218
diff changeset
   686
                )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   687
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   688
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   689
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   690
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   691
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   692
!MenuEditor class methodsFor:'slices'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   693
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   694
slicesItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   695
    ^#(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   696
            (Basics     basicsItemSpec)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   697
            (Details    detailsEditSpec)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   698
            (Misc       miscEditSpec)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   699
            (Help       help)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   700
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   701
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   702
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   703
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   704
slicesLink
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   705
    ^#(
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   706
            (Basics     basicsLinkSpec)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   707
            (Details    detailsEditSpec)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   708
            (Misc       miscEditSpec)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   709
            (Help       help)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   710
      )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   711
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   712
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   713
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   714
slicesMenu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   715
    ^#(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   716
            (Basics     basicsMenuSpec)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   717
            (Details    detailsEditSpec)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   718
            (Misc       miscEditSpec)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   719
            (Help       help)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   720
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   721
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   722
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   723
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   724
slicesRootMenu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   725
    ^#(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   726
            (Basics   basicsRootSpec)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   727
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   728
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   729
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   730
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   731
slicesSeparatorMenu
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   732
    ^#(
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   733
            (Basics   basicsSeparatorSpec)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   734
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   735
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   736
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   737
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   738
!MenuEditor class methodsFor:'specs'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   739
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   740
basicsItemSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   741
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   742
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   743
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   744
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   745
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   746
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   747
     UIPainter new openOnClass:MenuEditor andSelector:#basicsItemSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   748
     MenuEditor new openInterface:#basicsItemSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   749
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   750
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   751
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   752
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   753
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   754
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   755
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   756
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   757
           #(#WindowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   758
              #'name:' 'uIPainterView'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   759
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   760
              #'label:' 'unnamed canvas'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   761
              #'bounds:' #(#Rectangle 0 0 267 319)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   762
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   763
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   764
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   765
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   766
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   767
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   768
                    #'name:' 'nameKeyLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   769
                    #'layout:' #(#AlignmentOrigin 87 0 26 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   770
                    #'label:' 'NameKey:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   771
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   772
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   773
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   774
                    #'name:' 'itemNameKey'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   775
                    #'layout:' #(#LayoutFrame 91 0 15 0 -5 1.0 37 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   776
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   777
                    #'model:' #nameKey
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   778
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   779
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   780
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   781
                    #'name:' 'labelLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   782
                    #'layout:' #(#AlignmentOrigin 87 0 53 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   783
                    #'label:' 'Label'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   784
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   785
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   786
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   787
                    #'name:' 'itemLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   788
                    #'layout:' #(#LayoutFrame 91 0 42 0 -5 1.0 64 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   789
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   790
                    #'model:' #label
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   791
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   792
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   793
                    #'name:' 'valueLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   794
                    #'layout:' #(#AlignmentOrigin 87 0 79 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   795
                    #'label:' 'Value:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   796
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   797
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   798
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   799
                    #'name:' 'itemValue'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   800
                    #'layout:' #(#LayoutFrame 91 0 68 0 -5 1.0 90 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   801
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   802
                    #'model:' #value
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   803
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   804
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   805
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   806
                    #'name:' 'indicationLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   807
                    #'layout:' #(#AlignmentOrigin 87 0 139 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   808
                    #'label:' 'Indication:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   809
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   810
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   811
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   812
                    #'name:' 'indicationValue'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   813
                    #'layout:' #(#LayoutFrame 91 0 128 0 -5 1.0 150 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   814
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   815
                    #'model:' #indication
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   816
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   817
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   818
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   819
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   820
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   821
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   822
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   823
basicsLinkSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   824
    "this window spec was automatically generated by the ST/X UIPainter"
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   825
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   826
    "do not manually edit this - the painter/builder may not be able to
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   827
     handle the specification if its corrupted."
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   828
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   829
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   830
     UIPainter new openOnClass:MenuEditor andSelector:#basicsLinkSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   831
     MenuEditor new openInterface:#basicsLinkSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   832
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   833
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   834
    <resource: #canvas>
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   835
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   836
    ^
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   837
     
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   838
       #(#FullSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   839
          #'window:' 
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   840
           #(#WindowSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   841
              #'name:' 'uIPainterView'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   842
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   843
              #'label:' 'unnamed canvas'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   844
              #'bounds:' #(#Rectangle 0 0 267 319)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   845
          )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   846
          #'component:' 
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   847
           #(#SpecCollection
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   848
              #'collection:' 
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   849
               #(
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   850
                 #(#LabelSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   851
                    #'name:' 'nameKeyLabel'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   852
                    #'layout:' #(#AlignmentOrigin 87 0 26 0 1 0.5)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   853
                    #'label:' 'NameKey:'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   854
                    #'resizeForLabel:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   855
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   856
                 #(#InputFieldSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   857
                    #'name:' 'itemNameKey'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   858
                    #'layout:' #(#LayoutFrame 91 0 15 0 -5 1.0 37 0)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   859
                    #'tabable:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   860
                    #'model:' #nameKey
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   861
                    #'type:' #symbolOrNil
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   862
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   863
                 #(#LabelSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   864
                    #'name:' 'labelLabel'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   865
                    #'layout:' #(#AlignmentOrigin 87 0 53 0 1 0.5)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   866
                    #'label:' 'Label'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   867
                    #'resizeForLabel:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   868
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   869
                 #(#InputFieldSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   870
                    #'name:' 'itemLabel'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   871
                    #'layout:' #(#LayoutFrame 91 0 42 0 -5 1.0 64 0)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   872
                    #'tabable:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   873
                    #'model:' #label
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   874
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   875
                 #(#InputFieldSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   876
                    #'name:' 'submenuChannel'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   877
                    #'layout:' #(#LayoutFrame 91 0 69 0 -5 1.0 91 0)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   878
                    #'tabable:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   879
                    #'model:' #submenuChannel
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   880
                    #'type:' #symbolOrNil
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   881
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   882
                 #(#LabelSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   883
                    #'name:' 'menuLabel'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   884
                    #'layout:' #(#AlignmentOrigin 87 0 80 0 1 0.5)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   885
                    #'label:' 'Menu:'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   886
                    #'resizeForLabel:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   887
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   888
              )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   889
          )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   890
      )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   891
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   892
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   893
basicsMenuSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   894
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   895
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   896
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   897
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   898
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   899
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   900
     UIPainter new openOnClass:MenuEditor andSelector:#basicsMenuSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   901
     MenuEditor new openInterface:#basicsMenuSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   902
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   903
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   904
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   905
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   906
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   907
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   908
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   909
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   910
           #(#WindowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   911
              #'name:' 'uIPainterView'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   912
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   913
              #'label:' 'unnamed canvas'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   914
              #'bounds:' #(#Rectangle 0 0 267 319)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   915
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   916
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   917
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   918
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   919
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   920
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   921
                    #'name:' 'nameKeyLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   922
                    #'layout:' #(#AlignmentOrigin 87 0 26 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   923
                    #'label:' 'NameKey:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   924
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   925
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   926
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   927
                    #'name:' 'itemNameKey'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   928
                    #'layout:' #(#LayoutFrame 91 0 15 0 -5 1.0 37 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   929
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   930
                    #'model:' #nameKey
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   931
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   932
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   933
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   934
                    #'name:' 'labelLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   935
                    #'layout:' #(#AlignmentOrigin 87 0 53 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   936
                    #'label:' 'Label'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   937
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   938
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   939
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   940
                    #'name:' 'itemLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   941
                    #'layout:' #(#LayoutFrame 91 0 42 0 -5 1.0 64 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   942
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   943
                    #'model:' #label
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   944
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   945
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   946
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   947
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   948
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   949
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   950
basicsRootSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   951
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   952
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   953
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   954
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   955
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   956
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   957
     UIPainter new openOnClass:MenuEditor andSelector:#basicsRootSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   958
     MenuEditor new openInterface:#basicsRootSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   959
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   960
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   961
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   962
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   963
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   964
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   965
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   966
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   967
           #(#WindowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   968
              #'name:' 'uIPainterView'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   969
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   970
              #'label:' 'unnamed canvas'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   971
              #'bounds:' #(#Rectangle 0 0 267 319)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   972
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   973
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   974
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   975
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   976
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   977
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   978
                    #'name:' 'selectorLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   979
                    #'layout:' #(#AlignmentOrigin 78 0 53 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   980
                    #'label:' 'Selector:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   981
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   982
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   983
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   984
                    #'name:' 'selector'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   985
                    #'layout:' #(#LayoutFrame 82 0 42 0 -14 1.0 64 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   986
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   987
                    #'model:' #label
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   988
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   989
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   990
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   991
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   992
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   993
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   994
basicsSeparatorSpec
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   995
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   996
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   997
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   998
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   999
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1000
    "
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1001
     UIPainter new openOnClass:MenuEditor andSelector:#basicsSeparatorSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1002
     MenuEditor new openInterface:#basicsSeparatorSpec
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1003
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1004
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1005
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1006
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1007
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1008
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1009
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1010
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1011
           #(#WindowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1012
              #'name:' 'uIPainterView'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1013
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1014
              #'label:' 'unnamed canvas'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1015
              #'bounds:' #(#Rectangle 0 0 267 319)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1016
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1017
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1018
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1019
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1020
               #(
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1021
                 #(#LabelSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1022
                    #'name:' 'separatorLabel'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1023
                    #'layout:' #(#AlignmentOrigin 127 0 22 0 1 0.5)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1024
                    #'label:' 'Separator Type:'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1025
                    #'resizeForLabel:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1026
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1027
                 #(#ComboListSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1028
                    #'name:' 'comboList1'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1029
                    #'layout:' #(#LayoutFrame 132 0 11 0 -6 1.0 33 0)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1030
                    #'model:' #seperatorSelection
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1031
                    #'useIndex:' false
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1032
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1033
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1034
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1035
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1036
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1037
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1038
detailsEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1039
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1040
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1041
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1042
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1043
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1044
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1045
     UIPainter new openOnClass:MenuEditor andSelector:#detailsEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1046
     MenuEditor new openInterface:#detailsEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1047
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1048
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1049
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1050
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1051
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1052
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1053
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1054
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1055
           #(#WindowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1056
              #'name:' 'uIPainterView'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1057
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1058
              #'label:' 'unnamed canvas'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1059
              #'bounds:' #(#Rectangle 0 0 259 288)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1060
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1061
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1062
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1063
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1064
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1065
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1066
                    #'name:' 'enabledLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1067
                    #'layout:' #(#AlignmentOrigin 87 0 59 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1068
                    #'label:' 'Enabled:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1069
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1070
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1071
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1072
                    #'name:' 'enabled'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1073
                    #'layout:' #(#LayoutFrame 91 0 48 0 -5 1.0 70 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1074
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1075
                    #'model:' #enabled
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1076
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1077
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1078
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1079
                    #'name:' 'shortcutKeyLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1080
                    #'layout:' #(#AlignmentOrigin 87 0 33 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1081
                    #'label:' 'Accelerator:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1082
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1083
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1084
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1085
                    #'name:' 'accelerator'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1086
                    #'layout:' #(#LayoutFrame 91 0 22 0 -5 1.0 44 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1087
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1088
                    #'model:' #shortcutKey
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1089
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1090
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1091
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1092
                    #'name:' 'accessCharPosLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1093
                    #'layout:' #(#AlignmentOrigin 181 0 127 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1094
                    #'label:' 'Access Character Position:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1095
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1096
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1097
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1098
                    #'name:' 'accessCharaterPos'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1099
                    #'layout:' #(#LayoutFrame 184 0 116 0 -5 1.0 138 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1100
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1101
                    #'model:' #accessCharaterPos
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1102
                    #'type:' #numberOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1103
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1104
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1105
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1106
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1107
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1108
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1109
miscEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1110
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1111
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1112
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1113
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1114
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1115
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1116
     UIPainter new openOnClass:MenuEditor andSelector:#miscEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1117
     MenuEditor new openInterface:#miscEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1118
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1119
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1120
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1121
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1122
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1123
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1124
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1125
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1126
           #(#WindowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1127
              #'name:' 'uIPainterView'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1128
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1129
              #'label:' 'unnamed canvas'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1130
              #'bounds:' #(#Rectangle 0 0 245 142)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1131
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1132
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1133
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1134
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1135
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1136
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1137
                    #'name:' 'retrieverLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1138
                    #'layout:' #(#AlignmentOrigin 77 0 26 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1139
                    #'label:' 'Retriever:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1140
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1141
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1142
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1143
                    #'name:' 'retriever'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1144
                    #'layout:' #(#LayoutFrame 81 0 15 0 -8 1.0 37 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1145
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1146
                    #'model:' #retriever
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1147
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1148
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1149
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1150
                    #'name:' 'iconLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1151
                    #'layout:' #(#AlignmentOrigin 77 0 50 0 1 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1152
                    #'label:' 'Icon:'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1153
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1154
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1155
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1156
                    #'name:' 'icon'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1157
                    #'layout:' #(#LayoutFrame 81 0 39 0 -8 1.0 61 0)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1158
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1159
                    #'model:' #icon
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1160
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1161
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1162
                 #(#CheckBoxSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1163
                    #'name:' 'iconAndLabel'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1164
                    #'layout:' #(#AlignmentOrigin 15 0 100 0 0 0.5)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1165
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1166
                    #'model:' #iconAndLabel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1167
                    #'label:' 'Icon & Label'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1168
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1169
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1170
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1171
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1172
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1173
209
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1174
!MenuEditor class methodsFor:'startup'!
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1175
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1176
openModalOnClass:aClass andSelector:aSelector
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1177
    ^ self new openModalOnClass:aClass andSelector:aSelector
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1178
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1179
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1180
!
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1181
209
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1182
openOnClass:aClass andSelector:aSelector
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1183
    ^ self new openOnClass:aClass andSelector:aSelector
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1184
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1185
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1186
! !
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1187
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1188
!MenuEditor methodsFor:'accessing'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1189
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1190
menuDefaultLink
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1191
    ^ self class menuDefaultLink
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1192
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1193
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1194
specClass
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1195
    ^ specClass
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1196
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1197
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1198
specClass:aClass
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1199
    aClass isBehavior ifTrue:[specClass := aClass name]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1200
                     ifFalse:[specClass := aClass].
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1201
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1202
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1203
submenuTest
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1204
    "returns submenu assigned to item test
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1205
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1206
    |menu|
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1207
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1208
    menu := self painter asMenu.
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1209
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1210
    menu allItemsDo:[:anItem|
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1211
        anItem value:nil.
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1212
        anItem enabled:true.
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1213
    ].
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1214
  ^ menu
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1215
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1216
220
ca
parents: 218
diff changeset
  1217
!MenuEditor methodsFor:'accessing menu'!
ca
parents: 218
diff changeset
  1218
ca
parents: 218
diff changeset
  1219
menuButtons
ca
parents: 218
diff changeset
  1220
    "this window spec was automatically generated by the ST/X MenuEditor"
ca
parents: 218
diff changeset
  1221
ca
parents: 218
diff changeset
  1222
    ^ self class menuButtons
ca
parents: 218
diff changeset
  1223
ca
parents: 218
diff changeset
  1224
ca
parents: 218
diff changeset
  1225
!
ca
parents: 218
diff changeset
  1226
ca
parents: 218
diff changeset
  1227
menuPainter
ca
parents: 218
diff changeset
  1228
    "this window spec was automatically generated by the ST/X MenuEditor"
ca
parents: 218
diff changeset
  1229
ca
parents: 218
diff changeset
  1230
    ^ self class menuPainter
ca
parents: 218
diff changeset
  1231
ca
parents: 218
diff changeset
  1232
ca
parents: 218
diff changeset
  1233
! !
ca
parents: 218
diff changeset
  1234
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1235
!MenuEditor methodsFor:'actions'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1236
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1237
accept
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1238
    "automatically generated by UIPainter ..."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1239
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1240
    |node cont|
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1241
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1242
    node := self painter selectedNode.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1243
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1244
    node notNil ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1245
        self isHelpToolSelected ifTrue:[
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1246
            self activeHelpTool accept
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1247
        ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1248
        cont := node contents buildFromAspects:aspects.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1249
        self painter selectedNodeChanged
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1250
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1251
    self modifiedChannel value:false.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1252
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1253
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1254
cancel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1255
    |node|
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1256
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1257
    (node := self painter selectedNode) notNil ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1258
        aspects do:[:anAspect| anAspect value:nil ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1259
        node contents toAspects:aspects.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1260
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1261
    self modifiedChannel value:false.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1262
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1263
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1264
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1265
!MenuEditor methodsFor:'active help'!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1266
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1267
activeHelpTool
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1268
    "access current active help editor
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1269
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1270
    activeHelpTool isNil ifTrue:[
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1271
        self activeHelpTool:(UIHelpTool new)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1272
    ].
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1273
  ^ activeHelpTool
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1274
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1275
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1276
activeHelpTool:anApplication
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1277
    "change current active help editor
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1278
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1279
    activeHelpTool := anApplication.
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1280
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1281
    activeHelpTool masterApplication isNil ifTrue:[
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1282
        activeHelpTool masterApplication:self.
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1283
    ].
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1284
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1285
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1286
isOwnerOfHelpTool
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1287
    "returns true in case of owner of the helptool
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1288
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1289
  ^ self activeHelpTool masterApplication == self
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1290
! !
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1291
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1292
!MenuEditor methodsFor:'aspects'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1293
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1294
aspectFor:aKey
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1295
    "returns aspect for a key or nil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1296
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1297
  ^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1298
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1299
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1300
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1301
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1302
enabledStepIn
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1303
    |holder|
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1304
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1305
    (holder := builder bindingAt:#enabledStepIn) isNil ifTrue:[
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1306
        builder aspectAt:#enabledStepIn put:(holder :=  false asValue).
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1307
    ].
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1308
    ^ holder
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1309
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1310
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1311
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1312
enabledStepOut
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1313
    |holder|
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1314
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1315
    (holder := builder bindingAt:#enabledStepOut) isNil ifTrue:[
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1316
        builder aspectAt:#enabledStepOut put:(holder :=  false asValue).
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1317
    ].
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1318
    ^ holder
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1319
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1320
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1321
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1322
enabledStepOver
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1323
    |holder|
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1324
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1325
    (holder := builder bindingAt:#enabledStepOver) isNil ifTrue:[
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1326
        builder aspectAt:#enabledStepOver put:(holder :=  false asValue).
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1327
    ].
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1328
    ^ holder
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1329
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1330
220
ca
parents: 218
diff changeset
  1331
hasAnySingleSelection
ca
parents: 218
diff changeset
  1332
    |holder|
ca
parents: 218
diff changeset
  1333
ca
parents: 218
diff changeset
  1334
    (holder := builder bindingAt:#hasAnySingleSelection) isNil ifTrue:[
ca
parents: 218
diff changeset
  1335
        builder aspectAt:#hasAnySingleSelection put:(holder :=  false asValue).
ca
parents: 218
diff changeset
  1336
    ].
ca
parents: 218
diff changeset
  1337
    ^ holder
ca
parents: 218
diff changeset
  1338
ca
parents: 218
diff changeset
  1339
!
ca
parents: 218
diff changeset
  1340
ca
parents: 218
diff changeset
  1341
hasValidSelection
ca
parents: 218
diff changeset
  1342
    |holder|
ca
parents: 218
diff changeset
  1343
ca
parents: 218
diff changeset
  1344
    (holder := builder bindingAt:#hasValidSelection) isNil ifTrue:[
ca
parents: 218
diff changeset
  1345
        builder aspectAt:#hasValidSelection put:(holder :=  false asValue).
ca
parents: 218
diff changeset
  1346
    ].
ca
parents: 218
diff changeset
  1347
    ^ holder
ca
parents: 218
diff changeset
  1348
ca
parents: 218
diff changeset
  1349
!
ca
parents: 218
diff changeset
  1350
ca
parents: 218
diff changeset
  1351
hasValidSingleSelection
ca
parents: 218
diff changeset
  1352
    |holder|
ca
parents: 218
diff changeset
  1353
ca
parents: 218
diff changeset
  1354
    (holder := builder bindingAt:#hasValidSingleSelection) isNil ifTrue:[
ca
parents: 218
diff changeset
  1355
        builder aspectAt:#hasValidSingleSelection put:(holder :=  false asValue).
ca
parents: 218
diff changeset
  1356
    ].
ca
parents: 218
diff changeset
  1357
    ^ holder
ca
parents: 218
diff changeset
  1358
ca
parents: 218
diff changeset
  1359
!
ca
parents: 218
diff changeset
  1360
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1361
menuPullDown
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1362
    |menu|
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1363
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1364
    menu := Menu new.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1365
    menu fromLiteralArrayEncoding:(self class menuPullDown).
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1366
    menu receiver:self.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1367
  ^ menu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1368
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1369
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1370
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1371
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1372
modifiedChannel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1373
    "automatically generated by UIPainter ..."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1374
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1375
    |holder|
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1376
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1377
    (holder := builder bindingAt:#modifiedChannel) isNil ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1378
        builder aspectAt:#modifiedChannel put:(holder :=  false asValue).
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1379
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1380
    ^ holder
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1381
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1382
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1383
tabCanvas
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1384
    "automatically generated by UIPainter ..."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1385
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1386
    |holder|
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1387
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1388
    (holder := builder bindingAt:#tabCanvas) isNil ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1389
        builder aspectAt:#tabCanvas put:(holder :=  SubCanvas new).
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1390
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1391
    ^ holder
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1392
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1393
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1394
tabList
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1395
    "automatically generated by UIPainter ..."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1396
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1397
    |holder|
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1398
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1399
    (holder := builder bindingAt:#tabList) isNil ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1400
        builder aspectAt:#tabList put:(holder := ValueHolder new)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1401
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1402
    ^ holder
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1403
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1404
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1405
tabModel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1406
    "automatically generated by UIPainter ..."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1407
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1408
    |holder|
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1409
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1410
    (holder := builder bindingAt:#tabModel) isNil ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1411
        holder := AspectAdaptor new subject:self; forAspect:#tabSelection.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1412
        builder aspectAt:#tabModel put:holder.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1413
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1414
    ^ holder
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1415
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1416
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1417
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1418
!MenuEditor methodsFor:'change & update'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1419
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1420
update:something with:aParameter from:changedObject
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1421
    "one of my models changed its value
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1422
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1423
    self modifiedChannel value:true
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1424
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1425
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1426
updateEnabledChannels
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1427
    "update enabled channels
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1428
    "
220
ca
parents: 218
diff changeset
  1429
    |node parent next painter state|
ca
parents: 218
diff changeset
  1430
ca
parents: 218
diff changeset
  1431
    painter := self painter.
ca
parents: 218
diff changeset
  1432
    node    := painter selectedNode.
ca
parents: 218
diff changeset
  1433
    state   := false.
ca
parents: 218
diff changeset
  1434
ca
parents: 218
diff changeset
  1435
    node notNil ifTrue:[
ca
parents: 218
diff changeset
  1436
        self hasAnySingleSelection value:true.
ca
parents: 218
diff changeset
  1437
ca
parents: 218
diff changeset
  1438
        (parent := node parent) notNil ifTrue:[
ca
parents: 218
diff changeset
  1439
            next := parent childAt:((parent indexOfChild:node) + 1).
ca
parents: 218
diff changeset
  1440
            self enabledStepIn           value:(next notNil and:[next hasChildren]).
ca
parents: 218
diff changeset
  1441
            self enabledStepOver         value:(parent children size > 1).
ca
parents: 218
diff changeset
  1442
            self enabledStepOut          value:(parent parent notNil).
ca
parents: 218
diff changeset
  1443
            self hasValidSingleSelection value:true.
ca
parents: 218
diff changeset
  1444
            self hasValidSelection       value:true.
ca
parents: 218
diff changeset
  1445
          ^ self
ca
parents: 218
diff changeset
  1446
        ]
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1447
    ] ifFalse:[
220
ca
parents: 218
diff changeset
  1448
        self hasAnySingleSelection value:false.
ca
parents: 218
diff changeset
  1449
ca
parents: 218
diff changeset
  1450
        painter numberOfSelections ~~ 0 ifTrue:[
ca
parents: 218
diff changeset
  1451
            state := (painter isInSelection:1) not
ca
parents: 218
diff changeset
  1452
        ]
ca
parents: 218
diff changeset
  1453
    ].
ca
parents: 218
diff changeset
  1454
    self enabledStepOver         value:false.
ca
parents: 218
diff changeset
  1455
    self enabledStepIn           value:false.
ca
parents: 218
diff changeset
  1456
    self enabledStepOut          value:false.
ca
parents: 218
diff changeset
  1457
    self hasValidSingleSelection value:false.
ca
parents: 218
diff changeset
  1458
    self hasValidSelection       value:state.
ca
parents: 218
diff changeset
  1459
! !
ca
parents: 218
diff changeset
  1460
ca
parents: 218
diff changeset
  1461
!MenuEditor methodsFor:'event handling'!
ca
parents: 218
diff changeset
  1462
ca
parents: 218
diff changeset
  1463
doesNotUnderstand:aMessage
ca
parents: 218
diff changeset
  1464
   |painter|
ca
parents: 218
diff changeset
  1465
ca
parents: 218
diff changeset
  1466
   painter := self painter.
ca
parents: 218
diff changeset
  1467
ca
parents: 218
diff changeset
  1468
   (painter respondsTo:(aMessage selector)) ifTrue:[
ca
parents: 218
diff changeset
  1469
        ^ aMessage sendTo:painter
ca
parents: 218
diff changeset
  1470
   ].
ca
parents: 218
diff changeset
  1471
   super doesNotUnderstand:aMessage
ca
parents: 218
diff changeset
  1472
ca
parents: 218
diff changeset
  1473
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1474
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1475
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1476
!MenuEditor methodsFor:'queries'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1477
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1478
isHelpToolSelected
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1479
    "returns true if current selection is help tool
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1480
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1481
    (slices notNil and:[tabSelection notNil]) ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1482
        ^ (slices at:tabSelection) last == #help
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1483
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1484
  ^ false
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1485
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1486
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1487
!MenuEditor methodsFor:'selection'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1488
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1489
menuChanged
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1490
    |node item slc sel|
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1491
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1492
    (node := self painter selectedNode) notNil ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1493
        aspects do:[:anAspect| anAspect value:nil ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1494
        item := node contents.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1495
        item toAspects:aspects.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1496
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1497
        item isSeparator ifFalse:[
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1498
            node parent isNil ifFalse:[
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1499
                node hasChildren ifTrue:[
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1500
                    slc := #slicesMenu
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1501
                ] ifFalse:[
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1502
                    item submenuChannel isNil ifTrue:[slc := #slicesItem]
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1503
                                             ifFalse:[slc := #slicesLink]
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1504
                ].
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1505
            ] ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1506
                slc := #slicesRootMenu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1507
            ]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1508
        ] ifTrue:[
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1509
            slc := #slicesSeparatorMenu
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1510
        ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1511
        slc := self class perform:slc.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1512
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1513
    self modifiedChannel value:false.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1514
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1515
    slc ~= slices  ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1516
        (slices := slc) notNil ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1517
            tabSelection notNil ifTrue:[sel := tabSelection min:(slices size)]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1518
                               ifFalse:[sel := 1].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1519
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1520
            self tabList value:(slices collect:[:s| s first]).
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1521
            self tabModel setValue:nil.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1522
            self tabModel value:sel.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1523
        ] ifFalse:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1524
            self tabList value:nil.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1525
            self tabSelection:nil.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1526
        ]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1527
    ].
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1528
    self updateEnabledChannels
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1529
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1530
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1531
tabSelection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1532
    ^ tabSelection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1533
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1534
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1535
tabSelection:aSelection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1536
    |tool sel|
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1537
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1538
    tabSelection == aSelection ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1539
        ^ self
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1540
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1541
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1542
    (tabSelection := aSelection) isNil ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1543
      ^ self tabCanvas client:nil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1544
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1545
    self isHelpToolSelected ifTrue:[
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1546
        self tabCanvas client:(tool := self activeHelpTool).
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1547
        tool model:(self aspectFor:#activeHelpKey)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1548
    ] ifFalse:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1549
        sel := (slices at:tabSelection) last.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1550
        self tabCanvas client:self spec:(self class perform:sel) builder:builder
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1551
    ]    
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1552
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1553
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1554
!MenuEditor methodsFor:'startup / release'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1555
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1556
buildFrom:aClass andSelector:aSelector
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1557
    |oldClass newClass helpTool|
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1558
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1559
    oldClass := self specClass.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1560
    self specClass:aClass.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1561
    newClass := self specClass.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1562
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1563
    (self isOwnerOfHelpTool and:[oldClass ~= newClass]) ifTrue:[
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1564
        self activeHelpTool helpSpecFrom:newClass
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1565
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1566
    self painter buildFrom:newClass andSelector:aSelector.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1567
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1568
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1569
initialize
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1570
    "initialize channels
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1571
    "
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1572
    |holder|
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1573
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1574
    super initialize.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1575
    aspects := IdentityDictionary new.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1576
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1577
    #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1578
        label
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1579
        accessCharaterPos
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1580
        submenuChannel
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1581
        activeHelpKey
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1582
        enabled
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1583
        value
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1584
        nameKey
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1585
        indication
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1586
        shortcutKey
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1587
        retriever
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1588
        iconAndLabel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1589
        icon
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1590
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1591
     ) do:[:aKey|
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1592
        aspects at:aKey put:(holder := ValueHolder new).
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1593
        holder addDependent:self.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1594
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1595
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1596
    aspects at:#seperatorSelection put:(holder := SelectionInList new).
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1597
    holder list:(Item separatorList).
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1598
    holder addDependent:self.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1599
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1600
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1601
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1602
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1603
openModalOnClass:aClass andSelector:aSelector
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1604
    specClass := Association key:aClass value:aSelector.
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1605
    super openInterfaceModal.
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1606
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1607
!
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1608
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1609
openOnClass:aClass andSelector:aSelector
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1610
    specClass := Association key:aClass value:aSelector.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1611
    super openInterface.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1612
    self buildFrom:aClass andSelector:aSelector.
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1613
209
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1614
!
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1615
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1616
postBuildWith:builder
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1617
    |cls sel|
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1618