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