UIPainter.st
author ca
Fri, 15 Aug 1997 17:36:02 +0200
changeset 281 aabb4037f6a3
parent 280 1dd13e8107e2
child 282 bb88d92ae887
permissions -rw-r--r--
window spec
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     1
"
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     2
 COPYRIGHT (c) 1995 by eXept Software AG
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     3
              All Rights Reserved
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     4
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     5
 This software is furnished under a license and may be used
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     6
 only in accordance with the terms of that license and with the
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     8
 be provided or otherwise made available to, or used by, any
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     9
 other person.  No title to or ownership of the software is
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    10
 hereby transferred.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    11
"
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    12
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    13
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    14
ApplicationModel subclass:#UIPainter
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    15
	instanceVariableNames:'activeHelpTool layoutTool specTool treeView selectionPanel
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
    16
		tabSelection specClass specSelector specSuperclass aspects'
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    17
	classVariableNames:'IconStepUp IconStepOut IconStepIn IconStepDown'
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    18
	poolDictionaries:''
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    19
	category:'Interface-UIPainter'
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    20
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    21
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    22
SelectionInTreeView subclass:#TreeView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    23
	instanceVariableNames:'lastDrawnMaster cvsEventsDisabled imageMasterParent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    24
		imageMasterChild'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    25
	classVariableNames:'ImageMasterParent ImageMasterChild'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    26
	poolDictionaries:''
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    27
	privateIn:UIPainter
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    28
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    29
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    30
!UIPainter class methodsFor:'documentation'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    31
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    32
copyright
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    33
"
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    34
 COPYRIGHT (c) 1995 by eXept Software AG
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    35
              All Rights Reserved
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    36
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    37
 This software is furnished under a license and may be used
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    38
 only in accordance with the terms of that license and with the
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    39
 inclusion of the above copyright notice.   This software may not
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    40
 be provided or otherwise made available to, or used by, any
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    41
 other person.  No title to or ownership of the software is
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    42
 hereby transferred.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    43
"
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    44
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    45
!
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    46
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    47
documentation
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    48
"
127
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    49
    GUI-Builder:
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    50
    this class allows the user to build its own applications providing a graphical
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    51
    user interface to buildin components and to define the behavior of the components
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    52
    during runtime. The resulting specifications can be installed as methods on 
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    53
    classes, typically subclasses of an ApplicationModel. These specifications
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    54
    are used by the UIBuilder to generate the application window and its component
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    55
    structues when open the application.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    56
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    57
    [start with:]
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    58
        UIPainter open
127
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    59
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    60
    [author:]
183
bb0cc63e2cf1 set masterApllication instead of application
ca
parents: 179
diff changeset
    61
        Claus Gittinger
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    62
        Claus Atzkern
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    63
127
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    64
    [see also:]
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    65
        UIBuilder
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    66
        ApplicationModel
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    67
        UISpecification
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    68
"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    69
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    70
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    71
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    72
!UIPainter class methodsFor:'instance creation'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    73
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    74
listHolder:aListHolder
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    75
    |application|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    76
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    77
    application := self new.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    78
    application objectList:aListHolder.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    79
  ^ application open
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    80
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    81
195
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    82
openOnClass:aClass andSelector:aSelector
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    83
    ^ self new openOnClass:aClass andSelector:aSelector
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    84
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    85
    "Created: 1.7.1997 / 19:16:59 / cg"
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    86
!
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    87
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    88
painter:aBuilderView
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    89
    |application|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    90
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    91
    application := self new.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    92
    application painter:aBuilderView.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    93
  ^ application open
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    94
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    95
87
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    96
!UIPainter class methodsFor:'ST-80 queries'!
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    97
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    98
preferenceFor:aSymbol
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    99
    ^ false
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
   100
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
   101
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
   102
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
   103
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   104
!UIPainter class methodsFor:'help specs'!
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   105
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   106
helpSpec
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   107
    "return a dictionary filled with helpKey -> helptext associations.
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   108
     These are used by the activeHelp tool.
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   109
    "
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   110
  ^ super helpSpec addPairsFrom:#(
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   111
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   112
#alignSelectionCenterVer
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   113
'align selection vertical'
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   114
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   115
#alignSelectionLeft
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   116
'align selected components to the left edge of the
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   117
dominant component ( underlined )'
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   118
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   119
#alignSelectionRight
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   120
'align selected components to the right edge of the
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   121
dominant component ( underlined )'
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   122
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   123
#alignSelectionLeftAndRight
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   124
'align selected components to the right and left edge
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   125
of the dominant component ( underlined )'
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   126
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   127
#alignSelectionTop
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   128
'align selected components to the top edge of the
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   129
dominant component ( underlined )'
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   130
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   131
#alignSelectionBottom
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   132
'align selected components to the bottom edge of the
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   133
dominant component ( underlined )'
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   134
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   135
#alignSelectionTopAndBottom
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   136
'align selected components to the top and bottom edge
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   137
of the dominant component ( underlined )'
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   138
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   139
#alignSelectionCenterVer
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   140
'align selected components horizontal to the center of
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   141
the dominant component ( underlined )'
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   142
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   143
#alignSelectionCenterHor
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   144
'align selected components vertical to the center of
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   145
the dominant component ( underlined )'
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   146
194
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   147
#spreadSelectionVer
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   148
'vertical spacing between selected components is made the same'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   149
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   150
#spreadSelectionHor
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   151
'horizontal spacing between selected components is made the same'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   152
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   153
#centerSelectionHor
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   154
'center components horizontal in contained view'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   155
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   156
#centerSelectionVer
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   157
'center vertical horizontal in contained view'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   158
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   159
#setToDefaultExtent
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   160
'set selected components to their default extent'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   161
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   162
#setToDefaultWidth
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   163
'set selected components to their default width'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   164
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   165
#setToDefaultHeight
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   166
'set selected components to their default height'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   167
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   168
#copyExtent
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   169
'copy extent of the selected component'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   170
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   171
#pasteExtent
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   172
'change extent of all selected components to the
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   173
last copied extent'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   174
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   175
#pasteWidth
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   176
'change width of all selected components to the
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   177
last copied extent width'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   178
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   179
#pasteHeight
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   180
'change height of all selected components to the
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   181
last copied extent height'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   182
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   183
#copyLayout
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   184
'copy layout of the selected component'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   185
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   186
#pasteLayout
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   187
'change layout of all selected components to the
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   188
last copied layout'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   189
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   190
#pasteBuffer
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   191
'paste components at current mouse position'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   192
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   193
#pasteWithLayout
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   194
'paste components without changing their layouts'
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   195
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   196
)
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   197
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   198
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   199
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   200
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   201
! !
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   202
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   203
!UIPainter class methodsFor:'icons'!
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   204
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   205
iconAlignB
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   206
    ^ Image fromFile:'b_alignB.xbm'
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   207
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   208
!
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   209
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   210
iconAlignCenterH
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   211
    ^ Image fromFile:'b_alignCH.xbm'
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   212
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   213
!
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   214
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   215
iconAlignCenterV
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   216
    ^ Image fromFile:'b_alignCV.xbm'
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   217
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   218
!
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   219
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   220
iconAlignL
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   221
    ^ Image fromFile:'b_alignL.xbm'
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   222
!
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   223
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   224
iconAlignLR
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   225
    ^ Image fromFile:'b_alignLR.xbm'
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   226
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   227
!
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   228
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   229
iconAlignR
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   230
    ^ Image fromFile:'b_alignR.xbm'
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   231
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   232
!
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   233
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   234
iconAlignT
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   235
    ^ Image fromFile:'b_alignT.xbm'
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   236
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   237
!
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   238
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   239
iconAlignTB
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   240
    ^ Image fromFile:'b_alignTB.xbm'
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   241
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   242
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   243
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   244
iconStepDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   245
    IconStepDown isNil ifTrue:[
230
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   246
        IconStepDown := ((Image fromFile:'stepOver.xpm') rotated:90) flipHorizontal
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   247
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   248
  ^ IconStepDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   249
230
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   250
"
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   251
IconStepDown := nil
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   252
"
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   253
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   254
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   255
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   256
iconStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   257
    IconStepIn isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   258
        IconStepIn := ((Image fromFile:'stepIn.xpm') rotated:90) flipHorizontal
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   259
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   260
  ^ IconStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   261
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   262
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   263
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   264
iconStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   265
    IconStepOut isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   266
        IconStepOut := ((Image fromFile:'stepOut.xpm') rotated:90) flipHorizontal
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   267
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   268
  ^ IconStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   269
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   270
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   271
iconStepUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   272
    IconStepUp isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   273
        IconStepUp := ((Image fromFile:'stepOver.xpm') rotated:90) flipHorizontal flipVertical
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   274
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   275
  ^ IconStepUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   276
230
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   277
"
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   278
IconStepUp := nil
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   279
"
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   280
! !
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   281
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
   282
!UIPainter class methodsFor:'interface specs'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
   283
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   284
nameAndSelectorSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   285
    "this window spec was automatically generated by the ST/X UIPainter"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   286
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   287
    "do not manually edit this - the painter/builder may not be able to
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   288
     handle the specification if its corrupted."
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   289
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   290
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   291
     UIPainter new openOnClass:UIPainter andSelector:#nameAndSelectorSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   292
     UIPainter new openInterface:#nameAndSelectorSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   293
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   294
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   295
    <resource: #canvas>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   296
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   297
    ^
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   298
     
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   299
       #(#FullSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   300
          #'window:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   301
           #(#WindowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   302
              #'name:' 'uIPainterView'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   303
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   304
              #'label:' 'Painter'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   305
              #'bounds:' #(#Rectangle 0 0 391 170)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   306
          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   307
          #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   308
           #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   309
              #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   310
               #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   311
                 #(#LabelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   312
                    #'name:' 'classLabel'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   313
                    #'layout:' #(#AlignmentOrigin 50 0.11 51 0 1 0.5)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   314
                    #'label:' 'class:'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   315
                    #'adjust:' #right
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   316
                    #'resizeForLabel:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   317
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   318
                 #(#LabelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   319
                    #'name:' 'superClassLabel'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   320
                    #'layout:' #(#AlignmentOrigin 50 0.11 77 0 1 0.5)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   321
                    #'label:' 'superclass:'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   322
                    #'adjust:' #right
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   323
                    #'resizeForLabel:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   324
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   325
                 #(#LabelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   326
                    #'name:' 'selectorLabel'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   327
                    #'layout:' #(#AlignmentOrigin 50 0.11 105 0 1 0.5)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   328
                    #'label:' 'selector:'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   329
                    #'adjust:' #right
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   330
                    #'resizeForLabel:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   331
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   332
                 #(#InputFieldSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   333
                    #'name:' 'methodNameField'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   334
                    #'layout:' #(#LayoutFrame 51 0.11 95 0 -2 1.0 117 0)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   335
                    #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   336
                    #'model:' #methodNameChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   337
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   338
                 #(#LabelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   339
                    #'name:' 'boxLabel'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   340
                    #'layout:' #(#Point 2 10)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   341
                    #'label:' 'class & selector for code:'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   342
                    #'adjust:' #left
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   343
                    #'resizeForLabel:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   344
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   345
                 #(#InputFieldSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   346
                    #'name:' 'classNameField'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   347
                    #'layout:' #(#LayoutFrame 51 0.11 39 0 -2 1.0 61 0)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   348
                    #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   349
                    #'model:' #classNameChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   350
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   351
                 #(#ComboBoxSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   352
                    #'name:' 'comboBox1'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   353
                    #'layout:' #(#LayoutFrame 51 0.11 67 0 0 1.0 89 0)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   354
                    #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   355
                    #'model:' #superclassNameChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   356
                    #'comboList:' #superclassNameDefaults
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   357
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   358
                 #(#HorizontalPanelViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   359
                    #'name:' 'commitPanel'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   360
                    #'layout:' #(#LayoutFrame 0 0.0 -26 1.0 0 1.0 -2 1.0)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   361
                    #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   362
                     #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   363
                        #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   364
                         #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   365
                           #(#ActionButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   366
                              #'name:' 'button1'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   367
                              #'label:' 'cancel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   368
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   369
                              #'model:' #cancel
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   370
                              #'extent:' #(#Point 190 24)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   371
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   372
                           #(#ActionButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   373
                              #'name:' 'button2'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   374
                              #'label:' 'ok'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   375
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   376
                              #'isDefault:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   377
                              #'model:' #accept
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   378
                              #'extent:' #(#Point 190 22)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   379
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   380
                        )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   381
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   382
                    #'horizontalLayout:' #fitSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   383
                    #'verticalLayout:' #fit
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   384
                    #'horizontalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   385
                    #'verticalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   386
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   387
              )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   388
          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   389
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   390
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   391
    "Modified: 28.7.1997 / 16:49:49 / cg"
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   392
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   393
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   394
windowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   395
    "this window spec was automatically generated by the ST/X UIPainter"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   396
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   397
    "do not manually edit this - the painter/builder may not be able to
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   398
     handle the specification if its corrupted."
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   399
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   400
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   401
     UIPainter new openOnClass:UIPainter andSelector:#windowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   402
     UIPainter new openInterface:#windowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   403
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   404
    "UIPainter open"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   405
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   406
    <resource: #canvas>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   407
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   408
    ^
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   409
     
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   410
       #(#FullSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   411
          #'window:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   412
           #(#WindowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   413
              #'name:' 'uIPainterView'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   414
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   415
              #'label:' 'Tree-View'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   416
              #'bounds:' #(#Rectangle 0 0 561 450)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   417
          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   418
          #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   419
           #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   420
              #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   421
               #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   422
                 #(#MenuPanelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   423
                    #'name:' 'menuPullDown'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   424
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 25 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   425
                    #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   426
                    #'menu:' #menuPullDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   427
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   428
                 #(#NoteBookViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   429
                    #'name:' 'noteBook'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   430
                    #'layout:' #(#LayoutFrame 0 0.4 59 0.0 0 1.0 -55 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   431
                    #'enableChannel:' #enableChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   432
                    #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   433
                    #'menu:' #tabList
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   434
                    #'style:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   435
                     #(#FontDescription
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   436
                        #helvetica #medium
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   437
                        #roman #'10'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   438
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   439
                    #'model:' #tabModel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   440
                    #'tabWidget:' #Window
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   441
                    #'canvas:' #noteBookView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   442
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   443
                 #(#HorizontalPanelViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   444
                    #'name:' 'modifyPanel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   445
                    #'layout:' #(#LayoutFrame 0 0.4 -55 1.0 0 1.0 -25 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   446
                    #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   447
                     #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   448
                        #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   449
                         #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   450
                           #(#ActionButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   451
                              #'name:' 'cancelButton'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   452
                              #'label:' 'cancel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   453
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   454
                              #'model:' #cancel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   455
                              #'enableChannel:' #modifiedChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   456
                              #'extent:' #(#Point 164 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   457
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   458
                           #(#ActionButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   459
                              #'name:' 'acceptButton'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   460
                              #'label:' 'ok'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   461
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   462
                              #'model:' #accept
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   463
                              #'enableChannel:' #modifiedChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   464
                              #'extent:' #(#Point 164 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   465
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   466
                        )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   467
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   468
                    #'level:' 0
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   469
                    #'horizontalLayout:' #fitSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   470
                    #'verticalLayout:' #fitSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   471
                    #'horizontalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   472
                    #'verticalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   473
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   474
                 #(#LabelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   475
                    #'name:' 'helpInfo'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   476
                    #'layout:' #(#LayoutFrame 2 0.0 -25 1.0 -2 1.0 -2 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   477
                    #'level:' -1
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   478
                    #'adjust:' #left
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   479
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   480
                 #(#ToggleSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   481
                    #'name:' 'galleryLabel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   482
                    #'layout:' #(#LayoutFrame -162 1.0 1 0 -82 1.0 23 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   483
                    #'label:' 'Gallery'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   484
                    #'model:' #galleryShown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   485
                    #'isTriggerOnDown:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   486
                    #'showLamp:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   487
                    #'lampColor:' #(#Color 100.0 100.0 0.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   488
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   489
                 #(#ToggleSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   490
                    #'name:' 'painterLabel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   491
                    #'layout:' #(#LayoutFrame -81 1.0 1 0 -1 1.0 23 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   492
                    #'label:' 'Painter'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   493
                    #'model:' #painterShown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   494
                    #'isTriggerOnDown:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   495
                    #'showLamp:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   496
                    #'lampColor:' #(#Color 100.0 100.0 0.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   497
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   498
                 #(#ArbitraryComponentSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   499
                    #'name:' 'treeView'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   500
                    #'layout:' #(#LayoutFrame 0 0.0 59 0 0 0.4 -25 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   501
                    #'menu:' #menuCanvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   502
                    #'hasHorizontalScrollBar:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   503
                    #'hasVerticalScrollBar:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   504
                    #'miniScrollerHorizontal:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   505
                    #'miniScrollerVertical:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   506
                    #'component:' #treeView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   507
                    #'hasBorder:' false
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   508
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   509
                 #(#HorizontalPanelViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   510
                    #'name:' 'menuContainer'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   511
                    #'layout:' #(#LayoutFrame 0 0.0 26 0 0 1.0 58 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   512
                    #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   513
                     #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   514
                        #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   515
                         #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   516
                           #(#MenuPanelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   517
                              #'name:' 'menuMove'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   518
                              #'menu:' #menuMove
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   519
                              #'showSeparatingLines:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   520
                              #'extent:' #(#Point 123 32)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   521
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   522
                           #(#MenuPanelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   523
                              #'name:' 'menuAlignment'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   524
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   525
                              #'menu:' #menuAlignment
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   526
                              #'showSeparatingLines:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   527
                              #'extent:' #(#Point 233 32)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   528
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   529
                           #(#HorizontalPanelViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   530
                              #'name:' 'panelViewButtons'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   531
                              #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   532
                               #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   533
                                  #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   534
                                   #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   535
                                     #(#ArrowButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   536
                                        #'name:' 'moveLeft'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   537
                                        #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   538
                                        #'model:' #moveSelectionLeft
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   539
                                        #'isTriggerOnDown:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   540
                                        #'enableChannel:' #hasValidSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   541
                                        #'direction:' #left
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   542
                                        #'extent:' #(#Point 25 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   543
                                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   544
                                     #(#ArrowButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   545
                                        #'name:' 'moveRight'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   546
                                        #'model:' #moveSelectionRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   547
                                        #'isTriggerOnDown:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   548
                                        #'enableChannel:' #hasValidSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   549
                                        #'direction:' #right
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   550
                                        #'extent:' #(#Point 26 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   551
                                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   552
                                     #(#ArrowButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   553
                                        #'name:' 'moveDown'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   554
                                        #'model:' #moveSelectionDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   555
                                        #'isTriggerOnDown:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   556
                                        #'enableChannel:' #hasValidSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   557
                                        #'direction:' #down
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   558
                                        #'extent:' #(#Point 26 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   559
                                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   560
                                     #(#ArrowButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   561
                                        #'name:' 'moveUp'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   562
                                        #'model:' #moveSelectionUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   563
                                        #'isTriggerOnDown:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   564
                                        #'enableChannel:' #hasValidSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   565
                                        #'direction:' #up
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   566
                                        #'extent:' #(#Point 22 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   567
                                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   568
                                  )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   569
                              )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   570
                              #'level:' 1
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   571
                              #'horizontalLayout:' #spreadSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   572
                              #'verticalLayout:' #fitSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   573
                              #'horizontalSpace:' 4
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   574
                              #'verticalSpace:' 4
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   575
                              #'extent:' #(#Point 125 32)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   576
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   577
                        )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   578
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   579
                    #'horizontalLayout:' #spread
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   580
                    #'verticalLayout:' #fit
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   581
                    #'horizontalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   582
                    #'verticalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   583
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   584
              )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   585
          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   586
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   587
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   588
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   589
!UIPainter class methodsFor:'menu specs'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   590
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   591
menuAlignment
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   592
    "this window spec was automatically generated by the ST/X MenuEditor"
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   593
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   594
    "do not manually edit this - the builder may not be able to
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   595
     handle the specification if its corrupted."
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   596
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   597
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   598
     MenuEditor new openOnClass:UIPainter andSelector:#menuAlignment
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   599
     (Menu new fromLiteralArrayEncoding:(UIPainter menuAlignment)) startUp
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   600
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   601
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   602
    <resource: #menu>
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   603
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   604
    ^
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   605
     
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   606
       #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   607
          
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   608
           #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   609
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   610
                #'label:' 'align left'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   611
                #'value:' #alignSelectionLeft
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   612
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   613
                #'activeHelpKey:' #alignSelectionLeft
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   614
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   615
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   616
                    nil #iconAlignL
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   617
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   618
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   619
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   620
                #'label:' 'align right'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   621
                #'value:' #alignSelectionRight
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   622
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   623
                #'activeHelpKey:' #alignSelectionRight
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   624
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   625
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   626
                    nil #iconAlignR
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   627
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   628
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   629
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   630
                #'label:' 'align left & right'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   631
                #'value:' #alignSelectionLeftAndRight
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   632
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   633
                #'activeHelpKey:' #alignSelectionLeftAndRight
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   634
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   635
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   636
                    nil #iconAlignLR
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   637
                )
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   638
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   639
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   640
                #'label:' 'align top'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   641
                #'value:' #alignSelectionTop
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   642
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   643
                #'activeHelpKey:' #alignSelectionTop
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   644
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   645
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   646
                    nil #iconAlignT
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   647
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   648
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   649
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   650
                #'label:' 'align bottom'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   651
                #'value:' #alignSelectionBottom
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   652
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   653
                #'activeHelpKey:' #alignSelectionBottom
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   654
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   655
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   656
                    nil #iconAlignB
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   657
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   658
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   659
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   660
                #'label:' 'align top & bottom'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   661
                #'value:' #alignSelectionTopAndBottom
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   662
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   663
                #'activeHelpKey:' #alignSelectionTopAndBottom
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   664
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   665
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   666
                    nil #iconAlignTB
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   667
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   668
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   669
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   670
                #'label:' 'align centered horizontal'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   671
                #'value:' #alignSelectionCenterHor
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   672
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   673
                #'activeHelpKey:' #alignSelectionCenterHor
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   674
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   675
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   676
                    nil #iconAlignCenterH
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   677
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   678
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   679
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   680
                #'label:' 'align centered vertical'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   681
                #'value:' #alignSelectionCenterVer
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   682
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   683
                #'activeHelpKey:' #alignSelectionCenterVer
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   684
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   685
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   686
                    nil #iconAlignCenterV
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   687
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   688
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   689
          )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   690
          #( 3 3 )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   691
          nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   692
      )
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   693
!
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   694
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   695
menuCanvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   696
    "this window spec was automatically generated by the ST/X MenuEditor"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   697
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   698
    "do not manually edit this - the builder may not be able to
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   699
     handle the specification if its corrupted."
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   700
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   701
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   702
     MenuEditor new openOnClass:UIPainter andSelector:#menuCanvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   703
     (Menu new fromLiteralArrayEncoding:(UIPainter menuCanvas)) startUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   704
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   705
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   706
    <resource: #menu>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   707
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   708
    ^
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   709
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   710
       #(#Menu
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   711
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   712
           #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   713
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   714
                #'label:' 'copy'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   715
                #'value:' #copySelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   716
                #'shortcutKeyCharacter:' #Copy
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   717
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   718
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   719
                #'label:' 'cut'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   720
                #'value:' #deleteSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   721
                #'shortcutKeyCharacter:' #Cut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   722
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   723
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   724
                #'label:' 'paste'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   725
                #'nameKey:' #paste
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   726
                #'value:' #paste
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   727
                #'submenu:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   728
                 #(#Menu
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   729
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   730
                     #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   731
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   732
                          #'label:' 'paste'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   733
                          #'value:' #pasteBuffer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   734
                          #'activeHelpKey:' #pasteBuffer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   735
                          #'shortcutKeyCharacter:' #Paste
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   736
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   737
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   738
                          #'label:' 'keep layout'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   739
                          #'value:' #pasteWithLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   740
                          #'activeHelpKey:' #pasteWithLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   741
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   742
                    ) nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   743
                    nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   744
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   745
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   746
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   747
                #'label:' '-'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   748
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   749
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   750
                #'label:' 'undo'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   751
                #'nameKey:' #undo
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   752
                #'value:' #undoLast
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   753
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   754
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   755
                #'label:' '-'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   756
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   757
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   758
                #'label:' 'dimension'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   759
                #'value:' #dimension
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   760
                #'submenu:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   761
                 #(#Menu
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   762
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   763
                     #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   764
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   765
                          #'label:' 'default extent'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   766
                          #'value:' #setToDefaultExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   767
                          #'activeHelpKey:' #setToDefaultExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   768
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   769
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   770
                          #'label:' 'default width'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   771
                          #'value:' #setToDefaultWidth
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   772
                          #'activeHelpKey:' #setToDefaultWidth
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   773
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   774
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   775
                          #'label:' 'default height'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   776
                          #'value:' #setToDefaultHeight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   777
                          #'activeHelpKey:' #setToDefaultHeight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   778
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   779
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   780
                          #'label:' 'copy extent'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   781
                          #'value:' #copyExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   782
                          #'activeHelpKey:' #copyExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   783
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   784
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   785
                          #'label:' 'paste extent'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   786
                          #'value:' #pasteExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   787
                          #'activeHelpKey:' #pasteExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   788
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   789
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   790
                          #'label:' 'paste width'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   791
                          #'value:' #pasteWidth
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   792
                          #'activeHelpKey:' #pasteWidth
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   793
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   794
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   795
                          #'label:' 'paste height'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   796
                          #'value:' #pasteHeight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   797
                          #'activeHelpKey:' #pasteHeight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   798
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   799
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   800
                          #'label:' 'copy  layout'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   801
                          #'value:' #copyLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   802
                          #'activeHelpKey:' #copyLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   803
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   804
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   805
                          #'label:' 'paste layout'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   806
                          #'value:' #pasteLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   807
                          #'activeHelpKey:' #pasteLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   808
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   809
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   810
                    #(3 1 3)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   811
                    nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   812
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   813
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   814
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   815
                #'label:' 'align'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   816
                #'value:' #align
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   817
                #'submenu:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   818
                 #(#Menu
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   819
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   820
                     #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   821
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   822
                          #'label:' 'align left'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   823
                          #'value:' #alignSelectionLeft
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   824
                          #'activeHelpKey:' #alignSelectionLeft
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   825
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   826
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   827
                              #UIPainter #iconAlignL
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   828
                              'align left'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   829
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   830
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   831
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   832
                          #'label:' 'align right'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   833
                          #'value:' #alignSelectionRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   834
                          #'activeHelpKey:' #alignSelectionRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   835
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   836
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   837
                              #UIPainter #iconAlignR
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   838
                              'align right'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   839
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   840
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   841
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   842
                          #'label:' 'align left & right'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   843
                          #'value:' #alignSelectionLeftAndRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   844
                          #'activeHelpKey:' #alignSelectionLeftAndRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   845
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   846
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   847
                              #UIPainter #iconAlignLR
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   848
                              'align left & right'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   849
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   850
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   851
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   852
                          #'label:' 'align top'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   853
                          #'value:' #alignSelectionTop
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   854
                          #'activeHelpKey:' #alignSelectionTop
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   855
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   856
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   857
                              #UIPainter #iconAlignT
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   858
                              'align top'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   859
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   860
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   861
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   862
                          #'label:' 'align bottom'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   863
                          #'value:' #alignSelectionBottom
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   864
                          #'activeHelpKey:' #alignSelectionBottom
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   865
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   866
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   867
                              #UIPainter #iconAlignB
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   868
                              'align bottom'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   869
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   870
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   871
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   872
                          #'label:' 'align top & bottom'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   873
                          #'value:' #alignSelectionTopAndBottom
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   874
                          #'activeHelpKey:' #alignSelectionTopAndBottom
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   875
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   876
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   877
                              #UIPainter #iconAlignTB
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   878
                              'align top & bottom'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   879
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   880
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   881
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   882
                          #'label:' 'align centered horizontal'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   883
                          #'value:' #alignSelectionCenterHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   884
                          #'activeHelpKey:' #alignSelectionCenterHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   885
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   886
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   887
                              #UIPainter #iconAlignCenterH
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   888
                              'align centered horizontal'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   889
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   890
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   891
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   892
                          #'label:' 'align centered vertical'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   893
                          #'value:' #alignSelectionCenterVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   894
                          #'activeHelpKey:' #alignSelectionCenterVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   895
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   896
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   897
                              #UIPainter #iconAlignCenterV
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   898
                              'align centered vertical'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   899
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   900
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   901
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   902
                          #'label:' 'spread horizontal'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   903
                          #'value:' #spreadSelectionHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   904
                          #'activeHelpKey:' #spreadSelectionHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   905
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   906
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   907
                          #'label:' 'spread vertical'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   908
                          #'value:' #spreadSelectionVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   909
                          #'activeHelpKey:' #spreadSelectionVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   910
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   911
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   912
                          #'label:' 'center horizontal in frame'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   913
                          #'value:' #centerSelectionHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   914
                          #'activeHelpKey:' #centerSelectionHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   915
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   916
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   917
                          #'label:' 'center vertical in frame'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   918
                          #'value:' #centerSelectionVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   919
                          #'activeHelpKey:' #centerSelectionVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   920
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   921
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   922
                    #(8 2)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   923
                    nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   924
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   925
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   926
          ) nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   927
          nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   928
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   929
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   930
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   931
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   932
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   933
menuMove
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   934
    "this window spec was automatically generated by the ST/X MenuEditor"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   935
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   936
    "do not manually edit this - the builder may not be able to
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   937
     handle the specification if its corrupted."
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   938
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   939
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   940
     MenuEditor new openOnClass:UIPainter andSelector:#menuMove
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   941
     (Menu new fromLiteralArrayEncoding:(UIPainter menuMove)) startUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   942
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   943
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   944
    <resource: #menu>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   945
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   946
    ^
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   947
     
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   948
       #(#Menu
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   949
          
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   950
           #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   951
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   952
                #'label:' 'stepUp'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   953
                #'value:' #doStepUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   954
                #'enabled:' #hasSingleSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   955
                #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   956
                 #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   957
                    #UIPainter #iconStepUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   958
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   959
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   960
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   961
                #'label:' 'stepDown'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   962
                #'value:' #doStepDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   963
                #'enabled:' #hasSingleSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   964
                #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   965
                 #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   966
                    #UIPainter #iconStepDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   967
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   968
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   969
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   970
                #'label:' 'stepIn'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   971
                #'value:' #doStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   972
                #'enabled:' #canStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   973
                #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   974
                 #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   975
                    #UIPainter #iconStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   976
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   977
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   978
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   979
                #'label:' 'stepOut'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   980
                #'value:' #doStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   981
                #'enabled:' #canStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   982
                #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   983
                 #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   984
                    #UIPainter #iconStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   985
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   986
            )
229
cabe3bd6fd74 openEditMenu changed
ca
parents: 222
diff changeset
   987
          )
cabe3bd6fd74 openEditMenu changed
ca
parents: 222
diff changeset
   988
          #( 2 )
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   989
          nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   990
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   991
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   992
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   993
menuPullDown
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   994
    "this window spec was automatically generated by the ST/X MenuEditor"
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   995
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   996
    "do not manually edit this - the builder may not be able to
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   997
     handle the specification if its corrupted."
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   998
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   999
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1000
     MenuEditor new openOnClass:UIPainter andSelector:#menuPullDown
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1001
     (Menu new fromLiteralArrayEncoding:(UIPainter menuPullDown)) startUp
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1002
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1003
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1004
    <resource: #menu>
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1005
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1006
    ^
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1007
     
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1008
       #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1009
          
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1010
           #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1011
             #(#MenuItem
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1012
                #'label:' 'file'
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1013
                #'value:' #file
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1014
                #'enabled:' #enableChannel
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1015
                #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1016
                 #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1017
                    
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1018
                     #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1019
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1020
                          #'label:' 'new'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1021
                          #'value:' #doNew
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1022
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1023
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1024
                          #'label:' 'from class ...'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1025
                          #'value:' #doFromClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1026
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1027
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1028
                          #'label:' 'pick a view '
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1029
                          #'value:' #doPickAView
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1030
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1031
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1032
                          #'label:' '-'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1033
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1034
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1035
                          #'label:' 'quit'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1036
                          #'value:' #closeRequest
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1037
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1038
                    ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1039
                    nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1040
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1041
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1042
             #(#MenuItem
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1043
                #'label:' 'misc'
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1044
                #'value:' #misc
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1045
                #'enabled:' #enableChannel
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1046
                #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1047
                 #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1048
                    
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1049
                     #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1050
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1051
                          #'label:' 'grid'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1052
                          #'value:' #grid
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1053
                          #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1054
                           #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1055
                              
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1056
                               #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1057
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1058
                                    #'label:' 'show'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1059
                                    #'indication:' #'gridShown:'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1060
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1061
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1062
                                    #'label:' 'align'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1063
                                    #'indication:' #'gridAlign:'
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1064
                                )
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1065
                              ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1066
                              nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1067
                          )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1068
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1069
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1070
                          #'label:' 'undo'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1071
                          #'value:' #undo
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1072
                          #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1073
                           #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1074
                              
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1075
                               #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1076
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1077
                                    #'label:' 'last'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1078
                                    #'value:' #undoLast
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1079
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1080
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1081
                                    #'label:' 'menu'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1082
                                    #'value:' #openUndoMenu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1083
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1084
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1085
                                    #'label:' '-'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1086
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1087
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1088
                                    #'label:' 'delete'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1089
                                    #'value:' #removeUndoHistory
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1090
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1091
                              ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1092
                              nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1093
                          )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1094
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1095
                    ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1096
                    nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1097
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1098
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1099
             #(#MenuItem
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1100
                #'label:' 'code'
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1101
                #'value:' #code
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1102
                #'enabled:' #enableChannel
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1103
                #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1104
                 #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1105
                    
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1106
                     #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1107
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1108
                          #'label:' 'class && method ...'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1109
                          #'value:' #defineClassAndSelector
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1110
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1111
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1112
                          #'label:' '='
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1113
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1114
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1115
                          #'label:' 'install window spec.'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1116
                          #'value:' #doInstallSpec
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1117
                          #'enabled:' #hasSpecClassAndSelector
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1118
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1119
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1120
                          #'label:' 'install help spec.'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1121
                          #'value:' #doInstallHelp
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1122
                          #'enabled:' #hasSpecClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1123
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1124
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1125
                          #'label:' '-'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1126
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1127
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1128
                          #'label:' 'install aspects'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1129
                          #'value:' #doInstallAspects
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1130
                          #'enabled:' #hasSpecClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1131
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1132
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1133
                          #'label:' '='
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1134
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1135
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1136
                          #'label:' 'show window spec.'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1137
                          #'value:' #doWindowSpec
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1138
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1139
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1140
                          #'label:' '='
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1141
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1142
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1143
                          #'label:' 'browse application'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1144
                          #'value:' #doBrowseAppClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1145
                          #'enabled:' #hasSpecClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1146
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1147
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1148
                          #'label:' 'start  application'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1149
                          #'value:' #doStartApplication
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1150
                          #'enabled:' #hasSpecClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1151
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1152
                    ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1153
                    nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1154
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1155
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1156
             #(#MenuItem
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1157
                #'label:' 'test'
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1158
                #'nameKey:' #test
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1159
                #'value:' #test
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1160
                #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1161
                 #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1162
                    
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1163
                     #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1164
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1165
                          #'label:' 'test mode'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1166
                          #'indication:' #'testMode:'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1167
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1168
                    ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1169
                    nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1170
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1171
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1172
          ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1173
          nil
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1174
      )
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1175
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1176
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1177
!UIPainter methodsFor:'accessing menu'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1178
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1179
menuCanvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1180
    ^ [ treeView canvas showMiddleButtonMenu ]
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1181
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1182
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1183
menuMove
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1184
    "this window spec was automatically generated by the ST/X MenuEditor"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1185
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1186
    ^ self class menuMove
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1187
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1188
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1189
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1190
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1191
menuPullDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1192
    "this window spec was automatically generated by the ST/X MenuEditor"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1193
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1194
    ^ self class menuPullDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1195
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1196
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1197
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1198
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1199
!UIPainter methodsFor:'actions'!
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1200
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1201
accept
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1202
    |layout|
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1203
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1204
    self isLayoutToolSelected ifTrue:[
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1205
        (layout := layoutTool layout) notNil ifTrue:[
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1206
            layoutTool layoutType == #Extent ifTrue:[
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1207
                self painter setExtent:layout
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1208
            ] ifFalse:[
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1209
                self painter setLayout:layout
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1210
            ]
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1211
        ]
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1212
    ] ifFalse:[
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1213
        self isHelpToolSelected ifTrue:[
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1214
            activeHelpTool accept
e652608690b1 help ...
ca
parents: 144
diff changeset
  1215
        ].
171
7a99c53780ef help and close/raise of gallery/painter
ca
parents: 168
diff changeset
  1216
        self painter updateFromSpec:(specTool specification).
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1217
    ].
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1218
    self modifiedChannel value:false.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1219
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1220
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1221
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1222
cancel
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1223
    "cancel all changes and read back attributes from current view
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1224
    "
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  1225
    self isModified ifTrue:[
171
7a99c53780ef help and close/raise of gallery/painter
ca
parents: 168
diff changeset
  1226
        specTool specification:(self painter specForSelection).
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1227
        layoutTool layoutView:(layoutTool layoutView).
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1228
        self modifiedChannel value:false.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1229
    ]
137
ca
parents: 136
diff changeset
  1230
!
ca
parents: 136
diff changeset
  1231
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1232
openEditMenu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1233
    |cls aspect editor|
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1234
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1235
    specClass isNil ifTrue:[
245
d48281345935 better warning message
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1236
        ^ self information:'no application class defined yet'.
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1237
    ].
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1238
    (cls := specClass) isBehavior ifFalse:[
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1239
        cls := Smalltalk at:specClass asSymbol.
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1240
        cls isNil ifTrue:[
245
d48281345935 better warning message
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1241
            ^ self information:'no application class defined yet'
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1242
        ]
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1243
    ].
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1244
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1245
    cls notNil ifTrue:[
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1246
        (aspect := specTool specification menu) notNil ifTrue:[
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1247
            aspect := aspect asSymbol
229
cabe3bd6fd74 openEditMenu changed
ca
parents: 222
diff changeset
  1248
        ] ifFalse:[
267
6feed486f1f1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
  1249
            "/ cg: q&d hack ...
6feed486f1f1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
  1250
229
cabe3bd6fd74 openEditMenu changed
ca
parents: 222
diff changeset
  1251
            aspect := treeView propertySelected.
cabe3bd6fd74 openEditMenu changed
ca
parents: 222
diff changeset
  1252
            aspect notNil ifTrue:[
245
d48281345935 better warning message
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1253
                Object errorSignal handle:[:ex |
271
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1254
                    aspect := nil.
245
d48281345935 better warning message
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1255
                ] do:[
d48281345935 better warning message
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1256
                    aspect := aspect view asMenu.
d48281345935 better warning message
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1257
                ]
271
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1258
            ].
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1259
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1260
"/            aspect isNil ifTrue:[
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1261
"/                self warn:'first enter (and confirm) the menus selector.'.
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1262
"/                ^ self.
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1263
"/            ].
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1264
        ].
229
cabe3bd6fd74 openEditMenu changed
ca
parents: 222
diff changeset
  1265
        
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1266
        editor := MenuEditor new.
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1267
        editor masterApplication:self.
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1268
        editor activeHelpTool:(self activeHelpTool).
271
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1269
        editor openModalOnClass:cls andSelector:aspect.
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1270
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1271
        editor selectorName ~= aspect ifTrue:[
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1272
            editor didInstall ifTrue:[
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1273
                specTool specification menu:editor selectorName asSymbol.
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1274
                self modifiedChannel value:true.
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1275
                self accept
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1276
            ]
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1277
        ].
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1278
    ]
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1279
271
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1280
    "Modified: 31.7.1997 / 14:26:13 / cg"
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1281
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1282
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1283
!UIPainter methodsFor:'active help'!
e652608690b1 help ...
ca
parents: 144
diff changeset
  1284
197
646d24a7ad36 generate help specs moved to UIHelpTool
ca
parents: 195
diff changeset
  1285
activeHelpTool
646d24a7ad36 generate help specs moved to UIHelpTool
ca
parents: 195
diff changeset
  1286
    "setup help tool
171
7a99c53780ef help and close/raise of gallery/painter
ca
parents: 168
diff changeset
  1287
    "
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1288
    activeHelpTool isNil ifTrue:[
152
ca
parents: 149
diff changeset
  1289
        activeHelpTool := UIHelpTool new.
197
646d24a7ad36 generate help specs moved to UIHelpTool
ca
parents: 195
diff changeset
  1290
        activeHelpTool helpSpecFrom:specClass.
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1291
        activeHelpTool masterApplication:self.
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1292
    ].
e652608690b1 help ...
ca
parents: 144
diff changeset
  1293
    ^ activeHelpTool
e652608690b1 help ...
ca
parents: 144
diff changeset
  1294
!
e652608690b1 help ...
ca
parents: 144
diff changeset
  1295
e652608690b1 help ...
ca
parents: 144
diff changeset
  1296
showHelp:aHelpText for:view
e652608690b1 help ...
ca
parents: 144
diff changeset
  1297
    "hook to allow an application to display active help
e652608690b1 help ...
ca
parents: 144
diff changeset
  1298
     texts in its own info area.
e652608690b1 help ...
ca
parents: 144
diff changeset
  1299
     This method may be redefined in a concrete application.
e652608690b1 help ...
ca
parents: 144
diff changeset
  1300
     If it returns false, the ActiveHelp manager will popup a
e652608690b1 help ...
ca
parents: 144
diff changeset
  1301
     bubble with the help text."
e652608690b1 help ...
ca
parents: 144
diff changeset
  1302
e652608690b1 help ...
ca
parents: 144
diff changeset
  1303
    |l|
e652608690b1 help ...
ca
parents: 144
diff changeset
  1304
e652608690b1 help ...
ca
parents: 144
diff changeset
  1305
    (l := self builder componentAt:#helpInfo) notNil ifTrue:[
152
ca
parents: 149
diff changeset
  1306
        aHelpText replaceAll:(Character cr) by:(Character space).
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1307
        l label:aHelpText.
152
ca
parents: 149
diff changeset
  1308
      ^ true.
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1309
    ].
e652608690b1 help ...
ca
parents: 144
diff changeset
  1310
    ^ false
e652608690b1 help ...
ca
parents: 144
diff changeset
  1311
e652608690b1 help ...
ca
parents: 144
diff changeset
  1312
e652608690b1 help ...
ca
parents: 144
diff changeset
  1313
! !
e652608690b1 help ...
ca
parents: 144
diff changeset
  1314
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1315
!UIPainter methodsFor:'aspects'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1316
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1317
canStepIn
256
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1318
    ^ builder booleanValueAspectFor:#canStepIn
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1319
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1320
    "Modified: 28.7.1997 / 12:52:16 / cg"
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1321
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1322
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1323
canStepOut
256
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1324
    ^ builder booleanValueAspectFor:#canStepOut
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1325
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1326
    "Modified: 28.7.1997 / 12:52:18 / cg"
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1327
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1328
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1329
enableChannel
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1330
    "true if modifications are allowed otherwise running test
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1331
    "
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1332
  ^ self painter enableChannel
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1333
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1334
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1335
galleryShown
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1336
    |holder|
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1337
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1338
    (holder := builder bindingAt:#galleryShown) isNil ifTrue:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1339
        builder aspectAt:#galleryShown put:(holder :=  true asValue).
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1340
        holder addDependent:self
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1341
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1342
    ^ holder
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1343
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1344
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1345
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1346
hasSingleSelection
256
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1347
    ^ builder booleanValueAspectFor:#hasSingleSelection
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1348
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1349
    "Modified: 28.7.1997 / 12:52:20 / cg"
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1350
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1351
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1352
hasValidSelection
256
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1353
    ^ builder booleanValueAspectFor:#hasValidSelection
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1354
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1355
    "Modified: 28.7.1997 / 12:52:22 / cg"
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1356
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1357
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1358
modifiedChannel
256
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1359
    ^ builder booleanValueAspectFor:#modifiedChannel
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1360
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  1361
    "Modified: 28.7.1997 / 12:52:24 / cg"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1362
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1363
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1364
noteBookView
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1365
    "automatically generated by UIPainter ..."
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1366
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1367
    |noteBook channel n1 n2|
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1368
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1369
    (noteBook := builder bindingAt:#noteBookView) isNil ifTrue:[
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1370
        noteBook   := View new.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1371
        layoutTool := UILayoutTool new.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1372
        specTool   := UISpecificationTool new.
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1373
        channel    := self modifiedChannel.
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1374
152
ca
parents: 149
diff changeset
  1375
        layoutTool masterApplication:self.
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1376
        specTool   masterApplication:self.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1377
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1378
        n1 := SubCanvas origin:0.0@0.0 corner:1.0@1.0 in:noteBook.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1379
        n2 := SubCanvas origin:0.0@0.0 corner:1.0@1.0 in:noteBook.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1380
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1381
        n1 client:layoutTool.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1382
        specTool builder:(n2 client:specTool).
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1383
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1384
        layoutTool masterApplication:self.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1385
        specTool   masterApplication:self.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1386
        layoutTool modifiedHolder:channel.
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1387
        specTool   modifiedHolder:channel.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1388
        builder aspectAt:#noteBookView put:noteBook.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1389
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1390
    ^ noteBook
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1391
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1392
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1393
objectList
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1394
    ^ nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1395
"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1396
    |holder|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1397
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1398
    (holder := builder bindingAt:#objectList) isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1399
        builder aspectAt:#objectList put:(holder := SelectionInList).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1400
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1401
    ^ holder
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1402
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1403
"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1404
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1405
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1406
objectListMenu
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1407
    "returns a block which returns the menu
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1408
     !!hack!!
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1409
    "
121
96d6feeeb049 middleButtonMen:
ca
parents: 118
diff changeset
  1410
    ^ [ self painter showMiddleButtonMenu ].
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1411
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1412
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1413
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1414
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1415
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1416
painterShown
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1417
    |holder|
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1418
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1419
    (holder := builder bindingAt:#painterShown) isNil ifTrue:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1420
        builder aspectAt:#painterShown put:(holder :=  true asValue).
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1421
        holder addDependent:self
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1422
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1423
    ^ holder
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1424
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1425
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1426
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1427
tabList
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1428
    "automatically generated by UIPainter ..."
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1429
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1430
    |holder|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1431
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1432
    (holder := builder bindingAt:#tabList) isNil ifTrue:[
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1433
        builder aspectAt:#tabList put:(holder :=  ValueHolder new).
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1434
        holder value:#( 'Properties' ).
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1435
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1436
    ^ holder
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1437
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1438
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1439
tabModel
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1440
    "automatically generated by UIPainter ..."
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1441
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1442
    |holder|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1443
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1444
    (holder := builder bindingAt:#tabModel) isNil ifTrue:[
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1445
        holder := AspectAdaptor new subject:self; forAspect:#tabSelection.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1446
        builder aspectAt:#tabModel put:holder.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1447
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1448
    ^ holder
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1449
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1450
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1451
treeView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1452
    ^ treeView
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1453
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1454
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1455
!UIPainter methodsFor:'binding access'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1456
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1457
aspectFor:aKey
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1458
    "aspect for a key
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1459
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1460
  ^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1461
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1462
0b53bd128667 *** empty log message ***
ca
parents: 101
diff chan