UIPainter.st
author ca
Sun, 20 Jul 1997 12:22:43 +0200
changeset 222 dd2688307d90
parent 217 354ba46948b4
child 229 cabe3bd6fd74
permissions -rw-r--r--
added treeView; change specs
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:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   246
        IconStepDown := self iconStepUp flipHorizontal
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
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   250
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   251
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   252
iconStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   253
    IconStepIn isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   254
        IconStepIn := ((Image fromFile:'stepIn.xpm') rotated:90) flipHorizontal
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
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   258
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   259
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   260
iconStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   261
    IconStepOut isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   262
        IconStepOut := ((Image fromFile:'stepOut.xpm') rotated:90) flipHorizontal
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
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   266
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   267
iconStepUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   268
    IconStepUp isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   269
        IconStepUp := ((Image fromFile:'stepOver.xpm') rotated:90) flipHorizontal flipVertical
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
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   273
! !
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   274
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
   275
!UIPainter class methodsFor:'interface specs'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
   276
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   277
nameAndSelectorSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   278
    "this window spec was automatically generated by the ST/X UIPainter"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   279
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   280
    "do not manually edit this - the painter/builder may not be able to
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   281
     handle the specification if its corrupted."
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   282
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   283
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   284
     UIPainter new openOnClass:UIPainter andSelector:#nameAndSelectorSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   285
     UIPainter new openInterface:#nameAndSelectorSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   286
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   287
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   288
    <resource: #canvas>
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
     
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   292
       #(#FullSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   293
          #'window:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   294
           #(#WindowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   295
              #'name:' 'uIPainterView'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   296
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   297
              #'label:' 'Painter'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   298
              #'bounds:' #(#Rectangle 0 0 391 170)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   299
          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   300
          #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   301
           #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   302
              #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   303
               #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   304
                 #(#LabelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   305
                    #'name:' 'classLabel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   306
                    #'layout:' #(#AlignmentOrigin 45 0.11 51 0 1 0.5)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   307
                    #'label:' 'class:'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   308
                    #'adjust:' #right
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   309
                    #'resizeForLabel:' true
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:' 'superClassLabel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   313
                    #'layout:' #(#AlignmentOrigin 45 0.11 77 0 1 0.5)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   314
                    #'label:' 'superclass:'
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:' 'selectorLabel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   320
                    #'layout:' #(#AlignmentOrigin 45 0.11 105 0 1 0.5)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   321
                    #'label:' 'selector:'
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
                 #(#InputFieldSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   326
                    #'name:' 'methodNameField'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   327
                    #'layout:' #(#LayoutFrame 47 0.11 95 0 -5 1.0 117 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   328
                    #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   329
                    #'model:' #methodNameChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   330
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   331
                 #(#LabelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   332
                    #'name:' 'boxLabel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   333
                    #'layout:' #(#Point 5 10)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   334
                    #'label:' 'class & selector for code:'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   335
                    #'adjust:' #left
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   336
                    #'resizeForLabel:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   337
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   338
                 #(#InputFieldSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   339
                    #'name:' 'classNameField'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   340
                    #'layout:' #(#LayoutFrame 47 0.11 39 0 -5 1.0 61 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   341
                    #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   342
                    #'model:' #classNameChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   343
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   344
                 #(#ComboBoxSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   345
                    #'name:' 'comboBox1'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   346
                    #'layout:' #(#LayoutFrame 47 0.11 67 0 -5 1.0 89 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   347
                    #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   348
                    #'model:' #superclassNameChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   349
                    #'comboList:' #superclassNameDefaults
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   350
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   351
                 #(#HorizontalPanelViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   352
                    #'name:' 'commitPanel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   353
                    #'layout:' #(#LayoutFrame 0 0.0 -24 1.0 0 1.0 0 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   354
                    #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   355
                     #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   356
                        #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   357
                         #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   358
                           #(#ActionButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   359
                              #'name:' 'button1'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   360
                              #'label:' 'cancel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   361
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   362
                              #'model:' #cancel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   363
                              #'extent:' #(#Point 191 24)
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:' 'button2'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   367
                              #'label:' 'ok'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   368
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   369
                              #'isDefault:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   370
                              #'model:' #accept
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   371
                              #'extent:' #(#Point 191 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   372
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   373
                        )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   374
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   375
                    #'horizontalLayout:' #fitSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   376
                    #'verticalLayout:' #fit
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   377
                    #'horizontalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   378
                    #'verticalSpace:' 3
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
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   383
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   384
    "Modified: 24.6.1997 / 18:50:14 / cg"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   385
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   386
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   387
windowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   388
    "this window spec was automatically generated by the ST/X UIPainter"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   389
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   390
    "do not manually edit this - the painter/builder may not be able to
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   391
     handle the specification if its corrupted."
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
     UIPainter new openOnClass:UIPainter andSelector:#windowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   395
     UIPainter new openInterface:#windowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   396
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   397
    "UIPainter open"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   398
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   399
    <resource: #canvas>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   400
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   401
    ^
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   402
     
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   403
       #(#FullSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   404
          #'window:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   405
           #(#WindowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   406
              #'name:' 'uIPainterView'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   407
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   408
              #'label:' 'Tree-View'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   409
              #'bounds:' #(#Rectangle 0 0 561 450)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   410
          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   411
          #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   412
           #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   413
              #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   414
               #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   415
                 #(#MenuPanelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   416
                    #'name:' 'menuPullDown'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   417
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 25 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   418
                    #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   419
                    #'menu:' #menuPullDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   420
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   421
                 #(#NoteBookViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   422
                    #'name:' 'noteBook'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   423
                    #'layout:' #(#LayoutFrame 0 0.4 59 0.0 0 1.0 -55 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   424
                    #'enableChannel:' #enableChannel
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:' #tabList
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   427
                    #'style:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   428
                     #(#FontDescription
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   429
                        #helvetica #medium
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   430
                        #roman #'10'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   431
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   432
                    #'model:' #tabModel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   433
                    #'tabWidget:' #Window
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   434
                    #'canvas:' #noteBookView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   435
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   436
                 #(#HorizontalPanelViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   437
                    #'name:' 'modifyPanel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   438
                    #'layout:' #(#LayoutFrame 0 0.4 -55 1.0 0 1.0 -25 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   439
                    #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   440
                     #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   441
                        #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   442
                         #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   443
                           #(#ActionButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   444
                              #'name:' 'cancelButton'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   445
                              #'label:' 'cancel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   446
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   447
                              #'model:' #cancel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   448
                              #'enableChannel:' #modifiedChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   449
                              #'extent:' #(#Point 164 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   450
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   451
                           #(#ActionButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   452
                              #'name:' 'acceptButton'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   453
                              #'label:' 'ok'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   454
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   455
                              #'model:' #accept
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   456
                              #'enableChannel:' #modifiedChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   457
                              #'extent:' #(#Point 164 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   458
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   459
                        )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   460
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   461
                    #'level:' 0
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   462
                    #'horizontalLayout:' #fitSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   463
                    #'verticalLayout:' #fitSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   464
                    #'horizontalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   465
                    #'verticalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   466
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   467
                 #(#LabelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   468
                    #'name:' 'helpInfo'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   469
                    #'layout:' #(#LayoutFrame 2 0.0 -25 1.0 -2 1.0 -2 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   470
                    #'level:' -1
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   471
                    #'adjust:' #left
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   472
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   473
                 #(#ToggleSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   474
                    #'name:' 'galleryLabel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   475
                    #'layout:' #(#LayoutFrame -162 1.0 1 0 -82 1.0 23 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   476
                    #'label:' 'Gallery'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   477
                    #'model:' #galleryShown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   478
                    #'isTriggerOnDown:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   479
                    #'showLamp:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   480
                    #'lampColor:' #(#Color 100.0 100.0 0.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   481
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   482
                 #(#ToggleSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   483
                    #'name:' 'painterLabel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   484
                    #'layout:' #(#LayoutFrame -81 1.0 1 0 -1 1.0 23 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   485
                    #'label:' 'Painter'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   486
                    #'model:' #painterShown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   487
                    #'isTriggerOnDown:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   488
                    #'showLamp:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   489
                    #'lampColor:' #(#Color 100.0 100.0 0.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   490
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   491
                 #(#ArbitraryComponentSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   492
                    #'name:' 'treeView'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   493
                    #'layout:' #(#LayoutFrame 0 0.0 59 0 0 0.4 -25 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   494
                    #'menu:' #menuCanvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   495
                    #'hasHorizontalScrollBar:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   496
                    #'hasVerticalScrollBar:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   497
                    #'miniScrollerHorizontal:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   498
                    #'miniScrollerVertical:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   499
                    #'component:' #treeView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   500
                    #'hasBorder:' false
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   501
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   502
                 #(#HorizontalPanelViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   503
                    #'name:' 'menuContainer'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   504
                    #'layout:' #(#LayoutFrame 0 0.0 26 0 0 1.0 58 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   505
                    #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   506
                     #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   507
                        #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   508
                         #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   509
                           #(#MenuPanelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   510
                              #'name:' 'menuMove'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   511
                              #'menu:' #menuMove
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   512
                              #'showSeparatingLines:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   513
                              #'extent:' #(#Point 123 32)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   514
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   515
                           #(#MenuPanelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   516
                              #'name:' 'menuAlignment'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   517
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   518
                              #'menu:' #menuAlignment
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 233 32)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   521
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   522
                           #(#HorizontalPanelViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   523
                              #'name:' 'panelViewButtons'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   524
                              #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   525
                               #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   526
                                  #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   527
                                   #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   528
                                     #(#ArrowButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   529
                                        #'name:' 'moveLeft'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   530
                                        #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   531
                                        #'model:' #moveSelectionLeft
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   532
                                        #'isTriggerOnDown:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   533
                                        #'enableChannel:' #hasValidSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   534
                                        #'direction:' #left
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   535
                                        #'extent:' #(#Point 25 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   536
                                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   537
                                     #(#ArrowButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   538
                                        #'name:' 'moveRight'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   539
                                        #'model:' #moveSelectionRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   540
                                        #'isTriggerOnDown:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   541
                                        #'enableChannel:' #hasValidSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   542
                                        #'direction:' #right
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   543
                                        #'extent:' #(#Point 26 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   544
                                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   545
                                     #(#ArrowButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   546
                                        #'name:' 'moveDown'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   547
                                        #'model:' #moveSelectionDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   548
                                        #'isTriggerOnDown:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   549
                                        #'enableChannel:' #hasValidSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   550
                                        #'direction:' #down
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   551
                                        #'extent:' #(#Point 26 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   552
                                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   553
                                     #(#ArrowButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   554
                                        #'name:' 'moveUp'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   555
                                        #'model:' #moveSelectionUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   556
                                        #'isTriggerOnDown:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   557
                                        #'enableChannel:' #hasValidSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   558
                                        #'direction:' #up
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   559
                                        #'extent:' #(#Point 22 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   560
                                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   561
                                  )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   562
                              )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   563
                              #'level:' 1
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   564
                              #'horizontalLayout:' #spreadSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   565
                              #'verticalLayout:' #fitSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   566
                              #'horizontalSpace:' 4
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   567
                              #'verticalSpace:' 4
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   568
                              #'extent:' #(#Point 125 32)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   569
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   570
                        )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   571
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   572
                    #'horizontalLayout:' #spread
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   573
                    #'verticalLayout:' #fit
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   574
                    #'horizontalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   575
                    #'verticalSpace:' 3
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
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   580
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   581
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   582
!UIPainter class methodsFor:'menu specs'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   583
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   584
menuAlignment
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   585
    "this window spec was automatically generated by the ST/X MenuEditor"
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   586
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   587
    "do not manually edit this - the builder may not be able to
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   588
     handle the specification if its corrupted."
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   589
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   590
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   591
     MenuEditor new openOnClass:UIPainter andSelector:#menuAlignment
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   592
     (Menu new fromLiteralArrayEncoding:(UIPainter menuAlignment)) startUp
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   593
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   594
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   595
    <resource: #menu>
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
     
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   599
       #(#Menu
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
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   603
                #'label:' 'align left'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   604
                #'value:' #alignSelectionLeft
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   605
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   606
                #'activeHelpKey:' #alignSelectionLeft
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   607
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   608
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   609
                    nil #iconAlignL
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   610
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   611
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   612
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   613
                #'label:' 'align right'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   614
                #'value:' #alignSelectionRight
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   615
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   616
                #'activeHelpKey:' #alignSelectionRight
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   617
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   618
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   619
                    nil #iconAlignR
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   620
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   621
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   622
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   623
                #'label:' 'align left & right'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   624
                #'value:' #alignSelectionLeftAndRight
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   625
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   626
                #'activeHelpKey:' #alignSelectionLeftAndRight
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   627
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   628
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   629
                    nil #iconAlignLR
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   630
                )
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   631
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   632
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   633
                #'label:' 'align top'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   634
                #'value:' #alignSelectionTop
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   635
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   636
                #'activeHelpKey:' #alignSelectionTop
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   637
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   638
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   639
                    nil #iconAlignT
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   640
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   641
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   642
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   643
                #'label:' 'align bottom'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   644
                #'value:' #alignSelectionBottom
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   645
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   646
                #'activeHelpKey:' #alignSelectionBottom
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   647
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   648
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   649
                    nil #iconAlignB
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   650
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   651
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   652
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   653
                #'label:' 'align top & bottom'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   654
                #'value:' #alignSelectionTopAndBottom
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   655
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   656
                #'activeHelpKey:' #alignSelectionTopAndBottom
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   657
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   658
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   659
                    nil #iconAlignTB
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   660
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   661
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   662
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   663
                #'label:' 'align centered horizontal'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   664
                #'value:' #alignSelectionCenterHor
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   665
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   666
                #'activeHelpKey:' #alignSelectionCenterHor
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   667
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   668
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   669
                    nil #iconAlignCenterH
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   670
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   671
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   672
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   673
                #'label:' 'align centered vertical'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   674
                #'value:' #alignSelectionCenterVer
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   675
                #'enabled:' #hasValidSelection
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   676
                #'activeHelpKey:' #alignSelectionCenterVer
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   677
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   678
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   679
                    nil #iconAlignCenterV
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   680
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   681
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   682
          )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   683
          #( 3 3 )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   684
          nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   685
      )
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   686
!
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   687
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   688
menuCanvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   689
    "this window spec was automatically generated by the ST/X MenuEditor"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   690
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   691
    "do not manually edit this - the builder may not be able to
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   692
     handle the specification if its corrupted."
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   693
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   694
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   695
     MenuEditor new openOnClass:UIPainter andSelector:#menuCanvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   696
     (Menu new fromLiteralArrayEncoding:(UIPainter menuCanvas)) startUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   697
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   698
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   699
    <resource: #menu>
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
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   703
       #(#Menu
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
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   707
                #'label:' 'copy'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   708
                #'value:' #copySelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   709
                #'shortcutKeyCharacter:' #Copy
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   710
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   711
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   712
                #'label:' 'cut'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   713
                #'value:' #deleteSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   714
                #'shortcutKeyCharacter:' #Cut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   715
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   716
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   717
                #'label:' 'paste'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   718
                #'nameKey:' #paste
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   719
                #'value:' #paste
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   720
                #'submenu:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   721
                 #(#Menu
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   722
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   723
                     #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   724
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   725
                          #'label:' 'paste'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   726
                          #'value:' #pasteBuffer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   727
                          #'activeHelpKey:' #pasteBuffer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   728
                          #'shortcutKeyCharacter:' #Paste
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   729
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   730
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   731
                          #'label:' 'keep layout'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   732
                          #'value:' #pasteWithLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   733
                          #'activeHelpKey:' #pasteWithLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   734
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   735
                    ) nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   736
                    nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   737
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   738
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   739
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   740
                #'label:' '-'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   741
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   742
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   743
                #'label:' 'undo'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   744
                #'nameKey:' #undo
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   745
                #'value:' #undoLast
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   746
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   747
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   748
                #'label:' '-'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   749
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   750
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   751
                #'label:' 'dimension'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   752
                #'value:' #dimension
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   753
                #'submenu:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   754
                 #(#Menu
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   755
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:' 'default extent'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   759
                          #'value:' #setToDefaultExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   760
                          #'activeHelpKey:' #setToDefaultExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   761
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   762
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   763
                          #'label:' 'default width'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   764
                          #'value:' #setToDefaultWidth
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   765
                          #'activeHelpKey:' #setToDefaultWidth
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   766
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   767
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   768
                          #'label:' 'default height'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   769
                          #'value:' #setToDefaultHeight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   770
                          #'activeHelpKey:' #setToDefaultHeight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   771
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   772
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   773
                          #'label:' 'copy extent'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   774
                          #'value:' #copyExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   775
                          #'activeHelpKey:' #copyExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   776
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   777
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   778
                          #'label:' 'paste extent'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   779
                          #'value:' #pasteExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   780
                          #'activeHelpKey:' #pasteExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   781
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   782
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   783
                          #'label:' 'paste width'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   784
                          #'value:' #pasteWidth
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   785
                          #'activeHelpKey:' #pasteWidth
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   786
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   787
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   788
                          #'label:' 'paste height'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   789
                          #'value:' #pasteHeight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   790
                          #'activeHelpKey:' #pasteHeight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   791
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   792
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   793
                          #'label:' 'copy  layout'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   794
                          #'value:' #copyLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   795
                          #'activeHelpKey:' #copyLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   796
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   797
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   798
                          #'label:' 'paste layout'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   799
                          #'value:' #pasteLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   800
                          #'activeHelpKey:' #pasteLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   801
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   802
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   803
                    #(3 1 3)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   804
                    nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   805
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   806
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   807
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   808
                #'label:' 'align'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   809
                #'value:' #align
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   810
                #'submenu:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   811
                 #(#Menu
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 left'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   816
                          #'value:' #alignSelectionLeft
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   817
                          #'activeHelpKey:' #alignSelectionLeft
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   818
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   819
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   820
                              #UIPainter #iconAlignL
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   821
                              'align left'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   822
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   823
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   824
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   825
                          #'label:' 'align right'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   826
                          #'value:' #alignSelectionRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   827
                          #'activeHelpKey:' #alignSelectionRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   828
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   829
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   830
                              #UIPainter #iconAlignR
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   831
                              'align right'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   832
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   833
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   834
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   835
                          #'label:' 'align left & right'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   836
                          #'value:' #alignSelectionLeftAndRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   837
                          #'activeHelpKey:' #alignSelectionLeftAndRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   838
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   839
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   840
                              #UIPainter #iconAlignLR
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   841
                              'align left & right'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   842
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   843
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   844
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   845
                          #'label:' 'align top'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   846
                          #'value:' #alignSelectionTop
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   847
                          #'activeHelpKey:' #alignSelectionTop
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   848
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   849
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   850
                              #UIPainter #iconAlignT
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   851
                              'align top'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   852
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   853
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   854
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   855
                          #'label:' 'align bottom'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   856
                          #'value:' #alignSelectionBottom
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   857
                          #'activeHelpKey:' #alignSelectionBottom
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   858
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   859
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   860
                              #UIPainter #iconAlignB
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   861
                              'align bottom'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   862
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   863
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   864
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   865
                          #'label:' 'align top & bottom'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   866
                          #'value:' #alignSelectionTopAndBottom
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   867
                          #'activeHelpKey:' #alignSelectionTopAndBottom
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   868
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   869
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   870
                              #UIPainter #iconAlignTB
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   871
                              'align top & bottom'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   872
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   873
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   874
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   875
                          #'label:' 'align centered horizontal'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   876
                          #'value:' #alignSelectionCenterHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   877
                          #'activeHelpKey:' #alignSelectionCenterHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   878
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   879
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   880
                              #UIPainter #iconAlignCenterH
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   881
                              'align centered horizontal'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   882
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   883
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   884
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   885
                          #'label:' 'align centered vertical'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   886
                          #'value:' #alignSelectionCenterVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   887
                          #'activeHelpKey:' #alignSelectionCenterVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   888
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   889
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   890
                              #UIPainter #iconAlignCenterV
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   891
                              'align centered vertical'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   892
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   893
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   894
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   895
                          #'label:' 'spread horizontal'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   896
                          #'value:' #spreadSelectionHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   897
                          #'activeHelpKey:' #spreadSelectionHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   898
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   899
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   900
                          #'label:' 'spread vertical'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   901
                          #'value:' #spreadSelectionVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   902
                          #'activeHelpKey:' #spreadSelectionVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   903
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   904
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   905
                          #'label:' 'center horizontal in frame'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   906
                          #'value:' #centerSelectionHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   907
                          #'activeHelpKey:' #centerSelectionHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   908
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   909
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   910
                          #'label:' 'center vertical in frame'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   911
                          #'value:' #centerSelectionVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   912
                          #'activeHelpKey:' #centerSelectionVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   913
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   914
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   915
                    #(8 2)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   916
                    nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   917
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   918
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   919
          ) nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   920
          nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   921
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   922
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   923
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
menuMove
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   927
    "this window spec was automatically generated by the ST/X MenuEditor"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   928
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   929
    "do not manually edit this - the builder may not be able to
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   930
     handle the specification if its corrupted."
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
     MenuEditor new openOnClass:UIPainter andSelector:#menuMove
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   934
     (Menu new fromLiteralArrayEncoding:(UIPainter menuMove)) startUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   935
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   936
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   937
    <resource: #menu>
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
     
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   941
       #(#Menu
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
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   945
                #'label:' 'stepUp'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   946
                #'value:' #doStepUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   947
                #'enabled:' #hasSingleSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   948
                #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   949
                 #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   950
                    #UIPainter #iconStepUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   951
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   952
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   953
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   954
                #'label:' 'stepDown'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   955
                #'value:' #doStepDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   956
                #'enabled:' #hasSingleSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   957
                #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   958
                 #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   959
                    #UIPainter #iconStepDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   960
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   961
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   962
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   963
                #'label:' ''
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   964
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   965
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   966
                #'label:' 'stepIn'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   967
                #'value:' #doStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   968
                #'enabled:' #canStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   969
                #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   970
                 #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   971
                    #UIPainter #iconStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   972
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   973
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   974
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   975
                #'label:' 'stepOut'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   976
                #'value:' #doStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   977
                #'enabled:' #canStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   978
                #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   979
                 #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   980
                    #UIPainter #iconStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   981
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   982
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   983
          ) nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   984
          nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   985
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   986
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   987
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   988
menuPullDown
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   989
    "this window spec was automatically generated by the ST/X MenuEditor"
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   990
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   991
    "do not manually edit this - the builder may not be able to
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   992
     handle the specification if its corrupted."
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   993
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   994
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   995
     MenuEditor new openOnClass:UIPainter andSelector:#menuPullDown
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   996
     (Menu new fromLiteralArrayEncoding:(UIPainter menuPullDown)) startUp
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   997
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   998
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   999
    <resource: #menu>
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1000
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1001
    ^
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1002
     
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1003
       #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1004
          
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1005
           #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1006
             #(#MenuItem
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1007
                #'label:' 'file'
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1008
                #'value:' #file
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1009
                #'enabled:' #enableChannel
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1010
                #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1011
                 #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1012
                    
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1013
                     #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1014
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1015
                          #'label:' 'new'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1016
                          #'value:' #doNew
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1017
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1018
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1019
                          #'label:' 'from class ...'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1020
                          #'value:' #doFromClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1021
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1022
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1023
                          #'label:' 'pick a view '
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1024
                          #'value:' #doPickAView
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1025
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1026
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1027
                          #'label:' '-'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1028
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1029
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1030
                          #'label:' 'quit'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1031
                          #'value:' #closeRequest
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1032
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1033
                    ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1034
                    nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1035
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1036
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1037
             #(#MenuItem
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1038
                #'label:' 'misc'
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1039
                #'value:' #misc
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1040
                #'enabled:' #enableChannel
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1041
                #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1042
                 #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1043
                    
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1044
                     #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1045
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1046
                          #'label:' 'grid'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1047
                          #'value:' #grid
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1048
                          #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1049
                           #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1050
                              
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1051
                               #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1052
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1053
                                    #'label:' 'show'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1054
                                    #'indication:' #'gridShown:'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1055
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1056
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1057
                                    #'label:' 'align'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1058
                                    #'indication:' #'gridAlign:'
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1059
                                )
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1060
                              ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1061
                              nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1062
                          )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1063
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1064
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1065
                          #'label:' 'undo'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1066
                          #'value:' #undo
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1067
                          #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1068
                           #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1069
                              
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1070
                               #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1071
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1072
                                    #'label:' 'last'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1073
                                    #'value:' #undoLast
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1074
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1075
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1076
                                    #'label:' 'menu'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1077
                                    #'value:' #openUndoMenu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1078
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1079
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1080
                                    #'label:' '-'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1081
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1082
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1083
                                    #'label:' 'delete'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1084
                                    #'value:' #removeUndoHistory
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1085
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1086
                              ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1087
                              nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1088
                          )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1089
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1090
                    ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1091
                    nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1092
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1093
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1094
             #(#MenuItem
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1095
                #'label:' 'code'
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1096
                #'value:' #code
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1097
                #'enabled:' #enableChannel
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1098
                #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1099
                 #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1100
                    
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1101
                     #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1102
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1103
                          #'label:' 'class && method ...'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1104
                          #'value:' #defineClassAndSelector
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1105
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1106
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1107
                          #'label:' '='
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1108
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1109
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1110
                          #'label:' 'install window spec.'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1111
                          #'value:' #doInstallSpec
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1112
                          #'enabled:' #hasSpecClassAndSelector
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 help spec.'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1116
                          #'value:' #doInstallHelp
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1117
                          #'enabled:' #hasSpecClass
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:' '-'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1121
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1122
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1123
                          #'label:' 'install aspects'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1124
                          #'value:' #doInstallAspects
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1125
                          #'enabled:' #hasSpecClass
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:' '='
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1129
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1130
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1131
                          #'label:' 'show window spec.'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1132
                          #'value:' #doWindowSpec
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1133
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1134
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1135
                          #'label:' '='
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1136
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1137
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1138
                          #'label:' 'browse application'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1139
                          #'value:' #doBrowseAppClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1140
                          #'enabled:' #hasSpecClass
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:' 'start  application'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1144
                          #'value:' #doStartApplication
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
                    ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1148
                    nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1149
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1150
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1151
             #(#MenuItem
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1152
                #'label:' 'test'
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1153
                #'nameKey:' #test
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1154
                #'value:' #test
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1155
                #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1156
                 #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1157
                    
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1158
                     #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1159
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1160
                          #'label:' 'test mode'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1161
                          #'indication:' #'testMode:'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1162
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1163
                    ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1164
                    nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1165
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1166
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1167
          ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1168
          nil
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1169
      )
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1170
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1171
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1172
!UIPainter methodsFor:'accessing menu'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1173
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1174
menuCanvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1175
    ^ [ treeView canvas showMiddleButtonMenu ]
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1176
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1177
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1178
menuMove
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1179
    "this window spec was automatically generated by the ST/X MenuEditor"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1180
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1181
    ^ self class menuMove
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1182
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1183
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1184
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1185
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1186
menuPullDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1187
    "this window spec was automatically generated by the ST/X MenuEditor"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1188
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1189
    ^ self class menuPullDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1190
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1191
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1192
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1193
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1194
!UIPainter methodsFor:'actions'!
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1195
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1196
accept
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1197
    |layout|
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1198
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1199
    self isLayoutToolSelected ifTrue:[
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1200
        (layout := layoutTool layout) notNil ifTrue:[
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1201
            layoutTool layoutType == #Extent ifTrue:[
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1202
                self painter setExtent:layout
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1203
            ] ifFalse:[
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1204
                self painter setLayout:layout
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1205
            ]
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1206
        ]
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1207
    ] ifFalse:[
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1208
        self isHelpToolSelected ifTrue:[
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1209
            activeHelpTool accept
e652608690b1 help ...
ca
parents: 144
diff changeset
  1210
        ].
171
7a99c53780ef help and close/raise of gallery/painter
ca
parents: 168
diff changeset
  1211
        self painter updateFromSpec:(specTool specification).
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1212
    ].
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1213
    self modifiedChannel value:false.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1214
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1215
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1216
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1217
cancel
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1218
    "cancel all changes and read back attributes from current view
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1219
    "
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1220
    self modifiedChannel value ifTrue:[
171
7a99c53780ef help and close/raise of gallery/painter
ca
parents: 168
diff changeset
  1221
        specTool specification:(self painter specForSelection).
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1222
        layoutTool layoutView:(layoutTool layoutView).
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1223
        self modifiedChannel value:false.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1224
    ]
137
ca
parents: 136
diff changeset
  1225
!
ca
parents: 136
diff changeset
  1226
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1227
openEditMenu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1228
    |cls aspect editor|
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1229
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1230
    specClass isNil ifTrue:[
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1231
        ^ self information:'no class yet'.
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1232
    ].
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1233
    (cls := specClass) isBehavior ifFalse:[
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1234
        cls := Smalltalk at:specClass asSymbol.
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1235
        cls isNil ifTrue:[
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1236
            ^ self information:'no class yet'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1237
        ]
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1238
    ].
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1239
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1240
    cls notNil ifTrue:[
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1241
        (aspect := specTool specification menu) notNil ifTrue:[
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1242
            aspect := aspect asSymbol
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1243
        ].
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1244
        editor := MenuEditor new.
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1245
        editor masterApplication:self.
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1246
        editor activeHelpTool:(self activeHelpTool).
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1247
        editor openModalOnClass:cls andSelector:aspect
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1248
    ]
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1249
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1250
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1251
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1252
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1253
!UIPainter methodsFor:'active help'!
e652608690b1 help ...
ca
parents: 144
diff changeset
  1254
197
646d24a7ad36 generate help specs moved to UIHelpTool
ca
parents: 195
diff changeset
  1255
activeHelpTool
646d24a7ad36 generate help specs moved to UIHelpTool
ca
parents: 195
diff changeset
  1256
    "setup help tool
171
7a99c53780ef help and close/raise of gallery/painter
ca
parents: 168
diff changeset
  1257
    "
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1258
    activeHelpTool isNil ifTrue:[
152
ca
parents: 149
diff changeset
  1259
        activeHelpTool := UIHelpTool new.
197
646d24a7ad36 generate help specs moved to UIHelpTool
ca
parents: 195
diff changeset
  1260
        activeHelpTool helpSpecFrom:specClass.
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1261
        activeHelpTool masterApplication:self.
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1262
    ].
e652608690b1 help ...
ca
parents: 144
diff changeset
  1263
    ^ activeHelpTool
e652608690b1 help ...
ca
parents: 144
diff changeset
  1264
!
e652608690b1 help ...
ca
parents: 144
diff changeset
  1265
e652608690b1 help ...
ca
parents: 144
diff changeset
  1266
showHelp:aHelpText for:view
e652608690b1 help ...
ca
parents: 144
diff changeset
  1267
    "hook to allow an application to display active help
e652608690b1 help ...
ca
parents: 144
diff changeset
  1268
     texts in its own info area.
e652608690b1 help ...
ca
parents: 144
diff changeset
  1269
     This method may be redefined in a concrete application.
e652608690b1 help ...
ca
parents: 144
diff changeset
  1270
     If it returns false, the ActiveHelp manager will popup a
e652608690b1 help ...
ca
parents: 144
diff changeset
  1271
     bubble with the help text."
e652608690b1 help ...
ca
parents: 144
diff changeset
  1272
e652608690b1 help ...
ca
parents: 144
diff changeset
  1273
    |l|
e652608690b1 help ...
ca
parents: 144
diff changeset
  1274
e652608690b1 help ...
ca
parents: 144
diff changeset
  1275
    (l := self builder componentAt:#helpInfo) notNil ifTrue:[
152
ca
parents: 149
diff changeset
  1276
        aHelpText replaceAll:(Character cr) by:(Character space).
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1277
        l label:aHelpText.
152
ca
parents: 149
diff changeset
  1278
      ^ true.
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1279
    ].
e652608690b1 help ...
ca
parents: 144
diff changeset
  1280
    ^ false
e652608690b1 help ...
ca
parents: 144
diff changeset
  1281
e652608690b1 help ...
ca
parents: 144
diff changeset
  1282
e652608690b1 help ...
ca
parents: 144
diff changeset
  1283
! !
e652608690b1 help ...
ca
parents: 144
diff changeset
  1284
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1285
!UIPainter methodsFor:'aspects'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1286
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1287
canStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1288
    |holder|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1289
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1290
    (holder := builder bindingAt:#canStepIn) isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1291
        builder aspectAt:#canStepIn put:(holder :=  false asValue).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1292
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1293
    ^ holder
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1294
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1295
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1296
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1297
canStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1298
    |holder|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1299
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1300
    (holder := builder bindingAt:#canStepOut) isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1301
        builder aspectAt:#canStepOut put:(holder :=  false asValue).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1302
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1303
    ^ holder
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1304
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1305
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1306
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1307
enableChannel
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1308
    "true if modifications are allowed otherwise running test
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1309
    "
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1310
  ^ self painter enableChannel
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1311
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1312
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1313
galleryShown
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1314
    |holder|
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1315
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1316
    (holder := builder bindingAt:#galleryShown) isNil ifTrue:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1317
        builder aspectAt:#galleryShown put:(holder :=  true asValue).
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1318
        holder addDependent:self
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1319
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1320
    ^ holder
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1321
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1322
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1323
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1324
hasSingleSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1325
    |holder|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1326
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1327
    (holder := builder bindingAt:#hasSingleSelection) isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1328
        builder aspectAt:#hasSingleSelection put:(holder :=  false asValue).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1329
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1330
    ^ holder
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1331
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1332
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1333
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1334
hasValidSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1335
    |holder|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1336
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1337
    (holder := builder bindingAt:#hasValidSelection) isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1338
        builder aspectAt:#hasValidSelection put:(holder :=  false asValue).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1339
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1340
    ^ holder
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1341
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1342
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1343
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1344
modifiedChannel
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1345
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1346
    |holder|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1347
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1348
    (holder := builder bindingAt:#modifiedChannel) isNil ifTrue:[
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1349
        builder aspectAt:#modifiedChannel put:(holder :=  false asValue).
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1350
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1351
    ^ holder
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1352
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1353
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1354
noteBookView
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1355
    "automatically generated by UIPainter ..."
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1356
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1357
    |noteBook channel n1 n2|
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1358
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1359
    (noteBook := builder bindingAt:#noteBookView) isNil ifTrue:[
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1360
        noteBook   := View new.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1361
        layoutTool := UILayoutTool new.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1362
        specTool   := UISpecificationTool new.
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1363
        channel    := self modifiedChannel.
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1364
152
ca
parents: 149
diff changeset
  1365
        layoutTool masterApplication:self.
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1366
        specTool   masterApplication:self.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1367
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1368
        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
  1369
        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
  1370
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1371
        n1 client:layoutTool.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1372
        specTool builder:(n2 client:specTool).
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1373
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1374
        layoutTool masterApplication:self.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1375
        specTool   masterApplication:self.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1376
        layoutTool modifiedHolder:channel.
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1377
        specTool   modifiedHolder:channel.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1378
        builder aspectAt:#noteBookView put:noteBook.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1379
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1380
    ^ noteBook
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1381
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1382
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1383
objectList
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1384
    ^ nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1385
"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1386
    |holder|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1387
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1388
    (holder := builder bindingAt:#objectList) isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1389
        builder aspectAt:#objectList put:(holder := SelectionInList).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1390
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1391
    ^ holder
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1392
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1393
"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1394
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1395
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1396
objectListMenu
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1397
    "returns a block which returns the menu
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1398
     !!hack!!
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1399
    "
121
96d6feeeb049 middleButtonMen:
ca
parents: 118
diff changeset
  1400
    ^ [ self painter showMiddleButtonMenu ].
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1401
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1402
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1403
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1404
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1405
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1406
painterShown
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1407
    |holder|
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1408
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1409
    (holder := builder bindingAt:#painterShown) isNil ifTrue:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1410
        builder aspectAt:#painterShown put:(holder :=  true asValue).
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1411
        holder addDependent:self
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1412
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1413
    ^ holder
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1414
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1415
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1416
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1417
tabList
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1418
    "automatically generated by UIPainter ..."
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1419
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1420
    |holder|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1421
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1422
    (holder := builder bindingAt:#tabList) isNil ifTrue:[
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1423
        builder aspectAt:#tabList put:(holder :=  ValueHolder new).
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1424
        holder value:#( 'Properties' ).
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1425
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1426
    ^ holder
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1427
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1428
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1429
tabModel
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1430
    "automatically generated by UIPainter ..."
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1431
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1432
    |holder|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1433
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1434
    (holder := builder bindingAt:#tabModel) isNil ifTrue:[
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1435
        holder := AspectAdaptor new subject:self; forAspect:#tabSelection.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1436
        builder aspectAt:#tabModel put:holder.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1437
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1438
    ^ holder
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1439
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1440
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1441
treeView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1442
    ^ treeView
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1443
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1444
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1445
!UIPainter methodsFor:'binding access'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1446
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1447
aspectFor:aKey
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1448
    "aspect for a key
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1449
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1450
  ^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1451
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1452
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1453
!UIPainter methodsFor:'change & update'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1454
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1455
layoutChanged
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1456
    self modifiedChannel value ifFalse:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1457
        layoutTool update.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1458
        self modifiedChannel value:false
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1459
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1460
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1461
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1462
treeViewChanged
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1463
    "property or selection in the treeView changed
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1464
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1465
    |oldSelection view slices list spec props size nameOfSpec|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1466
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1467
    props := treeView propertySelected.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1468
    oldSelection := tabSelection.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1469
    tabSelection := nil.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1470
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1471
    self hasValidSelection value:(treeView hasValidSelection).
dd2688307d90 added treeView; change specs