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