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