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