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