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