MenuEditor.st
author tz
Sat, 10 Jan 1998 12:12:09 +0100
changeset 406 a519e0d547f6
parent 398 155310ec83aa
child 407 578a7aaed19e
permissions -rw-r--r--
widgets rearranged for different fonts + comfortable menu load support
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     1
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
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
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
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
398
155310ec83aa revised version
tz
parents: 382
diff changeset
    15
ToolApplicationModel subclass:#MenuEditor
356
269c117830ba before closing the builder, check for outstanding
ca
parents: 340
diff changeset
    16
	instanceVariableNames:'isModified specClass specCanvas helpCanvas tabSelection aspects
269c117830ba before closing the builder, check for outstanding
ca
parents: 340
diff changeset
    17
		slices didInstall'
220
ca
parents: 218
diff changeset
    18
	classVariableNames:''
ca
parents: 218
diff changeset
    19
	poolDictionaries:''
ca
parents: 218
diff changeset
    20
	category:'Interface-UIPainter'
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    21
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    22
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    23
Object subclass:#Item
220
ca
parents: 218
diff changeset
    24
	instanceVariableNames:'activeHelpKey enabled label value nameKey indication shortcutKey
290
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
    25
		accessCharaterPos retriever icon iconAndLabel submenuChannel
398
155310ec83aa revised version
tz
parents: 382
diff changeset
    26
		argument translateLabel isButton'
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
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    32
SelectionInTreeView subclass:#Painter
275
cdecb5b5d356 set fontHeight dependent on max. image height
ca
parents: 270
diff changeset
    33
	instanceVariableNames:'images'
cdecb5b5d356 set fontHeight dependent on max. image height
ca
parents: 270
diff changeset
    34
	classVariableNames:'CopyBuffer Images'
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
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    43
 COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
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
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    48
 inclusion of the above copyright notice.   This software may not
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
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    59
    create and modify or inspect popup and pullDown menus of the
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    60
    new style( derives from Menu).
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
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    64
        MenuEditor new openOnClass:MenuEditor andSelector:#menuPullDown
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
        UIHelpTool
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    69
        UISpecificationTool
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    70
        SelectionInTreeView
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    71
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    72
    [author:]
398
155310ec83aa revised version
tz
parents: 382
diff changeset
    73
        Claus Atzkern, Thomas Zwick
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    74
"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    75
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    76
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
    77
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
    78
!MenuEditor class methodsFor:'initialization'!
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
    79
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
    80
initialize
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
    81
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
    82
    Painter initialize
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
    83
! !
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
    84
318
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    85
!MenuEditor class methodsFor:'code generation'!
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    86
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    87
generateCodeFor:aClass menuSelector:aSelector
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    88
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    89
    |code category|
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    90
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    91
    category := self sourceCategory.
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    92
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    93
    code := Character excla asString 
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    94
            , aClass name , ' methodsFor:' , category storeString
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    95
            , Character excla asString , '\\'
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    96
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    97
            , aSelector , '\'
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    98
            , '    "this window spec was automatically generated by the UI Builder"\\'
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
    99
            , '    ^ self class ', aSelector, '\\'
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   100
            , '\'
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   101
            , Character excla asString
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   102
            , ' '
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   103
            , Character excla asString
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   104
            , '\\'.
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   105
    ^ code
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   106
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   107
"
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   108
self generateCodeFor:MenuEditor menuSelector:#menu
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   109
"
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   110
!
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   111
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   112
sourceCategory
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   113
    "returns the catagory where to instal the menu
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   114
    "
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   115
    ^ 'accessing menu'
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   116
! !
31a94b71ae1b reuse of generate code for instance method #menu
ca
parents: 304
diff changeset
   117
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   118
!MenuEditor class methodsFor:'help specs'!
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   119
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   120
helpSpec
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   121
    "return a dictionary filled with helpKey -> helptext associations.
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   122
     These are used by the activeHelp tool."
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   123
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   124
    "
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   125
    UIHelpTool openOnClass:MenuEditor    
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   126
    "
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   127
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   128
  ^ super helpSpec addPairsFrom:#(
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   129
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   130
#accessCharaterPos
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   131
'The index of the access character position
155310ec83aa revised version
tz
parents: 382
diff changeset
   132
into the textual label (optional).'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   133
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   134
#argument
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   135
'An argument passed to the value method, if the value 
155310ec83aa revised version
tz
parents: 382
diff changeset
   136
selector is a one- or two-arg selector (i.e. ends with '':'').
155310ec83aa revised version
tz
parents: 382
diff changeset
   137
The argument is passed as a string.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   138
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   139
#enbled
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   140
'This enabled field specifies the name of the aspect (-method or binding)
155310ec83aa revised version
tz
parents: 382
diff changeset
   141
in your application, which returns a value holder holding a boolean,
155310ec83aa revised version
tz
parents: 382
diff changeset
   142
a block which evaluates to either true or false, a selector which returns
155310ec83aa revised version
tz
parents: 382
diff changeset
   143
either true or false or simply true or false. The value, true or false,
155310ec83aa revised version
tz
parents: 382
diff changeset
   144
specifies whether  the respective field can be selected, a value of true,
155310ec83aa revised version
tz
parents: 382
diff changeset
   145
or not, a value of false.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   146
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   147
#icon
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   148
'Selector which returns an image to be displayed.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   149
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   150
#iconAndLabel
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   151
'Boolean flag to specify that both image and textual label shall be shown.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   152
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   153
#indication
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   154
'This indication field specifies the name of the aspect (-method or binding)
155310ec83aa revised version
tz
parents: 382
diff changeset
   155
in your application, a value holder holding a boolean, a block which evaluates
155310ec83aa revised version
tz
parents: 382
diff changeset
   156
to either true or false, a selector which returns either true or false or
155310ec83aa revised version
tz
parents: 382
diff changeset
   157
simply true or false. The value, true or false, specifies whether the shown
155310ec83aa revised version
tz
parents: 382
diff changeset
   158
indicator is switched on or off.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   159
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   160
#label
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   161
'The label of the item. If the ''retriever/selector'' is set, 
155310ec83aa revised version
tz
parents: 382
diff changeset
   162
and returns an image, the image is used as the displayed label. 
155310ec83aa revised version
tz
parents: 382
diff changeset
   163
Dependent on the state of the ''Image & Label'' flag, both
155310ec83aa revised version
tz
parents: 382
diff changeset
   164
the image and the label are shown.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   165
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   166
#menuSelector
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   167
'The name of the selector under which the generated 
155310ec83aa revised version
tz
parents: 382
diff changeset
   168
menu should be installed and is accessable.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   169
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   170
#nameKey
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   171
'An unique identifier of the item (optional)'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   172
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   173
#retriever
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   174
'The name of the class, which implements the image selector. 
155310ec83aa revised version
tz
parents: 382
diff changeset
   175
This selector is specified by ''selector''. If no class is given, 
155310ec83aa revised version
tz
parents: 382
diff changeset
   176
the current application should implement the specified image selector.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   177
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   178
#seperatorList
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   179
'The list of valid separators'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   180
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   181
#shortcutKey
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   182
'The key to be pressed, to select the menu item from the keyboard (accelerator key).'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   183
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   184
#submenuChannel
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   185
'A value holder, which provides the submenu (Menu) to be opened
155310ec83aa revised version
tz
parents: 382
diff changeset
   186
if the item is selected. Useful if the items submenu is to be 
155310ec83aa revised version
tz
parents: 382
diff changeset
   187
changed dynamically.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   188
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   189
#value
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   190
'An action which can be either a block or a selector. Depending on the number
155310ec83aa revised version
tz
parents: 382
diff changeset
   191
of arguments to the action, the action will be called with the respective arguments.
155310ec83aa revised version
tz
parents: 382
diff changeset
   192
There can either zero, one or two arguments. The first argument to the action is the
155310ec83aa revised version
tz
parents: 382
diff changeset
   193
argument derived from the argument field and the second argument the selected item.'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   194
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   195
)
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   196
! !
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   197
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   198
!MenuEditor class methodsFor:'icons'!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   199
220
ca
parents: 218
diff changeset
   200
iconCreateItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   201
    ^ Painter menuItemImage
220
ca
parents: 218
diff changeset
   202
ca
parents: 218
diff changeset
   203
!
ca
parents: 218
diff changeset
   204
ca
parents: 218
diff changeset
   205
iconCreateLink
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   206
    ^ Painter linkSubmenuImage
220
ca
parents: 218
diff changeset
   207
ca
parents: 218
diff changeset
   208
!
ca
parents: 218
diff changeset
   209
ca
parents: 218
diff changeset
   210
iconCreateMenu
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   211
    ^ Painter closedSubmenuImage
220
ca
parents: 218
diff changeset
   212
!
ca
parents: 218
diff changeset
   213
ca
parents: 218
diff changeset
   214
iconCreateSep
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   215
    ^ Painter menuSeparatorImage
220
ca
parents: 218
diff changeset
   216
227
434211399a54 added broken image icon
ca
parents: 224
diff changeset
   217
!
434211399a54 added broken image icon
ca
parents: 224
diff changeset
   218
434211399a54 added broken image icon
ca
parents: 224
diff changeset
   219
iconUnknown
243
ae6608b760bf nicer images
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   220
    "returns an image used for picked items containing an image
227
434211399a54 added broken image icon
ca
parents: 224
diff changeset
   221
    "
359
6193ef5b6e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 356
diff changeset
   222
6193ef5b6e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 356
diff changeset
   223
    <resource: #fileImage>
6193ef5b6e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 356
diff changeset
   224
243
ae6608b760bf nicer images
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   225
    ^ Image fromFile:'brokenImage.xpm'
ae6608b760bf nicer images
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   226
359
6193ef5b6e74 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 356
diff changeset
   227
    "Modified: / 29.10.1997 / 03:22:06 / cg"
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   228
! !
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   229
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   230
!MenuEditor class methodsFor:'interface specs'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   231
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   232
classDefineSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   233
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   234
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   235
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   236
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   237
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   238
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   239
     UIPainter new openOnClass:MenuEditor andSelector:#classDefineSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   240
     MenuEditor new openInterface:#classDefineSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   241
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   242
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   243
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   244
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   245
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   246
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   247
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   248
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   249
           #(#WindowSpec
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   250
              #'name:' 'MenuEditor'
155310ec83aa revised version
tz
parents: 382
diff changeset
   251
              #'layout:' #(#LayoutFrame 197 0 172 0 443 0 265 0)
155310ec83aa revised version
tz
parents: 382
diff changeset
   252
              #'label:' 'MenuEditor'
155310ec83aa revised version
tz
parents: 382
diff changeset
   253
              #'min:' #(#Point 10 10)
155310ec83aa revised version
tz
parents: 382
diff changeset
   254
              #'max:' #(#Point 1152 900)
155310ec83aa revised version
tz
parents: 382
diff changeset
   255
              #'bounds:' #(#Rectangle 197 172 444 266)
155310ec83aa revised version
tz
parents: 382
diff changeset
   256
              #'usePreferredExtent:' false
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   257
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   258
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   259
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   260
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   261
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   262
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   263
                    #'name:' 'boxLabel'
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   264
                    #'layout:' #(#LayoutFrame 0 0.0 4 0 0 1.0 24 0)
155310ec83aa revised version
tz
parents: 382
diff changeset
   265
                    #'label:' 'Class for menu spec:'
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   266
                    #'adjust:' #left
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   267
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   268
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   269
                 #(#InputFieldSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   270
                    #'name:' 'classNameField'
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   271
                    #'layout:' #(#LayoutFrame 0 0.0 27 0 0 1.0 49 0)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   272
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   273
                    #'model:' #classNameChannel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   274
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   275
                 #(#HorizontalPanelViewSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   276
                    #'name:' 'commitPanel'
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   277
                    #'layout:' #(#LayoutFrame 10 0.0 -29 1.0 -10 1.0 -5 1.0)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   278
                    #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   279
                     #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   280
                        #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   281
                         #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   282
                           #(#ActionButtonSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   283
                              #'name:' 'button1'
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   284
                              #'label:' 'Cancel'
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   285
                              #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   286
                              #'model:' #cancel
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   287
                              #'extent:' #(#Point 109 24)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   288
                          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   289
                           #(#ActionButtonSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   290
                              #'name:' 'button2'
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   291
                              #'label:' 'OK'
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   292
                              #'tabable:' true
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   293
                              #'model:' #accept
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   294
                              #'isDefault:' true
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   295
                              #'extent:' #(#Point 109 24)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   296
                          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   297
                        )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   298
                    )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   299
                    #'horizontalLayout:' #fitSpace
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   300
                    #'verticalLayout:' #fit
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   301
                    #'horizontalSpace:' 3
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   302
                    #'verticalSpace:' 3
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   303
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   304
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   305
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   306
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   307
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   308
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   309
menu
220
ca
parents: 218
diff changeset
   310
    "this window spec was automatically generated by the ST/X MenuEditor"
ca
parents: 218
diff changeset
   311
ca
parents: 218
diff changeset
   312
    "do not manually edit this - the builder may not be able to
ca
parents: 218
diff changeset
   313
     handle the specification if its corrupted."
ca
parents: 218
diff changeset
   314
ca
parents: 218
diff changeset
   315
    "
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   316
     MenuEditor new openOnClass:MenuEditor andSelector:#menu
155310ec83aa revised version
tz
parents: 382
diff changeset
   317
     (Menu new fromLiteralArrayEncoding:(MenuEditor menu)) startUp
220
ca
parents: 218
diff changeset
   318
    "
ca
parents: 218
diff changeset
   319
ca
parents: 218
diff changeset
   320
    <resource: #menu>
ca
parents: 218
diff changeset
   321
ca
parents: 218
diff changeset
   322
    ^
ca
parents: 218
diff changeset
   323
     
ca
parents: 218
diff changeset
   324
       #(#Menu
ca
parents: 218
diff changeset
   325
          
ca
parents: 218
diff changeset
   326
           #(
ca
parents: 218
diff changeset
   327
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   328
                #'label:' 'About'
155310ec83aa revised version
tz
parents: 382
diff changeset
   329
                #'accessCharacterPosition:' 1
155310ec83aa revised version
tz
parents: 382
diff changeset
   330
                #'labelImage:' #(#ResourceRetriever nil #icon)
155310ec83aa revised version
tz
parents: 382
diff changeset
   331
                #'submenuChannel:' #menuAbout
220
ca
parents: 218
diff changeset
   332
            )
ca
parents: 218
diff changeset
   333
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   334
                #'label:' 'File'
155310ec83aa revised version
tz
parents: 382
diff changeset
   335
                #'translateLabel:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   336
                #'value:' #file
155310ec83aa revised version
tz
parents: 382
diff changeset
   337
                #'accessCharacterPosition:' 1
155310ec83aa revised version
tz
parents: 382
diff changeset
   338
                #'submenu:' 
155310ec83aa revised version
tz
parents: 382
diff changeset
   339
                 #(#Menu
155310ec83aa revised version
tz
parents: 382
diff changeset
   340
                    
155310ec83aa revised version
tz
parents: 382
diff changeset
   341
                     #(
155310ec83aa revised version
tz
parents: 382
diff changeset
   342
                       #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   343
                          #'label:' 'New'
155310ec83aa revised version
tz
parents: 382
diff changeset
   344
                          #'value:' #doNew
155310ec83aa revised version
tz
parents: 382
diff changeset
   345
                      )
155310ec83aa revised version
tz
parents: 382
diff changeset
   346
                       #(#MenuItem
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   347
                          #'label:' '-'
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   348
                      )
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   349
                       #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   350
                          #'label:' 'Load From Class...'
155310ec83aa revised version
tz
parents: 382
diff changeset
   351
                          #'translateLabel:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   352
                          #'value:' #doFromClass
155310ec83aa revised version
tz
parents: 382
diff changeset
   353
                          #'enabled:' #isStandAlone
155310ec83aa revised version
tz
parents: 382
diff changeset
   354
                      )
155310ec83aa revised version
tz
parents: 382
diff changeset
   355
                       #(#MenuItem
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   356
                          #'label:' 'Load From Class With Superclass...'
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   357
                          #'translateLabel:' true
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   358
                          #'value:' #loadFromClassWithSuperclass
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   359
                      )
155310ec83aa revised version
tz
parents: 382
diff changeset
   360
                       #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   361
                          #'label:' '-'
155310ec83aa revised version
tz
parents: 382
diff changeset
   362
                      )
155310ec83aa revised version
tz
parents: 382
diff changeset
   363
                       #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   364
                          #'label:' 'Save'
155310ec83aa revised version
tz
parents: 382
diff changeset
   365
                          #'value:' #doInstallSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   366
                      )
155310ec83aa revised version
tz
parents: 382
diff changeset
   367
                       #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   368
                          #'label:' 'Save Help Spec'
155310ec83aa revised version
tz
parents: 382
diff changeset
   369
                          #'value:' #doInstallHelp
155310ec83aa revised version
tz
parents: 382
diff changeset
   370
                          #'enabled:' #isStandAlone
155310ec83aa revised version
tz
parents: 382
diff changeset
   371
                      )
155310ec83aa revised version
tz
parents: 382
diff changeset
   372
                       #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   373
                          #'label:' '-'
155310ec83aa revised version
tz
parents: 382
diff changeset
   374
                      )
155310ec83aa revised version
tz
parents: 382
diff changeset
   375
                       #(#MenuItem
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   376
                          #'label:' 'Pick A Menu'
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   377
                          #'value:' #doPickAMenu
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   378
                          #'enabled:' #isStandAlone
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   379
                      )
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   380
                       #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   381
                          #'label:' 'Define Class...'
155310ec83aa revised version
tz
parents: 382
diff changeset
   382
                          #'value:' #doDefineClass
155310ec83aa revised version
tz
parents: 382
diff changeset
   383
                          #'enabled:' #isStandAlone
155310ec83aa revised version
tz
parents: 382
diff changeset
   384
                      )
155310ec83aa revised version
tz
parents: 382
diff changeset
   385
                       #(#MenuItem
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   386
                          #'label:' 'Browse Class'
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   387
                          #'value:' #doBrowseAppClass
155310ec83aa revised version
tz
parents: 382
diff changeset
   388
                      )
155310ec83aa revised version
tz
parents: 382
diff changeset
   389
                       #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   390
                          #'label:' '-'
155310ec83aa revised version
tz
parents: 382
diff changeset
   391
                      )
155310ec83aa revised version
tz
parents: 382
diff changeset
   392
                       #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   393
                          #'label:' 'Exit'
155310ec83aa revised version
tz
parents: 382
diff changeset
   394
                          #'translateLabel:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   395
                          #'value:' #closeRequest
155310ec83aa revised version
tz
parents: 382
diff changeset
   396
                      )
155310ec83aa revised version
tz
parents: 382
diff changeset
   397
                    ) nil
155310ec83aa revised version
tz
parents: 382
diff changeset
   398
                    nil
220
ca
parents: 218
diff changeset
   399
                )
ca
parents: 218
diff changeset
   400
            )
ca
parents: 218
diff changeset
   401
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   402
                #'label:' 'Edit'
155310ec83aa revised version
tz
parents: 382
diff changeset
   403
                #'submenuChannel:' #menuPainter
220
ca
parents: 218
diff changeset
   404
            )
ca
parents: 218
diff changeset
   405
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   406
                #'label:' 'Test'
155310ec83aa revised version
tz
parents: 382
diff changeset
   407
                #'accessCharacterPosition:' 1
155310ec83aa revised version
tz
parents: 382
diff changeset
   408
                #'submenuChannel:' #submenuTest
220
ca
parents: 218
diff changeset
   409
            )
ca
parents: 218
diff changeset
   410
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   411
                #'label:' 'History'
155310ec83aa revised version
tz
parents: 382
diff changeset
   412
                #'accessCharacterPosition:' 1
155310ec83aa revised version
tz
parents: 382
diff changeset
   413
                #'submenuChannel:' #menuHistory
220
ca
parents: 218
diff changeset
   414
            )
ca
parents: 218
diff changeset
   415
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   416
                #'label:' 'Help'
155310ec83aa revised version
tz
parents: 382
diff changeset
   417
                #'accessCharacterPosition:' 1
155310ec83aa revised version
tz
parents: 382
diff changeset
   418
                #'submenuChannel:' #menuHelp
220
ca
parents: 218
diff changeset
   419
            )
ca
parents: 218
diff changeset
   420
          ) nil
ca
parents: 218
diff changeset
   421
          nil
ca
parents: 218
diff changeset
   422
      )
ca
parents: 218
diff changeset
   423
!
ca
parents: 218
diff changeset
   424
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   425
menuDefaultLink
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   426
    "this window spec was automatically generated by the ST/X MenuEditor"
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   427
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   428
    "do not manually edit this - the builder may not be able to
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   429
     handle the specification if its corrupted."
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   430
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   431
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   432
     MenuEditor new openOnClass:MenuEditor andSelector:#menuDefaultLink
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   433
     (Menu new fromLiteralArrayEncoding:(MenuEditor menuDefaultLink)) startUp
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   434
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   435
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   436
    <resource: #menu>
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   437
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   438
    ^
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   439
     
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   440
       #(#Menu
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   441
          
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   442
           #(
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   443
             #(#MenuItem
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   444
                #'label:' '!! derives from application !!'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   445
            )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   446
          ) nil
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   447
          nil
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   448
      )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   449
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   450
220
ca
parents: 218
diff changeset
   451
menuPainter
ca
parents: 218
diff changeset
   452
    "this window spec was automatically generated by the ST/X MenuEditor"
ca
parents: 218
diff changeset
   453
ca
parents: 218
diff changeset
   454
    "do not manually edit this - the builder may not be able to
ca
parents: 218
diff changeset
   455
     handle the specification if its corrupted."
ca
parents: 218
diff changeset
   456
ca
parents: 218
diff changeset
   457
    "
ca
parents: 218
diff changeset
   458
     MenuEditor new openOnClass:MenuEditor andSelector:#menuPainter
ca
parents: 218
diff changeset
   459
     (Menu new fromLiteralArrayEncoding:(MenuEditor menuPainter)) startUp
ca
parents: 218
diff changeset
   460
    "
ca
parents: 218
diff changeset
   461
ca
parents: 218
diff changeset
   462
    <resource: #menu>
ca
parents: 218
diff changeset
   463
ca
parents: 218
diff changeset
   464
    ^
ca
parents: 218
diff changeset
   465
     
ca
parents: 218
diff changeset
   466
       #(#Menu
ca
parents: 218
diff changeset
   467
          
ca
parents: 218
diff changeset
   468
           #(
ca
parents: 218
diff changeset
   469
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   470
                #'label:' 'Cut'
155310ec83aa revised version
tz
parents: 382
diff changeset
   471
                #'value:' #doCut
155310ec83aa revised version
tz
parents: 382
diff changeset
   472
                #'enabled:' #hasValidSelection
155310ec83aa revised version
tz
parents: 382
diff changeset
   473
                #'shortcutKeyCharacter:' #Cut
155310ec83aa revised version
tz
parents: 382
diff changeset
   474
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   475
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   476
                #'label:' 'Copy'
220
ca
parents: 218
diff changeset
   477
                #'value:' #doCopy
ca
parents: 218
diff changeset
   478
                #'enabled:' #hasValidSelection
356
269c117830ba before closing the builder, check for outstanding
ca
parents: 340
diff changeset
   479
                #'shortcutKeyCharacter:' #Copy
220
ca
parents: 218
diff changeset
   480
            )
ca
parents: 218
diff changeset
   481
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   482
                #'label:' 'Paste'
220
ca
parents: 218
diff changeset
   483
                #'value:' #doPaste
ca
parents: 218
diff changeset
   484
                #'enabled:' #hasAnySingleSelection
356
269c117830ba before closing the builder, check for outstanding
ca
parents: 340
diff changeset
   485
                #'shortcutKeyCharacter:' #Paste
220
ca
parents: 218
diff changeset
   486
            )
ca
parents: 218
diff changeset
   487
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   488
                #'label:' '='
155310ec83aa revised version
tz
parents: 382
diff changeset
   489
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   490
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   491
                #'label:' 'Create Item'
155310ec83aa revised version
tz
parents: 382
diff changeset
   492
                #'value:' #doCreateItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   493
                #'labelImage:' #(#ResourceRetriever #MenuEditor #iconCreateItem 'Create Item')
155310ec83aa revised version
tz
parents: 382
diff changeset
   494
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   495
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   496
                #'label:' 'Create Separator'
155310ec83aa revised version
tz
parents: 382
diff changeset
   497
                #'value:' #doCreateSep
155310ec83aa revised version
tz
parents: 382
diff changeset
   498
                #'labelImage:' #(#ResourceRetriever #MenuEditor #iconCreateSep 'Create Separator')
155310ec83aa revised version
tz
parents: 382
diff changeset
   499
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   500
             #(#MenuItem
220
ca
parents: 218
diff changeset
   501
                #'label:' '-'
ca
parents: 218
diff changeset
   502
            )
ca
parents: 218
diff changeset
   503
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   504
                #'label:' 'Create Submenu Static'
155310ec83aa revised version
tz
parents: 382
diff changeset
   505
                #'value:' #doCreateMenu
155310ec83aa revised version
tz
parents: 382
diff changeset
   506
                #'labelImage:' #(#ResourceRetriever #MenuEditor #iconCreateMenu 'Create Submenu Static')
155310ec83aa revised version
tz
parents: 382
diff changeset
   507
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   508
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   509
                #'label:' 'Create Submenu Dynamic'
155310ec83aa revised version
tz
parents: 382
diff changeset
   510
                #'value:' #doCreateLink
155310ec83aa revised version
tz
parents: 382
diff changeset
   511
                #'labelImage:' #(#ResourceRetriever #MenuEditor #iconCreateLink 'Create Submenu Dynamic')
220
ca
parents: 218
diff changeset
   512
            )
ca
parents: 218
diff changeset
   513
          ) nil
ca
parents: 218
diff changeset
   514
          nil
ca
parents: 218
diff changeset
   515
      )
ca
parents: 218
diff changeset
   516
!
ca
parents: 218
diff changeset
   517
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   518
menuToolbar
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   519
    "this window spec was automatically generated by the ST/X MenuEditor"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   520
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   521
    "do not manually edit this - the builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   522
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   523
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   524
    "
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   525
     MenuEditor new openOnClass:MenuEditor andSelector:#menuToolbar
155310ec83aa revised version
tz
parents: 382
diff changeset
   526
     (Menu new fromLiteralArrayEncoding:(MenuEditor menuToolbar)) startUp
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   527
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   528
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   529
    <resource: #menu>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   530
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   531
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   532
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   533
       #(#Menu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   534
          
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   535
           #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   536
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   537
                #'label:' 'New'
155310ec83aa revised version
tz
parents: 382
diff changeset
   538
                #'isButton:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   539
                #'value:' #doNew
155310ec83aa revised version
tz
parents: 382
diff changeset
   540
                #'labelImage:' #(#ResourceRetriever nil #newIcon)
155310ec83aa revised version
tz
parents: 382
diff changeset
   541
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   542
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   543
                #'label:' 'Load'
155310ec83aa revised version
tz
parents: 382
diff changeset
   544
                #'isButton:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   545
                #'value:' #doFromClass
155310ec83aa revised version
tz
parents: 382
diff changeset
   546
                #'labelImage:' #(#ResourceRetriever nil #loadIcon)
155310ec83aa revised version
tz
parents: 382
diff changeset
   547
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   548
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   549
                #'label:' 'Save'
155310ec83aa revised version
tz
parents: 382
diff changeset
   550
                #'isButton:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   551
                #'value:' #doInstallSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   552
                #'labelImage:' #(#ResourceRetriever nil #saveIcon)
155310ec83aa revised version
tz
parents: 382
diff changeset
   553
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   554
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   555
                #'label:' '-'
155310ec83aa revised version
tz
parents: 382
diff changeset
   556
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   557
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   558
                #'label:' 'createItem'
155310ec83aa revised version
tz
parents: 382
diff changeset
   559
                #'isButton:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   560
                #'value:' #doCreateItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   561
                #'enabled:' #hasAnySingleSelection
155310ec83aa revised version
tz
parents: 382
diff changeset
   562
                #'labelImage:' #(#ResourceRetriever nil #iconCreateItem)
155310ec83aa revised version
tz
parents: 382
diff changeset
   563
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   564
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   565
                #'label:' 'createSeparator'
155310ec83aa revised version
tz
parents: 382
diff changeset
   566
                #'isButton:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   567
                #'value:' #doCreateSep
155310ec83aa revised version
tz
parents: 382
diff changeset
   568
                #'enabled:' #hasAnySingleSelection
155310ec83aa revised version
tz
parents: 382
diff changeset
   569
                #'labelImage:' #(#ResourceRetriever nil #iconCreateSep)
155310ec83aa revised version
tz
parents: 382
diff changeset
   570
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   571
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   572
                #'label:' '-'
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   573
            )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   574
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   575
                #'label:' 'createMenu'
155310ec83aa revised version
tz
parents: 382
diff changeset
   576
                #'isButton:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   577
                #'value:' #doCreateMenu
155310ec83aa revised version
tz
parents: 382
diff changeset
   578
                #'enabled:' #hasAnySingleSelection
155310ec83aa revised version
tz
parents: 382
diff changeset
   579
                #'labelImage:' #(#ResourceRetriever nil #iconCreateMenu)
155310ec83aa revised version
tz
parents: 382
diff changeset
   580
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   581
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   582
                #'label:' 'createLink'
155310ec83aa revised version
tz
parents: 382
diff changeset
   583
                #'isButton:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   584
                #'value:' #doCreateLink
155310ec83aa revised version
tz
parents: 382
diff changeset
   585
                #'enabled:' #hasAnySingleSelection
155310ec83aa revised version
tz
parents: 382
diff changeset
   586
                #'labelImage:' #(#ResourceRetriever nil #iconCreateLink)
155310ec83aa revised version
tz
parents: 382
diff changeset
   587
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   588
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   589
                #'label:' '-'
243
ae6608b760bf nicer images
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   590
            )
ae6608b760bf nicer images
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   591
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   592
                #'label:' 'stepUp'
155310ec83aa revised version
tz
parents: 382
diff changeset
   593
                #'isButton:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   594
                #'value:' #doStepUp
155310ec83aa revised version
tz
parents: 382
diff changeset
   595
                #'enabled:' #enabledStepOver
155310ec83aa revised version
tz
parents: 382
diff changeset
   596
                #'labelImage:' #(#ResourceRetriever nil #upIcon)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   597
            )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   598
             #(#MenuItem
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   599
                #'label:' 'stepDown'
155310ec83aa revised version
tz
parents: 382
diff changeset
   600
                #'isButton:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   601
                #'value:' #doStepDown
155310ec83aa revised version
tz
parents: 382
diff changeset
   602
                #'enabled:' #enabledStepOver
155310ec83aa revised version
tz
parents: 382
diff changeset
   603
                #'labelImage:' #(#ResourceRetriever nil #downIcon)
155310ec83aa revised version
tz
parents: 382
diff changeset
   604
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   605
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   606
                #'label:' 'stepIn'
155310ec83aa revised version
tz
parents: 382
diff changeset
   607
                #'isButton:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   608
                #'value:' #doStepIn
155310ec83aa revised version
tz
parents: 382
diff changeset
   609
                #'enabled:' #enabledStepIn
155310ec83aa revised version
tz
parents: 382
diff changeset
   610
                #'labelImage:' #(#ResourceRetriever nil #downRightIcon)
155310ec83aa revised version
tz
parents: 382
diff changeset
   611
            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   612
             #(#MenuItem
155310ec83aa revised version
tz
parents: 382
diff changeset
   613
                #'label:' 'stepOut'
155310ec83aa revised version
tz
parents: 382
diff changeset
   614
                #'isButton:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   615
                #'value:' #doStepOut
155310ec83aa revised version
tz
parents: 382
diff changeset
   616
                #'enabled:' #enabledStepOut
155310ec83aa revised version
tz
parents: 382
diff changeset
   617
                #'labelImage:' #(#ResourceRetriever nil #leftDownIcon)
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   618
            )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   619
          ) nil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   620
          nil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   621
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   622
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   623
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   624
windowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   625
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   626
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   627
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   628
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   629
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   630
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   631
     UIPainter new openOnClass:MenuEditor andSelector:#windowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   632
     MenuEditor new openInterface:#windowSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   633
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   634
    "MenuEditor open"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   635
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   636
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   637
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   638
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   639
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   640
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   641
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   642
           #(#WindowSpec
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   643
              #'name:' 'Menu Builder'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   644
              #'layout:' #(#LayoutFrame 227 0 195 0 806 0 578 0)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   645
              #'label:' 'Menu Builder'
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   646
              #'min:' #(#Point 10 10)
155310ec83aa revised version
tz
parents: 382
diff changeset
   647
              #'max:' #(#Point 1152 900)
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   648
              #'bounds:' #(#Rectangle 227 195 807 579)
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   649
              #'menu:' #menu
155310ec83aa revised version
tz
parents: 382
diff changeset
   650
              #'usePreferredExtent:' false
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   651
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   652
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   653
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   654
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   655
               #(
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   656
                 #(#MenuPanelSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   657
                    #'name:' 'menuToolbarView'
155310ec83aa revised version
tz
parents: 382
diff changeset
   658
                    #'layout:' #(#LayoutFrame 0 0.0 0 0 0 1.0 34 0)
155310ec83aa revised version
tz
parents: 382
diff changeset
   659
                    #'menu:' #menuToolbar
155310ec83aa revised version
tz
parents: 382
diff changeset
   660
                    #'showSeparatingLines:' true
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   661
                )
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   662
                 #(#VariableHorizontalPanelSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   663
                    #'name:' 'variableHorizontalPanel1'
155310ec83aa revised version
tz
parents: 382
diff changeset
   664
                    #'layout:' #(#LayoutFrame 0 0.0 36 0.0 0 1.0 -22 1.0)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   665
                    #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   666
                     #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   667
                        #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   668
                         #(
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   669
                           #(#ArbitraryComponentSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   670
                              #'name:' 'painterView'
155310ec83aa revised version
tz
parents: 382
diff changeset
   671
                              #'menu:' #menuPainter
155310ec83aa revised version
tz
parents: 382
diff changeset
   672
                              #'hasHorizontalScrollBar:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   673
                              #'hasVerticalScrollBar:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   674
                              #'component:' #painter
155310ec83aa revised version
tz
parents: 382
diff changeset
   675
                              #'hasBorder:' false
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   676
                          )
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   677
                           #(#ViewSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   678
                              #'name:' 'view1'
155310ec83aa revised version
tz
parents: 382
diff changeset
   679
                              #'component:' 
155310ec83aa revised version
tz
parents: 382
diff changeset
   680
                               #(#SpecCollection
155310ec83aa revised version
tz
parents: 382
diff changeset
   681
                                  #'collection:' 
155310ec83aa revised version
tz
parents: 382
diff changeset
   682
                                   #(
155310ec83aa revised version
tz
parents: 382
diff changeset
   683
                                     #(#NoteBookViewSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   684
                                        #'name:' 'specificationView'
155310ec83aa revised version
tz
parents: 382
diff changeset
   685
                                        #'layout:' #(#LayoutFrame 1 0.0 0 0.0 0 1.0 -26 1.0)
155310ec83aa revised version
tz
parents: 382
diff changeset
   686
                                        #'tabable:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   687
                                        #'model:' #tabModel
155310ec83aa revised version
tz
parents: 382
diff changeset
   688
                                        #'menu:' #tabList
155310ec83aa revised version
tz
parents: 382
diff changeset
   689
                                        #'useIndex:' true
155310ec83aa revised version
tz
parents: 382
diff changeset
   690
                                        #'canvas:' #noteBookView
155310ec83aa revised version
tz
parents: 382
diff changeset
   691
                                    )
155310ec83aa revised version
tz
parents: 382
diff changeset
   692
                                     #(#HorizontalPanelViewSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   693
                                        #'name:' 'confirmationPanel'
155310ec83aa revised version
tz
parents: 382
diff changeset
   694
                                        #'layout:' #(#LayoutFrame 1 0.0 -24 1 0 1.0 0 1.0)
155310ec83aa revised version
tz
parents: 382
diff changeset
   695
                                        #'component:' 
155310ec83aa revised version
tz
parents: 382
diff changeset
   696
                                         #(#SpecCollection
155310ec83aa revised version
tz
parents: 382
diff changeset
   697
                                            #'collection:' 
155310ec83aa revised version
tz
parents: 382
diff changeset
   698
                                             #(
155310ec83aa revised version
tz
parents: 382
diff changeset
   699
                                               #(#ActionButtonSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   700
                                                  #'name:' 'cancelButton'
155310ec83aa revised version
tz
parents: 382
diff changeset
   701
                                                  #'label:' 'Cancel'
155310ec83aa revised version
tz
parents: 382
diff changeset
   702
                                                  #'model:' #cancel
155310ec83aa revised version
tz
parents: 382
diff changeset
   703
                                                  #'enableChannel:' #modifiedChannel
155310ec83aa revised version
tz
parents: 382
diff changeset
   704
                                                  #'extent:' #(#Point 171 24)
155310ec83aa revised version
tz
parents: 382
diff changeset
   705
                                              )
155310ec83aa revised version
tz
parents: 382
diff changeset
   706
                                               #(#ActionButtonSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   707
                                                  #'name:' 'acceptButton'
155310ec83aa revised version
tz
parents: 382
diff changeset
   708
                                                  #'label:' 'OK'
155310ec83aa revised version
tz
parents: 382
diff changeset
   709
                                                  #'model:' #accept
155310ec83aa revised version
tz
parents: 382
diff changeset
   710
                                                  #'enableChannel:' #modifiedChannel
155310ec83aa revised version
tz
parents: 382
diff changeset
   711
                                                  #'extent:' #(#Point 171 24)
155310ec83aa revised version
tz
parents: 382
diff changeset
   712
                                              )
155310ec83aa revised version
tz
parents: 382
diff changeset
   713
                                            )
155310ec83aa revised version
tz
parents: 382
diff changeset
   714
                                        )
155310ec83aa revised version
tz
parents: 382
diff changeset
   715
                                        #'horizontalLayout:' #fitSpace
155310ec83aa revised version
tz
parents: 382
diff changeset
   716
                                        #'verticalLayout:' #fit
155310ec83aa revised version
tz
parents: 382
diff changeset
   717
                                        #'horizontalSpace:' 3
155310ec83aa revised version
tz
parents: 382
diff changeset
   718
                                        #'verticalSpace:' 3
155310ec83aa revised version
tz
parents: 382
diff changeset
   719
                                    )
155310ec83aa revised version
tz
parents: 382
diff changeset
   720
                                  )
155310ec83aa revised version
tz
parents: 382
diff changeset
   721
                              )
155310ec83aa revised version
tz
parents: 382
diff changeset
   722
                              #'level:' -1
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   723
                          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   724
                        )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   725
                    )
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   726
                    #'handles:' #(#Any 0.384483 1.0)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   727
                )
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   728
                 #(#LabelSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   729
                    #'name:' 'infoLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   730
                    #'layout:' #(#LayoutFrame 0 0.0 -22 1 -80 1.0 0 1.0)
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   731
                    #'labelChannel:' #valueOfInfoLabel
155310ec83aa revised version
tz
parents: 382
diff changeset
   732
                    #'level:' 1
155310ec83aa revised version
tz
parents: 382
diff changeset
   733
                    #'adjust:' #left
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   734
                )
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   735
                 #(#LabelSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   736
                    #'name:' 'timeLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   737
                    #'layout:' #(#LayoutFrame -80 1 -22 1 0 1.0 0 1.0)
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   738
                    #'labelChannel:' #valueOfTimeLabel
155310ec83aa revised version
tz
parents: 382
diff changeset
   739
                    #'level:' 1
155310ec83aa revised version
tz
parents: 382
diff changeset
   740
                    #'adjust:' #right
220
ca
parents: 218
diff changeset
   741
                )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   742
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   743
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   744
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   745
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   746
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   747
!MenuEditor class methodsFor:'slices'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   748
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   749
slicesItem
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   750
    ^#(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   751
            (Basics     basicsItemSpec)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   752
            (Details    detailsEditSpec)
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   753
            (Image      imageEditSpec)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   754
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   755
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   756
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   757
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   758
slicesLink
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   759
    ^#(
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   760
            (Basics     basicsLinkSpec)
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   761
            (Details    detailsEditSpec)
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   762
            (Image      imageEditSpec)
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   763
      )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   764
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   765
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   766
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   767
slicesMenu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   768
    ^#(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   769
            (Basics     basicsMenuSpec)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   770
            (Details    detailsEditSpec)
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   771
            (Image      imageEditSpec)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   772
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   773
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   774
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   775
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   776
slicesRootMenu
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   777
    ^#(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   778
            (Basics   basicsRootSpec)
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   779
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   780
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   781
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   782
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   783
slicesSeparatorMenu
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   784
    ^#(
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   785
            (Basics   basicsSeparatorSpec)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   786
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   787
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   788
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   789
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   790
!MenuEditor class methodsFor:'specs'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   791
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   792
basicsItemSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   793
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   794
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   795
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   796
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   797
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   798
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   799
     UIPainter new openOnClass:MenuEditor andSelector:#basicsItemSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   800
     MenuEditor new openInterface:#basicsItemSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   801
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   802
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   803
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   804
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   805
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   806
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   807
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   808
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   809
           #(#WindowSpec
290
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   810
              #'name:' 'unnamed canvas'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   811
              #'layout:' #(#LayoutFrame 454 0 288 0 720 0 606 0)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   812
              #'label:' 'unnamed canvas'
290
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   813
              #'min:' #(#Point 10 10)
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   814
              #'max:' #(#Point 1160 870)
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   815
              #'bounds:' #(#Rectangle 454 288 721 607)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   816
              #'usePreferredExtent:' false
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   817
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   818
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   819
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   820
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   821
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   822
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   823
                    #'name:' 'nameKeyLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   824
                    #'layout:' #(#AlignmentOrigin 107 0 26 0 1 0.5)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   825
                    #'label:' 'NameKey:'
263
25f080e1217f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 258
diff changeset
   826
                    #'adjust:' #right
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   827
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   828
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   829
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   830
                    #'name:' 'nameKeyField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   831
                    #'layout:' #(#LayoutFrame 110 0 15 0 0 1.0 37 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   832
                    #'activeHelpKey:' #nameKey
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   833
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   834
                    #'model:' #nameKey
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   835
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   836
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   837
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   838
                    #'name:' 'labelLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   839
                    #'layout:' #(#AlignmentOrigin 107 0 51 0 1 0.5)
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   840
                    #'label:' 'Label:'
263
25f080e1217f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 258
diff changeset
   841
                    #'adjust:' #right
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   842
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   843
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   844
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   845
                    #'name:' 'labelField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   846
                    #'layout:' #(#LayoutFrame 110 0 40 0 0 1.0 62 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   847
                    #'activeHelpKey:' #label
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   848
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   849
                    #'model:' #label
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   850
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   851
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   852
                    #'name:' 'valueLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   853
                    #'layout:' #(#AlignmentOrigin 107 0 90 0 1 0.5)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   854
                    #'label:' 'Value:'
263
25f080e1217f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 258
diff changeset
   855
                    #'adjust:' #right
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   856
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   857
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   858
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   859
                    #'name:' 'valueField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   860
                    #'layout:' #(#LayoutFrame 110 0 79 0 0 1.0 101 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   861
                    #'activeHelpKey:' #value
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   862
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   863
                    #'model:' #value
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   864
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   865
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   866
                 #(#LabelSpec
290
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   867
                    #'name:' 'argumentLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   868
                    #'layout:' #(#AlignmentOrigin 107 0 115 0 1 0.5)
290
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   869
                    #'label:' 'Argument:'
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   870
                    #'adjust:' #right
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   871
                    #'resizeForLabel:' true
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   872
                )
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   873
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   874
                    #'name:' 'argumentField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   875
                    #'layout:' #(#LayoutFrame 110 0 104 0 0 1.0 126 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   876
                    #'activeHelpKey:' #argument
290
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   877
                    #'tabable:' true
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   878
                    #'model:' #argument
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   879
                    #'type:' #string
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
   880
                )
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   881
                 #(#LabelSpec
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   882
                    #'name:' 'indicationLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   883
                    #'layout:' #(#AlignmentOrigin 107 0 155 0 1 0.5)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   884
                    #'label:' 'Indication:'
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   885
                    #'adjust:' #right
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   886
                    #'resizeForLabel:' true
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   887
                )
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   888
                 #(#InputFieldSpec
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   889
                    #'name:' 'indicationField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   890
                    #'layout:' #(#LayoutFrame 110 0 144 0 0 1.0 166 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   891
                    #'activeHelpKey:' #indication
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   892
                    #'tabable:' true
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   893
                    #'model:' #indication
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   894
                    #'type:' #symbolOrNil
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   895
                )
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   896
                 #(#CheckBoxSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   897
                    #'name:' 'translateLabelCheckBox'
155310ec83aa revised version
tz
parents: 382
diff changeset
   898
                    #'layout:' #(#Point 20 192)
155310ec83aa revised version
tz
parents: 382
diff changeset
   899
                    #'activeHelpKey:' #translateLabel
155310ec83aa revised version
tz
parents: 382
diff changeset
   900
                    #'model:' #translateLabel
155310ec83aa revised version
tz
parents: 382
diff changeset
   901
                    #'label:' 'Translate Label'
155310ec83aa revised version
tz
parents: 382
diff changeset
   902
                )
155310ec83aa revised version
tz
parents: 382
diff changeset
   903
                 #(#CheckBoxSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
   904
                    #'name:' 'isButtonCheckBox'
155310ec83aa revised version
tz
parents: 382
diff changeset
   905
                    #'layout:' #(#Point 20 221)
155310ec83aa revised version
tz
parents: 382
diff changeset
   906
                    #'activeHelpKey:' #translateLabel
155310ec83aa revised version
tz
parents: 382
diff changeset
   907
                    #'model:' #isButton
155310ec83aa revised version
tz
parents: 382
diff changeset
   908
                    #'label:' 'Is Button'
155310ec83aa revised version
tz
parents: 382
diff changeset
   909
                )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   910
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   911
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   912
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   913
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   914
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   915
basicsLinkSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   916
    "this window spec was automatically generated by the ST/X UIPainter"
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   917
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   918
    "do not manually edit this - the painter/builder may not be able to
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   919
     handle the specification if its corrupted."
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   920
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   921
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   922
     UIPainter new openOnClass:MenuEditor andSelector:#basicsLinkSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   923
     MenuEditor new openInterface:#basicsLinkSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   924
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   925
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   926
    <resource: #canvas>
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   927
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   928
    ^
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   929
     
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   930
       #(#FullSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   931
          #'window:' 
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   932
           #(#WindowSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   933
              #'name:' 'unnamed canvas'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   934
              #'layout:' #(#LayoutFrame 585 0 331 0 851 0 649 0)
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   935
              #'label:' 'unnamed canvas'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   936
              #'min:' #(#Point 10 10)
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   937
              #'max:' #(#Point 1280 1024)
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   938
              #'bounds:' #(#Rectangle 585 331 852 650)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   939
              #'usePreferredExtent:' false
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   940
          )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   941
          #'component:' 
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   942
           #(#SpecCollection
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   943
              #'collection:' 
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   944
               #(
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   945
                 #(#LabelSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   946
                    #'name:' 'nameKeyLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   947
                    #'layout:' #(#AlignmentOrigin 107 0 26 0 1 0.5)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   948
                    #'activeHelpKey:' #nameKey
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   949
                    #'label:' 'NameKey:'
263
25f080e1217f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 258
diff changeset
   950
                    #'adjust:' #right
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   951
                    #'resizeForLabel:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   952
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   953
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   954
                    #'name:' 'nameKeyField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   955
                    #'layout:' #(#LayoutFrame 110 0 15 0 0 1.0 37 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   956
                    #'activeHelpKey:' #nameKey
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   957
                    #'tabable:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   958
                    #'model:' #nameKey
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   959
                    #'type:' #symbolOrNil
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   960
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   961
                 #(#LabelSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   962
                    #'name:' 'labelLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   963
                    #'layout:' #(#AlignmentOrigin 107 0 51 0 1 0.5)
398
155310ec83aa revised version
tz
parents: 382
diff changeset
   964
                    #'label:' 'Label:'
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   965
                    #'resizeForLabel:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   966
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   967
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   968
                    #'name:' 'labelField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   969
                    #'layout:' #(#LayoutFrame 110 0 40 0 0 1.0 62 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   970
                    #'activeHelpKey:' #label
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   971
                    #'tabable:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   972
                    #'model:' #label
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   973
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   974
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   975
                    #'name:' 'menuField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   976
                    #'layout:' #(#LayoutFrame 110 0 65 0 0 1.0 87 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
   977
                    #'activeHelpKey:' #submenuChannel
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   978
                    #'tabable:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   979
                    #'model:' #submenuChannel
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   980
                    #'type:' #symbolOrNil
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   981
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   982
                 #(#LabelSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   983
                    #'name:' 'menuLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
   984
                    #'layout:' #(#AlignmentOrigin 107 0 76 0 1 0.5)
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   985
                    #'label:' 'Menu:'
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   986
                    #'resizeForLabel:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   987
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   988
              )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   989
          )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   990
      )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   991
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
   992
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   993
basicsMenuSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   994
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   995
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   996
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   997
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   998
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
   999
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1000
     UIPainter new openOnClass:MenuEditor andSelector:#basicsMenuSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1001
     MenuEditor new openInterface:#basicsMenuSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1002
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1003
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1004
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1005
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1006
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1007
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1008
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1009
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1010
           #(#WindowSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1011
              #'name:' 'unnamed canvas'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1012
              #'layout:' #(#LayoutFrame 381 0 278 0 647 0 596 0)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1013
              #'label:' 'unnamed canvas'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1014
              #'min:' #(#Point 10 10)
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1015
              #'max:' #(#Point 1280 1024)
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1016
              #'bounds:' #(#Rectangle 381 278 648 597)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1017
              #'usePreferredExtent:' false
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1018
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1019
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1020
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1021
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1022
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1023
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1024
                    #'name:' 'nameKeyLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1025
                    #'layout:' #(#AlignmentOrigin 107 0 26 0 1 0.5)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1026
                    #'label:' 'NameKey:'
263
25f080e1217f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 258
diff changeset
  1027
                    #'adjust:' #right
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1028
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1029
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1030
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1031
                    #'name:' 'nameKeyField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1032
                    #'layout:' #(#LayoutFrame 110 0 15 0 0 1.0 37 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1033
                    #'activeHelpKey:' #nameKey
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1034
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1035
                    #'model:' #nameKey
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1036
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1037
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1038
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1039
                    #'name:' 'labelLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1040
                    #'layout:' #(#AlignmentOrigin 107 0 51 0 1 0.5)
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1041
                    #'label:' 'Label:'
263
25f080e1217f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 258
diff changeset
  1042
                    #'adjust:' #right
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1043
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1044
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1045
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1046
                    #'name:' 'labelField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1047
                    #'layout:' #(#LayoutFrame 110 0 40 0 0 1.0 62 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1048
                    #'activeHelpKey:' #label
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1049
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1050
                    #'model:' #label
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1051
                )
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1052
                 #(#CheckBoxSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
  1053
                    #'name:' 'translateLabelCheckBox'
155310ec83aa revised version
tz
parents: 382
diff changeset
  1054
                    #'layout:' #(#Point 20 100)
155310ec83aa revised version
tz
parents: 382
diff changeset
  1055
                    #'activeHelpKey:' #translateLabel
155310ec83aa revised version
tz
parents: 382
diff changeset
  1056
                    #'model:' #translateLabel
155310ec83aa revised version
tz
parents: 382
diff changeset
  1057
                    #'label:' 'Translate Label'
155310ec83aa revised version
tz
parents: 382
diff changeset
  1058
                )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1059
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1060
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1061
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1062
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1063
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1064
basicsRootSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1065
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1066
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1067
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1068
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1069
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1070
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1071
     UIPainter new openOnClass:MenuEditor andSelector:#basicsRootSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1072
     MenuEditor new openInterface:#basicsRootSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1073
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1074
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1075
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1076
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1077
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1078
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1079
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1080
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1081
           #(#WindowSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1082
              #'name:' 'unnamed canvas'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1083
              #'layout:' #(#LayoutFrame 427 0 345 0 693 0 663 0)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1084
              #'label:' 'unnamed canvas'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1085
              #'min:' #(#Point 10 10)
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1086
              #'max:' #(#Point 1280 1024)
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1087
              #'bounds:' #(#Rectangle 427 345 694 664)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1088
              #'usePreferredExtent:' false
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1089
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1090
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1091
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1092
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1093
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1094
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1095
                    #'name:' 'selectorLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1096
                    #'layout:' #(#AlignmentOrigin 107 0 26 0 1 0.5)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1097
                    #'label:' 'Selector:'
263
25f080e1217f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 258
diff changeset
  1098
                    #'adjust:' #right
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1099
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1100
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1101
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1102
                    #'name:' 'selectorField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1103
                    #'layout:' #(#LayoutFrame 110 0 15 0 0 1.0 37 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1104
                    #'activeHelpKey:' #menuSelector
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1105
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1106
                    #'model:' #label
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1107
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1108
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1109
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1110
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1111
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1112
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1113
basicsSeparatorSpec
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1114
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1115
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1116
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1117
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1118
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1119
    "
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1120
     UIPainter new openOnClass:MenuEditor andSelector:#basicsSeparatorSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1121
     MenuEditor new openInterface:#basicsSeparatorSpec
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1122
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1123
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1124
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1125
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1126
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1127
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1128
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1129
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1130
           #(#WindowSpec
290
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
  1131
              #'name:' 'unnamed canvas'
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1132
              #'layout:' #(#LayoutFrame 197 0 172 0 463 0 490 0)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1133
              #'label:' 'unnamed canvas'
290
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
  1134
              #'min:' #(#Point 10 10)
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
  1135
              #'max:' #(#Point 1160 870)
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1136
              #'bounds:' #(#Rectangle 197 172 464 491)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1137
              #'usePreferredExtent:' false
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1138
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1139
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1140
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1141
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1142
               #(
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1143
                 #(#LabelSpec
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1144
                    #'name:' 'separatorLabel'
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1145
                    #'layout:' #(#AlignmentOrigin 127 0 26 0 1 0.5)
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1146
                    #'label:' 'Separator Type:'
263
25f080e1217f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 258
diff changeset
  1147
                    #'adjust:' #right
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1148
                    #'resizeForLabel:' true
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1149
                )
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1150
                 #(#ComboListSpec
290
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
  1151
                    #'name:' 'seperatorList'
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1152
                    #'layout:' #(#LayoutFrame 132 0 15 0 0 1.0 37 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1153
                    #'activeHelpKey:' #seperatorList
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1154
                    #'model:' #seperatorSelection
290
1428bab2aa68 an empty selection is now specified by 0
ca
parents: 287
diff changeset
  1155
                    #'useIndex:' true
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1156
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1157
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1158
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1159
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1160
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1161
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1162
detailsEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1163
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1164
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1165
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1166
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1167
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1168
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1169
     UIPainter new openOnClass:MenuEditor andSelector:#detailsEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1170
     MenuEditor new openInterface:#detailsEditSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1171
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1172
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1173
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1174
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1175
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1176
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1177
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1178
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1179
           #(#WindowSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1180
              #'name:' 'unnamed canvas'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1181
              #'layout:' #(#LayoutFrame 196 0 489 0 454 0 776 0)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1182
              #'label:' 'unnamed canvas'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1183
              #'min:' #(#Point 10 10)
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1184
              #'max:' #(#Point 1280 1024)
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1185
              #'bounds:' #(#Rectangle 196 489 455 777)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1186
              #'usePreferredExtent:' false
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1187
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1188
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1189
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1190
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1191
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1192
                 #(#LabelSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1193
                    #'name:' 'shortcutKeyLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1194
                    #'layout:' #(#AlignmentOrigin 107 0 26 0 1 0.5)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1195
                    #'label:' 'Accelerator:'
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1196
                    #'adjust:' #right
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1197
                    #'resizeForLabel:' true
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1198
                )
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1199
                 #(#InputFieldSpec
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1200
                    #'name:' 'shortcutKeyField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1201
                    #'layout:' #(#LayoutFrame 110 0 15 0 0 1.0 37 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1202
                    #'activeHelpKey:' #shortcutKey
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1203
                    #'tabable:' true
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1204
                    #'model:' #shortcutKey
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1205
                    #'type:' #symbolOrNil
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1206
                )
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1207
                 #(#LabelSpec
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1208
                    #'name:' 'enabledLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1209
                    #'layout:' #(#AlignmentOrigin 107 0 51 0 1 0.5)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1210
                    #'label:' 'Enabled:'
263
25f080e1217f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 258
diff changeset
  1211
                    #'adjust:' #right
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1212
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1213
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1214
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1215
                    #'name:' 'enabledField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1216
                    #'layout:' #(#LayoutFrame 110 0 40 0 0 1.0 62 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1217
                    #'activeHelpKey:' #enbled
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1218
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1219
                    #'model:' #enabled
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1220
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1221
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1222
                 #(#LabelSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1223
                    #'name:' 'accessCharLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1224
                    #'layout:' #(#AlignmentOrigin 217 0 90 0 1 0.5)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1225
                    #'label:' 'Access Character Position:'
263
25f080e1217f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 258
diff changeset
  1226
                    #'adjust:' #right
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1227
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1228
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1229
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1230
                    #'name:' 'accessCharField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1231
                    #'layout:' #(#LayoutFrame 220 0 79 0 0 1.0 101 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1232
                    #'activeHelpKey:' #accessCharaterPos
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1233
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1234
                    #'model:' #accessCharaterPos
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1235
                    #'type:' #numberOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1236
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1237
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1238
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1239
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1240
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1241
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1242
imageEditSpec
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1243
    "this window spec was automatically generated by the ST/X UIPainter"
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1244
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1245
    "do not manually edit this - the painter/builder may not be able to
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1246
     handle the specification if its corrupted."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1247
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1248
    "
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1249
     UIPainter new openOnClass:MenuEditor andSelector:#imageEditSpec
155310ec83aa revised version
tz
parents: 382
diff changeset
  1250
     MenuEditor new openInterface:#imageEditSpec
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1251
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1252
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1253
    <resource: #canvas>
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1254
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1255
    ^
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1256
     
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1257
       #(#FullSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1258
          #'window:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1259
           #(#WindowSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1260
              #'name:' 'unnamed canvas'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1261
              #'layout:' #(#LayoutFrame 424 0 309 0 668 0 450 0)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1262
              #'label:' 'unnamed canvas'
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1263
              #'min:' #(#Point 10 10)
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1264
              #'max:' #(#Point 1280 1024)
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1265
              #'bounds:' #(#Rectangle 424 309 669 451)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1266
              #'usePreferredExtent:' false
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1267
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1268
          #'component:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1269
           #(#SpecCollection
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1270
              #'collection:' 
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1271
               #(
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1272
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1273
                    #'name:' 'retrieverLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1274
                    #'layout:' #(#AlignmentOrigin 107 0 26 0 1 0.5)
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1275
                    #'label:' 'Retriever:'
263
25f080e1217f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 258
diff changeset
  1276
                    #'adjust:' #right
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1277
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1278
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1279
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1280
                    #'name:' 'retrieverField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1281
                    #'layout:' #(#LayoutFrame 110 0 15 0 0 1.0 37 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1282
                    #'activeHelpKey:' #retriever
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1283
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1284
                    #'model:' #retriever
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1285
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1286
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1287
                 #(#LabelSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1288
                    #'name:' 'iconLabel'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1289
                    #'layout:' #(#AlignmentOrigin 107 0 51 0 1 0.5)
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1290
                    #'label:' 'Selector:'
263
25f080e1217f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 258
diff changeset
  1291
                    #'adjust:' #right
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1292
                    #'resizeForLabel:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1293
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1294
                 #(#InputFieldSpec
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1295
                    #'name:' 'iconField'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1296
                    #'layout:' #(#LayoutFrame 110 0 40 0 0 1.0 62 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1297
                    #'activeHelpKey:' #icon
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1298
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1299
                    #'model:' #icon
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1300
                    #'type:' #symbolOrNil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1301
                )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1302
                 #(#CheckBoxSpec
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1303
                    #'name:' 'iconAndLabel'
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1304
                    #'layout:' #(#LayoutOrigin 20 0 104 0)
371
7017eaabd9ed add help text
ca
parents: 359
diff changeset
  1305
                    #'activeHelpKey:' #iconAndLabel
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1306
                    #'tabable:' true
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1307
                    #'model:' #iconAndLabel
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1308
                    #'label:' 'Image & Label'
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1309
                )
381
1d1b1483270c now with image editor support
tz
parents: 371
diff changeset
  1310
                 #(#ActionButtonSpec
1d1b1483270c now with image editor support
tz
parents: 371
diff changeset
  1311
                    #'name:' 'imageEditorButton'
406
a519e0d547f6 widgets rearranged for different fonts + comfortable menu load support
tz
parents: 398
diff changeset
  1312
                    #'layout:' #(#LayoutFrame 110 0 66 0 0 1 90 0)
381
1d1b1483270c now with image editor support
tz
parents: 371
diff changeset
  1313
                    #'label:' 'Image Editor'
1d1b1483270c now with image editor support
tz
parents: 371
diff changeset
  1314
                    #'model:' #doEditImage
1d1b1483270c now with image editor support
tz
parents: 371
diff changeset
  1315
                )
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1316
              )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1317
          )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1318
      )
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1319
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1320
209
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1321
!MenuEditor class methodsFor:'startup'!
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1322
213
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1323
openModalOnClass:aClass andSelector:aSelector
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1324
    ^ self new openModalOnClass:aClass andSelector:aSelector
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1325
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1326
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1327
!
71b11a173f87 change model; supports multiple selection
ca
parents: 209
diff changeset
  1328
209
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1329
openOnClass:aClass andSelector:aSelector
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1330
    ^ self new openOnClass:aClass andSelector:aSelector
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1331
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1332
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1333
! !
b2fa6f8d4808 postBuildWith:builder
ca
parents: 199
diff changeset
  1334
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1335
!MenuEditor methodsFor:'accessing'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1336
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1337
isModified: aBoolean         
155310ec83aa revised version
tz
parents: 382
diff changeset
  1338
155310ec83aa revised version
tz
parents: 382
diff changeset
  1339
    isModified := aBoolean
155310ec83aa revised version
tz
parents: 382
diff changeset
  1340
!
155310ec83aa revised version
tz
parents: 382
diff changeset
  1341
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1342
menuDefaultLink
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1343
    ^ self class menuDefaultLink
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1344
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1345
270
1a68f7479932 provide access to the menus selector;
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
  1346
selectorName
1a68f7479932 provide access to the menus selector;
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
  1347
    ^ self painter selectorName
1a68f7479932 provide access to the menus selector;
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
  1348
1a68f7479932 provide access to the menus selector;
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
  1349
    "Created: 31.7.1997 / 14:11:28 / cg"
1a68f7479932 provide access to the menus selector;
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
  1350
!
1a68f7479932 provide access to the menus selector;
Claus Gittinger <cg@exept.de>
parents: 266
diff changeset
  1351
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1352
specClass
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1353
    ^ specClass
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1354
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1355
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1356
specClass:aClass
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1357
    aClass isBehavior ifTrue:[specClass := aClass name]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1358
                     ifFalse:[specClass := aClass].
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1359
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1360
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1361
submenuTest
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1362
    "returns submenu assigned to item test
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1363
    "
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1364
    |menu|
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1365
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1366
    menu := self painter asMenu.
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1367
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1368
    menu allItemsDo:[:anItem|
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1369
        anItem value:nil.
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1370
        anItem enabled:true.
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1371
    ].
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1372
  ^ menu
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  1373
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  1374
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  1375
useHelpDictionary:aDictionary
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  1376
    self noteBookView.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  1377
    self helpTool dictionary:aDictionary.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1378
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1379
220
ca
parents: 218
diff changeset
  1380
!MenuEditor methodsFor:'accessing menu'!
ca
parents: 218
diff changeset
  1381
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1382
menu
155310ec83aa revised version
tz
parents: 382
diff changeset
  1383
    "this window spec was automatically generated by the UI Builder"
155310ec83aa revised version
tz
parents: 382
diff changeset
  1384
155310ec83aa revised version
tz
parents: 382
diff changeset
  1385
    ^ self class menu
155310ec83aa revised version
tz
parents: 382
diff changeset
  1386
155310ec83aa revised version
tz
parents: 382
diff changeset
  1387
155310ec83aa revised version
tz
parents: 382
diff changeset
  1388
!
155310ec83aa revised version
tz
parents: 382
diff changeset
  1389
220
ca
parents: 218
diff changeset
  1390
menuButtons
ca
parents: 218
diff changeset
  1391
    "this window spec was automatically generated by the ST/X MenuEditor"
ca
parents: 218
diff changeset
  1392
ca
parents: 218
diff changeset
  1393
    ^ self class menuButtons
ca
parents: 218
diff changeset
  1394
ca
parents: 218
diff changeset
  1395
ca
parents: 218
diff changeset
  1396
!
ca
parents: 218
diff changeset
  1397
ca
parents: 218
diff changeset
  1398
menuPainter
ca
parents: 218
diff changeset
  1399
    "this window spec was automatically generated by the ST/X MenuEditor"
ca
parents: 218
diff changeset
  1400
ca
parents: 218
diff changeset
  1401
    ^ self class menuPainter
ca
parents: 218
diff changeset
  1402
ca
parents: 218
diff changeset
  1403
298
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  1404
!
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  1405
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  1406
menuPullDown
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  1407
    "this window spec was automatically generated by the ST/X MenuEditor"
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  1408
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  1409
    ^ self class menuPullDown
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  1410
cec1f174397e use more functionality provided by base class
ca
parents: 290
diff changeset
  1411
398
155310ec83aa revised version
tz
parents: 382
diff changeset
  1412
!
155310ec83aa revised version
tz
parents: 382
diff changeset
  1413
155310ec83aa revised version
tz
parents: 382
diff changeset
  1414
menuToolbar
155310ec83aa revised version
tz
parents: 382
diff changeset
  1415
    "this window spec was automatically generated by the UI Builder"
155310ec83aa revised version
tz
parents: 382
diff changeset
  1416
155310ec83aa revised version
tz
parents: 382
diff changeset
  1417
    ^ self class menuToolbar
155310ec83aa revised version
tz
parents: 382
diff changeset
  1418
155310ec83aa revised version
tz
parents: 382
diff changeset
  1419
220
ca
parents: 218
diff changeset
  1420
! !
ca
parents: 218
diff changeset
  1421
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1422
!MenuEditor methodsFor:'actions'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1423
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1424
accept
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1425
    "automatically generated by UIPainter ..."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1426
255
989494227ffc use #booleanAspectFor: , a codeSaver
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
  1427
    |painter node cont|
989494227ffc use #booleanAspectFor: , a codeSaver
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
  1428
989494227ffc use #booleanAspectFor: , a codeSaver
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
  1429
    painter := self painter.
989494227ffc use #booleanAspectFor: , a codeSaver
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
  1430
    node := painter selectedNode.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1431
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1432
    node notNil ifTrue:[
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1433
        self isHelpToolSelected ifTrue:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  1434
            self helpTool accept.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  1435
            node contents activeHelpKey:(self helpTool helpKey)
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  1436
        ] ifFalse:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  1437
            cont := node contents buildFromAspects:aspects.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  1438
            painter selectedNodeChanged
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  1439
        ]
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1440
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1441
    self modifiedChannel value:false.
356
269c117830ba before closing the builder, check for outstanding
ca
parents: 340
diff changeset
  1442
    isModified := true.
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1443
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1444
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1445
cancel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1446
    |node|
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1447
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1448
    (node := self painter selectedNode) notNil ifTrue:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 275
diff changeset
  1449
        self helpTool helpKey:(self helpKey).
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1450
        aspects do:[:anAspect| anAspect value:nil ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1451
        node contents toAspects:aspects.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1452
    ].
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1453
    self modifiedChannel value:false.
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1454
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1455
! !
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1456
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1457
!MenuEditor methodsFor:'aspects'!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1458
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1459
aspectFor:aKey
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1460
    "returns aspect for a key or nil
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1461
    "
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1462
  ^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1463
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1464
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1465
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1466
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1467
enabledStepIn
257
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1468
    ^ builder booleanValueAspectFor:#enabledStepIn
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1469
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1470
    "Modified: 28.7.1997 / 12:51:55 / cg"
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1471
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1472
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1473
enabledStepOut
257
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1474
    ^ builder booleanValueAspectFor:#enabledStepOut
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1475
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1476
    "Modified: 28.7.1997 / 12:52:04 / cg"
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1477
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1478
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1479
enabledStepOver
257
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1480
    ^ builder booleanValueAspectFor:#enabledStepOver
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1481
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1482
    "Modified: 28.7.1997 / 12:52:07 / cg"
218
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1483
!
5c88856b360f access MenuEditor from any specification;
ca
parents: 215
diff changeset
  1484
220
ca
parents: 218
diff changeset
  1485
hasAnySingleSelection
257
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1486
    ^ builder booleanValueAspectFor:#hasAnySingleSelection
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1487
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1488
    "Modified: 28.7.1997 / 12:52:09 / cg"
220
ca
parents: 218
diff changeset
  1489
!
ca
parents: 218
diff changeset
  1490
ca
parents: 218
diff changeset
  1491
hasValidSelection
257
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1492
    ^ builder booleanValueAspectFor:#hasValidSelection
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1493
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1494
    "Modified: 28.7.1997 / 12:52:11 / cg"
220
ca
parents: 218
diff changeset
  1495
!
ca
parents: 218
diff changeset
  1496
ca
parents: 218
diff changeset
  1497
hasValidSingleSelection
257
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1498
    ^ builder booleanValueAspectFor:#hasValidSingleSelection
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1499
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1500
    "Modified: 28.7.1997 / 12:52:13 / cg"
220
ca
parents: 218
diff changeset
  1501
!
ca
parents: 218
diff changeset
  1502
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1503
modifiedChannel
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1504
    "automatically generated by UIPainter ..."
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1505
257
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1506
    ^ builder booleanValueAspectFor:#modifiedChannel
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1507
02d6daa8d878 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 255
diff changeset
  1508
    "Modified: 28.7.1997 / 12:52:14 / cg"
199
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1509
!
6ce84c1270a6 intitial checkin
ca
parents:
diff changeset
  1510
287