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