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