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