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