MenuEditor.st
author ca
Sat, 26 Oct 2002 17:46:13 +0200
changeset 1634 1dd4cd7ea43b
parent 1633 24748704c741
child 1636 85ab98a850c8
permissions -rw-r--r--
can now specify if menu action is to be performed by originating widget (instead of application)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     1
"
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
     3
	      All Rights Reserved
199
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
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
     7
 inclusion of the above copyright notice. This software may not
199
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
1372
421b2a1f4b31 use #selectorsAndMethodsDo:
Claus Gittinger <cg@exept.de>
parents: 1365
diff changeset
    13
"{ Package: 'stx:libtool2' }"
421b2a1f4b31 use #selectorsAndMethodsDo:
Claus Gittinger <cg@exept.de>
parents: 1365
diff changeset
    14
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
    15
ResourceSpecEditor subclass:#MenuEditor
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    16
	instanceVariableNames:'selectionHolder tabHolder listOfItems listOfTabs
1618
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
    17
		selectedSuperItems notifyDisabledCounter wizards listOfItemsView
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
    18
		dropOverLine'
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
    19
	classVariableNames:'ImageRetrieverClasses'
220
ca
parents: 218
diff changeset
    20
	poolDictionaries:''
ca
parents: 218
diff changeset
    21
	category:'Interface-UIPainter'
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    22
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    23
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    24
HierarchicalItem subclass:#Item
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    25
	instanceVariableNames:'menuItem'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    26
	classVariableNames:''
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    27
	poolDictionaries:''
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    28
	privateIn:MenuEditor
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    29
!
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    30
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    31
MenuEditor::Item subclass:#ActionItem
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    32
	instanceVariableNames:''
1407
5b6ce9f1988e use #withAllSuperclassesDo:
Claus Gittinger <cg@exept.de>
parents: 1400
diff changeset
    33
	classVariableNames:''
5b6ce9f1988e use #withAllSuperclassesDo:
Claus Gittinger <cg@exept.de>
parents: 1400
diff changeset
    34
	poolDictionaries:''
5b6ce9f1988e use #withAllSuperclassesDo:
Claus Gittinger <cg@exept.de>
parents: 1400
diff changeset
    35
	privateIn:MenuEditor
5b6ce9f1988e use #withAllSuperclassesDo:
Claus Gittinger <cg@exept.de>
parents: 1400
diff changeset
    36
!
5b6ce9f1988e use #withAllSuperclassesDo:
Claus Gittinger <cg@exept.de>
parents: 1400
diff changeset
    37
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    38
MenuEditor::Item subclass:#LinkedMenuItem
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    39
	instanceVariableNames:''
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    40
	classVariableNames:''
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    41
	poolDictionaries:''
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    42
	privateIn:MenuEditor
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    43
!
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    44
1633
24748704c741 checkin from browser
ca
parents: 1632
diff changeset
    45
MenuEditor::Item subclass:#RegularMenuItem
1454
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    46
	instanceVariableNames:''
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    47
	classVariableNames:''
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    48
	poolDictionaries:''
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    49
	privateIn:MenuEditor
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    50
!
367b8342663e checkin from browser
Stefan Vogel <sv@exept.de>
parents: 1430
diff changeset
    51
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    52
ApplicationModel subclass:#ResourceEditor
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    53
	instanceVariableNames:'selectorHolder iconAndLabelHolder retrieverHolder imageHolder
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    54
		imageList imageViewer'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    55
	classVariableNames:''
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    56
	poolDictionaries:''
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    57
	privateIn:MenuEditor
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    58
!
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    59
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    60
HierarchicalItem subclass:#ResourceEditorItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    61
	instanceVariableNames:'selector icon'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    62
	classVariableNames:''
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    63
	poolDictionaries:''
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    64
	privateIn:MenuEditor
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    65
!
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    66
1633
24748704c741 checkin from browser
ca
parents: 1632
diff changeset
    67
MenuEditor::RegularMenuItem subclass:#RootItem
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    68
	instanceVariableNames:''
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    69
	classVariableNames:''
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    70
	poolDictionaries:''
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    71
	privateIn:MenuEditor
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    72
!
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    73
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    74
MenuEditor::Item subclass:#SeparatorItem
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    75
	instanceVariableNames:''
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    76
	classVariableNames:''
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    77
	poolDictionaries:''
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    78
	privateIn:MenuEditor
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    79
!
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
    80
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    81
!MenuEditor class methodsFor:'documentation'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    82
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    83
copyright
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    84
"
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
    85
 COPYRIGHT (c) 1997 by eXept Software AG
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
    86
	      All Rights Reserved
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    87
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    88
 This software is furnished under a license and may be used
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    89
 only in accordance with the terms of that license and with the
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
    90
 inclusion of the above copyright notice. This software may not
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    91
 be provided or otherwise made available to, or used by, any
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    92
 other person.  No title to or ownership of the software is
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    93
 hereby transferred.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    94
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    95
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    96
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    97
documentation
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    98
"
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    99
    The MenuEditor allows you to create, modify or just inspect
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   100
    menus.
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   101
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   102
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   103
    [Instance variables:]
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   104
1618
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   105
        listOfItemsView         <HierarcicalListView>  the view which shows the list of items
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   106
        listOfItems             <HierarchicalList>     hierarchical list of menu items
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   107
        listOfTabs              <List>                 list of current shown tab-labels
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   108
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   109
        selectionHolder         <ValueHolder>          collection of current selected items
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   110
        selectedSuperItems      <Collection>           collection of superItems derived from selection
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   111
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   112
        tabHolder               <ValueHolder>          selected tab label holder
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   113
        notifyDisabledCounter   <SmallInteger>         ~~ 0 than change notifications are discard
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   114
        wizards                 <IdentityDictionary>   keeps all created wizard dialogs
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   115
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   116
        dropOverLine            <nil or SmallInteger>  nil: drop context not dropabel.
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   117
                                                       = 0: drop context dropable but no item specified
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   118
                                                       ~ 0: drop context dropable for item at lineNumber
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   119
                                                       used t6o restore drop indication drawings
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   120
                                                        
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   121
    [Class variables:]
1618
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   122
        ImageRetrieverClasses   <Collection>        sorted collection of image receivers
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   123
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   124
    [start with:]
1618
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   125
        MenuEditor open
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   126
        MenuEditor openOnClass:MenuEditor andSelector:#menu
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   127
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   128
    [author:]
1618
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   129
        Claus Atzkern, eXept Software AG
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   130
        Thomas Zwick, eXept Software AG
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   131
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   132
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   133
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   134
!MenuEditor class methodsFor:'initialization'!
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   135
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   136
initialize
1546
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   137
    ImageRetrieverClasses := #( 
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   138
				Icon
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   139
				SystemBrowser 
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   140
				ToolbarIconLibrary
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   141
			      ). 
1546
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   142
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   143
    "
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   144
     self initialize
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   145
    "
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   146
! !
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   147
508
968c6aa88ef0 updates channels after adding menu items
tz
parents: 507
diff changeset
   148
!MenuEditor class methodsFor:'instance creation'!
968c6aa88ef0 updates channels after adding menu items
tz
parents: 507
diff changeset
   149
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   150
openModalOnMenu: aMenu
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   151
    "Open a MenuEditor modal on aMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   152
     self openModalOnMenu: (self perform: #menu) decodeAsLiteralArray
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   153
    "
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   154
    ^self new openModalOnMenu:aMenu
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   155
! !
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   156
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   157
!MenuEditor class methodsFor:'accessing image retriever'!
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   158
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   159
addNewImageRetriever:aSymbolOrClass
1546
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   160
    "add a class to the imageRetriever list"
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   161
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   162
    |key|
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   163
1546
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   164
    aSymbolOrClass isBehavior ifTrue:[
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   165
	key := aSymbolOrClass nameWithNameSpacePrefix
1546
4485d0c37aae another default image retriever
Claus Gittinger <cg@exept.de>
parents: 1545
diff changeset
   166
    ] ifFalse:[
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   167
	key := aSymbolOrClass
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   168
    ].
1463
7dde3777813a show waitCursor while reading images
ca
parents: 1462
diff changeset
   169
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   170
    key size ~~ 0 ifTrue:[
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   171
	key := key asSymbol.
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   172
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   173
	(ImageRetrieverClasses includes:key) ifFalse:[
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   174
	    ImageRetrieverClasses := ImageRetrieverClasses asOrderedCollection.
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   175
	    ImageRetrieverClasses add:key.
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   176
	    ImageRetrieverClasses sort.
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   177
	]
1462
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   178
    ].
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   179
!
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   180
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   181
imageRetrieverClasses
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   182
    "returns a collection of image retrievers
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   183
    "
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   184
    ^ ImageRetrieverClasses
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   185
! !
02fe22d76582 change layout of image viewer, support of adding new image retriever
ca
parents: 1454
diff changeset
   186
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   187
!MenuEditor class methodsFor:'aspects'!
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   188
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   189
aspects
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   190
    "get the aspects for the attributes of the menu components"
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   191
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   192
    ^#(
1629
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   193
        rawLabel
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   194
        accessCharacterPosition
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   195
        showBusyCursorWhilePerforming
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   196
        horizontalLayout
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   197
        triggerOnDown
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   198
        font
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   199
        argument
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   200
        submenuChannel
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   201
        keepLinkedMenu
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   202
        enabled
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   203
        itemValue
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   204
        nameKey
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   205
        indication
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   206
        choice
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   207
        choiceValue
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   208
        translateLabel
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   209
        isButton
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   210
        shortcutKeyCharacter
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   211
        startGroup
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   212
        isVisible
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   213
        hideMenuOnActivated
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   214
        auxValue
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   215
        activeHelpKey
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   216
        resourceRetriever
1634
1dd4cd7ea43b can now specify if menu action is to be performed by
ca
parents: 1633
diff changeset
   217
        sendToOriginator
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   218
     )
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   219
! !
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   220
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   221
!MenuEditor class methodsFor:'defaults'!
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   222
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   223
aboutImage
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   224
    "the image to be displayed in my about-box;
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   225
     If nil is returned, the ST/X default image is used.
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   226
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   227
    ^ Image fromFile:'bitmaps/xpmBitmaps/misc_tools/setup_menus.xpm'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   228
!
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   229
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   230
resourceType
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   231
    "get the type of the resource of the method generated by the MenuEditor
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   232
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   233
    ^ #menu
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   234
! !
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   235
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   236
!MenuEditor class methodsFor:'help specs'!
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   237
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   238
flyByHelpSpec
1629
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   239
    ^super flyByHelpSpec addPairsFrom:(self localFlyHelpSpecStrings)
1545
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   240
!
4f8b08f745eb flyByHelp stuff
Claus Gittinger <cg@exept.de>
parents: 1539
diff changeset
   241
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   242
helpSpec
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   243
    ^super helpSpec addPairsFrom:(self localHelpSpecStrings)
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   244
!
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   245
1629
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   246
localFlyHelpSpecStrings
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   247
    "This resource specification was automatically generated
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   248
     by the UIHelpTool of ST/X."
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   249
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   250
    "Do not manually edit this!! If it is corrupted,
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   251
     the UIHelpTool may not be able to read the specification."
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   252
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   253
    "
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   254
     UIHelpTool openOnClass:MenuEditor    
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   255
    "
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   256
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   257
    <resource: #help>
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   258
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   259
    ^ #(
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   260
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   261
#fileLoad
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   262
'Load Spec from Class'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   263
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   264
#fileSave
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   265
'Save Spec'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   266
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   267
#fileSaveAs
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   268
'Save Spec As'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   269
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   270
#addMenuSeparator
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   271
'Add Separator'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   272
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   273
#addMenuItem
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   274
'Add Item'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   275
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   276
#addSubMenu
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   277
'Add Submenu'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   278
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   279
#addDelayedMenu
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   280
'Add Delayed Menu'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   281
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   282
#addDelayedSubMenuLink
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   283
'Add linked Delayed Menu'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   284
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   285
#addSubMenuLink
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   286
'Add Linked Submenu.'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   287
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   288
#browseResource
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   289
'Search for methods with image resource.'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   290
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   291
#fileNew
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   292
'New Spec'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   293
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   294
#filePickAMenu
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   295
'Pick from View'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   296
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   297
#fileShowMenuSpec
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   298
'Show Spec'
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   299
)
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   300
!
a79dce7e7045 flyby texts must be short
Claus Gittinger <cg@exept.de>
parents: 1623
diff changeset
   301
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   302
localHelpSpecStrings
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   303
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   304
     by the UIHelpTool of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   305
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   306
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   307
     the UIHelpTool may not be able to read the specification."
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   308
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   309
    "
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   310
     UIHelpTool openOnClass:MenuEditor    
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   311
    "
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   312
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   313
    <resource: #help>
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   314
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   315
    ^ #(
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   316
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   317
#addDelayedMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   318
'Add a new delayed menu to item.'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   319
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   320
#addDelayedSubMenuLink
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   321
'Add a new linked delayed menu to item.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   322
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   323
#addMenuItem
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   324
'Add a new menu item.'
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   325
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   326
#addMenuSeparator
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   327
'Add a new menu separator.'
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   328
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   329
#addSubMenu
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   330
'Add a new sub menu.'
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   331
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   332
#addSubMenuLink
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   333
'Add a new linked sub menu.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   334
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   335
#basicsAction
627
e28ca0319230 checkin from browser
tz
parents: 621
diff changeset
   336
'An action selector with 0, 1 (the argument field), or 2 (the selected item) arguments.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   337
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   338
#basicsArgument
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   339
'An optional arg passed with above selector, if it is a 1 or 2 arg selector (enter a Smalltalk literal).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   340
959
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   341
#basicsChoice
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   342
'Aspect for a boolean holder, block or method, specifying the choices state (RadioButton behavior).'
959
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   343
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   344
#basicsChoiceValue
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   345
'That choices value (typically number or symbol).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   346
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   347
#basicsIndication
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   348
'Aspect for boolean holder, block, or method, specifying the indication state (CheckToggle behavior).'
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   349
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   350
#basicsIsButton
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   351
'Enable/disable button-like behavior.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   352
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   353
#basicsKey
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   354
'Internal key of the item (optional, for programmed accesses).'
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   355
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   356
#basicsLabel
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   357
'Label of the item.'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   358
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   359
#basicsMenu
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   360
'Aspect providing the sub menu to be opened if item is selected (provide spec or valueHolder).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   361
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   362
#basicsMenuArgument
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   363
'An argument passed with the menu selector.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   364
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   365
#basicsNameKey
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   366
'Unique identifier of the item (optional).'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   367
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   368
#basicsSelector
613
5bdf59b03e8e checkin from browser
tz
parents: 612
diff changeset
   369
'Selector under which the generated menu spec is saved.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   370
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   371
#basicsSeparatorType
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   372
'List of valid separators.'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   373
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   374
#basicsTranslateLabel
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   375
'Translate the label via the classes resource file (internationalization).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   376
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   377
#browseResource
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   378
'Search for methods with image resource.'
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   379
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   380
#detailsAccelerator
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   381
'Accelerator key to select the menu item from the keyboard (Cmdx or Ctrlx).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   382
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   383
#detailsAccessCharaterPosition
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   384
'Index of the access character position of the textual label (obsolete, VW compatibility).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   385
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
   386
#detailsAuxValue
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
   387
'Some additional value - for arbitrary use by the program'
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
   388
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   389
#detailsEnabled
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   390
'Aspect or binding providing a boolean value holder for the enable-state of the menu item.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   391
959
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   392
#detailsStartGroup
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   393
'Specify start of a right-aligned item group.'
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   394
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   395
#detailsVisibility
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   396
'Aspect or binding providing a boolean value holder for the visibility-state of the menu item.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   397
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   398
#fileLoad
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   399
'Open a dialog to select and load a menu spec from a class.'
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   400
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   401
#fileNew
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   402
'Create a new menu spec.'
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   403
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   404
#filePickAMenu
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
   405
'Select a menu from an open view and read its specification'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   406
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   407
#fileSave
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   408
'Save the menu spec (and the help spec, if modified).'
455
117dcae8b5e0 no separate save of help keys
tz
parents: 441
diff changeset
   409
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   410
#fileSaveAs
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   411
'Open a dialog to save the menu spec (and the help spec, if modified).'
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   412
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   413
#fileShowMenuSpec
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   414
'Opens a Workspace showing the current menu spec.'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   415
1614
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   416
#generateAspectMethods
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   417
'Generates aspect methods for defined aspect selectors of the menu.'
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   418
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   419
#hideMenuOnActivated
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   420
'If on, the menu hides itself after the item was activated.'
1426
fcf2ecbdde67 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1425
diff changeset
   421
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   422
#horizontalLayout
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   423
'If on, the submenu organizes its items horizontal insteat of vertical (default).'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   424
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   425
#imageImageAndLabel
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   426
'Toggle display of both image and textual label.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   427
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   428
#imageImageEditor
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   429
'Open an Image Editor on the resource method defined by retriever and selector.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   430
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   431
#imageImageList
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   432
'Currently existing image resources.'
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   433
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   434
#imageRetriever
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   435
'Class implementing the image resource method. If no class is given, the current application class will be taken.'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   436
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   437
#imageSelector
959
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   438
'Selector returning an image (sent to above or the application).'
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   439
1378
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   440
#keepLinkedMenu
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   441
'Keep the linked menu after activation (do not destroy).'
1378
5643f9638250 allow views in subMenus
ca
parents: 1372
diff changeset
   442
1464
00fa8c2e3329 images <= 32 pixel extent (before 22)
ca
parents: 1463
diff changeset
   443
#showBusyCursorWhilePerforming
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   444
'If on, a busy cursor is shown while the items action is performing.'
1464
00fa8c2e3329 images <= 32 pixel extent (before 22)
ca
parents: 1463
diff changeset
   445
1617
dd4bd2e32826 prepared for CodeGeneratorTool
ca
parents: 1614
diff changeset
   446
#settingsRedefineAspectMethods
dd4bd2e32826 prepared for CodeGeneratorTool
ca
parents: 1614
diff changeset
   447
'Toggles the permission to overwrite existing aspect methods.'
dd4bd2e32826 prepared for CodeGeneratorTool
ca
parents: 1614
diff changeset
   448
1464
00fa8c2e3329 images <= 32 pixel extent (before 22)
ca
parents: 1463
diff changeset
   449
#triggerOnDown
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
   450
'If on, the items action is performed on mouse-button press (default is on button-release).'
1464
00fa8c2e3329 images <= 32 pixel extent (before 22)
ca
parents: 1463
diff changeset
   451
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   452
)
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   453
! !
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   454
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   455
!MenuEditor class methodsFor:'image specs'!
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   456
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   457
iconUnknown
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   458
    "returns an image used for picked items containing an image
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   459
    "
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   460
    <resource: #fileImage>
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   461
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   462
    ^ MenuPanelSpec icon
1425
a196da536bff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1413
diff changeset
   463
! !
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   464
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   465
!MenuEditor class methodsFor:'interface specs'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   466
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   467
windowSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   468
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   469
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   470
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   471
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   472
     the UIPainter may not be able to read the specification."
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   473
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   474
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   475
     UIPainter new openOnClass:MenuEditor andSelector:#windowSpec
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   476
     MenuEditor new openInterface:#windowSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   477
     MenuEditor open
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   478
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   479
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   480
    <resource: #canvas>
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   481
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   482
    ^ 
fd44af858001 optimized
ca
parents: 1200
diff changeset
   483
     #(#FullSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
   484
        #name: #windowSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
   485
        #window: 
fd44af858001 optimized
ca
parents: 1200
diff changeset
   486
       #(#WindowSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
   487
          #label: 'Menu Editor'
fd44af858001 optimized
ca
parents: 1200
diff changeset
   488
          #name: 'Menu Editor'
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   489
          #min: #(#Point 550 385)
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   490
          #max: #(#Point 1152 900)
1618
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   491
          #bounds: #(#Rectangle 19 413 595 888)
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   492
          #menu: #menu
1249
bb12f148aa96 remove ok is accept in windowSpec
ca
parents: 1246
diff changeset
   493
          #returnIsOKInDialog: false
bb12f148aa96 remove ok is accept in windowSpec
ca
parents: 1246
diff changeset
   494
          #escapeIsCancelInDialog: false
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   495
        )
fd44af858001 optimized
ca
parents: 1200
diff changeset
   496
        #component: 
fd44af858001 optimized
ca
parents: 1200
diff changeset
   497
       #(#SpecCollection
fd44af858001 optimized
ca
parents: 1200
diff changeset
   498
          #collection: #(
fd44af858001 optimized
ca
parents: 1200
diff changeset
   499
           #(#MenuPanelSpec
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   500
              #name: 'toolbar'
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   501
              #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
   502
              #tabable: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   503
              #menu: #toolbar
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   504
              #showSeparatingLines: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
   505
            )
fd44af858001 optimized
ca
parents: 1200
diff changeset
   506
           #(#VariableHorizontalPanelSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
   507
              #name: 'VariableHorizontalPanel'
fd44af858001 optimized
ca
parents: 1200
diff changeset
   508
              #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0)
fd44af858001 optimized
ca
parents: 1200
diff changeset
   509
              #component: 
fd44af858001 optimized
ca
parents: 1200
diff changeset
   510
             #(#SpecCollection
fd44af858001 optimized
ca
parents: 1200
diff changeset
   511
                #collection: #(
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   512
                 #(#HierarchicalListViewSpec
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   513
                    #name: 'ListOfItemsView'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   514
                    #model: #selectionHolder
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   515
                    #menu: #editMenu
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   516
                    #hasHorizontalScrollBar: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
   517
                    #hasVerticalScrollBar: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   518
                    #miniScrollerHorizontal: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   519
                    #miniScrollerVertical: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   520
                    #listModel: #listOfItems
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   521
                    #multipleSelectOk: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   522
                    #useIndex: false
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   523
                    #highlightMode: #label
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   524
                    #doubleClickSelector: #indicatorClickedAt:
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   525
                    #selectConditionSelector: #canSelect:
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   526
                    #showLeftIndicators: false
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   527
                    #indicatorSelector: #indicatorClickedAt:
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   528
                    #properties: 
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   529
                   #(#PropertyListDictionary
1618
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   530
                      #enterSelector: #dropEnter:
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   531
                      #dragArgument: nil
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   532
                      #dropObjectSelector: #dropObjects
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   533
                      #dropArgument: nil
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   534
                      #canDropSelector: #canDrop:
1618
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   535
                      #leaveSelector: #dropLeave:
9c9b649ce251 support drag & drop inside my widget (highlight the drop target)
ca
parents: 1617
diff changeset
   536
                      #overSelector: #dropOver:
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   537
                      #dropSelector: #doDrop:
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   538
                    )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   539
                    #postBuildCallback: #postBuildListOfItemsView:
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   540
                  )
fd44af858001 optimized
ca
parents: 1200
diff changeset
   541
                 #(#ViewSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
   542
                    #name: 'Box'
fd44af858001 optimized
ca
parents: 1200
diff changeset
   543
                    #level: -1
703
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
   544
                    #component: 
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   545
                   #(#SpecCollection
fd44af858001 optimized
ca
parents: 1200
diff changeset
   546
                      #collection: #(
fd44af858001 optimized
ca
parents: 1200
diff changeset
   547
                       #(#NoteBookViewSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
   548
                          #name: 'NoteBook'
fd44af858001 optimized
ca
parents: 1200
diff changeset
   549
                          #layout: #(#LayoutFrame 1 0.0 0 0.0 1 1.0 -30 1.0)
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   550
                          #enableChannel: #hasSingleSelectionChannel
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   551
                          #tabable: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   552
                          #model: #tabHolder
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   553
                          #menu: #listOfTabs
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   554
                          #fitLastRow: false
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   555
                          #canvas: #wizardHolder
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   556
                          #keepCanvasAlive: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
   557
                        )
fd44af858001 optimized
ca
parents: 1200
diff changeset
   558
                       #(#UISubSpecification
fd44af858001 optimized
ca
parents: 1200
diff changeset
   559
                          #name: 'SubSpecification'
fd44af858001 optimized
ca
parents: 1200
diff changeset
   560
                          #layout: #(#LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0)
fd44af858001 optimized
ca
parents: 1200
diff changeset
   561
                          #majorKey: #ToolApplicationModel
fd44af858001 optimized
ca
parents: 1200
diff changeset
   562
                          #minorKey: #windowSpecForCommit
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   563
                        )
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   564
                       )
fd44af858001 optimized
ca
parents: 1200
diff changeset
   565
                     
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   566
                    )
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   567
                  )
fd44af858001 optimized
ca
parents: 1200
diff changeset
   568
                 )
fd44af858001 optimized
ca
parents: 1200
diff changeset
   569
               
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   570
              )
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   571
              #handles: #(#Any 0.300493 1.0)
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   572
            )
fd44af858001 optimized
ca
parents: 1200
diff changeset
   573
           #(#UISubSpecification
fd44af858001 optimized
ca
parents: 1200
diff changeset
   574
              #name: 'InfoBarSubSpec'
fd44af858001 optimized
ca
parents: 1200
diff changeset
   575
              #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
fd44af858001 optimized
ca
parents: 1200
diff changeset
   576
              #majorKey: #ToolApplicationModel
fd44af858001 optimized
ca
parents: 1200
diff changeset
   577
              #minorKey: #windowSpecForInfoBar
fd44af858001 optimized
ca
parents: 1200
diff changeset
   578
            )
fd44af858001 optimized
ca
parents: 1200
diff changeset
   579
           )
fd44af858001 optimized
ca
parents: 1200
diff changeset
   580
         
fd44af858001 optimized
ca
parents: 1200
diff changeset
   581
        )
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   582
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   583
! !
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   584
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   585
!MenuEditor class methodsFor:'menu specs'!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   586
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   587
addMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   588
    "This resource specification was automatically generated
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   589
     by the MenuEditor of ST/X."
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   590
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   591
    "Do not manually edit this!! If it is corrupted,
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   592
     the MenuEditor may not be able to read the specification."
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   593
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   594
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   595
     MenuEditor new openOnClass:MenuEditor andSelector:#addMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   596
     (Menu new fromLiteralArrayEncoding:(MenuEditor addMenu)) startUp
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   597
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   598
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   599
    <resource: #menu>
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   600
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   601
    ^ 
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   602
     #(#Menu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   603
        #(
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   604
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   605
            #activeHelpKey: #addMenuSeparator
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   606
            #label: 'Separator'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   607
            #itemValue: #doCreateSep
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   608
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   609
            #labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconSeparator '')
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   610
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   611
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   612
            #activeHelpKey: #addMenuItem
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   613
            #label: 'Item'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   614
            #itemValue: #doCreateItem
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   615
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   616
            #labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconItem '')
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   617
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   618
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   619
            #activeHelpKey: #addMenuItem
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   620
            #label: 'Menu'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   621
            #itemValue: #doCreateMenu
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   622
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   623
            #labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconMenu '')
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   624
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   625
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   626
            #activeHelpKey: #addSubMenuLink
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   627
            #label: 'Linked Menu'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   628
            #itemValue: #doCreateLinkedMenu
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   629
            #translateLabel: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   630
            #labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconLinkedMenu '')
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   631
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   632
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   633
            #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   634
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   635
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   636
            #activeHelpKey: #addDelayedMenu
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   637
            #enabled: #canCreateDelayedMenuChannel
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   638
            #label: 'Delayed Menu'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   639
            #itemValue: #doCreateDelayedMenu:
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   640
            #translateLabel: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   641
            #labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconDelayedMenu '')
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   642
            #argument: #menu
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   643
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   644
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   645
            #activeHelpKey: #addDelayedSubMenuLink
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   646
            #enabled: #canCreateDelayedMenuChannel
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   647
            #label: 'Delayed Linked Menu'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   648
            #itemValue: #doCreateDelayedMenu:
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   649
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   650
            #labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconDelayedLinkedMenu '')
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   651
            #argument: #linkedMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   652
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   653
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   654
            #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   655
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   656
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   657
            #label: 'Standard Menus'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   658
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   659
            #submenuChannel: #standardMenus
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   660
            #keepLinkedMenu: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   661
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   662
         )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   663
        nil
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   664
        nil
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   665
      )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   666
!
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   667
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   668
editMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   669
    "This resource specification was automatically generated
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   670
     by the MenuEditor of ST/X."
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   671
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   672
    "Do not manually edit this!! If it is corrupted,
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   673
     the MenuEditor may not be able to read the specification."
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   674
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   675
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   676
     MenuEditor new openOnClass:MenuEditor andSelector:#editMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   677
     (Menu new fromLiteralArrayEncoding:(MenuEditor editMenu)) startUp
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   678
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   679
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   680
    <resource: #menu>
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   681
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   682
    ^ 
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   683
     #(#Menu
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   684
        #(
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   685
         #(#MenuItem
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   686
            #activeHelpKey: #editCut
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   687
            #enabled: #hasSelectionChannel
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   688
            #label: 'Cut'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   689
            #itemValue: #doCut
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   690
            #translateLabel: true
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   691
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   692
         #(#MenuItem
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   693
            #activeHelpKey: #editCopy
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   694
            #enabled: #hasSelectionChannel
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   695
            #label: 'Copy'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   696
            #itemValue: #doCopy
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   697
            #translateLabel: true
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   698
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   699
         #(#MenuItem
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   700
            #activeHelpKey: #editPaste
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   701
            #enabled: #valueOfCanPaste
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   702
            #label: 'Paste'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   703
            #itemValue: #doPaste
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   704
            #translateLabel: true
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   705
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   706
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   707
            #activeHelpKey: #editDelete
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   708
            #enabled: #hasSelectionChannel
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   709
            #label: 'Delete'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   710
            #itemValue: #doDelete
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   711
            #translateLabel: true
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   712
            #isVisible: false
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   713
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   714
         #(#MenuItem
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   715
            #label: '-'
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   716
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   717
         #(#MenuItem
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   718
            #activeHelpKey: #editMoveUp
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   719
            #enabled: #valueOfEnableMovingUpOrDown
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   720
            #label: 'Move Up'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   721
            #itemValue: #doMoveUpOrDown:
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   722
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   723
            #startGroup: #right
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   724
            #labelImage: #(#ResourceRetriever #Icon #upIcon '')
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   725
            #argument: #up
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   726
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   727
         #(#MenuItem
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   728
            #activeHelpKey: #editMoveDown
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   729
            #enabled: #valueOfEnableMovingUpOrDown
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   730
            #label: 'Move Down'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   731
            #itemValue: #doMoveUpOrDown:
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   732
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   733
            #labelImage: #(#ResourceRetriever #Icon #downIcon '')
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   734
            #argument: #down
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   735
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   736
         #(#MenuItem
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   737
            #activeHelpKey: #editMoveIn
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   738
            #enabled: #valueOfEnableMovingIn
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   739
            #label: 'Move Into Next'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   740
            #itemValue: #doMoveIn:
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   741
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   742
            #labelImage: #(#ResourceRetriever #Icon #downRightIcon '')
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   743
            #argument: #inNext
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   744
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   745
         #(#MenuItem
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   746
            #activeHelpKey: #editMoveInAbove
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   747
            #enabled: #valueOfEnableMovingInAbove
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   748
            #label: 'Move Into Previous'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   749
            #itemValue: #doMoveIn:
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   750
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   751
            #labelImage: #(#ResourceRetriever #Icon #upRightIcon '')
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   752
            #argument: #inPrev
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   753
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   754
         #(#MenuItem
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   755
            #activeHelpKey: #editMoveOut
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   756
            #enabled: #valueOfEnableMovingOut
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   757
            #label: 'Move Out'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   758
            #itemValue: #doMoveOut
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   759
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   760
            #labelImage: #(#ResourceRetriever #Icon #leftDownIcon '')
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   761
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   762
         )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   763
        nil
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   764
        nil
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   765
      )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   766
!
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   767
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   768
fileMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   769
    "This resource specification was automatically generated
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   770
     by the MenuEditor of ST/X."
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   771
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   772
    "Do not manually edit this!! If it is corrupted,
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   773
     the MenuEditor may not be able to read the specification."
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   774
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   775
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   776
     MenuEditor new openOnClass:MenuEditor andSelector:#fileMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   777
     (Menu new fromLiteralArrayEncoding:(MenuEditor fileMenu)) startUp
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   778
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   779
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   780
    <resource: #menu>
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   781
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   782
    ^ 
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   783
     #(#Menu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   784
        #(
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   785
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   786
            #activeHelpKey: #fileNew
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   787
            #label: 'New'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   788
            #itemValue: #doNew
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   789
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   790
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   791
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   792
            #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   793
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   794
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   795
            #activeHelpKey: #fileLoad
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   796
            #label: 'Load...'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   797
            #itemValue: #doLoad
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   798
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   799
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   800
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   801
            #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   802
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   803
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   804
            #activeHelpKey: #fileSave
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   805
            #label: 'Save'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   806
            #itemValue: #doSave
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   807
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   808
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   809
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   810
            #activeHelpKey: #fileSaveAs
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   811
            #label: 'Save As...'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   812
            #itemValue: #doSaveAs
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   813
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   814
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   815
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   816
            #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   817
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   818
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   819
            #activeHelpKey: #filePickAMenu
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   820
            #label: 'Pick a Menu...'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   821
            #itemValue: #doPickAMenu
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   822
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   823
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   824
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   825
            #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   826
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   827
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   828
            #activeHelpKey: #fileShowMenuSpec
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   829
            #label: 'Show Menu Spec'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   830
            #itemValue: #doShowMenuSpec
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   831
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   832
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   833
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   834
            #activeHelpKey: #fileBrowseClass
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   835
            #enabled: #hasValidSpecClass
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   836
            #label: 'Browse Class'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   837
            #itemValue: #doBrowseClass
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   838
            #translateLabel: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   839
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   840
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   841
            #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   842
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   843
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   844
            #activeHelpKey: #fileExit
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   845
            #label: 'Exit'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   846
            #itemValue: #closeRequest
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   847
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   848
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   849
         )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   850
        nil
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   851
        nil
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   852
      )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   853
!
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   854
1614
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   855
generateMenu
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   856
    "This resource specification was automatically generated
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   857
     by the MenuEditor of ST/X."
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   858
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   859
    "Do not manually edit this!! If it is corrupted,
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   860
     the MenuEditor may not be able to read the specification."
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   861
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   862
    "
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   863
     MenuEditor new openOnClass:MenuEditor andSelector:#generateMenu
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   864
     (Menu new fromLiteralArrayEncoding:(MenuEditor generateMenu)) startUp
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   865
    "
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   866
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   867
    <resource: #menu>
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   868
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   869
    ^ 
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   870
     #(#Menu
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   871
        #(
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   872
         #(#MenuItem
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   873
            #activeHelpKey: #generateAspectMethods
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   874
            #enabled: #hasValidSpecClass
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   875
            #label: 'Aspect Methods'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   876
            #itemValue: #doGenerateAspectMethods
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   877
            #translateLabel: true
1614
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   878
          )
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   879
         )
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   880
        nil
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   881
        nil
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   882
      )
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   883
!
46cc531eecc6 add code generation
ca
parents: 1610
diff changeset
   884
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   885
helpMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   886
    "This resource specification was automatically generated
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   887
     by the MenuEditor of ST/X."
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   888
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   889
    "Do not manually edit this!! If it is corrupted,
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   890
     the MenuEditor may not be able to read the specification."
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   891
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   892
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   893
     MenuEditor new openOnClass:MenuEditor andSelector:#helpMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   894
     (Menu new fromLiteralArrayEncoding:(MenuEditor helpMenu)) startUp
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   895
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   896
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   897
    <resource: #menu>
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   898
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   899
    ^ 
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   900
     #(#Menu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   901
        #(
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   902
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   903
            #activeHelpKey: #helpTutorial
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   904
            #label: 'Documentation'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   905
            #itemValue: #openHTMLDocument:
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   906
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   907
            #argument: 'tools/uipainter/MenuEditor.html'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   908
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   909
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   910
            #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   911
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   912
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   913
            #activeHelpKey: #helpHelpTool
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   914
            #label: 'Help Tool'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   915
            #itemValue: #openHTMLDocument:
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   916
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   917
            #argument: 'tools/uipainter/HelpTool.html'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   918
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   919
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   920
            #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   921
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   922
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   923
            #activeHelpKey: #helpShowHelp
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   924
            #label: 'Show Help Texts'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   925
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   926
            #indication: #showingHelp:
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   927
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   928
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   929
            #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   930
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   931
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   932
            #activeHelpKey: #aboutThisAppliaction
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   933
            #label: 'About MenuEditor...'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   934
            #itemValue: #openAboutThisApplication
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   935
            #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   936
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   937
         )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   938
        nil
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   939
        nil
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   940
      )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   941
!
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   942
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   943
menu
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   944
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   945
     by the MenuEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   946
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   947
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   948
     the MenuEditor may not be able to read the specification."
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   949
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   950
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   951
     MenuEditor new openOnClass:MenuEditor andSelector:#menu
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   952
     (Menu new fromLiteralArrayEncoding:(MenuEditor menu)) startUp
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   953
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   954
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   955
    <resource: #menu>
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
   956
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   957
    ^ 
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   958
     #(#Menu
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   959
        #(
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   960
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   961
            #activeHelpKey: #file
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   962
            #label: '&File'
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   963
            #translateLabel: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   964
            #submenuChannel: #fileMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   965
            #keepLinkedMenu: true
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   966
          )
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   967
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   968
            #activeHelpKey: #edit
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   969
            #label: '&Edit'
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   970
            #translateLabel: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   971
            #submenuChannel: #editMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   972
            #keepLinkedMenu: true
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   973
          )
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   974
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   975
            #activeHelpKey: #add
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   976
            #enabled: #hasSingleSelectionChannel
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   977
            #label: 'Item'
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   978
            #translateLabel: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   979
            #submenuChannel: #addMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
   980
            #keepLinkedMenu: true
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   981
          )
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   982
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   983
            #activeHelpKey: #generate
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   984
            #label: 'Generate'
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   985
            #translateLabel: true
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   986
            #submenuChannel: #generateMenu
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   987
            #keepLinkedMenu: true
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   988
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   989
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   990
            #activeHelpKey: #test
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   991
            #label: 'Test'
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   992
            #translateLabel: true
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   993
            #submenuChannel: #submenuTest
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   994
          )
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
   995
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
   996
            #activeHelpKey: #settings
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   997
            #label: 'Settings'
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   998
            #translateLabel: true
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
   999
            #submenuChannel: #settingsMenu
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1000
            #keepLinkedMenu: true
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1001
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1002
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1003
            #activeHelpKey: #history
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
  1004
            #label: 'History'
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
  1005
            #translateLabel: true
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
  1006
            #submenuChannel: #menuHistory
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
  1007
          )
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
  1008
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1009
            #activeHelpKey: #help
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1010
            #label: '&Help'
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
  1011
            #translateLabel: true
1609
3ebd61486dc9 set help menu right
ca
parents: 1607
diff changeset
  1012
            #startGroup: #right
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1013
            #submenuChannel: #helpMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1014
            #keepLinkedMenu: true
1566
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
  1015
          )
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
  1016
         )
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
  1017
        nil
852d3060ce0a left/right startGroup;
Claus Gittinger <cg@exept.de>
parents: 1564
diff changeset
  1018
        nil
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1019
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1020
!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1021
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1022
settingsMenu
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1023
    "This resource specification was automatically generated
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1024
     by the MenuEditor of ST/X."
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1025
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1026
    "Do not manually edit this!! If it is corrupted,
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1027
     the MenuEditor may not be able to read the specification."
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1028
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1029
    "
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1030
     MenuEditor new openOnClass:MenuEditor andSelector:#settingsMenu
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1031
     (Menu new fromLiteralArrayEncoding:(MenuEditor settingsMenu)) startUp
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1032
    "
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1033
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1034
    <resource: #menu>
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1035
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1036
    ^ 
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1037
     #(#Menu
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1038
        #(
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1039
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1040
            #activeHelpKey: #settingsRedefineAspectMethods
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1041
            #enabled: #hasValidSpecClass
1631
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1042
            #label: 'Redefine Aspect Methods'
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1043
            #translateLabel: true
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1044
            #hideMenuOnActivated: false
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1045
            #indication: #redefineAspectMethodsChannel
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1046
          )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1047
         )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1048
        nil
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1049
        nil
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1050
      )
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1051
!
d7979e4253fd menu beautified;
Claus Gittinger <cg@exept.de>
parents: 1629
diff changeset
  1052
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1053
standardMenus
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1054
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1055
     by the MenuEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1056
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1057
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1058
     the MenuEditor may not be able to read the specification."
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1059
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1060
    "
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1061
     MenuEditor new openOnClass:MenuEditor andSelector:#standardMenus
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1062
     (Menu new fromLiteralArrayEncoding:(MenuEditor standardMenus)) startUp
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1063
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1064
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1065
    <resource: #menu>
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1066
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1067
    ^ 
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1068
     #(#Menu
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1069
        #(
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1070
         #(#MenuItem
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1071
            #label: 'Standard Menu: Edit'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1072
            #itemValue: #doCreateStandardEditMenu
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1073
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1074
          )
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1075
         #(#MenuItem
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1076
            #label: 'Standard Menu: Help'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1077
            #itemValue: #doCreateStandardHelpMenu
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1078
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1079
          )
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1080
         #(#MenuItem
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1081
            #label: 'Standard Menu: File'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1082
            #itemValue: #doCreateStandardFileMenu
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1083
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1084
          )
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1085
         )
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1086
        nil
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1087
        nil
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1088
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1089
!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1090
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1091
toolbar
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1092
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1093
     by the MenuEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1094
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1095
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1096
     the MenuEditor may not be able to read the specification."
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1097
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1098
    "
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1099
     MenuEditor new openOnClass:MenuEditor andSelector:#toolbar
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1100
     (Menu new fromLiteralArrayEncoding:(MenuEditor toolbar)) startUp
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1101
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1102
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1103
    <resource: #menu>
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1104
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1105
    ^ 
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1106
     #(#Menu
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1107
        #(
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1108
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1109
            #activeHelpKey: #fileLoad
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1110
            #label: 'Load'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1111
            #itemValue: #doLoad
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1112
            #translateLabel: true
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1113
            #isButton: true
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1114
            #submenuChannel: #menuHistory
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1115
            #labelImage: #(#ResourceRetriever #Icon #loadIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1116
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1117
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1118
            #activeHelpKey: #fileSave
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1119
            #label: 'Save'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1120
            #itemValue: #doSave
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1121
            #translateLabel: true
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1122
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1123
            #labelImage: #(#ResourceRetriever #Icon #saveIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1124
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1125
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1126
            #label: ''
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1127
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1128
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1129
            #activeHelpKey: #editCut
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1130
            #enabled: #hasSelectionChannel
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1131
            #label: 'Cut'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1132
            #itemValue: #doCut
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1133
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1134
            #isButton: true
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1135
            #labelImage: #(#ResourceRetriever #Icon #cutIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1136
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1137
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1138
            #activeHelpKey: #editCopy
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1139
            #enabled: #hasSelectionChannel
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1140
            #label: 'Copy'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1141
            #itemValue: #doCopy
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1142
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1143
            #isButton: true
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1144
            #labelImage: #(#ResourceRetriever #Icon #copyIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1145
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1146
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1147
            #activeHelpKey: #editPaste
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1148
            #enabled: #valueOfCanPaste
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1149
            #label: 'Paste'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1150
            #itemValue: #doPaste
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1151
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1152
            #isButton: true
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1153
            #labelImage: #(#ResourceRetriever #Icon #pasteIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1154
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1155
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1156
            #label: ''
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1157
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1158
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1159
            #activeHelpKey: #addMenuSeparator
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1160
            #enabled: #hasSingleSelectionChannel
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1161
            #label: 'Add Separator'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1162
            #itemValue: #doCreateSep
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1163
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1164
            #isButton: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1165
            #labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconSeparator)
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1166
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1167
         #(#MenuItem
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1168
            #activeHelpKey: #addMenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1169
            #enabled: #hasSingleSelectionChannel
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1170
            #label: 'Add Item'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1171
            #itemValue: #doCreateItem
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1172
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1173
            #isButton: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1174
            #labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconItem)
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1175
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1176
         #(#MenuItem
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1177
            #activeHelpKey: #addSubMenu
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1178
            #enabled: #hasSingleSelectionChannel
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1179
            #label: 'Add Menu'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1180
            #itemValue: #doCreateMenu
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1181
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1182
            #isButton: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1183
            #submenuChannel: #standardMenus
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1184
            #labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconMenu)
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1185
            #keepLinkedMenu: true
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1186
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1187
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1188
            #activeHelpKey: #addSubMenuLink
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1189
            #enabled: #hasSingleSelectionChannel
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1190
            #label: 'Add Linked Menu'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1191
            #itemValue: #doCreateLinkedMenu
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1192
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1193
            #isButton: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1194
            #labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconLinkedMenu)
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1195
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1196
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1197
            #label: ''
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1198
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1199
         #(#MenuItem
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1200
            #activeHelpKey: #addDelayedMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1201
            #enabled: #canCreateDelayedMenuChannel
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1202
            #label: 'Add Delayed Menu'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1203
            #itemValue: #doCreateDelayedMenu:
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1204
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1205
            #isButton: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1206
            #labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconDelayedMenu)
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1207
            #argument: #menu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1208
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1209
         #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1210
            #activeHelpKey: #addDelayedSubMenuLink
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1211
            #enabled: #canCreateDelayedMenuChannel
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1212
            #label: 'Add Delayed Linked Menu'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1213
            #itemValue: #doCreateDelayedMenu:
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1214
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1215
            #isButton: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1216
            #labelImage: #(#ResourceRetriever #'MenuEditor::Item' #iconDelayedLinkedMenu)
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1217
            #argument: #linkedMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1218
          )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1219
         #(#MenuItem
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1220
            #activeHelpKey: #editMoveUp
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1221
            #enabled: #valueOfEnableMovingUpOrDown
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1222
            #label: 'Move Up'
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1223
            #itemValue: #doMoveUpOrDown:
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1224
            #translateLabel: true
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1225
            #isButton: true
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1226
            #startGroup: #right
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1227
            #labelImage: #(#ResourceRetriever #Icon #upIcon)
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1228
            #argument: #up
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1229
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1230
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1231
            #activeHelpKey: #editMoveDown
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1232
            #enabled: #valueOfEnableMovingUpOrDown
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1233
            #label: 'Move Down'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1234
            #itemValue: #doMoveUpOrDown:
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1235
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1236
            #isButton: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1237
            #labelImage: #(#ResourceRetriever #Icon #downIcon)
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1238
            #argument: #down
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1239
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1240
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1241
            #activeHelpKey: #editMoveIn
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1242
            #enabled: #valueOfEnableMovingIn
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1243
            #label: 'Move In'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1244
            #itemValue: #doMoveIn:
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1245
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1246
            #isButton: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1247
            #labelImage: #(#ResourceRetriever #Icon #downRightIcon)
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1248
            #argument: #inNext
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1249
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1250
         #(#MenuItem
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
  1251
            #activeHelpKey: #editMoveInAbove
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
  1252
            #enabled: #valueOfEnableMovingInAbove
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1253
            #label: 'Move In Above'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1254
            #itemValue: #doMoveIn:
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1255
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1256
            #isButton: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1257
            #labelImage: #(#ResourceRetriever #Icon #upRightIcon)
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1258
            #argument: #inPrev
1468
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
  1259
          )
94fcd912ef88 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1464
diff changeset
  1260
         #(#MenuItem
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1261
            #activeHelpKey: #editMoveOut
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1262
            #enabled: #valueOfEnableMovingOut
1632
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1263
            #label: 'Move Out'
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1264
            #itemValue: #doMoveOut
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1265
            #translateLabel: true
1f0a0d241ff8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1631
diff changeset
  1266
            #isButton: true
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1267
            #labelImage: #(#ResourceRetriever #Icon #leftDownIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1268
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1269
         )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1270
        nil
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1271
        nil
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1272
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1273
! !
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1274
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1275
!MenuEditor class methodsFor:'menu specs - standard'!
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1276
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1277
standardEditMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1278
    "This resource specification was automatically generated
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1279
     by the MenuEditor of ST/X."
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1280
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1281
    "Do not manually edit this!! If it is corrupted,
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1282
     the MenuEditor may not be able to read the specification."
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1283
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1284
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1285
     MenuEditor new openOnClass:MenuEditor andSelector:#standardEditMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1286
     (Menu new fromLiteralArrayEncoding:(MenuEditor standardEditMenu)) startUp
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1287
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1288
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1289
    <resource: #menu>
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1290
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1291
    ^ 
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1292
     #(#Menu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1293
	#(
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1294
	 #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1295
	    #label: 'Copy'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1296
	    #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1297
	    #value: #copySelection
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1298
	  )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1299
	 #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1300
	    #label: 'Cut'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1301
	    #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1302
	    #value: #cutSelection
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1303
	  )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1304
	 #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1305
	    #label: 'Paste'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1306
	    #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1307
	    #value: #paste
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1308
	  )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1309
	 )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1310
	nil
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1311
	nil
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1312
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1313
!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1314
1606
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1315
standardFileMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1316
    "This resource specification was automatically generated
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1317
     by the MenuEditor of ST/X."
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1318
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1319
    "Do not manually edit this!! If it is corrupted,
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1320
     the MenuEditor may not be able to read the specification."
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1321
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1322
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1323
     MenuEditor new openOnClass:MenuEditor andSelector:#standardFileMenu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1324
     (Menu new fromLiteralArrayEncoding:(MenuEditor standardFileMenu)) startUp
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1325
    "
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1326
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1327
    <resource: #menu>
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1328
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1329
    ^ 
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1330
     #(#Menu
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1331
	#(
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1332
	 #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1333
	    #label: 'New'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1334
	    #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1335
	    #value: #menuNew
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1336
	  )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1337
	 #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1338
	    #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1339
	  )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1340
	 #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1341
	    #label: 'Open...'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1342
	    #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1343
	    #value: #menuOpen
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1344
	  )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1345
	 #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1346
	    #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1347
	  )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1348
	 #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1349
	    #label: 'Save'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1350
	    #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1351
	    #value: #menuSave
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1352
	  )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1353
	 #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1354
	    #label: 'Save As...'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1355
	    #translateLabel: true
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1356
	    #value: #menuSaveAs
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1357
	  )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1358
	 #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1359
	    #label: '-'
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1360
	  )
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1361
	 #(#MenuItem
54f978ea4b66 *** empty log message ***
ca
parents: 1586
diff changeset
  1362
	    #label: 'Exit'
54f978ea4b66 *** empty log message ***
ca
par