MenuEditor.st
author Claus Gittinger <cg@exept.de>
Tue, 08 Feb 2000 22:28:19 +0100
changeset 1337 546e42b47b41
parent 1335 b80f8c8ec3d6
child 1348 48e25df6aa34
permissions -rw-r--r--
busy cursor while switching
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
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     3
              All Rights Reserved
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     4
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     5
 This software is furnished under a license and may be used
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
     7
 inclusion of the above copyright notice. This software may not
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    10
 hereby transferred.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    11
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    12
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    13
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    14
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
    15
ResourceSpecEditor subclass:#MenuEditor
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
    16
	instanceVariableNames:'treeView typeOfCanvas listOfCanvas listOfSlices
fd44af858001 optimized
ca
parents: 1200
diff changeset
    17
		lastImageRetriever slices'
220
ca
parents: 218
diff changeset
    18
	classVariableNames:''
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
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    23
Object subclass:#Item
220
ca
parents: 218
diff changeset
    24
	instanceVariableNames:'activeHelpKey enabled label value nameKey indication shortcutKey
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
    25
		accessCharacterPos retriever icon iconAndLabel submenuChannel
953
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
    26
		startGroup argument translateLabel isButton isVisible choice
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
    27
		choiceValue auxValue hideMenuOnActivated'
220
ca
parents: 218
diff changeset
    28
	classVariableNames:''
ca
parents: 218
diff changeset
    29
	poolDictionaries:''
ca
parents: 218
diff changeset
    30
	privateIn:MenuEditor
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    31
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    32
1335
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
    33
SelectionInTreeView subclass:#TreeView
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
    34
	instanceVariableNames:''
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
    35
	classVariableNames:''
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
    36
	poolDictionaries:''
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
    37
	privateIn:MenuEditor
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
    38
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
    39
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    40
!MenuEditor class methodsFor:'documentation'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    41
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    42
copyright
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    43
"
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
    44
 COPYRIGHT (c) 1997 by eXept Software AG
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    45
              All Rights Reserved
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    46
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    47
 This software is furnished under a license and may be used
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    48
 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
    49
 inclusion of the above copyright notice. This software may not
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    50
 be provided or otherwise made available to, or used by, any
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    51
 other person.  No title to or ownership of the software is
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    52
 hereby transferred.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    53
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    54
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    55
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    56
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    57
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    58
documentation
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    59
"
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    60
    The MenuEditor allows you to create, modify or just inspect
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    61
    hierarchical menus of menu bars, popup menu, or tool bar menus.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    62
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    63
    [start with:]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    64
        MenuEditor open
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    65
        MenuEditor openOnClass:MenuEditor andSelector:#menu
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    66
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    67
    [see also:]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    68
        UIPainter
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    69
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    70
    [author:]
541
5dc124df04e2 author line in doc.
Claus Gittinger <cg@exept.de>
parents: 539
diff changeset
    71
        Claus Atzkern, eXept Software AG
5dc124df04e2 author line in doc.
Claus Gittinger <cg@exept.de>
parents: 539
diff changeset
    72
        Thomas Zwick, eXept Software AG
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    73
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    74
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    75
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    76
508
968c6aa88ef0 updates channels after adding menu items
tz
parents: 507
diff changeset
    77
!MenuEditor class methodsFor:'instance creation'!
968c6aa88ef0 updates channels after adding menu items
tz
parents: 507
diff changeset
    78
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    79
openModalOnMenu: aMenu
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    80
    "Open a MenuEditor modal on aMenu"
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    81
    "self openModalOnMenu: (self perform: #menu) decodeAsLiteralArray"
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    82
638ae95885e1 method comments added
tz
parents: 725
diff changeset
    83
    ^self new openModalOnMenu: aMenu
508
968c6aa88ef0 updates channels after adding menu items
tz
parents: 507
diff changeset
    84
! !
968c6aa88ef0 updates channels after adding menu items
tz
parents: 507
diff changeset
    85
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
    86
!MenuEditor class methodsFor:'accessing'!
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
    87
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
    88
iconUnknown
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
    89
    "returns an image used for picked items containing an image
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
    90
    "
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
    91
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
    92
    <resource: #fileImage>
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
    93
804
b66537045e04 reuse broken image bitmap
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
    94
    "/ ^ Image fromFile:'brokenImage.xpm'
b66537045e04 reuse broken image bitmap
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
    95
    ^ Icon constantNamed:'brokenImage.xpm'
b66537045e04 reuse broken image bitmap
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
    96
b66537045e04 reuse broken image bitmap
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
    97
    "Modified: / 22.4.1998 / 22:15:11 / ca"
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
    98
!
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
    99
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   100
resourceType
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   101
    "get the type of resource of the method generated by the MenuEditor"
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   102
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   103
    ^#menu
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   104
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   105
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   106
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   107
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   108
! !
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   109
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   110
!MenuEditor class methodsFor:'aspects'!
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   111
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   112
aspects
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   113
    "get the aspects for the attributes of the menu components"
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   114
638ae95885e1 method comments added
tz
parents: 725
diff changeset
   115
    ^#(
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   116
        label
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   117
        accessCharacterPos
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   118
        argument
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   119
        submenuChannel
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   120
        enabled
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   121
        value
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   122
        nameKey
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   123
        indication
953
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
   124
        choice
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
   125
        choiceValue
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   126
        translateLabel
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   127
        isButton
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   128
        shortcutKey
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   129
        startGroup
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   130
        retriever
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   131
        iconAndLabel
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   132
        icon
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   133
        isVisible
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   134
        hideMenuOnActivated
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
   135
        auxValue
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   136
     )
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   137
953
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
   138
    "Modified: / 14.8.1998 / 14:46:36 / cg"
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   139
! !
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   140
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   141
!MenuEditor class methodsFor:'defaults'!
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   142
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   143
defaultRetrieverClassList
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   144
    ^ #(Icon NewLauncher BrowserView)
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   145
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   146
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   147
! !
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   148
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   149
!MenuEditor class methodsFor:'help specs'!
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   150
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   151
helpSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   152
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   153
     by the UIHelpTool of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   154
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   155
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   156
     the UIHelpTool may not be able to read the specification."
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   157
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   158
    "
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   159
     UIHelpTool openOnClass:MenuEditor    
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   160
    "
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   161
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   162
    <resource: #help>
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   163
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   164
    ^super helpSpec addPairsFrom:#(
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   165
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   166
#addMenuItem
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   167
'Adds a new menu item.'
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   168
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   169
#addMenuSeparator
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   170
'Adds a new menu separator.'
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   171
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   172
#addSubMenu
613
5bdf59b03e8e checkin from browser
tz
parents: 612
diff changeset
   173
'Adds a new sub menu.'
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   174
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   175
#addSubMenuLink
613
5bdf59b03e8e checkin from browser
tz
parents: 612
diff changeset
   176
'Adds a new linked sub menu.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   177
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   178
#basicsAction
627
e28ca0319230 checkin from browser
tz
parents: 621
diff changeset
   179
'An action selector with 0, 1 (the argument field), or 2 (the selected item) arguments.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   180
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   181
#basicsArgument
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   182
'An optional arg passed with above selector, if it is a 1 or 2 arg selector (enter a Smalltalk literal).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   183
959
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   184
#basicsChoice
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   185
'Aspect for a boolean holder, block or method, specifying the choices state (RadioButton behavior).'
959
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   186
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   187
#basicsChoiceValue
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   188
'That choices value (typically number or symbol).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   189
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   190
#basicsIndication
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   191
'Aspect for boolean holder, block, or method, specifying the indication state (CheckToggle behavior).'
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   192
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   193
#basicsIsButton
603
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
   194
'Turns on/off a button behavior.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   195
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   196
#basicsKey
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   197
'Internal key of the item (optional, for programmed accesses).'
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   198
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   199
#basicsLabel
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   200
'Label of the item.'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   201
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   202
#basicsMenu
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   203
'Aspect providing the sub menu to be opened if item is selected (provide spec or valueHolder).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   204
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   205
#basicsMenuArgument
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   206
'An argument passed with the menu selector.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   207
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   208
#basicsNameKey
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   209
'Unique identifier of the item (optional).'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   210
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   211
#basicsSelector
613
5bdf59b03e8e checkin from browser
tz
parents: 612
diff changeset
   212
'Selector under which the generated menu spec is saved.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   213
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   214
#basicsSeparatorType
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   215
'List of valid separators.'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   216
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   217
#basicsTranslateLabel
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   218
'Translate the label via the classes resource file (internationalization).'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   219
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   220
#browseResource
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   221
'Search for methods with image resource.'
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   222
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   223
#detailsAccelerator
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   224
'Key to be pressed to select the menu item from the keyboard (accelerator key).'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   225
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   226
#detailsAccessCharaterPosition
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   227
'Index of the access character position of the textual label (optional).'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   228
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
   229
#detailsAuxValue
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
   230
'Some additional value - for arbitrary use by the program'
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
   231
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   232
#detailsEnabled
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   233
'Aspect or binding providing a boolean value holder for the enable-state of the menu item.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   234
959
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   235
#detailsStartGroup
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   236
'Specify start of a right-aligned item group.'
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   237
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   238
#detailsVisibility
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   239
'Aspect or binding providing a boolean value holder for the visibility-state of the menu item.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   240
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   241
#fileLoad
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   242
'Opens a dialog to select and load a menu spec from a class.'
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   243
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   244
#fileNew
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   245
'Creates a new menu spec.'
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   246
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   247
#filePickAMenu
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
   248
'Select a menu from an open view and read its specification'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   249
548
93fea26562c8 help texts added
tz
parents: 546
diff changeset
   250
#fileSave
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   251
'Saves the menu spec (and the help spec, if modified).'
455
117dcae8b5e0 no separate save of help keys
tz
parents: 441
diff changeset
   252
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
   253
#fileSaveAs
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   254
'Opens a dialog to save the menu spec (and the help spec, if modified).'
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   255
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   256
#hideMenuOnActivated
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   257
'Hide the menu after activation (turn off for checkToggles or radioButtons)'
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   258
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   259
#imageImageAndLabel
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   260
'Toggles display of both image and textual label.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   261
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   262
#imageImageEditor
943
b9ba76358fbd help texts
Claus Gittinger <cg@exept.de>
parents: 936
diff changeset
   263
'Opens an Image Editor on the resource method defined by retriever and selector.'
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   264
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   265
#imageImageList
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   266
'Currently existing image resources.'
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
   267
577
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   268
#imageRetriever
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   269
'Class implementing the image resource method. If no class is given, the current application class will be taken.'
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   270
d9f9745572b2 help texts revised
tz
parents: 576
diff changeset
   271
#imageSelector
959
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   272
'Selector returning an image (sent to above or the application).'
96728cae02c4 help texts
Claus Gittinger <cg@exept.de>
parents: 955
diff changeset
   273
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   274
)
1330
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   275
45983bc2efe1 help spec
Claus Gittinger <cg@exept.de>
parents: 1322
diff changeset
   276
    "Modified: / 4.2.2000 / 12:24:53 / cg"
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   277
! !
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   278
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   279
!MenuEditor class methodsFor:'image specs'!
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   280
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   281
linkSubmenuImage
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   282
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   283
     by the ImageEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   284
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   285
    "Do not manually edit this!!!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   286
     the ImageEditor may not be able to read the specification."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   287
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   288
    "
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   289
     ImageEditor openOnClass:self andSelector:#linkSubmenuImage
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   290
    "
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   291
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   292
    <resource: #image>
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   293
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   294
    ^Icon
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   295
        constantNamed:#'MenuEditor linkSubmenuImage'
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   296
        ifAbsentPut:[(Depth4Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@ADQDQDQDQDQDQH@D"H"H"H"H"H"K0@RH"H"H"H"H"H/@A????????????<@D@@@@@@@@@@@C0@PL3L0DQDQDQD_@A@3L3LBH"H"H"<@DCL3L3@"H"H"K0@PL3L3L0??????@A@@@@L3L@@@@@<@DQDQDCL3@PLAG0@RH"H"@3L0@3@/@AH"H"H L3L3L0<@G?????<CL3L3L@@P@@@@@@@3L3LO@ADQDQDQDP@CLA<@D"H"H"H"H LBK0@RH"H"H"H"@BH/@B????????????<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]!
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   297
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   298
menuItemImage
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   299
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   300
     by the ImageEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   301
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   302
    "Do not manually edit this!!!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   303
     the ImageEditor may not be able to read the specification."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   304
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   305
    "
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   306
     ImageEditor openOnClass:self andSelector:#menuItemImage
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   307
    "
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   308
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   309
    <resource: #image>
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   310
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   311
    ^Icon
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   312
        constantNamed:#'MenuEditor menuItemImage'
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   313
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUQUUUUUUUPUUUUUUU_UUUUUUUPUUUUUUUP@@@@@@@@EUUUUUVAF*****+HF:?+::;@F:.+*?;@F:.+::;@F:.+*:;@F:.+::;@F*****+DK??????A@@@@@@@@UUUUUUUPUUUUUUUXUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUX') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]!
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   314
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   315
menuSeparatorImage
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   316
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   317
     by the ImageEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   318
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   319
    "Do not manually edit this!!!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   320
     the ImageEditor may not be able to read the specification."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   321
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   322
    "
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   323
     ImageEditor openOnClass:self andSelector:#menuSeparatorImage
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   324
    "
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   325
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   326
    <resource: #image>
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   327
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   328
    ^Icon
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   329
        constantNamed:#'MenuEditor menuSeparatorImage'
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   330
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUURUUUUUUUPUUUUUUUPUUUUUUUPUUUUUUUP@@@@@@@@EUUUUUV@F*****+DF*****+CF?????+@F0@@@@[@F%UUUU[HF*****+@F*****+@K??????N@@@@@@@HUUUUUUUPUUUUUUUPUUUUUUUWUUUUUUUXUUUUUUUPUUUUUUUP') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]!
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   331
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   332
submenuImage
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   333
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   334
     by the ImageEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   335
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   336
    "Do not manually edit this!!!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   337
     the ImageEditor may not be able to read the specification."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   338
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   339
    "
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   340
     ImageEditor openOnClass:self andSelector:#submenuImage
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   341
    "
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   342
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   343
    <resource: #image>
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   344
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   345
    ^Icon
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   346
        constantNamed:#'MenuEditor submenuImage'
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   347
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@EUUUUUV@F*****+@F*****+@G??????GD@@@@@C@EUUUUUWLF*****+@F*****+@G??????HD@@@@@C@EUUUUUW@F*****+@F*****+OG??????@D@@@@@C@EUUUUUW@F*****+@F*****+@K??????@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<???<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]! !
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
   348
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   349
!MenuEditor class methodsFor:'interface specs'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   350
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   351
basicsItemSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   352
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   353
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   354
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   355
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   356
     the UIPainter may not be able to read the specification."
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   357
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   358
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   359
     UIPainter new openOnClass:MenuEditor andSelector:#basicsItemSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   360
     MenuEditor new openInterface:#basicsItemSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   361
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   362
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   363
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   364
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   365
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   366
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   367
        #name: #basicsItemSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   368
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   369
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   370
          #label: 'Basics Item'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   371
          #name: 'Basics Item'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   372
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   373
          #max: #(#Point 1160 870)
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   374
          #bounds: #(#Rectangle 12 22 279 341)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   375
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   376
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   377
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   378
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   379
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   380
              #label: 'Name Key:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   381
              #name: 'nameKeyLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   382
              #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   383
              #activeHelpKey: #basicsKey
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   384
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   385
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   386
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   387
           #(#InputFieldSpec
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   388
              #attributes: 
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   389
             #(#tabable
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   390
                true
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   391
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   392
              #name: 'nameKeyField'
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   393
              #layout: #(#LayoutFrame 110 0 16 0 -5 1.0 38 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   394
              #activeHelpKey: #basicsKey
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   395
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   396
              #model: #nameKey
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   397
              #group: #inputGroup1
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   398
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   399
              #acceptOnLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   400
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   401
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   402
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   403
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   404
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   405
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   406
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   407
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   408
              #label: 'Label:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   409
              #name: 'labelLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   410
              #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   411
              #activeHelpKey: #basicsLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   412
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   413
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   414
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   415
           #(#InputFieldSpec
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   416
              #attributes: 
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   417
             #(#tabable
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   418
                true
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   419
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   420
              #name: 'labelField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   421
              #layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   422
              #activeHelpKey: #basicsLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   423
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   424
              #model: #label
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   425
              #group: #inputGroup1
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   426
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   427
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   428
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   429
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   430
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   431
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   432
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   433
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   434
              #label: 'Action:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   435
              #name: 'valueLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   436
              #layout: #(#AlignmentOrigin 107 0 90 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   437
              #activeHelpKey: #basicsAction
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   438
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   439
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   440
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   441
           #(#InputFieldSpec
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   442
              #attributes: 
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   443
             #(#tabable
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   444
                true
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   445
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   446
              #name: 'valueField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   447
              #layout: #(#LayoutFrame 110 0 79 0 -5 1.0 101 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   448
              #activeHelpKey: #basicsAction
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   449
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   450
              #model: #value
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   451
              #group: #inputGroup1
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   452
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   453
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   454
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   455
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   456
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   457
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   458
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   459
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   460
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   461
              #label: 'Argument:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   462
              #name: 'argumentLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   463
              #layout: #(#AlignmentOrigin 107 0 115 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   464
              #activeHelpKey: #basicsArgument
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   465
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   466
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   467
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   468
           #(#InputFieldSpec
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   469
              #attributes: 
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   470
             #(#tabable
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   471
                true
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   472
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   473
              #name: 'argumentField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   474
              #layout: #(#LayoutFrame 110 0 104 0 -5 1.0 126 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   475
              #activeHelpKey: #basicsArgument
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   476
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   477
              #model: #argument
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   478
              #group: #inputGroup1
1189
0e7e286f864c code cleanup; care for non-string argument
Claus Gittinger <cg@exept.de>
parents: 1155
diff changeset
   479
              #type: #smalltalkObject
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   480
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   481
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   482
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   483
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   484
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   485
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   486
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   487
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   488
              #label: 'Indication:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   489
              #name: 'indicationLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   490
              #layout: #(#AlignmentOrigin 107 0 155 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   491
              #activeHelpKey: #basicsIndication
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   492
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   493
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   494
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   495
           #(#InputFieldSpec
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   496
              #attributes: 
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   497
             #(#tabable
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   498
                true
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   499
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   500
              #name: 'indicationField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   501
              #layout: #(#LayoutFrame 110 0 144 0 -5 1.0 166 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   502
              #activeHelpKey: #basicsIndication
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   503
              #enableChannel: #indicationEnabled
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   504
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   505
              #model: #indication
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   506
              #group: #inputGroup1
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   507
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   508
              #immediateAccept: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   509
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   510
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   511
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   512
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   513
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   514
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   515
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   516
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   517
              #label: 'Choice:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   518
              #name: 'choiceLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   519
              #layout: #(#AlignmentOrigin 107 0 180 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   520
              #activeHelpKey: #basicsChoice
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   521
              #translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   522
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   523
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   524
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   525
           #(#InputFieldSpec
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   526
              #attributes: 
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   527
             #(#tabable
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   528
                true
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   529
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   530
              #name: 'choiceField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   531
              #layout: #(#LayoutFrame 110 0 169 0 -5 1.0 191 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   532
              #activeHelpKey: #basicsChoice
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   533
              #enableChannel: #choiceEnabled
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   534
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   535
              #model: #choice
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   536
              #group: #inputGroup1
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   537
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   538
              #immediateAccept: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   539
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   540
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   541
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   542
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   543
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   544
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   545
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   546
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   547
              #label: 'Value:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   548
              #name: 'choiceValueLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   549
              #layout: #(#AlignmentOrigin 107 0 205 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   550
              #activeHelpKey: #basicsChoiceValue
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   551
              #translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   552
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   553
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   554
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   555
           #(#InputFieldSpec
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   556
              #attributes: 
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   557
             #(#tabable
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   558
                true
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   559
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   560
              #name: 'choiceValueField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   561
              #layout: #(#LayoutFrame 110 0 194 0 -5 1.0 216 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   562
              #activeHelpKey: #basicsChoiceValue
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   563
              #enableChannel: #choiceValueEnabled
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   564
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   565
              #model: #choiceValue
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   566
              #group: #inputGroup1
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   567
              #type: #smalltalkObject
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   568
              #acceptOnLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   569
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   570
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   571
              #acceptOnLostFocus: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   572
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   573
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   574
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   575
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   576
           #(#CheckBoxSpec
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   577
              #attributes: 
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   578
             #(#tabable
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   579
                true
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   580
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   581
              #label: 'Translate Label'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   582
              #name: 'translateLabelCheckBox'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   583
              #layout: #(#Point 20 230)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   584
              #activeHelpKey: #basicsTranslateLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   585
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   586
              #model: #translateLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   587
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   588
           #(#CheckBoxSpec
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   589
              #attributes: 
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   590
             #(#tabable
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   591
                true
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   592
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   593
              #label: 'Is Button'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   594
              #name: 'isButtonCheckBox'
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   595
              #layout: #(#Point 20 256)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   596
              #activeHelpKey: #basicsIsButton
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   597
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   598
              #model: #isButton
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   599
            )
1321
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   600
           #(#CheckBoxSpec
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   601
              #attributes: 
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   602
             #(#tabable
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   603
                true
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   604
              )
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   605
              #label: 'Hide Menu after Activation'
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   606
              #name: 'hideMenuOnActivated'
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   607
              #layout: #(#Point 20 281)
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   608
              #activeHelpKey: #hideMenuOnActivated
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   609
              #tabable: true
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   610
              #model: #hideMenuOnActivated
7894e542c64b add new behavior: hideMenuOnActivated
ca
parents: 1301
diff changeset
   611
            )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   612
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   613
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   614
        )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   615
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   616
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   617
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   618
basicsLinkSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   619
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   620
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   621
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   622
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   623
     the UIPainter may not be able to read the specification."
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   624
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   625
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   626
     UIPainter new openOnClass:MenuEditor andSelector:#basicsLinkSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   627
     MenuEditor new openInterface:#basicsLinkSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   628
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   629
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   630
    <resource: #canvas>
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   631
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   632
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   633
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   634
        #name: #basicsLinkSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   635
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   636
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   637
          #label: 'Basics Link'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   638
          #name: 'Basics Link'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   639
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   640
          #max: #(#Point 1280 1024)
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   641
          #bounds: #(#Rectangle 94 229 361 548)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   642
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   643
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   644
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   645
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   646
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   647
              #label: 'Name Key:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   648
              #name: 'nameKeyLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   649
              #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   650
              #activeHelpKey: #nameKey
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   651
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   652
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   653
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   654
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   655
              #name: 'nameKeyField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   656
              #layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   657
              #activeHelpKey: #basicsNameKey
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   658
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   659
              #model: #nameKey
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   660
              #group: #inputGroup2
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   661
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   662
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   663
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   664
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   665
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   666
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   667
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   668
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   669
              #label: 'Label:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   670
              #name: 'labelLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   671
              #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   672
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   673
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   674
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   675
              #name: 'labelField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   676
              #layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   677
              #activeHelpKey: #basicsLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   678
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   679
              #model: #label
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   680
              #group: #inputGroup2
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   681
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   682
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   683
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   684
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   685
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   686
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   687
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   688
              #label: 'Menu:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   689
              #name: 'menuLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   690
              #layout: #(#AlignmentOrigin 107 0 76 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   691
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   692
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   693
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   694
              #name: 'menuField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   695
              #layout: #(#LayoutFrame 110 0 65 0 -5 1.0 87 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   696
              #activeHelpKey: #basicsMenu
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   697
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   698
              #model: #submenuChannel
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   699
              #group: #inputGroup2
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   700
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   701
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   702
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   703
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   704
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   705
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   706
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   707
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   708
              #label: 'Argument:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   709
              #name: 'ArgumentLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   710
              #layout: #(#AlignmentOrigin 107 0 100 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   711
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   712
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   713
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   714
              #name: 'argumentField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   715
              #layout: #(#LayoutFrame 110 0 90 0 -5 1.0 112 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   716
              #activeHelpKey: #basicsMenuArgument
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   717
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   718
              #model: #argument
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   719
              #group: #inputGroup2
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   720
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   721
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   722
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   723
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   724
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   725
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   726
           #(#CheckBoxSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   727
              #label: 'Translate Label'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   728
              #name: 'translateLabelCheckBox'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   729
              #layout: #(#Point 20 190)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   730
              #activeHelpKey: #basicsTranslateLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   731
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   732
              #model: #translateLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   733
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   734
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   735
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   736
        )
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   737
      )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   738
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   739
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   740
basicsMenuSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   741
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   742
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   743
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   744
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   745
     the UIPainter may not be able to read the specification."
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   746
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   747
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   748
     UIPainter new openOnClass:MenuEditor andSelector:#basicsMenuSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   749
     MenuEditor new openInterface:#basicsMenuSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   750
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   751
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   752
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   753
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   754
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   755
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   756
        #name: #basicsMenuSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   757
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   758
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   759
          #label: 'Basics Menu'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   760
          #name: 'Basics Menu'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   761
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   762
          #max: #(#Point 1280 1024)
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   763
          #bounds: #(#Rectangle 93 223 360 542)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   764
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   765
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   766
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   767
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   768
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   769
              #label: 'Name Key:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   770
              #name: 'nameKeyLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   771
              #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   772
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   773
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   774
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   775
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   776
              #name: 'nameKeyField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   777
              #layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   778
              #activeHelpKey: #basicsNameKey
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   779
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   780
              #model: #nameKey
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   781
              #group: #inputGroup3
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   782
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   783
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   784
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   785
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   786
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   787
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   788
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   789
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   790
              #label: 'Label:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   791
              #name: 'labelLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   792
              #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   793
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   794
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   795
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   796
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   797
              #name: 'labelField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   798
              #layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   799
              #activeHelpKey: #basicsLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   800
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   801
              #model: #label
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   802
              #group: #inputGroup3
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   803
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   804
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   805
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   806
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   807
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   808
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   809
           #(#CheckBoxSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   810
              #label: 'Translate Label'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   811
              #name: 'translateLabelCheckBox'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   812
              #layout: #(#Point 20 190)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   813
              #activeHelpKey: #basicsTranslateLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   814
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   815
              #model: #translateLabel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   816
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   817
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   818
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   819
        )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   820
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   821
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   822
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   823
basicsRootSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   824
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   825
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   826
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   827
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   828
     the UIPainter may not be able to read the specification."
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   829
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   830
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   831
     UIPainter new openOnClass:MenuEditor andSelector:#basicsRootSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   832
     MenuEditor new openInterface:#basicsRootSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   833
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   834
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   835
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   836
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   837
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   838
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   839
        #name: #basicsRootSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   840
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   841
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   842
          #label: 'Basics Root'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   843
          #name: 'Basics Root'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   844
          #layout: #(#LayoutFrame 11 0 100 0 277 0 418 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   845
          #level: 0
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   846
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   847
          #max: #(#Point 1280 1024)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   848
          #bounds: #(#Rectangle 11 100 278 419)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   849
          #usePreferredExtent: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   850
          #returnIsOKInDialog: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   851
          #escapeIsCancelInDialog: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   852
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   853
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   854
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   855
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   856
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   857
              #label: 'Selector:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   858
              #name: 'selectorLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   859
              #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   860
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   861
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   862
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   863
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   864
              #name: 'selectorField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   865
              #layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   866
              #activeHelpKey: #basicsSelector
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   867
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   868
              #model: #label
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   869
              #group: #inputGroup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   870
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   871
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   872
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   873
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   874
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   875
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   876
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   877
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   878
        )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   879
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   880
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   881
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   882
basicsSeparatorSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   883
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   884
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   885
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   886
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   887
     the UIPainter may not be able to read the specification."
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   888
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   889
    "
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   890
     UIPainter new openOnClass:MenuEditor andSelector:#basicsSeparatorSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   891
     MenuEditor new openInterface:#basicsSeparatorSpec
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   892
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   893
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   894
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   895
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   896
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   897
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   898
        #name: #basicsSeparatorSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   899
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   900
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   901
          #label: 'Basics Separator'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   902
          #name: 'Basics Separator'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   903
          #layout: #(#LayoutFrame 9 0 149 0 275 0 467 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   904
          #level: 0
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   905
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   906
          #max: #(#Point 1160 870)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   907
          #bounds: #(#Rectangle 9 149 276 468)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   908
          #usePreferredExtent: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   909
          #returnIsOKInDialog: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   910
          #escapeIsCancelInDialog: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   911
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   912
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   913
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   914
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   915
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   916
              #label: 'Separator Type:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   917
              #name: 'separatorLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   918
              #layout: #(#AlignmentOrigin 127 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   919
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   920
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   921
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   922
           #(#ComboListSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   923
              #name: 'seperatorList'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   924
              #layout: #(#LayoutFrame 132 0 15 0 -5 1.0 37 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   925
              #activeHelpKey: #basicsSeparatorType
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   926
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   927
              #model: #seperatorSelection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   928
              #useIndex: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   929
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   930
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   931
              #label: 'Visibility:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   932
              #name: 'visibilityLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   933
              #layout: #(#AlignmentOrigin 127 0 76 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   934
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   935
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   936
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   937
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   938
              #name: 'visibilityInputField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   939
              #layout: #(#LayoutFrame 132 0 65 0 -5 1.0 87 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   940
              #activeHelpKey: #detailsVisibility
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   941
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   942
              #model: #isVisible
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   943
              #group: #inputGroup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   944
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   945
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   946
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   947
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   948
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   949
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   950
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   951
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   952
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   953
        )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   954
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   955
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   956
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   957
detailsEditSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   958
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   959
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   960
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   961
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
   962
     the UIPainter may not be able to read the specification."
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   963
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   964
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   965
     UIPainter new openOnClass:MenuEditor andSelector:#detailsEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   966
     MenuEditor new openInterface:#detailsEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   967
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   968
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   969
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   970
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   971
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   972
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   973
        #name: #detailsEditSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   974
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   975
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   976
          #label: 'Details Edit'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   977
          #name: 'Details Edit'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   978
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   979
          #max: #(#Point 1280 1024)
1264
a8588e94d16f checkin from browser
ca
parents: 1256
diff changeset
   980
          #bounds: #(#Rectangle 670 329 985 613)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   981
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   982
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   983
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   984
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   985
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   986
              #label: 'Accelerator:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   987
              #name: 'shortcutKeyLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   988
              #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   989
              #activeHelpKey: #detailsAccelerator
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   990
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   991
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   992
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   993
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   994
              #name: 'shortcutKeyField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   995
              #layout: #(#LayoutFrame 110 0 15 0 -5 1.0 37 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   996
              #activeHelpKey: #detailsAccelerator
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   997
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
   998
              #model: #shortcutKey
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
   999
              #group: #inputGroup4
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1000
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1001
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1002
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1003
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1004
              #modifiedChannel: #modifiedChannel
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1005
              #acceptOnPointerLeave: false
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1006
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1007
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1008
              #label: 'Enabled:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1009
              #name: 'enabledLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1010
              #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1011
              #activeHelpKey: #detailsEnabled
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1012
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1013
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1014
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1015
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1016
              #name: 'enabledField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1017
              #layout: #(#LayoutFrame 110 0 40 0 -5 1.0 62 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1018
              #activeHelpKey: #detailsEnabled
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1019
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1020
              #model: #enabled
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1021
              #group: #inputGroup4
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1022
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1023
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1024
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1025
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1026
              #modifiedChannel: #modifiedChannel
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1027
              #acceptOnPointerLeave: false
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1028
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1029
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1030
              #label: 'Visibility:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1031
              #name: 'visibilityLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1032
              #layout: #(#AlignmentOrigin 107 0 76 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1033
              #activeHelpKey: #detailsVisibility
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1034
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1035
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1036
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1037
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1038
              #name: 'isVisibleInputField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1039
              #layout: #(#LayoutFrame 110 0 65 0 -5 1.0 87 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1040
              #activeHelpKey: #detailsVisibility
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1041
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1042
              #model: #isVisible
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1043
              #group: #inputGroup4
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1044
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1045
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1046
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1047
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1048
              #modifiedChannel: #modifiedChannel
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1049
              #acceptOnPointerLeave: false
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1050
            )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1051
           #(#LabelSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1052
              #label: 'Aux Value'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1053
              #name: 'auxLabel'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1054
              #layout: #(#AlignmentOrigin 107 0 101 0 1 0.5)
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1055
              #activeHelpKey: #detailsAuxValue
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1056
              #translateLabel: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1057
              #resizeForLabel: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1058
              #adjust: #right
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1059
            )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1060
           #(#InputFieldSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1061
              #name: 'auxInputField'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1062
              #layout: #(#LayoutFrame 110 0 90 0 -5 1.0 112 0)
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1063
              #activeHelpKey: #detailsAuxValue
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1064
              #tabable: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1065
              #model: #auxValue
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1066
              #group: #inputGroup4
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1067
              #type: #smalltalkObject
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1068
              #acceptOnReturn: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1069
              #acceptOnTab: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1070
              #acceptChannel: #acceptChannel
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1071
              #modifiedChannel: #modifiedChannel
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1072
              #acceptOnPointerLeave: false
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1073
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1074
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1075
              #label: 'Start Group:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1076
              #name: 'StartGroupLabel'
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
  1077
              #layout: #(#AlignmentOrigin 107 0 139 0 1 0.5)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1078
              #activeHelpKey: #detailsStartGroup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1079
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1080
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1081
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1082
           #(#PopUpListSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1083
              #label: 'PopUpList'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1084
              #name: 'StartGroupPopUp'
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
  1085
              #layout: #(#LayoutFrame 110 0 128 0 -5 1.0 150 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1086
              #activeHelpKey: #detailsStartGroup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1087
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1088
              #model: #startGroup
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1089
              #menu: 
1264
a8588e94d16f checkin from browser
ca
parents: 1256
diff changeset
  1090
             #(nil
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1091
                #right
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1092
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1093
              #useIndex: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1094
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1095
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1096
              #label: 'Access Character Position:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1097
              #name: 'accessCharLabel'
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
  1098
              #layout: #(#AlignmentOrigin 217 0 170 0 1 0.5)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1099
              #activeHelpKey: #detailsAccessCharaterPosition
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1100
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1101
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1102
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1103
           #(#InputFieldSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1104
              #name: 'accessCharField'
1199
5460de03e215 auxValue added
tm
parents: 1189
diff changeset
  1105
              #layout: #(#LayoutFrame 220 0 159 0 -5 1.0 181 0)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1106
              #activeHelpKey: #detailsAccessCharaterPosition
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1107
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1108
              #model: #accessCharacterPos
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1109
              #group: #inputGroup4
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1110
              #type: #numberOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1111
              #immediateAccept: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1112
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1113
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1114
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1115
              #modifiedChannel: #modifiedChannel
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1116
              #acceptOnPointerLeave: false
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1117
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1118
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1119
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1120
        )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1121
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1122
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1123
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1124
imageEditSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1125
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1126
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1127
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1128
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1129
     the UIPainter may not be able to read the specification."
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1130
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1131
    "
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1132
     UIPainter new openOnClass:MenuEditor andSelector:#imageEditSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
  1133
     MenuEditor new openInterface:#imageEditSpec
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1134
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1135
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1136
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1137
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1138
    ^ 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1139
     #(#FullSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1140
        #name: #imageEditSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1141
        #window: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1142
       #(#WindowSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1143
          #label: 'Image Item'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1144
          #name: 'Image Item'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1145
          #min: #(#Point 10 10)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1146
          #max: #(#Point 1280 1024)
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1147
          #bounds: #(#Rectangle 15 153 411 430)
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1148
        )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1149
        #component: 
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1150
       #(#SpecCollection
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1151
          #collection: #(
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1152
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1153
              #label: 'Retriever:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1154
              #name: 'retrieverLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1155
              #layout: #(#AlignmentOrigin 107 0 26 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1156
              #activeHelpKey: #imageRetriever
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1157
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1158
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1159
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1160
           #(#ComboBoxSpec
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1161
              #attributes: 
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1162
             #(#tabable
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1163
                true
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1164
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1165
              #name: 'retrieverField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1166
              #layout: #(#LayoutFrame 110 0 15 0 0 1.0 37 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1167
              #activeHelpKey: #imageRetriever
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1168
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1169
              #model: #retriever
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1170
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1171
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1172
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1173
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1174
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1175
              #comboList: #retrieverClassList
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1176
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1177
           #(#LabelSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1178
              #label: 'Selector:'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1179
              #name: 'iconLabel'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1180
              #layout: #(#AlignmentOrigin 107 0 51 0 1 0.5)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1181
              #activeHelpKey: #imageSelector
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1182
              #resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1183
              #adjust: #right
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1184
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1185
           #(#InputFieldSpec
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1186
              #attributes: 
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1187
             #(#tabable
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1188
                true
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1189
              )
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1190
              #name: 'iconField'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1191
              #layout: #(#LayoutFrame 110 0 40 0 -31 1.0 62 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1192
              #activeHelpKey: #imageSelector
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1193
              #tabable: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1194
              #model: #icon
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1195
              #group: #inputGroup5
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1196
              #type: #symbolOrNil
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1197
              #acceptOnReturn: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1198
              #acceptOnTab: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1199
              #acceptChannel: #acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1200
              #modifiedChannel: #modifiedChannel
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1201
              #acceptOnPointerLeave: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1202
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1203
           #(#ActionButtonSpec
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1204
              #attributes: 
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1205
             #(#tabable
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1206
                true
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1207
              )
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1208
              #label: '...'
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1209
              #name: 'browseButton'
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1210
              #layout: #(#LayoutFrame -26 1 41 0 -2 1 63 0)
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1211
              #activeHelpKey: #browseResource
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1212
              #tabable: true
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1213
              #model: #doBrowseForImageResource
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1214
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1215
           #(#SequenceViewSpec
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1216
              #name: 'systemOrUserImagesList'
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1217
              #layout: #(#LayoutFrame 22 0 67 0 11 0.6 200 0)
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1218
              #activeHelpKey: #imageImageList
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1219
              #tabable: true
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1220
              #model: #selectionOfImage
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1221
              #menu: #menuEditImage
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1222
              #hasHorizontalScrollBar: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1223
              #hasVerticalScrollBar: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1224
              #miniScrollerHorizontal: true
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1225
              #doubleClickSelector: #doEditImage
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1226
              #valueChangeSelector: #imageSelected
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1227
              #useIndex: false
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1228
              #sequenceList: #listOfImages
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1229
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1230
           #(#ActionButtonSpec
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1231
              #attributes: 
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1232
             #(#tabable
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1233
                true
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1234
              )
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1235
              #label: 'Image Editor'
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1236
              #name: 'imageEditorButton'
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1237
              #layout: #(#LayoutFrame 19 0.6 128 0 -5 1 152 0)
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1238
              #activeHelpKey: #imageImageEditor
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1239
              #tabable: true
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1240
              #model: #doEditImage
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1241
            )
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1242
           #(#CheckBoxSpec
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1243
              #attributes: 
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1244
             #(#tabable
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1245
                true
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1246
              )
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1247
              #label: 'Image & Label'
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1248
              #name: 'iconAndLabelCheckBox'
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1249
              #layout: #(#LayoutOrigin 20 0 215 0)
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1250
              #activeHelpKey: #imageImageAndLabel
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1251
              #tabable: true
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  1252
              #model: #iconAndLabel
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1253
            )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1254
           )
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1255
         
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  1256
        )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1257
      )
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1258
!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1259
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1260
windowSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1261
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1262
     by the UIPainter of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1263
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1264
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1265
     the UIPainter may not be able to read the specification."
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1266
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1267
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1268
     UIPainter new openOnClass:MenuEditor andSelector:#windowSpec
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1269
     MenuEditor new openInterface:#windowSpec
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1270
     MenuEditor open
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1271
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1272
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1273
    <resource: #canvas>
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1274
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1275
    ^ 
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1276
     #(#FullSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1277
        #name: #windowSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1278
        #window: 
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1279
       #(#WindowSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1280
          #label: 'Menu Editor'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1281
          #name: 'Menu Editor'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1282
          #min: #(#Point 550 440)
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1283
          #max: #(#Point 1152 900)
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1284
          #bounds: #(#Rectangle 12 22 569 462)
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1285
          #menu: #menu
1249
bb12f148aa96 remove ok is accept in windowSpec
ca
parents: 1246
diff changeset
  1286
          #returnIsOKInDialog: false
bb12f148aa96 remove ok is accept in windowSpec
ca
parents: 1246
diff changeset
  1287
          #escapeIsCancelInDialog: false
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1288
        )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1289
        #component: 
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1290
       #(#SpecCollection
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1291
          #collection: #(
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1292
           #(#MenuPanelSpec
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1293
              #attributes: 
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1294
             #(#tabable
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1295
                true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1296
              )
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1297
              #name: 'menuToolbarView'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1298
              #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1299
              #tabable: true
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1300
              #menu: #menuToolbar
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1301
              #showSeparatingLines: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1302
            )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1303
           #(#VariableHorizontalPanelSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1304
              #name: 'VariableHorizontalPanel'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1305
              #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0)
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1306
              #component: 
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1307
             #(#SpecCollection
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1308
                #collection: #(
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1309
                 #(#ArbitraryComponentSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1310
                    #name: 'TreeView'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1311
                    #menu: #menuEdit
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1312
                    #hasHorizontalScrollBar: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1313
                    #hasVerticalScrollBar: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1314
                    #hasBorder: false
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1315
                    #component: #treeView
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1316
                  )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1317
                 #(#ViewSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1318
                    #name: 'Box'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1319
                    #level: -1
703
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1320
                    #component: 
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1321
                   #(#SpecCollection
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1322
                      #collection: #(
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1323
                       #(#NoteBookViewSpec
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1324
                          #attributes: 
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1325
                         #(#tabable
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1326
                            true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1327
                          )
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1328
                          #name: 'NoteBook'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1329
                          #layout: #(#LayoutFrame 1 0.0 0 0.0 1 1.0 -30 1.0)
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1330
                          #enableChannel: #hasAnySingleSelection
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1331
                          #tabable: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1332
                          #model: #tabModel
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1333
                          #menu: #tabList
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1334
                          #useIndex: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1335
                          #canvas: #tabCanvasHolder
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1336
                          #keepCanvasAlive: true
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1337
                        )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1338
                       #(#UISubSpecification
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1339
                          #name: 'SubSpecification'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1340
                          #layout: #(#LayoutFrame 2 0.0 -26 1 -2 1.0 -2 1.0)
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1341
                          #majorKey: #ToolApplicationModel
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1342
                          #minorKey: #windowSpecForCommit
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1343
                        )
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1344
                       )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1345
                     
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1346
                    )
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1347
                  )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1348
                 )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1349
               
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1350
              )
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1351
              #handles: #(#Any 0.346499 1.0)
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1352
            )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1353
           #(#UISubSpecification
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1354
              #name: 'InfoBarSubSpec'
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1355
              #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1356
              #majorKey: #ToolApplicationModel
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1357
              #minorKey: #windowSpecForInfoBar
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1358
            )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1359
           )
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1360
         
fd44af858001 optimized
ca
parents: 1200
diff changeset
  1361
        )
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1362
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1363
! !
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1364
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1365
!MenuEditor class methodsFor:'menu specs'!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1366
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1367
menu
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1368
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1369
     by the MenuEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1370
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1371
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1372
     the MenuEditor may not be able to read the specification."
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1373
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1374
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1375
     MenuEditor new openOnClass:MenuEditor andSelector:#menu
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1376
     (Menu new fromLiteralArrayEncoding:(MenuEditor menu)) startUp
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1377
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1378
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1379
    <resource: #menu>
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1380
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1381
    ^
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1382
     
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1383
       #(#Menu
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1384
          
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1385
           #(
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1386
             #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1387
                #label: 'About'
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1388
                #translateLabel: true
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1389
                #accessCharacterPosition: 1
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1390
                #labelImage: #(#ResourceRetriever nil #menuIcon)
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1391
                #submenuChannel: #menuAbout
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1392
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1393
             #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1394
                #label: 'File'
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1395
                #activeHelpKey: #file
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1396
                #translateLabel: true
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1397
                #submenu: 
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1398
                 #(#Menu
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1399
                    
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1400
                     #(
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1401
                       #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1402
                          #label: 'New'
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1403
                          #value: #doNew
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1404
                          #translateLabel: true
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1405
                          #activeHelpKey: #fileNew
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1406
                      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1407
                       #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1408
                          #label: '-'
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1409
                      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1410
                       #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1411
                          #label: 'Load...'
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1412
                          #translateLabel: true
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1413
                          #value: #doLoad
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1414
                          #activeHelpKey: #fileLoad
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1415
                      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1416
                       #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1417
                          #label: '-'
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1418
                      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1419
                       #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1420
                          #label: 'Save'
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1421
                          #translateLabel: true
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1422
                          #value: #doSave
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1423
                          #activeHelpKey: #fileSave
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1424
                      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1425
                       #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1426
                          #label: 'Save As...'
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1427
                          #translateLabel: true
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1428
                          #value: #doSaveAs
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1429
                          #activeHelpKey: #fileSaveAs
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  1430
                      )
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  1431
                       #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1432
                          #label: '-'
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1433
                      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1434
                       #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1435
                          #label: 'Pick A Menu...'
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1436
                          #translateLabel: true
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1437
                          #value: #doPickAMenu
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1438
                          #activeHelpKey: #filePickAMenu
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1439
                      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1440
                       #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1441
                          #label: '-'
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1442
                      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1443
                       #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1444
                          #label: 'Browse Class'
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1445
                          #translateLabel: true
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1446
                          #value: #doBrowseClass
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1447
                          #activeHelpKey: #fileBrowseClass
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1448
                      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1449
                       #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1450
                          #label: '-'
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1451
                      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1452
                       #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1453
                          #label: 'Exit'
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1454
                          #translateLabel: true
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1455
                          #value: #closeRequest
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1456
                          #activeHelpKey: #fileExit
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1457
                      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1458
                    ) nil
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1459
                    nil
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1460
                )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1461
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1462
             #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1463
                #label: 'Edit'
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1464
                #activeHelpKey: #edit
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1465
                #translateLabel: true
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1466
                #submenuChannel: #menuEdit
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1467
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1468
             #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1469
                #label: 'Add'
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1470
                #activeHelpKey: #add
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1471
                #translateLabel: true
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1472
                #submenuChannel: #menuAdd
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1473
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1474
             #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1475
                #label: 'Test'
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1476
                #activeHelpKey: #test
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1477
                #translateLabel: true
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1478
                #submenuChannel: #submenuTest
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1479
            )
1033
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1480
"/             #(#MenuItem
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1481
"/                #label: 'Settings'
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1482
"/                #submenu: 
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1483
"/                 #(#Menu
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1484
"/                    
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1485
"/                     #(
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1486
"/                       #(#MenuItem
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1487
"/                          #label: 'Fonts'
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1488
"/                          #translateLabel: true
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1489
"/                          #submenuChannel: #menuFont
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1490
"/                      )
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1491
"/                    ) nil
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1492
"/                    nil
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1493
"/                )
21b3bc025e0c removed the (stupid) fontSettings menu support.
Claus Gittinger <cg@exept.de>
parents: 1023
diff changeset
  1494
"/            )
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1495
             #(#MenuItem
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1496
                #label: 'History'
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1497
                #activeHelpKey: #history
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1498
                #translateLabel: true
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1499
                #submenuChannel: #menuHistory
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1500
            )
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1501
             #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1502
                #label: 'Help'
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1503
                #translateLabel: true
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1504
                #startGroup: #right
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1505
                #submenu: 
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1506
                 #(#Menu
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1507
                    
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1508
                     #(
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1509
                       #(#MenuItem
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1510
                          #label: 'Documentation'
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1511
                          #value: #openHTMLDocument:
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1512
                          #translateLabel: true
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1513
                          #activeHelpKey: #helpTutorial
764
5722b94330ef docu call
tz
parents: 748
diff changeset
  1514
                          #argument: 'tools/uipainter/MenuEditor.html'
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1515
                      )
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1516
                       #(#MenuItem
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1517
                          #label: '-'
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1518
                      )
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1519
                       #(#MenuItem
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1520
                          #label: 'Help Tool'
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1521
                          #value: #openHTMLDocument:
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1522
                          #translateLabel: true
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1523
                          #activeHelpKey: #helpHelpTool
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1524
                          #argument: 'tools/uipainter/HelpTool.html'
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1525
                      )
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1526
                       #(#MenuItem
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1527
                          #label: '-'
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1528
                      )
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1529
                       #(#MenuItem
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1530
                          #label: 'Show Help Texts'
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1531
                          #translateLabel: true
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1532
                          #activeHelpKey: #helpShowHelp
936
f3db8359547a method rename: #showHelp -> #showingHelp
Claus Gittinger <cg@exept.de>
parents: 931
diff changeset
  1533
                          #indication: #showingHelp:
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1534
                      )
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1535
                    ) nil
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1536
                    nil
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  1537
                )
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1538
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1539
          ) nil
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1540
          nil
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1541
      )
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1542
936
f3db8359547a method rename: #showHelp -> #showingHelp
Claus Gittinger <cg@exept.de>
parents: 931
diff changeset
  1543
    "Modified: / 31.7.1998 / 18:19:47 / cg"
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1544
!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1545
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1546
menuAdd
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1547
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1548
     by the MenuEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1549
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1550
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1551
     the MenuEditor may not be able to read the specification."
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1552
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1553
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1554
     MenuEditor new openOnClass:MenuEditor andSelector:#menuAdd
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1555
     (Menu new fromLiteralArrayEncoding:(MenuEditor menuAdd)) startUp
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1556
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1557
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1558
    <resource: #menu>
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1559
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1560
    ^
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1561
     
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1562
       #(#Menu
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1563
          
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1564
           #(
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1565
             #(#MenuItem
703
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1566
                #label: 'Menu Item'
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1567
                #translateLabel: true
703
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1568
                #value: #doCreateItem
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1569
                #activeHelpKey: #addMenuItem
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1570
                #labelImage: #(#ResourceRetriever #MenuEditor #menuItemImage 'Menu Item')
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1571
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1572
             #(#MenuItem
703
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1573
                #label: 'Menu Separator'
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1574
                #translateLabel: true
703
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1575
                #value: #doCreateSep
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1576
                #activeHelpKey: #addMenuSeparator
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1577
                #labelImage: #(#ResourceRetriever #MenuEditor #menuSeparatorImage 'Menu Separator')
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1578
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1579
             #(#MenuItem
703
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1580
                #label: '-'
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1581
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1582
             #(#MenuItem
703
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1583
                #label: 'Submenu'
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1584
                #translateLabel: true
703
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1585
                #value: #doCreateMenu
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1586
                #activeHelpKey: #addSubMenu
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1587
                #labelImage: #(#ResourceRetriever #MenuEditor #submenuImage 'Submenu')
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1588
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1589
             #(#MenuItem
703
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1590
                #label: 'Submenu Link'
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1591
                #translateLabel: true
703
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1592
                #value: #doCreateLink
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1593
                #activeHelpKey: #addSubMenuLink
5d0a14bdcc15 docu call changed
tz
parents: 699
diff changeset
  1594
                #labelImage: #(#ResourceRetriever #MenuEditor #linkSubmenuImage 'Submenu Link')
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1595
            )
968
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1596
             #(#MenuItem
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1597
                #label: '-'
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1598
            )
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1599
             #(#MenuItem
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1600
                #label: 'Standard Submenu'
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1601
                #translateLabel: true
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1602
                #submenu: 
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1603
                 #(#Menu
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1604
                    
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1605
                     #(
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1606
                       #(#MenuItem
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1607
                          #label: 'Standard File Menu'
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1608
                          #translateLabel: true
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1609
                          #value: #doCreateStandardFileMenu
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1610
                      )
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1611
                       #(#MenuItem
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1612
                          #label: 'Standard Edit Menu'
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1613
                          #translateLabel: true
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1614
                          #value: #doCreateStandardEditMenu
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1615
                      )
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1616
                       #(#MenuItem
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1617
                          #label: 'Standard Help Menu'
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1618
                          #translateLabel: true
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1619
                          #value: #doCreateStandardHelpMenu
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1620
                      )
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1621
                    ) nil
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1622
                    nil
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1623
                )
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1624
            )
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1625
          ) nil
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1626
          nil
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1627
      )
836
b44c0047291f national strings
Claus Gittinger <cg@exept.de>
parents: 804
diff changeset
  1628
968
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  1629
    "Modified: / 23.8.1998 / 15:48:21 / cg"
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1630
!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1631
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1632
menuDefaultLink
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1633
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1634
     by the MenuEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1635
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1636
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1637
     the MenuEditor may not be able to read the specification."
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1638
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1639
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1640
     MenuEditor new openOnClass:MenuEditor andSelector:#menuDefaultLink
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1641
     (Menu new fromLiteralArrayEncoding:(MenuEditor menuDefaultLink)) startUp
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1642
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1643
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1644
    <resource: #menu>
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1645
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1646
    ^
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1647
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1648
       #(#Menu
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1649
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1650
           #(
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1651
             #(#MenuItem
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1652
                #'label:' '!!!! derives from application !!!!'
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1653
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1654
          ) nil
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1655
          nil
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1656
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1657
!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1658
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1659
menuEdit
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1660
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1661
     by the MenuEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1662
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1663
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1664
     the MenuEditor may not be able to read the specification."
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1665
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1666
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1667
     MenuEditor new openOnClass:MenuEditor andSelector:#menuEdit
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1668
     (Menu new fromLiteralArrayEncoding:(MenuEditor menuEdit)) startUp
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1669
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1670
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1671
    <resource: #menu>
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1672
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1673
    ^
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1674
     
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1675
       #(#Menu
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1676
          
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1677
           #(
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1678
             #(#MenuItem
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1679
                #label: 'Cut'
882
d06b7fd56f47 images moved to class Icon
tz
parents: 879
diff changeset
  1680
                #translateLabel: true
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1681
                #value: #doCut
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1682
                #activeHelpKey: #editCut
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1683
                #enabled: #hasValidSelection
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1684
                #shortcutKeyCharacter: #Cut
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1685
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1686
             #(#MenuItem
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1687
                #label: 'Copy'
882
d06b7fd56f47 images moved to class Icon
tz
parents: 879
diff changeset
  1688
                #translateLabel: true
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1689
                #value: #doCopy
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1690
                #activeHelpKey: #editCopy
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1691
                #enabled: #hasValidSelection
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1692
                #shortcutKeyCharacter: #Copy
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1693
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1694
             #(#MenuItem
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1695
                #label: 'Paste'
882
d06b7fd56f47 images moved to class Icon
tz
parents: 879
diff changeset
  1696
                #translateLabel: true
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1697
                #value: #doPaste
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1698
                #activeHelpKey: #editPaste
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1699
                #enabled: #valueOfCanPaste
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1700
                #shortcutKeyCharacter: #Paste
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1701
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1702
             #(#MenuItem
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1703
                #label: 'Delete'
882
d06b7fd56f47 images moved to class Icon
tz
parents: 879
diff changeset
  1704
                #translateLabel: true
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1705
                #value: #doDelete
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1706
                #activeHelpKey: #editDelete
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1707
                #enabled: #hasValidSelection
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1708
                #shortcutKeyCharacter: #Delete
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1709
            )
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  1710
             #(#MenuItem
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1711
                #label: '-'
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1712
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1713
             #(#MenuItem
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1714
                #label: 'Move Up'
882
d06b7fd56f47 images moved to class Icon
tz
parents: 879
diff changeset
  1715
                #translateLabel: true
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1716
                #value: #doStepUp
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1717
                #activeHelpKey: #editMoveUp
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1718
                #enabled: #valueOfEnableMovingUpOrDown
882
d06b7fd56f47 images moved to class Icon
tz
parents: 879
diff changeset
  1719
                #labelImage: #(#ResourceRetriever #Icon #upIcon 'Move Up')
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1720
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1721
             #(#MenuItem
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1722
                #label: 'Move Down'
882
d06b7fd56f47 images moved to class Icon
tz
parents: 879
diff changeset
  1723
                #translateLabel: true
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1724
                #value: #doStepDown
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1725
                #activeHelpKey: #editMoveDown
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1726
                #enabled: #valueOfEnableMovingUpOrDown
882
d06b7fd56f47 images moved to class Icon
tz
parents: 879
diff changeset
  1727
                #labelImage: #(#ResourceRetriever #Icon #downIcon 'Move Down')
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1728
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1729
             #(#MenuItem
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1730
                #label: 'Move In'
882
d06b7fd56f47 images moved to class Icon
tz
parents: 879
diff changeset
  1731
                #translateLabel: true
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1732
                #value: #doStepIn
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1733
                #activeHelpKey: #editMoveIn
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1734
                #enabled: #valueOfEnableMovingIn
882
d06b7fd56f47 images moved to class Icon
tz
parents: 879
diff changeset
  1735
                #labelImage: #(#ResourceRetriever #Icon #downRightIcon 'Move In')
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1736
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1737
             #(#MenuItem
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1738
                #label: 'Move Out'
882
d06b7fd56f47 images moved to class Icon
tz
parents: 879
diff changeset
  1739
                #translateLabel: true
669
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1740
                #value: #doStepOut
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1741
                #activeHelpKey: #editMoveOut
1f5b2d936bcf disable move down/up buttons while selecting multiple items
tz
parents: 667
diff changeset
  1742
                #enabled: #valueOfEnableMovingOut
882
d06b7fd56f47 images moved to class Icon
tz
parents: 879
diff changeset
  1743
                #labelImage: #(#ResourceRetriever #Icon #leftDownIcon 'Move Out')
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1744
            )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1745
          ) nil
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1746
          nil
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1747
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1748
!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1749
888
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1750
menuEditImage
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1751
    "This resource specification was automatically generated
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1752
     by the MenuEditor of ST/X."
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1753
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1754
    "Do not manually edit this!! If it is corrupted,
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1755
     the MenuEditor may not be able to read the specification."
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1756
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1757
    "
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1758
     MenuEditor new openOnClass:MenuEditor andSelector:#menuEditImage
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1759
     (Menu new fromLiteralArrayEncoding:(MenuEditor menuEditImage)) startUp
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1760
    "
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1761
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1762
    <resource: #menu>
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1763
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1764
    ^
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1765
     
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1766
       #(#Menu
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1767
          
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1768
           #(
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1769
             #(#MenuItem
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1770
                #label: 'Edit'
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1771
                #translateLabel: true
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1772
                #value: #doEditImage
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1773
                #activeHelpKey: #editCut
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1774
                #enabled: #hasValidSelection
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1775
                #shortcutKeyCharacter: #Cut
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1776
            )
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1777
             #(#MenuItem
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1778
                #label: 'Remove'
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1779
                #translateLabel: true
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1780
                #value: #doRemoveImage
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1781
                #activeHelpKey: #editCopy
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1782
                #enabled: #hasValidSelection
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1783
                #shortcutKeyCharacter: #Copy
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1784
            )
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1785
          ) nil
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1786
          nil
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1787
      )
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1788
!
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  1789
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1790
menuToolbar
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1791
    "This resource specification was automatically generated
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1792
     by the MenuEditor of ST/X."
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1793
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1794
    "Do not manually edit this!! If it is corrupted,
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  1795
     the MenuEditor may not be able to read the specification."
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1796
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1797
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1798
     MenuEditor new openOnClass:MenuEditor andSelector:#menuToolbar
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1799
     (Menu new fromLiteralArrayEncoding:(MenuEditor menuToolbar)) startUp
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1800
    "
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1801
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1802
    <resource: #menu>
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1803
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1804
    ^ 
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1805
     #(#Menu
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1806
        #(
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1807
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1808
            #label: 'New'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1809
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1810
            #value: #doNew
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1811
            #activeHelpKey: #fileNew
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1812
            #labelImage: #(#ResourceRetriever #Icon #newIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1813
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1814
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1815
            #label: 'Load'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1816
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1817
            #value: #doLoad
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1818
            #activeHelpKey: #fileLoad
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1819
            #labelImage: #(#ResourceRetriever #Icon #loadIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1820
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1821
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1822
            #label: 'Save'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1823
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1824
            #value: #doSave
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1825
            #activeHelpKey: #fileSave
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1826
            #labelImage: #(#ResourceRetriever #Icon #saveIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1827
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1828
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1829
            #label: ''
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1830
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1831
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1832
            #label: 'Cut'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1833
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1834
            #value: #doCut
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1835
            #activeHelpKey: #editCut
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1836
            #enabled: #hasValidSelection
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1837
            #labelImage: #(#ResourceRetriever #Icon #cutIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1838
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1839
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1840
            #label: 'Copy'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1841
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1842
            #value: #doCopy
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1843
            #activeHelpKey: #editCopy
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1844
            #enabled: #hasValidSelection
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1845
            #labelImage: #(#ResourceRetriever #Icon #copyIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1846
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1847
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1848
            #label: 'Paste'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1849
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1850
            #value: #doPaste
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1851
            #activeHelpKey: #editPaste
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1852
            #enabled: #valueOfCanPaste
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1853
            #labelImage: #(#ResourceRetriever #Icon #pasteIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1854
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1855
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1856
            #label: 'Delete'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1857
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1858
            #value: #doDelete
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1859
            #activeHelpKey: #editDelete
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1860
            #enabled: #hasValidSelection
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1861
            #labelImage: #(#ResourceRetriever #Icon #deleteIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1862
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1863
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1864
            #label: ''
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1865
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1866
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1867
            #label: 'Add Item'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1868
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1869
            #value: #doCreateItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1870
            #activeHelpKey: #addMenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1871
            #enabled: #hasAnySingleSelection
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1872
            #labelImage: #(#ResourceRetriever nil #menuItemImage)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1873
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1874
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1875
            #label: 'Add Separator'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1876
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1877
            #value: #doCreateSep
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1878
            #activeHelpKey: #addMenuSeparator
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1879
            #enabled: #hasAnySingleSelection
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1880
            #labelImage: #(#ResourceRetriever nil #menuSeparatorImage)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1881
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1882
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1883
            #label: 'Add Submenu'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1884
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1885
            #value: #doCreateMenu
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1886
            #activeHelpKey: #addSubMenu
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1887
            #enabled: #hasAnySingleSelection
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1888
            #labelImage: #(#ResourceRetriever nil #submenuImage)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1889
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1890
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1891
            #label: 'Add Linked Submenu'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1892
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1893
            #value: #doCreateLink
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1894
            #activeHelpKey: #addSubMenuLink
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1895
            #enabled: #hasAnySingleSelection
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1896
            #labelImage: #(#ResourceRetriever nil #linkSubmenuImage)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1897
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1898
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1899
            #label: ''
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1900
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1901
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1902
            #label: 'Move Up'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1903
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1904
            #value: #doStepUp
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1905
            #activeHelpKey: #editMoveUp
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1906
            #enabled: #valueOfEnableMovingUpOrDown
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1907
            #labelImage: #(#ResourceRetriever #Icon #upIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1908
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1909
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1910
            #label: 'Move Down'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1911
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1912
            #value: #doStepDown
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1913
            #activeHelpKey: #editMoveDown
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1914
            #enabled: #valueOfEnableMovingUpOrDown
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1915
            #labelImage: #(#ResourceRetriever #Icon #downIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1916
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1917
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1918
            #label: 'Move In'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1919
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1920
            #value: #doStepIn
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1921
            #activeHelpKey: #editMoveIn
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1922
            #enabled: #valueOfEnableMovingIn
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1923
            #labelImage: #(#ResourceRetriever #Icon #downRightIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1924
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1925
         #(#MenuItem
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1926
            #label: 'Move Out'
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1927
            #isButton: true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1928
            #value: #doStepOut
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1929
            #activeHelpKey: #editMoveOut
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1930
            #enabled: #valueOfEnableMovingOut
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1931
            #labelImage: #(#ResourceRetriever #Icon #leftDownIcon)
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1932
          )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1933
         )
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1934
        nil
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  1935
        nil
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1936
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1937
! !
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1938
971
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1939
!MenuEditor class methodsFor:'queries'!
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1940
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1941
getAllImageSelectorsFrom: aClass
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1942
    "returns all image selectors implementing an image spec in class aClass"
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1943
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1944
     |iconClass imageMethodSelectors r|
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1945
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1946
     aClass isNil ifTrue:[
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1947
        ^ #()
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1948
     ].
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1949
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1950
     aClass isSymbol 
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1951
        ifTrue:  [iconClass := Smalltalk at: aClass]
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1952
        ifFalse: [iconClass := aClass].
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  1953
     aClass isBehavior ifFalse:[
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  1954
        ^ #()
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  1955
     ].
971
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1956
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1957
     imageMethodSelectors := OrderedCollection new.
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1958
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1959
     iconClass withAllSuperclasses do:[:cls |
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1960
        cls class methodDictionary keysAndValuesDo: [:sel :m | 
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  1961
            ((r := m resourceType) == #image
971
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1962
            or:[r == #programImage]) ifTrue:[
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1963
                imageMethodSelectors add:sel
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1964
            ]
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1965
        ]
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1966
     ].
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1967
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1968
     ^ imageMethodSelectors asSortedCollection asOrderedCollection
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1969
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1970
    "Modified: / 24.8.1998 / 21:42:34 / cg"
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1971
    "Created: / 24.8.1998 / 21:53:20 / cg"
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1972
! !
f3b1476f5006 find all images in getAllImageSelectorsFrom: (walk superclass chain)
Claus Gittinger <cg@exept.de>
parents: 970
diff changeset
  1973
525
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1974
!MenuEditor class methodsFor:'slices'!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1975
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1976
slicesItem
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1977
    ^#(
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1978
            (Basics     basicsItemSpec)
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1979
            (Details    detailsEditSpec)
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1980
            (Image      imageEditSpec)
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1981
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1982
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1983
!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1984
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1985
slicesLink
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1986
    ^#(
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1987
            (Basics     basicsLinkSpec)
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1988
            (Details    detailsEditSpec)
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1989
            (Image      imageEditSpec)
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1990
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1991
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1992
!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1993
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1994
slicesMenu
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1995
    ^#(
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1996
            (Basics     basicsMenuSpec)
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1997
            (Details    detailsEditSpec)
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1998
            (Image      imageEditSpec)
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  1999
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2000
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2001
!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2002
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2003
slicesRootMenu
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2004
    ^#(
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2005
            (Basics   basicsRootSpec)
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2006
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2007
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2008
!
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2009
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2010
slicesSeparatorMenu
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2011
    ^#(
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2012
            (Basics   basicsSeparatorSpec)
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2013
      )
3c59244da8c8 dialog headline changed + some cleans
tz
parents: 520
diff changeset
  2014
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2015
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2016
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2017
!MenuEditor methodsFor:'accessing'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2018
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2019
submenuTest
849
0001a9185d99 translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents: 836
diff changeset
  2020
    "return the submenu assigned to item test;
0001a9185d99 translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents: 836
diff changeset
  2021
     this is dynamically constructed, to reflect the current
0001a9185d99 translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents: 836
diff changeset
  2022
     edited menu."
0001a9185d99 translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents: 836
diff changeset
  2023
0001a9185d99 translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents: 836
diff changeset
  2024
    |menu cls|
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2025
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2026
    (menu := treeView asMenu) allItemsDo:[:anItem|
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2027
        anItem value:nil.
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2028
        anItem enabled:true.
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2029
    ].
849
0001a9185d99 translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents: 836
diff changeset
  2030
0001a9185d99 translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents: 836
diff changeset
  2031
    cls := self resolveName:specClass.
0001a9185d99 translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents: 836
diff changeset
  2032
    menu findGuiResourcesIn:cls.
0001a9185d99 translate labels in the test-menu.
Claus Gittinger <cg@exept.de>
parents: 836
diff changeset
  2033
    ^ menu
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2034
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2035
716
7f95684c7f7d better help tool connection
tz
parents: 710
diff changeset
  2036
useHelpTool: aHelpTool
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  2037
    "take the help dictionaries from aHelpTool into my helpTool"
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2038
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  2039
    self helpTool buildFromClass: aHelpTool specClass.
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  2040
    self helpTool dictionaries:   aHelpTool dictionaries.
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  2041
    self helpTool dictionary:     aHelpTool dictionary
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2042
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2043
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2044
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2045
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2046
!MenuEditor methodsFor:'aspects'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2047
220
ca
parents: 218
diff changeset
  2048
hasAnySingleSelection
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2049
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2050
    ^builder booleanValueAspectFor: #hasAnySingleSelection
220
ca
parents: 218
diff changeset
  2051
!
ca
parents: 218
diff changeset
  2052
ca
parents: 218
diff changeset
  2053
hasValidSelection
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2054
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2055
    ^builder booleanValueAspectFor: #hasValidSelection
220
ca
parents: 218
diff changeset
  2056
!
ca
parents: 218
diff changeset
  2057
879
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2058
listOfImages
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2059
    "get a list of the images
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2060
    "
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2061
    |list|
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2062
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2063
    (list := builder bindingAt:#listOfImages) isNil ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2064
        builder aspectAt:#listOfImages put: (list := List new).
879
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2065
    ].
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2066
    ^ list
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2067
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2068
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2069
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2070
879
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2071
selectionOfImage
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2072
    "get selection of list of the images as value"
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2073
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2074
    |holder|
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2075
    (holder := builder bindingAt:#selectionOfImage) isNil ifTrue:[
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2076
        builder aspectAt:#selectionOfImage put: (holder := nil asValue).
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2077
    ].
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2078
    ^ holder
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2079
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2080
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2081
!
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2082
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2083
tabCanvasHolder
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2084
    "keep the canvas for the current selected item or nil
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2085
    "
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2086
    |holder|
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2087
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2088
    (holder := builder bindingAt:#tabCanvasHolder) isNil ifTrue:[
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2089
        builder aspectAt:#tabCanvasHolder put: (holder := ValueHolder new).
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2090
    ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2091
    ^ holder
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2092
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2093
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2094
!
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2095
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2096
tabList
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  2097
    "get a value holder with the list of the attribute sections (slices)"
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2098
298
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  2099
    |holder|
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2100
298
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  2101
    (holder := builder bindingAt:#tabList) isNil ifTrue:[
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2102
        builder aspectAt:#tabList put:(holder := nil asValue).
298
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  2103
    ].
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  2104
    ^ holder
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  2105
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  2106
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2107
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2108
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2109
treeView
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  2110
    "get a tree view representing hierarchically the menu items"
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2111
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2112
    ^ treeView
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2113
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2114
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  2115
!MenuEditor methodsFor:'building'!
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  2116
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  2117
buildFromClass:aClass andSelector:aSelector
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  2118
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  2119
    self isStandAlone ifTrue:[
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  2120
        self helpTool buildFromClass:specClass
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  2121
    ].              
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2122
    treeView buildFromClass: aClass andSelector: aSelector.
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  2123
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  2124
    self updateHistory.
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  2125
    self updateInfoLabel.
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  2126
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  2127
!
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  2128
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2129
buildFromResourceSpec:aResourceSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2130
    |spec|
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2131
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2132
    spec := aResourceSpec isCollection ifTrue:[aResourceSpec decodeAsLiteralArray]
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2133
                                      ifFalse:[aResourceSpec].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2134
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2135
    self buildFromMenu:spec  
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  2136
! !
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  2137
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2138
!MenuEditor methodsFor:'change & update'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2139
970
23d20044894f show all icons;
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
  2140
update:something with:aParameter from:changedObject
23d20044894f show all icons;
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
  2141
    super update:something with:aParameter from:changedObject.
23d20044894f show all icons;
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
  2142
23d20044894f show all icons;
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
  2143
    changedObject == (aspects at:#retriever) ifTrue:[
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2144
        self updateImageView.
970
23d20044894f show all icons;
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
  2145
    ].
23d20044894f show all icons;
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
  2146
23d20044894f show all icons;
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
  2147
    "Modified: / 24.8.1998 / 21:47:48 / cg"
23d20044894f show all icons;
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
  2148
!
23d20044894f show all icons;
Claus Gittinger <cg@exept.de>
parents: 968
diff changeset
  2149
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  2150
updateChannels
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  2151
    "update channels"
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2152
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2153
    |node parent next state canPaste|
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2154
412
330bf61c53b5 select first menu child item after opening
tz
parents: 411
diff changeset
  2155
    state := false.   
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2156
    node  := treeView selectedNode.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2157
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2158
    node notNil ifTrue:[
220
ca
parents: 218
diff changeset
  2159
        self hasAnySingleSelection value:true.
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2160
        canPaste := self valueOfCanPaste value.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2161
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2162
        (parent := node parent) notNil ifTrue:[
220
ca
parents: 218
diff changeset
  2163
            next := parent childAt:((parent indexOfChild:node) + 1).
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2164
            self valueOfEnableMovingIn       value:(next notNil and:[next hasChildren]).
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2165
            self valueOfEnableMovingUpOrDown value:(parent children size > 1).
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2166
            self valueOfEnableMovingOut      value:parent parent notNil.
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  2167
            self hasValidSelection           value:true.  
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2168
            self valueOfCanPaste             value:canPaste. 
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2169
          ^ self
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2170
        ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2171
    ] ifFalse:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2172
        canPaste := false.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2173
220
ca
parents: 218
diff changeset
  2174
        self hasAnySingleSelection value:false.
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2175
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2176
        treeView numberOfSelections ~~ 0 ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2177
            canPaste := false.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2178
            state    := (treeView isInSelection:1) not
220
ca
parents: 218
diff changeset
  2179
        ]
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2180
    ].          
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2181
    self valueOfEnableMovingUpOrDown value:false.
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2182
    self valueOfEnableMovingIn       value:false.
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2183
    self valueOfEnableMovingOut      value:false.
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  2184
    self hasValidSelection           value:state.     
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2185
    self valueOfCanPaste             value:canPaste. 
879
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2186
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2187
!
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2188
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2189
updateImageView
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2190
    "update the image view
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2191
    "
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2192
    |cls newList icon|
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2193
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2194
    self isImageViewSelected ifFalse:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2195
        ^ self
902
f510032000ad unnecessary info prints
tz
parents: 888
diff changeset
  2196
    ].
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2197
    cls := self currentImageRetrieverClass.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2198
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2199
    lastImageRetriever == cls ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2200
        newList := self listOfImages
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2201
    ] ifFalse:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2202
        cls notNil ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2203
            lastImageRetriever := cls.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2204
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2205
            newList := self class getAllImageSelectorsFrom:cls.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2206
            newList := newList collect: [:sel| |img| 
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2207
                            img := cls perform: sel. 
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2208
                            img height > 22 ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2209
                                img := img magnifiedBy: 22 / img extent y
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2210
                            ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2211
                            LabelAndIcon icon:img string:sel
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2212
                       ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2213
        ] ifFalse:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2214
            newList := #()
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2215
        ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2216
        self listOfImages contents:newList.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2217
    ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2218
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2219
    icon := (aspects at:#icon) value.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2220
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2221
    icon notNil ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2222
        icon := newList detect:[:el| el string == icon] ifNone:nil.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2223
    ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2224
    self selectionOfImage value:icon.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2225
879
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2226
220
ca
parents: 218
diff changeset
  2227
! !
ca
parents: 218
diff changeset
  2228
916
ec057a5e0efc nice about-icon.
Claus Gittinger <cg@exept.de>
parents: 912
diff changeset
  2229
!MenuEditor methodsFor:'defaults'!
ec057a5e0efc nice about-icon.
Claus Gittinger <cg@exept.de>
parents: 912
diff changeset
  2230
ec057a5e0efc nice about-icon.
Claus Gittinger <cg@exept.de>
parents: 912
diff changeset
  2231
aboutImage
ec057a5e0efc nice about-icon.
Claus Gittinger <cg@exept.de>
parents: 912
diff changeset
  2232
    "the image to be displayed in my about-box;
ec057a5e0efc nice about-icon.
Claus Gittinger <cg@exept.de>
parents: 912
diff changeset
  2233
     If nil is returned, thhe ST/X default image is used."
ec057a5e0efc nice about-icon.
Claus Gittinger <cg@exept.de>
parents: 912
diff changeset
  2234
ec057a5e0efc nice about-icon.
Claus Gittinger <cg@exept.de>
parents: 912
diff changeset
  2235
    ^ Image fromFile:'bitmaps/xpmBitmaps/misc_tools/setup_menus.xpm'
ec057a5e0efc nice about-icon.
Claus Gittinger <cg@exept.de>
parents: 912
diff changeset
  2236
ec057a5e0efc nice about-icon.
Claus Gittinger <cg@exept.de>
parents: 912
diff changeset
  2237
    "Created: / 25.7.1998 / 20:48:12 / cg"
ec057a5e0efc nice about-icon.
Claus Gittinger <cg@exept.de>
parents: 912
diff changeset
  2238
    "Modified: / 27.7.1998 / 10:21:55 / cg"
ec057a5e0efc nice about-icon.
Claus Gittinger <cg@exept.de>
parents: 912
diff changeset
  2239
! !
ec057a5e0efc nice about-icon.
Claus Gittinger <cg@exept.de>
parents: 912
diff changeset
  2240
220
ca
parents: 218
diff changeset
  2241
!MenuEditor methodsFor:'event handling'!
ca
parents: 218
diff changeset
  2242
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2243
doesNotUnderstand: aMessage
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2244
    "detour incoming messages to the tree view"
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2245
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2246
    ^ aMessage sendTo:treeView
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2247
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2248
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2249
!MenuEditor methodsFor:'private'!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2250
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2251
currentImageRetrieverClass
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2252
    "returns the current class which provides the images dependent on
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2253
     the retriver or the current spec.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2254
    "
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2255
    |clsName|
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2256
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2257
    clsName := (aspects at: #retriever) value.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2258
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2259
    clsName size == 0 ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2260
        clsName := specClass
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2261
    ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2262
    ^ Smalltalk at:clsName ifAbsent:nil
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2263
!
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2264
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2265
helpKey
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  2266
    "get the help key of the selected menu item"
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2267
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2268
    |node|
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2269
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2270
    (node := treeView selectedNode) notNil ifTrue:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2271
        ^ node contents activeHelpKey
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2272
    ].
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2273
    ^ nil
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2274
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2275
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2276
helpTool
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2277
    "get the help tool application
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2278
    "
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2279
    |helpView helpTool|
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2280
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2281
    helpTool := listOfCanvas at:#help ifAbsent:nil.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2282
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2283
    helpTool isNil ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2284
        helpTool := UIHelpTool new createBuilder.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2285
        helpTool masterApplication:self.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2286
        helpTool modifiedHolder: self valueOfEnablingCommitButtons.
1335
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2287
        helpView := ApplicationSubView new client:helpTool.
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2288
        helpTool builder window:helpView.
1335
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2289
        helpTool masterApplication:self.
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2290
        listOfCanvas at:#help put:helpTool.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2291
    ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2292
    ^ helpTool
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2293
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2294
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2295
! !
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2296
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2297
!MenuEditor methodsFor:'queries'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2298
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2299
isHelpToolSelected
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2300
    "return true if current selection is help tool
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2301
    "
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2302
    ^ typeOfCanvas == #help
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2303
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2304
!
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2305
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2306
isImageViewSelected
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2307
    "return true if current selection is help tool
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2308
    "
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2309
    ^ typeOfCanvas == #imageEditSpec
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2310
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2311
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2312
535
1caf545614c5 info bar subspec changed
tz
parents: 532
diff changeset
  2313
preferredExtent
1caf545614c5 info bar subspec changed
tz
parents: 532
diff changeset
  2314
1caf545614c5 info bar subspec changed
tz
parents: 532
diff changeset
  2315
    ^super preferredExtent max: (Screen current width//3)@(Screen current height//2.5)
1caf545614c5 info bar subspec changed
tz
parents: 532
diff changeset
  2316
1caf545614c5 info bar subspec changed
tz
parents: 532
diff changeset
  2317
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2318
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2319
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2320
!MenuEditor methodsFor:'selection'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2321
879
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2322
imageSelected
1078
84683b5a6979 oops - care for non-existing selection
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  2323
    |imgSel|
84683b5a6979 oops - care for non-existing selection
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  2324
84683b5a6979 oops - care for non-existing selection
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  2325
    imgSel := self selectionOfImage value.
84683b5a6979 oops - care for non-existing selection
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  2326
    imgSel notNil ifTrue:[
84683b5a6979 oops - care for non-existing selection
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  2327
        (aspects at: #icon) value: imgSel string
84683b5a6979 oops - care for non-existing selection
Claus Gittinger <cg@exept.de>
parents: 1069
diff changeset
  2328
    ]
879
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2329
!
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2330
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2331
menuChanged
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2332
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2333
    |node item myClass oldLabel oldSlices newList index|
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2334
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2335
    node := treeView selectedNode.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2336
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2337
    node isNil ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2338
        slices := nil.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2339
        index  := 0.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2340
    ] ifFalse:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2341
        oldSlices := slices.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2342
        myClass   := self class.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2343
        item      := node contents.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2344
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2345
        item isSeparator ifFalse:[
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2346
            node parent isNil ifFalse:[
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2347
                node hasChildren ifTrue:[
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2348
                    slices := #slicesMenu
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2349
                ] ifFalse:[
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2350
                    item submenuChannel isNil ifTrue:[slices := #slicesItem]
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2351
                                             ifFalse:[slices := #slicesLink]
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2352
                ].
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2353
                slices := listOfSlices at:slices
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2354
                              ifAbsentPut:[(myClass perform:slices) copyWith:#('Help' #help)].
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2355
            ] ifTrue:[
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2356
                slices := listOfSlices at:#slicesRootMenu
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2357
                              ifAbsentPut:[myClass perform:#slicesRootMenu].
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2358
            ].
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2359
        ] ifTrue:[
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2360
            slices := myClass perform:#slicesSeparatorMenu.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2361
        ].
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2362
        index := tabSelection ? 0.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2363
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2364
        slices ~~ oldSlices ifTrue:[
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  2365
            tabSelection := 0.
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  2366
            typeOfCanvas := 0.
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  2367
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  2368
            self tabCanvasHolder value:nil.
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  2369
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2370
            newList := slices collect:[:el| el first].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2371
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2372
            index ~~ 0 ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2373
                oldLabel := self tabList value at:index ifAbsent:nil.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2374
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2375
                oldLabel notNil ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2376
                    index := newList indexOf:oldLabel.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2377
                ]
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  2378
            ].
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2379
            self tabList value:newList.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2380
        ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2381
        index := index max:1.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2382
    ].
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2383
    self tabModel value:index.
1246
c5425b3c8f3e checkin from browser
ca
parents: 1244
diff changeset
  2384
    aspects do:[:a| a removeDependent:self].
c5425b3c8f3e checkin from browser
ca
parents: 1244
diff changeset
  2385
    self cancel.
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  2386
    self updateChannels.
1246
c5425b3c8f3e checkin from browser
ca
parents: 1244
diff changeset
  2387
    aspects do:[:a| a addDependent:self].
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2388
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2389
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2390
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2391
tabSelection:aSelection
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2392
    "put the section aSelection into the note book
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2393
    "
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2394
    |view spec|
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2395
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  2396
    aSelection = tabSelection ifTrue:[^self].
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2397
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2398
    (tabSelection := aSelection) isNil ifTrue:[
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2399
        tabSelection == 0 ifTrue:[^ self].
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2400
        tabSelection := 0.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2401
    ].
1256
38ff328f119b care for hidden editFields with acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1250
diff changeset
  2402
38ff328f119b care for hidden editFields with acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1250
diff changeset
  2403
    "/ before bringing up the new notebook page,
38ff328f119b care for hidden editFields with acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1250
diff changeset
  2404
    "/ we must disable all now invisible input fields ...
38ff328f119b care for hidden editFields with acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1250
diff changeset
  2405
    "/ (otherwise, those would fire on #accept.
38ff328f119b care for hidden editFields with acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1250
diff changeset
  2406
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2407
    (view := self tabCanvasHolder value) notNil ifTrue:[
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2408
        view allSubViewsDo:[:aComponent |
1256
38ff328f119b care for hidden editFields with acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1250
diff changeset
  2409
            aComponent isInputField ifTrue:[
38ff328f119b care for hidden editFields with acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1250
diff changeset
  2410
                aComponent disableIfInvisible:true
38ff328f119b care for hidden editFields with acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1250
diff changeset
  2411
            ]
38ff328f119b care for hidden editFields with acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1250
diff changeset
  2412
        ]
38ff328f119b care for hidden editFields with acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1250
diff changeset
  2413
    ].
38ff328f119b care for hidden editFields with acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1250
diff changeset
  2414
1301
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2415
    tabSelection == 0 ifTrue:[
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2416
        ^ self tabCanvasHolder value:nil.
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2417
    ].
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2418
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2419
    typeOfCanvas := (slices at:tabSelection) last.
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2420
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2421
    self isHelpToolSelected ifTrue:[
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2422
        view := self helpTool window.
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2423
    ] ifFalse:[
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2424
        self updateImageView.
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2425
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2426
        view := listOfCanvas at:typeOfCanvas
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2427
                    ifAbsentPut:[SimpleView new client:self spec:typeOfCanvas builder:(self builder)].
dc5c4a8e6e6e unmap previous canvasView; prepare focus sequence
ca
parents: 1299
diff changeset
  2428
    ].
1256
38ff328f119b care for hidden editFields with acceptChannel
Claus Gittinger <cg@exept.de>
parents: 1250
diff changeset
  2429
    self tabCanvasHolder value:view.
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2430
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2431
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2432
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2433
!MenuEditor methodsFor:'startup / release'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2434
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2435
initialize
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2436
    "initialize value holders for the attributes of the menu components"
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2437
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2438
    |holder|
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2439
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2440
    super initialize.
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2441
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2442
    aspects at:#seperatorSelection put:(holder := SelectionInList new).
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2443
    holder list: Item separatorList.
872
eb3bd8e609f1 must create builder early - req'd.
Claus Gittinger <cg@exept.de>
parents: 860
diff changeset
  2444
    holder addDependent:self.
eb3bd8e609f1 must create builder early - req'd.
Claus Gittinger <cg@exept.de>
parents: 860
diff changeset
  2445
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2446
    listOfCanvas := IdentityDictionary new.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2447
    listOfSlices := IdentityDictionary new.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2448
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2449
    treeView := TreeView new.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2450
    treeView action:[:dummy| self menuChanged ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2451
953
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  2452
    aspects at:#indicationEnabled  put:(BlockValue 
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  2453
                                            with:[:a | a size == 0]
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  2454
                                            argument:(aspects at:#choice)).
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  2455
    aspects at:#choiceEnabled      put:(BlockValue
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  2456
                                            with:[:a | a size == 0]
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  2457
                                            argument:(aspects at:#indication)).
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  2458
    aspects at:#choiceValueEnabled put:(BlockValue
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  2459
                                            with:[:a | a size > 0]
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  2460
                                            argument:(aspects at:#choice)).
1aecad8bf33a added choice type menu items (i.e. radioButton behavior)
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  2461
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2462
    aspects at:#retrieverClassList put:self class defaultRetrieverClassList asValue.
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2463
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2464
    aspects do: [:holder| holder addDependent:self].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2465
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2466
!
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2467
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  2468
openModalOnMenu: aMenu
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  2469
    "build a tree from aMenu and open it modal"
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  2470
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2471
    super openModalOnResourceSpec: aMenu
1250
644ed357b524 reset menuBar in keyProcessor
ca
parents: 1249
diff changeset
  2472
!
644ed357b524 reset menuBar in keyProcessor
ca
parents: 1249
diff changeset
  2473
644ed357b524 reset menuBar in keyProcessor
ca
parents: 1249
diff changeset
  2474
postOpenWith:aBuilder
644ed357b524 reset menuBar in keyProcessor
ca
parents: 1249
diff changeset
  2475
    "reset keyboardProcessor for menuBar
644ed357b524 reset menuBar in keyProcessor
ca
parents: 1249
diff changeset
  2476
    "
644ed357b524 reset menuBar in keyProcessor
ca
parents: 1249
diff changeset
  2477
    super postOpenWith: aBuilder.
644ed357b524 reset menuBar in keyProcessor
ca
parents: 1249
diff changeset
  2478
    aBuilder keyboardProcessor menuBar:nil.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2479
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2480
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2481
!MenuEditor methodsFor:'user actions'!
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2482
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2483
accept
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2484
    "invoked by button 'OK' and by save requests of menu item changes"
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2485
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2486
    |node item|
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2487
637
0fac61dcb6fd *** empty log message ***
tz
parents: 634
diff changeset
  2488
    super accept.
0fac61dcb6fd *** empty log message ***
tz
parents: 634
diff changeset
  2489
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2490
    (node := treeView selectedNode) notNil ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2491
        item := node contents.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2492
1062
15184a3a00e1 accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
  2493
        self isHelpToolSelected ifTrue:[
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2494
            self helpTool accept.
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2495
            item activeHelpKey: self helpTool helpKey.
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  2496
            self valueOfEnablingCommitButtons value: false.
1189
0e7e286f864c code cleanup; care for non-string argument
Claus Gittinger <cg@exept.de>
parents: 1155
diff changeset
  2497
            self clearModifiedFlag.
1062
15184a3a00e1 accept & modifiedChannels
Claus Gittinger <cg@exept.de>
parents: 1033
diff changeset
  2498
        ] ifFalse:[
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2499
            item buildFromAspects:aspects.
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2500
            node changed.
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2501
            specSelector := treeView selectorName.
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2502
        ]
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  2503
    ].   
879
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2504
    self updateInfoLabel.
1155
Claus Gittinger <cg@exept.de>
parents: 1104
diff changeset
  2505
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2506
!
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2507
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2508
cancel
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2509
    "invoked by button 'Cancel'"
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2510
    |node item|
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2511
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2512
    node := treeView selectedNode.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2513
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2514
    aspects keysAndValuesDo:[:aKey :anAspect|
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2515
        aKey ~~ #retrieverClassList ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2516
            anAspect setValue:''.  "/ to clear the field.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2517
            anAspect value:''
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2518
        ]
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2519
    ].
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2520
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2521
    node notNil ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2522
        item := node contents.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2523
        item toAspects:aspects.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2524
        self helpTool helpKey:(item activeHelpKey).
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2525
    ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2526
    self updateImageView.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2527
    self valueOfEnablingCommitButtons value:false.
1189
0e7e286f864c code cleanup; care for non-string argument
Claus Gittinger <cg@exept.de>
parents: 1155
diff changeset
  2528
    self clearModifiedFlag.
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2529
!
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2530
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2531
doBrowseForImageResource
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2532
    "opens a browser on image-resource methods"
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2533
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2534
    |msg currClass w cls sel|
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2535
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2536
    currClass := self currentImageRetrieverClass.
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2537
    msg := 
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2538
        (ResourceSelectionBrowser
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2539
            request: 'Use Image From Class'
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2540
            onSuperclass: nil
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2541
            andClass: currClass
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2542
            andSelector: (aspects at: #icon)
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2543
            withResourceTypes: #(image fileImage programImage)).
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2544
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2545
    msg notNil ifTrue:[
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2546
        (w := msg asCollectionOfWords) size == 2 ifTrue:[
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2547
            cls := w at:1.
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2548
            sel := w at:2.
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2549
            cls ~= currClass ifTrue:[
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2550
                (aspects at: #retriever) value:cls asSymbol.
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2551
            ].
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2552
            sel ~= (aspects at:#icon) ifTrue:[
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2553
                (aspects at: #icon) value:sel asSymbol.
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2554
            ].
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2555
            self updateImageView.
1020
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2556
        ].
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2557
    ].
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2558
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2559
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2560
!
dcfbf3acb037 added browsing capability to image section.
Claus Gittinger <cg@exept.de>
parents: 1007
diff changeset
  2561
879
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2562
doEditImage
888
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  2563
    "opens a Image Editor on the resource retriever and the icon selector;
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  2564
     then updates the list of images and select the line of the image"
879
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2565
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2566
    super doEditImage.
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2567
    lastImageRetriever := nil.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2568
    self updateImageView.
879
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2569
!
9f1a94815f07 list all images from the retriever in a list
tz
parents: 875
diff changeset
  2570
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2571
doNew
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2572
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  2573
    super doNew ifTrue: [self helpTool doNew]
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2574
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2575
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2576
doPickAMenu
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2577
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2578
    |view|
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2579
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2580
    self askForModification ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2581
        ((view := Screen current viewFromUser) isNil or:
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2582
        [view == Screen current rootView]) ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2583
            ^ self
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2584
        ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2585
        view specClass == MenuPanelSpec ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2586
            ^ treeView buildFromMenu: view asMenu
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2587
        ].
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2588
    ].
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2589
    ^ nil
381
1d1b1483270c now with image editor support
tz
parents: 371
diff changeset
  2590
!
1d1b1483270c now with image editor support
tz
parents: 371
diff changeset
  2591
888
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  2592
doRemoveImage
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  2593
    "removes the image of the selected line"
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2594
    |cls sel|
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2595
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2596
    sel := self selectionOfImage value.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2597
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2598
    sel size ~~ 0 ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2599
        cls := self currentImageRetrieverClass.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2600
        cls notNil ifTrue:[
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2601
            cls class removeSelector:(sel string)
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2602
        ].
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2603
        (aspects at:#icon) value:nil.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2604
        lastImageRetriever := nil.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2605
        self updateImageView.
888
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  2606
    ] 
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  2607
!
2712edb36a3a image methods removing
tz
parents: 885
diff changeset
  2608
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2609
doSave
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2610
    |cls menu spec mthd category code excla|
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2611
642
f8ba35e5a678 saving bug fixed
tz
parents: 640
diff changeset
  2612
    super doSave ifFalse: [^nil].
637
0fac61dcb6fd *** empty log message ***
tz
parents: 634
diff changeset
  2613
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2614
    cls  := self resolveName: specClass.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2615
    menu := treeView asMenu literalArrayEncoding.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2616
    spec := WriteStream on:String new.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2617
    UISpecification prettyPrintSpecArray:menu on:spec indent:5.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2618
    spec := spec contents.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2619
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2620
    "/ if that method already exists, do not overwrite the category
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2621
576
c357919e636f do install menu specs in separate method category
tz
parents: 571
diff changeset
  2622
    category := 'menu specs'.
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2623
    (mthd := cls class compiledMethodAt:specSelector) notNil ifTrue:[
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2624
        category := mthd category.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2625
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2626
764
5722b94330ef docu call
tz
parents: 748
diff changeset
  2627
    excla := Character excla asString.
5722b94330ef docu call
tz
parents: 748
diff changeset
  2628
5722b94330ef docu call
tz
parents: 748
diff changeset
  2629
    code := excla
654
45cc74ba1113 simplified comma-expression to make microsoft-cc happy
Claus Gittinger <cg@exept.de>
parents: 642
diff changeset
  2630
            , (cls name , ' class methodsFor:' , category storeString)
764
5722b94330ef docu call
tz
parents: 748
diff changeset
  2631
            , excla , '\\'
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2632
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2633
            , specSelector , '\'
738
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2634
            , (self class codeGenerationComment replChar:$!! withString:'!!!!')
ebc4a399f4dc user can define own font styles
tz
parents: 734
diff changeset
  2635
            , '\\    "\'
654
45cc74ba1113 simplified comma-expression to make microsoft-cc happy
Claus Gittinger <cg@exept.de>
parents: 642
diff changeset
  2636
            , ('     MenuEditor new openOnClass:' , cls name , ' andSelector:#' , specSelector , '\')
45cc74ba1113 simplified comma-expression to make microsoft-cc happy
Claus Gittinger <cg@exept.de>
parents: 642
diff changeset
  2637
            , ('     (Menu new fromLiteralArrayEncoding:(' , cls name , ' ' , specSelector , ')) startUp\')
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2638
            , '    "\'.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2639
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2640
    code := code 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2641
            , '\'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2642
            , '    <resource: #menu>\\'
1083
46a1cb1c595d nicer code generated.
Claus Gittinger <cg@exept.de>
parents: 1078
diff changeset
  2643
            , '    ^ ' , spec 
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2644
            , '\'
764
5722b94330ef docu call
tz
parents: 748
diff changeset
  2645
            , (excla , ' ' , excla)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2646
            , '\\'.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2647
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2648
    code := code withCRs.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2649
    (ReadStream on:code) fileIn.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2650
764
5722b94330ef docu call
tz
parents: 748
diff changeset
  2651
    self isStandAlone ifTrue: [self helpTool installHelpSpecsOnClass:self specClass].
699
7746185a3621 for the help tool
tz
parents: 686
diff changeset
  2652
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2653
    self updateHistory.
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  2654
    self updateInfoLabel.
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  2655
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2656
    hasSaved := true.
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2657
    modified := false.
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2658
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2659
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2660
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2661
doSaveAs
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2662
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2663
    super doSaveAs ifTrue: [treeView selectorName:specSelector]
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2664
!
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2665
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2666
doStepDown
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2667
    "shift selected menu item one step down"
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2668
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2669
    treeView selectedNodeChangeSequenceOrder:1.
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2670
    modified := true.
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  2671
155310ec83aa revised version
tz
parents: 382
diff changeset
  2672
155310ec83aa revised version
tz
parents: 382
diff changeset
  2673
155310ec83aa revised version
tz
parents: 382
diff changeset
  2674
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2675
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2676
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2677
doStepIn
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2678
    "move selected menu item into next submenu"
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2679
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2680
    treeView selectedNodeBecomeChildOfNext.
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2681
    modified := true.
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  2682
155310ec83aa revised version
tz
parents: 382
diff changeset
  2683
155310ec83aa revised version
tz
parents: 382
diff changeset
  2684
155310ec83aa revised version
tz
parents: 382
diff changeset
  2685
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2686
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2687
!
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2688
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2689
doStepOut
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2690
    "move selected menu item out from parent submenu"
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2691
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2692
    treeView selectedNodeBecomeSisterOfParent.
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2693
    modified := true.
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2694
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2695
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  2696
doStepUp
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2697
    "shift selected menu item one step up"
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  2698
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  2699
    treeView selectedNodeChangeSequenceOrder:-1.
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  2700
    modified := true.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2701
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  2702
1335
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2703
!MenuEditor::Item class methodsFor:'constants'!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2704
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2705
separatorList
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2706
    "get the list of available separator types"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2707
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2708
    ^#('blank' 'single line' 'double line')
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2709
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2710
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2711
separatorSlices
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2712
    "get the list of menu spec values of the corresponding separator types"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2713
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2714
   ^ #(
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2715
        ( #blank        ''  )
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2716
        ( #single       '-' )
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2717
        ( #double       '=' )
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2718
      )
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2719
! !
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2720
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2721
!MenuEditor::Item class methodsFor:'documentation'!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2722
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2723
documentation
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2724
"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2725
    implements the contents assigned to a TreeItem. An instance
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2726
    is associated with one item and keeps all its information
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2727
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2728
    [see also:]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2729
        TreeItem
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2730
        MenuEditor
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2731
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2732
    [author:]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2733
        Claus Atzkern
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2734
"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2735
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2736
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2737
! !
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2738
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2739
!MenuEditor::Item methodsFor:'accessing'!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2740
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2741
activeHelpKey
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2742
    "get the help key of the menu item"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2743
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2744
    ^activeHelpKey
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2745
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2746
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2747
activeHelpKey:aKey
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2748
    "set the help key of the menu item"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2749
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2750
    activeHelpKey := aKey
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2751
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2752
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2753
label
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2754
    "get the value of the menu item"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2755
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2756
    ^label
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2757
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2758
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2759
label:something
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2760
    "set the value of the menu item"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2761
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2762
    label := something ? '-'
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2763
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2764
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2765
separatorType
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2766
    "get the separator type assigned to item or nil"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2767
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2768
    label size > 1 
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2769
    ifFalse:
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2770
    [
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2771
        label size  == 0  ifTrue:[^#blank].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2772
        label first == $- ifTrue:[^#single].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2773
        label first == $= ifTrue:[^#double].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2774
    ].    
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2775
    ^nil
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2776
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2777
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2778
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2779
startGroup:aSymbolOrNil
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2780
    "set the startGroup attribute"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2781
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2782
    startGroup := aSymbolOrNil
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2783
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2784
    "Created: / 23.8.1998 / 15:56:03 / cg"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2785
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2786
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2787
submenuChannel
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2788
    "return the value of the instance variable 'submenuChannel' (automatically generated)"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2789
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2790
    ^submenuChannel
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2791
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2792
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2793
submenuChannel:aChannel
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2794
    "get the submenuChannel"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2795
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2796
    submenuChannel := aChannel
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2797
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2798
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2799
translateLabel:aBoolean
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2800
    "set/clear the translate to national-language flag"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2801
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2802
    translateLabel := aBoolean
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2803
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2804
    "Created: / 6.6.1998 / 17:23:33 / cg"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2805
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2806
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2807
value:aSymbol
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2808
    "set the value attribute"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2809
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2810
    value := aSymbol
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2811
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2812
    "Created: / 23.8.1998 / 16:02:10 / cg"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2813
! !
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2814
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2815
!MenuEditor::Item methodsFor:'building'!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2816
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2817
buildFromAspects:aspects
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2818
    "read the values of the aspects into my values"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2819
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2820
    |name|
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2821
    self isSeparator 
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2822
    ifFalse:
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2823
    [
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2824
        name  := label.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2825
        label := (aspects at:#label) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2826
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2827
        (label isNil or:[self isSeparator]) ifTrue:[
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2828
            (aspects at:#label) value:(label := name)
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2829
        ].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2830
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2831
        enabled            := (aspects at:#enabled) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2832
        value              := (aspects at:#value) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2833
        nameKey            := (aspects at:#nameKey) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2834
        indication         := (aspects at:#indication) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2835
        choice             := (aspects at:#choice) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2836
        choiceValue        := (aspects at:#choiceValue) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2837
        shortcutKey        := (aspects at:#shortcutKey) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2838
        startGroup         := (aspects at:#startGroup) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2839
        accessCharacterPos := (aspects at:#accessCharacterPos) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2840
        argument           := (aspects at:#argument) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2841
        translateLabel     := (aspects at:#translateLabel) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2842
        isButton           := (aspects at:#isButton) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2843
        auxValue           := (aspects at:#auxValue) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2844
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2845
        argument isString ifTrue:[
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2846
            argument size > 1 ifTrue:[
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2847
                (argument at:1) == $# ifTrue:[
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2848
                    argument := (argument copyFrom:2) asSymbol
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2849
                ]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2850
            ]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2851
        ].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2852
        submenuChannel    := (aspects at:#submenuChannel) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2853
        retriever         := (aspects at:#retriever) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2854
        icon              := (aspects at:#icon) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2855
        iconAndLabel      := (aspects at:#iconAndLabel) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2856
    ]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2857
    ifTrue:
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2858
    [
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2859
        name  := (aspects at:#seperatorSelection) selectionIndex.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2860
        label := (self class separatorSlices at:name) last.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2861
    ].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2862
    isVisible := (aspects at:#isVisible) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2863
    hideMenuOnActivated := (aspects at:#hideMenuOnActivated) value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2864
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2865
    "Modified: / 14.8.1998 / 15:36:38 / cg"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2866
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2867
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2868
buildFromMenuItem:anItem
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2869
    "read the attributes of anItem into my values"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2870
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2871
    |rtv|
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2872
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2873
    self label:(anItem rawLabel).
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2874
    activeHelpKey := anItem activeHelpKey.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2875
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2876
    (enabled := anItem enabled) isSymbol ifFalse:[
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2877
        enabled := nil
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2878
    ].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2879
    (value := anItem value) isSymbol ifFalse:[
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2880
        value := nil.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2881
    ].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2882
    (indication := anItem indication) isSymbol ifFalse:[
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2883
        indication := nil
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2884
    ].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2885
    (choice := anItem choice) isSymbol ifFalse:[
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2886
        choice := nil
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2887
    ].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2888
    choiceValue         := anItem choiceValue.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2889
    nameKey             := anItem nameKey.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2890
    shortcutKey         := anItem shortcutKeyCharacter.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2891
    startGroup          := anItem startGroup.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2892
    accessCharacterPos  := anItem accessCharacterPosition.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2893
    argument            := anItem argument.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2894
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2895
    submenuChannel      := anItem submenuChannel.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2896
    translateLabel      := anItem translateLabel.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2897
    isButton            := anItem isButton.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2898
    isVisible           := anItem isVisible.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2899
    hideMenuOnActivated := anItem hideMenuOnActivated.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2900
    auxValue            := anItem auxValue.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2901
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2902
    (((rtv := anItem adornment) notNil)
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2903
    and:[(rtv := rtv labelImage) isKindOf:ResourceRetriever])
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2904
    ifTrue:
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2905
    [
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2906
        retriever := rtv className.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2907
        icon      := rtv selector.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2908
        (iconAndLabel := rtv labelText notNil) ifTrue:[
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2909
            label := rtv labelText.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2910
        ]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2911
    ]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2912
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2913
    "Modified: / 29.9.1998 / 11:18:25 / cg"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2914
! !
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2915
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2916
!MenuEditor::Item methodsFor:'conversion'!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2917
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2918
asMenuItem
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2919
    "converts self to a menu item"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2920
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2921
    |item rcv|
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2922
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2923
    item := MenuItem labeled:label.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2924
    item isVisible:isVisible.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2925
    item hideMenuOnActivated:hideMenuOnActivated.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2926
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2927
    self isSeparator ifFalse:[    
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2928
        item activeHelpKey:activeHelpKey.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2929
        item enabled:enabled.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2930
        item accessCharacterPosition:accessCharacterPos.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2931
        item argument:argument.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2932
        item submenuChannel:submenuChannel.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2933
        item nameKey:nameKey.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2934
        item shortcutKeyCharacter:shortcutKey.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2935
        item startGroup:startGroup.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2936
        item value:value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2937
        item indication:indication.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2938
        item choice:choice.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2939
        item choiceValue:choiceValue.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2940
        item translateLabel: translateLabel.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2941
        item isButton: isButton.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2942
        item auxValue: auxValue.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2943
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2944
        icon notNil ifTrue:[
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2945
            rcv := ResourceRetriever new.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2946
            rcv className:retriever.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2947
            rcv selector:icon.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2948
            iconAndLabel == true ifTrue:[
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2949
                rcv labelText:label
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2950
            ].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2951
            item labelImage:rcv
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2952
        ]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2953
    ].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2954
    ^item
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2955
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2956
    "Modified: / 14.8.1998 / 15:36:35 / cg"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2957
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2958
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2959
toAspects:aspects
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2960
    "put my values into the values of aspects"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2961
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2962
    |type|
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2963
    (type := self separatorType) notNil ifTrue: [
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2964
        type := self class separatorSlices findFirst:[:el| el first == type ].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2965
        (aspects at:#seperatorSelection) selectionIndex:type.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2966
    ] ifFalse: [
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2967
        (aspects at:#label)                value:label.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2968
        (aspects at:#enabled)              value:enabled.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2969
        (aspects at:#value)                value:value.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2970
        (aspects at:#nameKey)              value:nameKey.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2971
        (aspects at:#indication)           value:indication.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2972
        (aspects at:#choice)               value:choice.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2973
        (aspects at:#choiceValue)          value:choiceValue.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2974
        (aspects at:#shortcutKey)          value:shortcutKey.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2975
        (aspects at:#startGroup)           value:startGroup.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2976
        (aspects at:#accessCharacterPos)   value:accessCharacterPos.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2977
        (aspects at:#translateLabel)       value:translateLabel.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2978
        (aspects at:#submenuChannel)       value:submenuChannel.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2979
        (aspects at:#retriever)            value:retriever.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2980
        (aspects at:#icon)                 value:icon.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2981
        (aspects at:#iconAndLabel)         value:iconAndLabel.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2982
        (aspects at:#isButton)             value:isButton.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2983
        (aspects at:#auxValue)             value:auxValue.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2984
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2985
        (aspects at:#argument)
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2986
            value:(argument isSymbol
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2987
                        ifTrue: ['#', argument] 
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2988
                        ifFalse:[argument]).
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2989
    ].
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2990
    (aspects at:#isVisible) value:isVisible.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2991
    (aspects at:#hideMenuOnActivated) value:hideMenuOnActivated.
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2992
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2993
    "Modified: / 14.8.1998 / 15:37:29 / cg"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2994
! !
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2995
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2996
!MenuEditor::Item methodsFor:'queries'!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2997
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2998
iconFor: aNode
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  2999
    "get the icon of the menu item for the tree view"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3000
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3001
    (aNode hasChildren or: [aNode parent isNil])
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3002
    ifTrue:
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3003
    [
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3004
        ^MenuEditor submenuImage
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3005
    ]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3006
    ifFalse:
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3007
    [
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3008
        submenuChannel notNil 
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3009
        ifTrue:
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3010
        [
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3011
            ^MenuEditor linkSubmenuImage
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3012
        ]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3013
        ifFalse:
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3014
        [
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3015
            self isSeparator 
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3016
                ifTrue:  [^MenuEditor menuSeparatorImage]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3017
                ifFalse: [^MenuEditor menuItemImage]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3018
        ]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3019
    ]
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3020
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3021
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3022
isSeparator
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3023
    "return true if item is a seperator"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3024
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3025
    ^self separatorType notNil
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3026
!
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3027
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3028
treeViewLabel
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3029
    "get the label of the menu item for the tree view"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3030
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3031
    ^label
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3032
" asBoldText, 
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3033
        (value notNil ifTrue: [': [', 
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3034
                value ,
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3035
                (argument isString ifTrue: [' ', (Text string: argument emphasis: #italic)] ifFalse: ['']),
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3036
                 ']'] ifFalse: [''])
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3037
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3038
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3039
"
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3040
! !
b80f8c8ec3d6 use an ApplicationSubView instead of a View for a UIHelpTool
ca
parents: 1330
diff changeset
  3041
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3042
!MenuEditor::TreeView class methodsFor:'documentation'!
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3043
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3044
documentation
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3045
"
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  3046
    This tree view class provides a hierarchical representation
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  3047
    of the components of a menu.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3048
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3049
    [see also:]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3050
        SelectionInTreeView
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3051
        SelectionInTree
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3052
        TreeItem
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3053
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3054
    [author:]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3055
        Claus Atzkern
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3056
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3057
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3058
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3059
!MenuEditor::TreeView methodsFor:'accessing'!
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3060
1322
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  3061
canTab
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  3062
    ^ true
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  3063
!
fbc9a32078b5 remove clearSelection
ca
parents: 1321
diff changeset
  3064
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3065
selectorName
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  3066
    "get the selector of the menu spec"
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3067
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3068
    ^(listOfNodes first contents label) asSymbol
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3069
!
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3070
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3071
selectorName: aSymbol
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  3072
    "set the selector for the menu spec"
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3073
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3074
    listOfNodes first contents label: aSymbol
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3075
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3076
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3077
!MenuEditor::TreeView methodsFor:'building'!
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3078
637
0fac61dcb6fd *** empty log message ***
tz
parents: 634
diff changeset
  3079
buildFromClass:aClass andSelector:aSelector
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  3080
    "read a menu spec from aClass and aSelector and put 
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  3081
     the encoded menu into the tree view"
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3082
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3083
    |spec cls menu firstNode firstNodeLabel|
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3084
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3085
    "if opened on a menu"
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3086
    (aClass isNil and: [aSelector isNil and: [listOfNodes size > 0]]) ifTrue: [^nil].
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3087
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  3088
    self selection:nil.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  3089
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3090
    (aClass notNil and:[aSelector notNil]) ifTrue:[
340
1de048872d5e resolveName:
ca
parents: 331
diff changeset
  3091
        cls := self application resolveName:aClass.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3092
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3093
        (cls respondsTo:aSelector) ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3094
            spec := cls perform:aSelector
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3095
        ]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3096
    ].
331
ca
parents: 326
diff changeset
  3097
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3098
    spec isNil ifFalse:[
298
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  3099
        (spec isMemberOf:Menu) ifFalse:[
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  3100
            menu := Menu new fromLiteralArrayEncoding:spec.
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  3101
        ] ifTrue:[
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  3102
            menu := spec.
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  3103
        ].
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3104
        firstNode := self nodeLabel:(aSelector asString).
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3105
        self subMenu:menu parent:firstNode.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3106
    ] ifTrue:[
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3107
        (aClass notNil and: [aSelector isNil and: [listOfNodes size > 0]])
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3108
        ifTrue:
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3109
        [
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3110
            firstNode := listOfNodes first
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3111
        ]
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3112
        ifFalse:
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3113
        [
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3114
            aSelector notNil ifTrue:[firstNodeLabel := aSelector asString]
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3115
                        ifFalse:[firstNodeLabel := 'menu'].
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3116
            firstNode := self nodeLabel:firstNodeLabel.
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3117
        ]
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3118
    ].
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  3119
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3120
    firstNode expand.
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3121
    model root: firstNode.
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3122
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3123
    firstNode hasChildren ifFalse:[
775
0ead717f3e35 reuse methods provided by the model
ca
parents: 764
diff changeset
  3124
        model add:(self nodeLabel:'Item 1') below:firstNode
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3125
    ].
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3126
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3127
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3128
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3129
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3130
buildFromMenu:aMenu
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  3131
    "put aMenu into the tree view"
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3132
249
bfa28b62528c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
  3133
    |node|
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3134
1244
fd44af858001 optimized
ca
parents: 1200
diff changeset
  3135
    self selection:nil.
fd44af858001 optimized
ca
parents: 1200
diff changeset
  3136
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3137
    node := self nodeLabel:'menu'.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3138
    self subMenu:aMenu parent:node.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3139
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3140
    node hasChildren ifFalse:[
728
638ae95885e1 method comments added
tz
parents: 725
diff changeset
  3141
        node add:(self nodeLabel:'Item 1')
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3142
    ].
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3143
    node expand.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3144
    model root:node.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3145
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3146
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3147
menuItem:anItem
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3148
249
bfa28b62528c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 246
diff changeset
  3149
    |node|
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3150
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3151
    node := self nodeLabel: anItem label.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3152
    node contents buildFromMenuItem:anItem.
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3153
    self subMenu: anItem submenu parent:node.
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3154
    ^node.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3155
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3156
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3157
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3158
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3159
subMenu:aMenu parent:aParent
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3160
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3161
    |idx grp|
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3162
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3163
    aMenu isNil ifFalse:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3164
        grp := aMenu groupSizes.
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3165
        aMenu itemsDo:[:i| aParent add:(self menuItem:i)].
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3166
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3167
        grp notNil ifTrue:[
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3168
            idx := 0.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3169
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3170
            grp do:[:i|
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3171
                idx := idx + i + 1.
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3172
                aParent add:(self nodeLabel:nil) beforeIndex:idx.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3173
            ]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3174
        ]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3175
    ]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3176
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3177
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3178
!MenuEditor::TreeView methodsFor:'conversion'!
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3179
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3180
asMenu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3181
    |menu root|
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3182
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3183
    root := self root.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3184
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3185
    root hasChildren ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3186
        menu := Menu new.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3187
        root children do:[:aChild| menu addItem:(self asMenuItem:aChild)].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3188
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3189
  ^ menu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3190
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3191
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3192
asMenuItem:aNode
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3193
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3194
    |menu item|
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3195
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3196
    item := aNode contents asMenuItem.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3197
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3198
    aNode hasChildren ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3199
        menu := Menu new.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3200
        aNode children do:[:aChild| menu addItem:(self asMenuItem:aChild)].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3201
        item submenu:menu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3202
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3203
  ^ item
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3204
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3205
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3206
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3207
!MenuEditor::TreeView methodsFor:'drawing basics'!
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3208
853
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3209
redrawLabelAt:x y:yTop index:anIndex
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3210
    "draw text label assigned to a node at x y( center)"
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3211
1067
08d5c0a01e56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1062
diff changeset
  3212
    |isSelected y0 x0 x1 w type item|
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3213
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3214
    item := (listOfNodes at:anIndex) contents.
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  3215
    type := item separatorType.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3216
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  3217
    type isNil ifTrue:[
853
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3218
        ^ super redrawLabelAt:x y:yTop index:anIndex
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3219
    ].
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3220
    isSelected := self isInSelection:anIndex.
854
2d96630daf4a bug fix in redraw label
ca
parents: 853
diff changeset
  3221
    x0 := x.
853
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3222
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3223
    highlightMode == #label ifTrue:[
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3224
        x0 := x + 4.
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3225
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3226
        isSelected ifTrue:[
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3227
            w  := 80 + 8.
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3228
            self paint:hilightBgColor.
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3229
            self fillRectangleX:x y:yTop width:w height:fontHeight.
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3230
        ]
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  3231
    ] ifFalse:[
853
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3232
        w := 0.
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3233
    ].
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3234
    type == #blank ifFalse:[
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3235
        isSelected ifTrue:[self paint:hilightFgColor]
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3236
                  ifFalse:[self paint:fgColor].
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3237
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3238
        x1 := x0 + 80.
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3239
        y0 := yTop - 1 + (fontHeight // 2).
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3240
        self displayLineFromX:x0 y:y0 toX:x1 y:y0.
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3241
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3242
        type == #double ifTrue:[
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3243
            y0 := y0 + 2.
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3244
            self displayLineFromX:x0 y:y0 toX:x1 y:y0.
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3245
        ]    
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3246
    ].
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3247
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3248
    (isSelected and:[highlightMode == #label]) ifTrue:[
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3249
        self redrawSelFrameAtX:x y:yTop toX:(x + w)
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3250
    ].
4c906c364da2 replace method:
ca
parents: 849
diff changeset
  3251
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3252
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3253
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3254
!MenuEditor::TreeView methodsFor:'event handling'!
356
269c117830ba before closing the builder, check for outstanding
ca
parents: 340
diff changeset
  3255
269c117830ba before closing the builder, check for outstanding
ca
parents: 340
diff changeset
  3256
keyPress:key x:x y:y
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3257
    "invoked if any key was pressed"
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3258
412
330bf61c53b5 select first menu child item after opening
tz
parents: 411
diff changeset
  3259
    <resource: #keyboard (#Delete #BackSpace #Cut #Copy #Paste)>
330bf61c53b5 select first menu child item after opening
tz
parents: 411
diff changeset
  3260
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3261
    (key == #Delete or:[key == #BackSpace]) ifTrue: [^self doDelete].
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  3262
    key == #Cut   ifTrue:[^self doCut].
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3263
    key == #Copy  ifTrue:[^self doCopy].
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3264
    key == #Paste ifTrue:[^self doPaste].
356
269c117830ba before closing the builder, check for outstanding
ca
parents: 340
diff changeset
  3265
412
330bf61c53b5 select first menu child item after opening
tz
parents: 411
diff changeset
  3266
    super keyPress:key x:x y:y
356
269c117830ba before closing the builder, check for outstanding
ca
parents: 340
diff changeset
  3267
269c117830ba before closing the builder, check for outstanding
ca
parents: 340
diff changeset
  3268
! !
269c117830ba before closing the builder, check for outstanding
ca
parents: 340
diff changeset
  3269
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3270
!MenuEditor::TreeView methodsFor:'initialization'!
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3271
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3272
initialize
734
9fdcc26c458f method comments completed
tz
parents: 728
diff changeset
  3273
    "initialize the tree view of the menu components"
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3274
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3275
    super initialize.
275
cdecb5b5d356 set fontHeight dependent on max. image height
ca
parents: 270
diff changeset
  3276
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3277
    self multipleSelectOk:true.
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3278
    self showDirectoryIndicator: true.
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3279
    self showDirectoryIndicatorForRoot: false.
634
ebc0beb615c5 ask modification methods renamed
tz
parents: 633
diff changeset
  3280
    self selectConditionBlock: [:i|self application askForItemModification]. 
412
330bf61c53b5 select first menu child item after opening
tz
parents: 411
diff changeset
  3281
    self validateDoubleClickBlock: [:node| node ~~ listOfNodes first].
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3282
    self model iconAction: [:aNode| aNode contents iconFor: aNode].
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3283
    self model labelAction: [:aNode| aNode contents treeViewLabel]
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3284
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3285
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3286
!MenuEditor::TreeView methodsFor:'menus'!
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3287
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3288
doCopy
912
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3289
    |clip|
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  3290
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3291
    self hasSelection ifTrue:[
912
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3292
        self application clipboard:(clip := OrderedCollection new).
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3293
        self selectionDo:[:i | clip add:((listOfNodes at:i) copy)].
748
03bc27132916 update other instances if clipboarding
tz
parents: 738
diff changeset
  3294
        self topView application updateAllToolInstances.
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3295
    ]
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3296
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3297
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3298
doCreateItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  3299
557
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3300
    self addElement: (self nodeLabel:'Item')
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3301
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3302
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  3303
doCreateLink
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3304
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  3305
    |node item|
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  3306
557
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3307
    node := self nodeLabel:'Submenu Link'.
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  3308
    item := node contents.
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  3309
    item submenuChannel:#menuDefaultLink.
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  3310
    self addElement:node.
155310ec83aa revised version
tz
parents: 382
diff changeset
  3311
    self setModified.
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  3312
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  3313
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  3314
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  3315
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3316
doCreateMenu
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  3317
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3318
    |node|
557
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3319
    node := self nodeLabel:'Submenu'.
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3320
    node parent: self selectedNode.        
557
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3321
    node add:(self nodeLabel:'Item 1').
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3322
    self addElement:node
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3323
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3324
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3325
doCreateSep
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  3326
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3327
    self addElement:(self nodeLabel:nil)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3328
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3329
968
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3330
doCreateStandardEditMenu
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3331
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3332
    |node|
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3333
    node := self nodeLabel:'Edit'.
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3334
    node parent: self selectedNode.        
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3335
    node add:(self nodeLabel:'Copy'  selector:#copySelection).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3336
    node add:(self nodeLabel:'Cut'   selector:#cutSelection).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3337
    node add:(self nodeLabel:'Paste' selector:#paste).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3338
    self addElement:node
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3339
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3340
    "Created: / 23.8.1998 / 15:52:16 / cg"
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3341
    "Modified: / 23.8.1998 / 15:59:36 / cg"
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3342
!
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3343
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3344
doCreateStandardFileMenu
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3345
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3346
    |node|
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3347
    node := self nodeLabel:'File'.
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3348
    node parent: self selectedNode.        
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3349
    node add:(self nodeLabel:'New'        selector:#menuNew).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3350
    node add:(self nodeLabel:'-'          ).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3351
    node add:(self nodeLabel:'Open...'    selector:#menuOpen).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3352
    node add:(self nodeLabel:'-'          ).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3353
    node add:(self nodeLabel:'Save'       selector:#menuSave).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3354
    node add:(self nodeLabel:'Save As...' selector:#menuSaveAs).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3355
    node add:(self nodeLabel:'-'          ).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3356
    node add:(self nodeLabel:'Exit'       selector:#closeRequest).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3357
    self addElement:node
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3358
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3359
    "Created: / 23.8.1998 / 15:51:55 / cg"
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3360
    "Modified: / 23.8.1998 / 16:04:24 / cg"
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3361
!
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3362
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3363
doCreateStandardHelpMenu
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3364
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3365
    |node|
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3366
    node := self nodeLabel:'Help'.
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3367
    node parent: self selectedNode.        
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3368
    node contents startGroup:#right.
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3369
    node add:(self nodeLabel:'Documentation'          selector:#openDocumentation).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3370
    node add:(self nodeLabel:'-').
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3371
    node add:(self nodeLabel:'About this Application' selector:#openAboutThisApplication).
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3372
    self addElement:node
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3373
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3374
    "Created: / 23.8.1998 / 15:52:46 / cg"
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3375
    "Modified: / 23.8.1998 / 17:30:12 / cg"
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3376
!
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3377
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3378
doCut
912
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3379
    |app|
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3380
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3381
    app := self topView application.
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3382
    (app hasValidSelection value and: [self askForItemModification])
603
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3383
    ifTrue:
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3384
    [
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3385
        |selectedNodes|
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3386
        self doCopy.
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3387
        selectedNodes := self selection asSortedCollection.
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3388
        self selectedNodesRemove.
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3389
        self selection: selectedNodes first - 1.
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3390
        self setModified.
912
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3391
        app updateAllToolInstances.
603
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3392
    ]
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  3393
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3394
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3395
686
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3396
doDelete
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3397
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3398
    (self topView application hasValidSelection value and: [self askForItemModification])
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3399
    ifTrue:
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3400
    [
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3401
        |selectedNodes|
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3402
        selectedNodes := self selection asSortedCollection.
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3403
        self selectedNodesRemove.
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3404
        self selection: selectedNodes first - 1.
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3405
        self setModified.
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3406
    ]
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3407
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3408
!
6eabad89ebf6 cut/copy/paste button added + delete function
tz
parents: 669
diff changeset
  3409
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3410
doPaste
912
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3411
    |clip|
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3412
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3413
    clip := self application clipboard.
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3414
    (clip notNil and:[self selectedNode notNil]) ifTrue:[
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3415
        self addElement:(clip collect:[:el| el copy])
220
ca
parents: 218
diff changeset
  3416
    ].
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3417
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3418
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3419
!MenuEditor::TreeView methodsFor:'private'!
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3420
557
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3421
addElement: aNode
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3422
    "add something after selection"
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3423
1104
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3424
    |label sel|     
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3425
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3426
    self askForItemModification ifTrue:[   
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3427
        self selectedNodeAdd:aNode.
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3428
        (aNode isCollection not 
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3429
        and: [aNode name = 'Item']) 
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3430
        ifTrue:[
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3431
            sel := self selectedNode.
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3432
            label := aNode name , ' ',
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3433
                (sel parent notNil 
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3434
                ifTrue:
1104
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3435
                    [
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3436
                        (((sel children size = 0 
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3437
                            ifTrue: [sel parent children] 
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3438
                            ifFalse: [sel children]) 
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3439
                        select:[:node| 
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3440
                            |lab| 
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3441
                            lab := node contents label. 
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3442
                            ((node children size = 0) & 
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3443
                            node contents submenuChannel isNil &
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3444
                            (lab ~= '-') & (lab ~= '=') & (lab ~= ''))
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3445
                        ]) size) printString
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3446
                    ] 
633
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3447
                ifFalse: ['1']).  
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3448
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3449
            aNode name: label string asBoldText.
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3450
            aNode contents label: label string.
11bbf4599843 uses dynamic tree items and needs ListSpecEditor as superclass (-> libview2)
tz
parents: 627
diff changeset
  3451
        ].    
603
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3452
        aNode isCollection ifFalse: [self selectNode: aNode] ifTrue: [self selection: (aNode collect: [:node| self indexOfNode: node])].
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3453
        self setModified.
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3454
    ]
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3455
!
fc00fc231df2 do ask for save item when wanna paste, create, cut
tz
parents: 578
diff changeset
  3456
634
ebc0beb615c5 ask modification methods renamed
tz
parents: 633
diff changeset
  3457
askForItemModification
ebc0beb615c5 ask modification methods renamed
tz
parents: 633
diff changeset
  3458
ebc0beb615c5 ask modification methods renamed
tz
parents: 633
diff changeset
  3459
    ^self topView application askForItemModification
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3460
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3461
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  3462
nodeLabel:aLabel
407
578a7aaed19e totally revised version
tz
parents: 406
diff changeset
  3463
860
3e5171aad09f new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents: 854
diff changeset
  3464
    ^TreeItem new contents: ((MenuEditor::Item new label:aLabel) translateLabel:true)
3e5171aad09f new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents: 854
diff changeset
  3465
3e5171aad09f new items have translateLabel on by default.
Claus Gittinger <cg@exept.de>
parents: 854
diff changeset
  3466
    "Modified: / 6.6.1998 / 17:22:35 / cg"
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  3467
!
155310ec83aa revised version
tz
parents: 382
diff changeset
  3468
968
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3469
nodeLabel:aLabel selector:aSelector
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3470
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3471
    ^TreeItem new contents: (((MenuEditor::Item new label:aLabel) value:aSelector) translateLabel:true)
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3472
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3473
    "Modified: / 6.6.1998 / 17:22:35 / cg"
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3474
    "Created: / 23.8.1998 / 15:58:59 / cg"
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3475
!
f52b5744063b added standard-submenu generators (in item menu)
Claus Gittinger <cg@exept.de>
parents: 959
diff changeset
  3476
557
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3477
selectedNodeAdd:something
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3478
1104
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3479
    |node numChildren|
557
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3480
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3481
    something notNil ifTrue:[
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3482
        (node := self selectedNode) notNil ifTrue:[
1104
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3483
            numChildren := node children size.
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3484
557
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3485
            node parent notNil ifTrue:[
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3486
                node isCollapsable ifTrue:[
1104
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3487
                    model add:something afterIndex:numChildren below:node
557
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3488
                ] ifFalse:[
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3489
                    model add:something after:node
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3490
                ]
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3491
            ] ifFalse:[
1104
cd4a620e6f94 modified-channel stuff
Claus Gittinger <cg@exept.de>
parents: 1083
diff changeset
  3492
                model add:something afterIndex:numChildren below:(self root)
557
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3493
            ]
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3494
        ]
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3495
    ]
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3496
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3497
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3498
!
de8d8782486c some revisions
tz
parents: 548
diff changeset
  3499
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  3500
setModified 
912
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3501
    |app|
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3502
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3503
    (app := self topView application) modified: true.
931b23146b3d repeated message chains
Claus Gittinger <cg@exept.de>
parents: 902
diff changeset
  3504
    app updateChannels
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3505
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3506
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3507
!MenuEditor class methodsFor:'documentation'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3508
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3509
version
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3510
    ^ '$Header$'
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  3511
! !