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