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