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