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