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