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