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