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