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