UIPainter.st
author Claus Gittinger <cg@exept.de>
Thu, 23 Oct 1997 16:42:54 +0200
changeset 347 84460ca6aa7f
parent 345 c4d8f4c74c26
child 348 26656736930c
permissions -rw-r--r--
*** empty log message ***
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
347
84460ca6aa7f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
    14
'From Smalltalk/X, Version:3.2.1 on 23-oct-1997 at 6:02:55 pm'                  !
344
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
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
   320
iconInstall
347
84460ca6aa7f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
   321
    ^ Image fromFile:'bitmaps/xpmBitmaps/misc_tools/SaveButton.xpm'
84460ca6aa7f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
   322
84460ca6aa7f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 345
diff changeset
   323
    "Modified: 23.10.1997 / 06:00:28 / cg"
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
   324
!
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
   325
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   326
iconStepDown
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   327
    "returns image assigned to step down (change hierarchy).
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   328
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   329
    IconStepDown isNil ifTrue:[
230
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   330
        IconStepDown := ((Image fromFile:'stepOver.xpm') rotated:90) flipHorizontal
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   331
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   332
  ^ IconStepDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   333
230
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   334
"
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   335
IconStepDown := nil
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   336
"
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   337
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   338
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   339
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   340
iconStepIn
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   341
    "returns image assigned to step in (change hierarchy).
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   342
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   343
    IconStepIn isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   344
        IconStepIn := ((Image fromFile:'stepIn.xpm') rotated:90) flipHorizontal
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   345
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   346
  ^ IconStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   347
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   348
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   349
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   350
iconStepOut
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   351
    "returns image assigned to step out (change hierarchy).
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   352
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   353
    IconStepOut isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   354
        IconStepOut := ((Image fromFile:'stepOut.xpm') rotated:90) flipHorizontal
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   355
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   356
  ^ IconStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   357
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   358
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   359
iconStepUp
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   360
    "returns image assigned to step up (change hierarchy).
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   361
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   362
    IconStepUp isNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   363
        IconStepUp := ((Image fromFile:'stepOver.xpm') rotated:90) flipHorizontal flipVertical
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   364
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   365
  ^ IconStepUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   366
230
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   367
"
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   368
IconStepUp := nil
60663807d4fd icons stepDown & up
ca
parents: 229
diff changeset
   369
"
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   370
! !
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   371
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
   372
!UIPainter class methodsFor:'interface specs'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
   373
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   374
nameAndSelectorSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   375
    "this window spec was automatically generated by the ST/X UIPainter"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   376
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   377
    "do not manually edit this - the painter/builder may not be able to
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   378
     handle the specification if its corrupted."
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   379
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   380
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   381
     UIPainter new openOnClass:UIPainter andSelector:#nameAndSelectorSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   382
     UIPainter new openInterface:#nameAndSelectorSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   383
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   384
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   385
    <resource: #canvas>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   386
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   387
    ^
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   388
     
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   389
       #(#FullSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   390
          #'window:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   391
           #(#WindowSpec
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   392
              #'name:' 'NameAndSelectorSpec'
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   393
              #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   394
              #'label:' 'Painter'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   395
              #'bounds:' #(#Rectangle 0 0 391 170)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   396
          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   397
          #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   398
           #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   399
              #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   400
               #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   401
                 #(#LabelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   402
                    #'name:' 'classLabel'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   403
                    #'layout:' #(#AlignmentOrigin 50 0.11 51 0 1 0.5)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   404
                    #'label:' 'class:'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   405
                    #'adjust:' #right
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   406
                    #'resizeForLabel:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   407
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   408
                 #(#LabelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   409
                    #'name:' 'superClassLabel'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   410
                    #'layout:' #(#AlignmentOrigin 50 0.11 77 0 1 0.5)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   411
                    #'label:' 'superclass:'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   412
                    #'adjust:' #right
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   413
                    #'resizeForLabel:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   414
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   415
                 #(#LabelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   416
                    #'name:' 'selectorLabel'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   417
                    #'layout:' #(#AlignmentOrigin 50 0.11 105 0 1 0.5)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   418
                    #'label:' 'selector:'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   419
                    #'adjust:' #right
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   420
                    #'resizeForLabel:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   421
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   422
                 #(#InputFieldSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   423
                    #'name:' 'methodNameField'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   424
                    #'layout:' #(#LayoutFrame 51 0.11 95 0 -2 1.0 117 0)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   425
                    #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   426
                    #'model:' #methodNameChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   427
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   428
                 #(#LabelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   429
                    #'name:' 'boxLabel'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   430
                    #'layout:' #(#Point 2 10)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   431
                    #'label:' 'class & selector for code:'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   432
                    #'adjust:' #left
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   433
                    #'resizeForLabel:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   434
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   435
                 #(#InputFieldSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   436
                    #'name:' 'classNameField'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   437
                    #'layout:' #(#LayoutFrame 51 0.11 39 0 -2 1.0 61 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:' #classNameChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   440
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   441
                 #(#ComboBoxSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   442
                    #'name:' 'comboBox1'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   443
                    #'layout:' #(#LayoutFrame 51 0.11 67 0 0 1.0 89 0)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   444
                    #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   445
                    #'model:' #superclassNameChannel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   446
                    #'comboList:' #superclassNameDefaults
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   447
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   448
                 #(#HorizontalPanelViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   449
                    #'name:' 'commitPanel'
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   450
                    #'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
   451
                    #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   452
                     #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   453
                        #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   454
                         #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   455
                           #(#ActionButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   456
                              #'name:' 'button1'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   457
                              #'label:' 'cancel'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   458
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   459
                              #'model:' #cancel
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   460
                              #'extent:' #(#Point 190 24)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   461
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   462
                           #(#ActionButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   463
                              #'name:' 'button2'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   464
                              #'label:' 'ok'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   465
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   466
                              #'isDefault:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   467
                              #'model:' #accept
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   468
                              #'extent:' #(#Point 190 22)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   469
                          )
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
                    #'horizontalLayout:' #fitSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   473
                    #'verticalLayout:' #fit
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   474
                    #'horizontalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   475
                    #'verticalSpace:' 3
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
          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   479
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   480
265
28478a237d91 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 256
diff changeset
   481
    "Modified: 28.7.1997 / 16:49:49 / cg"
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   482
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   483
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   484
windowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   485
    "this window spec was automatically generated by the ST/X UIPainter"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   486
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   487
    "do not manually edit this - the painter/builder may not be able to
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   488
     handle the specification if its corrupted."
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   489
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   490
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   491
     UIPainter new openOnClass:UIPainter andSelector:#windowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   492
     UIPainter new openInterface:#windowSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   493
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   494
    "UIPainter open"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   495
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   496
    <resource: #canvas>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   497
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   498
    ^
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   499
     
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   500
       #(#FullSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   501
          #'window:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   502
           #(#WindowSpec
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   503
              #'name:' 'Tree-View'
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
   504
              #'layout:' #(#LayoutFrame 216 0 173 0 729 0 633 0)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   505
              #'label:' 'Tree-View'
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   506
              #'min:' #(#Point 10 10)
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   507
              #'max:' #(#Point 1160 870)
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
   508
              #'bounds:' #(#Rectangle 216 173 730 634)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   509
          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   510
          #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   511
           #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   512
              #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   513
               #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   514
                 #(#MenuPanelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   515
                    #'name:' 'menuPullDown'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   516
                    #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 25 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   517
                    #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   518
                    #'menu:' #menuPullDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   519
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   520
                 #(#HorizontalPanelViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   521
                    #'name:' 'menuContainer'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   522
                    #'layout:' #(#LayoutFrame 0 0.0 26 0 0 1.0 58 0)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   523
                    #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   524
                     #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   525
                        #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   526
                         #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   527
                           #(#MenuPanelSpec
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   528
                              #'name:' 'menuChangeHierarchy'
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   529
                              #'activeHelpKey:' #menuChangeHierarchy
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   530
                              #'enableChannel:' #hasOneSelectionOtherThanCanvas
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   531
                              #'menu:' #menuChangeHierarchy
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   532
                              #'showSeparatingLines:' true
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
   533
                              #'extent:' #(#Point 103 32)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   534
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   535
                           #(#MenuPanelSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   536
                              #'name:' 'menuAlignment'
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   537
                              #'activeHelpKey:' #menuAlignment
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   538
                              #'enableChannel:' #canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   539
                              #'tabable:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   540
                              #'menu:' #menuAlignment
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   541
                              #'showSeparatingLines:' true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   542
                              #'extent:' #(#Point 233 32)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   543
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   544
                           #(#HorizontalPanelViewSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   545
                              #'name:' 'panelViewButtons'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   546
                              #'component:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   547
                               #(#SpecCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   548
                                  #'collection:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   549
                                   #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   550
                                     #(#ArrowButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   551
                                        #'name:' 'moveLeft'
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   552
                                        #'activeHelpKey:' #moveSelectionLeft
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
                                        #'model:' #moveSelectionLeft
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   555
                                        #'isTriggerOnDown:' true
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   556
                                        #'enableChannel:' #canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   557
                                        #'direction:' #left
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   558
                                        #'extent:' #(#Point 22 24)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   559
                                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   560
                                     #(#ArrowButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   561
                                        #'name:' 'moveRight'
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   562
                                        #'activeHelpKey:' #moveSelectionRight
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   563
                                        #'model:' #moveSelectionRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   564
                                        #'isTriggerOnDown:' true
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   565
                                        #'enableChannel:' #canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   566
                                        #'direction:' #right
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   567
                                        #'extent:' #(#Point 22 24)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   568
                                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   569
                                     #(#ArrowButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   570
                                        #'name:' 'moveDown'
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   571
                                        #'activeHelpKey:' #moveSelectionDown
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   572
                                        #'model:' #moveSelectionDown
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   573
                                        #'isTriggerOnDown:' true
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   574
                                        #'enableChannel:' #canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   575
                                        #'direction:' #down
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   576
                                        #'extent:' #(#Point 22 24)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   577
                                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   578
                                     #(#ArrowButtonSpec
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   579
                                        #'name:' 'moveUp'
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   580
                                        #'activeHelpKey:' #moveSelectionUp
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   581
                                        #'model:' #moveSelectionUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   582
                                        #'isTriggerOnDown:' true
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   583
                                        #'enableChannel:' #canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   584
                                        #'direction:' #up
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   585
                                        #'extent:' #(#Point 22 24)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   586
                                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   587
                                  )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   588
                              )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   589
                              #'level:' 1
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   590
                              #'horizontalLayout:' #spreadSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   591
                              #'verticalLayout:' #fitSpace
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   592
                              #'horizontalSpace:' 4
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   593
                              #'verticalSpace:' 4
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   594
                              #'extent:' #(#Point 125 32)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   595
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   596
                        )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   597
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   598
                    #'horizontalLayout:' #spread
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   599
                    #'verticalLayout:' #fit
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   600
                    #'horizontalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   601
                    #'verticalSpace:' 3
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   602
                )
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   603
                 #(#VariableVerticalPanelSpec
14db1276218c change the spec;
ca
parents: 295
diff changeset
   604
                    #'name:' 'vpanel'
14db1276218c change the spec;
ca
parents: 295
diff changeset
   605
                    #'layout:' #(#LayoutFrame 0 0.0 59 0.0 0 1.0 0 1.0)
14db1276218c change the spec;
ca
parents: 295
diff changeset
   606
                    #'component:' 
14db1276218c change the spec;
ca
parents: 295
diff changeset
   607
                     #(#SpecCollection
14db1276218c change the spec;
ca
parents: 295
diff changeset
   608
                        #'collection:' 
14db1276218c change the spec;
ca
parents: 295
diff changeset
   609
                         #(
14db1276218c change the spec;
ca
parents: 295
diff changeset
   610
                           #(#VariableHorizontalPanelSpec
14db1276218c change the spec;
ca
parents: 295
diff changeset
   611
                              #'name:' 'hpanel'
14db1276218c change the spec;
ca
parents: 295
diff changeset
   612
                              #'component:' 
14db1276218c change the spec;
ca
parents: 295
diff changeset
   613
                               #(#SpecCollection
14db1276218c change the spec;
ca
parents: 295
diff changeset
   614
                                  #'collection:' 
14db1276218c change the spec;
ca
parents: 295
diff changeset
   615
                                   #(
14db1276218c change the spec;
ca
parents: 295
diff changeset
   616
                                     #(#ArbitraryComponentSpec
14db1276218c change the spec;
ca
parents: 295
diff changeset
   617
                                        #'name:' 'treeView'
14db1276218c change the spec;
ca
parents: 295
diff changeset
   618
                                        #'menu:' #menuCanvas
14db1276218c change the spec;
ca
parents: 295
diff changeset
   619
                                        #'hasHorizontalScrollBar:' true
14db1276218c change the spec;
ca
parents: 295
diff changeset
   620
                                        #'hasVerticalScrollBar:' true
14db1276218c change the spec;
ca
parents: 295
diff changeset
   621
                                        #'miniScrollerHorizontal:' true
14db1276218c change the spec;
ca
parents: 295
diff changeset
   622
                                        #'miniScrollerVertical:' true
14db1276218c change the spec;
ca
parents: 295
diff changeset
   623
                                        #'component:' #treeView
14db1276218c change the spec;
ca
parents: 295
diff changeset
   624
                                        #'hasBorder:' false
14db1276218c change the spec;
ca
parents: 295
diff changeset
   625
                                    )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   626
                                     #(#ViewSpec
14db1276218c change the spec;
ca
parents: 295
diff changeset
   627
                                        #'name:' 'specHolderView'
14db1276218c change the spec;
ca
parents: 295
diff changeset
   628
                                        #'component:' 
14db1276218c change the spec;
ca
parents: 295
diff changeset
   629
                                         #(#SpecCollection
14db1276218c change the spec;
ca
parents: 295
diff changeset
   630
                                            #'collection:' 
14db1276218c change the spec;
ca
parents: 295
diff changeset
   631
                                             #(
14db1276218c change the spec;
ca
parents: 295
diff changeset
   632
                                               #(#NoteBookViewSpec
14db1276218c change the spec;
ca
parents: 295
diff changeset
   633
                                                  #'name:' 'noteBook'
14db1276218c change the spec;
ca
parents: 295
diff changeset
   634
                                                  #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -30 1.0)
14db1276218c change the spec;
ca
parents: 295
diff changeset
   635
                                                  #'enableChannel:' #enableChannel
14db1276218c change the spec;
ca
parents: 295
diff changeset
   636
                                                  #'tabable:' true
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
   637
                                                  #'model:' #tabModel
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   638
                                                  #'menu:' #tabList
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
   639
                                                  #'style:' #(#FontDescription #helvetica #medium #roman 10)
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   640
                                                  #'canvas:' #noteBookView
14db1276218c change the spec;
ca
parents: 295
diff changeset
   641
                                              )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   642
                                               #(#HorizontalPanelViewSpec
14db1276218c change the spec;
ca
parents: 295
diff changeset
   643
                                                  #'name:' 'modifyPanel'
14db1276218c change the spec;
ca
parents: 295
diff changeset
   644
                                                  #'layout:' #(#LayoutFrame 0 0.0 -30 1.0 0 1.0 0 1.0)
14db1276218c change the spec;
ca
parents: 295
diff changeset
   645
                                                  #'component:' 
14db1276218c change the spec;
ca
parents: 295
diff changeset
   646
                                                   #(#SpecCollection
14db1276218c change the spec;
ca
parents: 295
diff changeset
   647
                                                      #'collection:' 
14db1276218c change the spec;
ca
parents: 295
diff changeset
   648
                                                       #(
14db1276218c change the spec;
ca
parents: 295
diff changeset
   649
                                                         #(#ActionButtonSpec
14db1276218c change the spec;
ca
parents: 295
diff changeset
   650
                                                            #'name:' 'cancelButton'
14db1276218c change the spec;
ca
parents: 295
diff changeset
   651
                                                            #'activeHelpKey:' #cancel
14db1276218c change the spec;
ca
parents: 295
diff changeset
   652
                                                            #'label:' 'cancel'
14db1276218c change the spec;
ca
parents: 295
diff changeset
   653
                                                            #'tabable:' true
14db1276218c change the spec;
ca
parents: 295
diff changeset
   654
                                                            #'model:' #cancel
14db1276218c change the spec;
ca
parents: 295
diff changeset
   655
                                                            #'enableChannel:' #modifiedChannel
14db1276218c change the spec;
ca
parents: 295
diff changeset
   656
                                                            #'extent:' #(#Point 165 24)
14db1276218c change the spec;
ca
parents: 295
diff changeset
   657
                                                        )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   658
                                                         #(#ActionButtonSpec
14db1276218c change the spec;
ca
parents: 295
diff changeset
   659
                                                            #'name:' 'acceptButton'
14db1276218c change the spec;
ca
parents: 295
diff changeset
   660
                                                            #'activeHelpKey:' #accept
14db1276218c change the spec;
ca
parents: 295
diff changeset
   661
                                                            #'label:' 'ok'
14db1276218c change the spec;
ca
parents: 295
diff changeset
   662
                                                            #'tabable:' true
14db1276218c change the spec;
ca
parents: 295
diff changeset
   663
                                                            #'model:' #accept
14db1276218c change the spec;
ca
parents: 295
diff changeset
   664
                                                            #'enableChannel:' #modifiedChannel
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
   665
                                                            #'extent:' #(#Point 166 24)
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   666
                                                        )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   667
                                                      )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   668
                                                  )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   669
                                                  #'horizontalLayout:' #fitSpace
14db1276218c change the spec;
ca
parents: 295
diff changeset
   670
                                                  #'verticalLayout:' #fitSpace
14db1276218c change the spec;
ca
parents: 295
diff changeset
   671
                                                  #'horizontalSpace:' 3
14db1276218c change the spec;
ca
parents: 295
diff changeset
   672
                                                  #'verticalSpace:' 3
14db1276218c change the spec;
ca
parents: 295
diff changeset
   673
                                              )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   674
                                            )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   675
                                        )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   676
                                        #'borderWidth:' 1
14db1276218c change the spec;
ca
parents: 295
diff changeset
   677
                                    )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   678
                                  )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   679
                              )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   680
                              #'level:' 1
14db1276218c change the spec;
ca
parents: 295
diff changeset
   681
                              #'handles:' #(#Any 0.329435 1.0)
14db1276218c change the spec;
ca
parents: 295
diff changeset
   682
                          )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   683
                           #(#TextEditorSpec
14db1276218c change the spec;
ca
parents: 295
diff changeset
   684
                              #'name:' 'Transcript'
14db1276218c change the spec;
ca
parents: 295
diff changeset
   685
                              #'hasHorizontalScrollBar:' true
14db1276218c change the spec;
ca
parents: 295
diff changeset
   686
                              #'hasVerticalScrollBar:' true
14db1276218c change the spec;
ca
parents: 295
diff changeset
   687
                              #'miniScrollerHorizontal:' true
14db1276218c change the spec;
ca
parents: 295
diff changeset
   688
                              #'miniScrollerVertical:' true
14db1276218c change the spec;
ca
parents: 295
diff changeset
   689
                          )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   690
                        )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   691
                    )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   692
                    #'handles:' #(#Any 0.880597 1.0)
14db1276218c change the spec;
ca
parents: 295
diff changeset
   693
                )
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   694
              )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   695
          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   696
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   697
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   698
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   699
!UIPainter class methodsFor:'menu specs'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   700
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   701
menuAlignment
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   702
    "this window spec was automatically generated by the ST/X MenuEditor"
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   703
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   704
    "do not manually edit this - the builder may not be able to
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   705
     handle the specification if its corrupted."
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   706
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   707
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   708
     MenuEditor new openOnClass:UIPainter andSelector:#menuAlignment
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   709
     (Menu new fromLiteralArrayEncoding:(UIPainter menuAlignment)) startUp
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   710
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   711
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   712
    <resource: #menu>
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   713
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   714
    ^
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   715
     
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   716
       #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   717
          
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   718
           #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   719
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   720
                #'label:' 'align left'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   721
                #'value:' #alignSelectionLeft
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   722
                #'activeHelpKey:' #alignSelectionLeft
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   723
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   724
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   725
                    nil #iconAlignL
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   726
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   727
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   728
             #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   729
                #'label:' 'align right'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   730
                #'value:' #alignSelectionRight
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   731
                #'activeHelpKey:' #alignSelectionRight
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   732
                #'labelImage:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   733
                 #(#ResourceRetriever
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   734
                    nil #iconAlignR
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 & right'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   739
                #'value:' #alignSelectionLeftAndRight
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   740
                #'activeHelpKey:' #alignSelectionLeftAndRight
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 #iconAlignLR
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   744
                )
217
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 top'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   748
                #'value:' #alignSelectionTop
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   749
                #'activeHelpKey:' #alignSelectionTop
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 #iconAlignT
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 bottom'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   757
                #'value:' #alignSelectionBottom
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   758
                #'activeHelpKey:' #alignSelectionBottom
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 #iconAlignB
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   762
                )
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 & bottom'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   766
                #'value:' #alignSelectionTopAndBottom
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   767
                #'activeHelpKey:' #alignSelectionTopAndBottom
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 #iconAlignTB
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 centered horizontal'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   775
                #'value:' #alignSelectionCenterHor
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   776
                #'activeHelpKey:' #alignSelectionCenterHor
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 #iconAlignCenterH
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 centered vertical'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   784
                #'value:' #alignSelectionCenterVer
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   785
                #'activeHelpKey:' #alignSelectionCenterVer
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 #iconAlignCenterV
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
          )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   792
          #( 3 3 )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   793
          nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   794
      )
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   795
!
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
   796
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   797
menuCanvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   798
    "this window spec was automatically generated by the ST/X MenuEditor"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   799
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   800
    "do not manually edit this - the builder may not be able to
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   801
     handle the specification if its corrupted."
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   802
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   803
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   804
     MenuEditor new openOnClass:UIPainter andSelector:#menuCanvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   805
     (Menu new fromLiteralArrayEncoding:(UIPainter menuCanvas)) startUp
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   806
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   807
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   808
    <resource: #menu>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   809
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   810
    ^
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   811
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   812
       #(#Menu
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   813
           #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   814
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   815
                #'label:' 'copy'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   816
                #'value:' #copySelection
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   817
                #'enabled:' #hasSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   818
                #'shortcutKeyCharacter:' #Copy
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   819
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   820
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   821
                #'label:' 'cut'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   822
                #'value:' #deleteSelection
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   823
                #'enabled:' #hasSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   824
                #'shortcutKeyCharacter:' #Cut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   825
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   826
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   827
                #'label:' 'paste'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   828
                #'nameKey:' #paste
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   829
                #'enabled:' #canPaste
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   830
                #'value:' #paste
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   831
                #'submenu:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   832
                 #(#Menu
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   833
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   834
                     #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   835
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   836
                          #'label:' 'paste'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   837
                          #'value:' #pasteBuffer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   838
                          #'activeHelpKey:' #pasteBuffer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   839
                          #'shortcutKeyCharacter:' #Paste
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   840
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   841
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   842
                          #'label:' 'keep layout'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   843
                          #'value:' #pasteWithLayout
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   844
                          #'enabled:' #canKeepLayoutInSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   845
                          #'activeHelpKey:' #pasteWithLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   846
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   847
                    ) nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   848
                    nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   849
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   850
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   851
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   852
                #'label:' '-'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   853
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   854
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   855
                #'label:' 'undo'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   856
                #'nameKey:' #undo
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   857
                #'enabled:' #hasUndoHistory
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   858
                #'value:' #undoLast
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   859
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   860
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   861
                #'label:' '-'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   862
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   863
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   864
                #'label:' 'dimension'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   865
                #'value:' #dimension
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   866
                #'enabled:' #hasSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   867
                #'submenu:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   868
                 #(#Menu
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   869
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   870
                     #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   871
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   872
                          #'label:' 'default extent'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   873
                          #'value:' #setToDefaultExtent
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   874
                          #'enabled:' #canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   875
                          #'activeHelpKey:' #setToDefaultExtent
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   876
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   877
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   878
                          #'label:' 'default width'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   879
                          #'value:' #setToDefaultWidth
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   880
                          #'enabled:' #canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   881
                          #'activeHelpKey:' #setToDefaultWidth
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   882
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   883
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   884
                          #'label:' 'default height'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   885
                          #'value:' #setToDefaultHeight
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   886
                          #'enabled:' #canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   887
                          #'activeHelpKey:' #setToDefaultHeight
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:' 'copy extent'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   891
                          #'value:' #copyExtent
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   892
                          #'enabled:' #hasSingleSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   893
                          #'activeHelpKey:' #copyExtent
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:' 'paste extent'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   897
                          #'value:' #pasteExtent
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:' #pasteExtent
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:' 'paste width'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   903
                          #'value:' #pasteWidth
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:' #pasteWidth
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:' 'paste height'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   909
                          #'value:' #pasteHeight
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   910
                          #'enabled:' #canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   911
                          #'activeHelpKey:' #pasteHeight
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:' 'copy  layout'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   915
                          #'value:' #copyLayout
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   916
                          #'enabled:' #hasSingleSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   917
                          #'activeHelpKey:' #copyLayout
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 layout'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   921
                          #'value:' #pasteLayout
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:' #pasteLayout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   924
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   925
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   926
                    #(3 1 3)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   927
                    nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   928
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   929
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   930
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   931
                #'label:' 'align'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   932
                #'value:' #align
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
   933
                #'enabled:' #canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   934
                #'submenu:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   935
                 #(#Menu
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   936
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   937
                     #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   938
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   939
                          #'label:' 'align left'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   940
                          #'value:' #alignSelectionLeft
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   941
                          #'activeHelpKey:' #alignSelectionLeft
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   942
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   943
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   944
                              #UIPainter #iconAlignL
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   945
                              'align left'
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 right'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   950
                          #'value:' #alignSelectionRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   951
                          #'activeHelpKey:' #alignSelectionRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   952
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   953
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   954
                              #UIPainter #iconAlignR
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   955
                              'align right'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   956
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   957
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   958
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   959
                          #'label:' 'align left & right'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   960
                          #'value:' #alignSelectionLeftAndRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   961
                          #'activeHelpKey:' #alignSelectionLeftAndRight
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   962
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   963
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   964
                              #UIPainter #iconAlignLR
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   965
                              'align left & right'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   966
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   967
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   968
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   969
                          #'label:' 'align top'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   970
                          #'value:' #alignSelectionTop
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   971
                          #'activeHelpKey:' #alignSelectionTop
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   972
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   973
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   974
                              #UIPainter #iconAlignT
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   975
                              'align top'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   976
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   977
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   978
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   979
                          #'label:' 'align bottom'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   980
                          #'value:' #alignSelectionBottom
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   981
                          #'activeHelpKey:' #alignSelectionBottom
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   982
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   983
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   984
                              #UIPainter #iconAlignB
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   985
                              'align bottom'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   986
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   987
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   988
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   989
                          #'label:' 'align top & bottom'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   990
                          #'value:' #alignSelectionTopAndBottom
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   991
                          #'activeHelpKey:' #alignSelectionTopAndBottom
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   992
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   993
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   994
                              #UIPainter #iconAlignTB
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   995
                              'align top & bottom'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   996
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   997
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   998
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   999
                          #'label:' 'align centered horizontal'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1000
                          #'value:' #alignSelectionCenterHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1001
                          #'activeHelpKey:' #alignSelectionCenterHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1002
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1003
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1004
                              #UIPainter #iconAlignCenterH
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1005
                              'align centered horizontal'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1006
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1007
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1008
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1009
                          #'label:' 'align centered vertical'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1010
                          #'value:' #alignSelectionCenterVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1011
                          #'activeHelpKey:' #alignSelectionCenterVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1012
                          #'labelImage:' 
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1013
                           #(#ResourceRetriever
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1014
                              #UIPainter #iconAlignCenterV
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1015
                              'align centered vertical'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1016
                          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1017
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1018
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1019
                          #'label:' 'spread horizontal'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1020
                          #'value:' #spreadSelectionHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1021
                          #'activeHelpKey:' #spreadSelectionHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1022
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1023
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1024
                          #'label:' 'spread vertical'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1025
                          #'value:' #spreadSelectionVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1026
                          #'activeHelpKey:' #spreadSelectionVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1027
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1028
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1029
                          #'label:' 'center horizontal in frame'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1030
                          #'value:' #centerSelectionHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1031
                          #'activeHelpKey:' #centerSelectionHor
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1032
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1033
                       #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1034
                          #'label:' 'center vertical in frame'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1035
                          #'value:' #centerSelectionVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1036
                          #'activeHelpKey:' #centerSelectionVer
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1037
                      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1038
                    )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1039
                    #(8 2)
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1040
                    nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1041
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1042
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1043
          ) nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1044
          nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1045
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1046
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1047
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1048
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1049
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1050
menuChangeHierarchy
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1051
    "this window spec was automatically generated by the ST/X MenuEditor"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1052
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1053
    "do not manually edit this - the builder may not be able to
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1054
     handle the specification if its corrupted."
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1055
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1056
    "
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1057
     MenuEditor new openOnClass:UIPainter andSelector:#menuChangeHierarchy
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1058
     (Menu new fromLiteralArrayEncoding:(UIPainter menuChangeHierarchy)) startUp
222
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
    <resource: #menu>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1062
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
       #(#Menu
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1066
          
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1067
           #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1068
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1069
                #'label:' 'stepUp'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1070
                #'value:' #doStepUp
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1071
                #'labelImage:' #(#ResourceRetriever #UIPainter #iconStepUp)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1072
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1073
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1074
                #'label:' 'stepDown'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1075
                #'value:' #doStepDown
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1076
                #'labelImage:' #(#ResourceRetriever #UIPainter #iconStepDown)
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1077
            )
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1078
             #(#MenuItem
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1079
                #'label:' 'stepIn'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1080
                #'value:' #doStepIn
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1081
                #'enabled:' #canMoveSelectionIntoContainer
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1082
                #'labelImage:' #(#ResourceRetriever #UIPainter #iconStepIn)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1083
            )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1084
             #(#MenuItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1085
                #'label:' 'stepOut'
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1086
                #'value:' #doStepOut
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1087
                #'enabled:' #canMoveSelectionOutOfContainer
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1088
                #'labelImage:' #(#ResourceRetriever #UIPainter #iconStepOut)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1089
            )
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1090
          ) nil
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1091
          nil
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
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1095
menuPullDown
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1096
    "this window spec was automatically generated by the ST/X MenuEditor"
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1097
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1098
    "do not manually edit this - the builder may not be able to
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1099
     handle the specification if its corrupted."
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1100
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1101
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1102
     MenuEditor new openOnClass:UIPainter andSelector:#menuPullDown
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1103
     (Menu new fromLiteralArrayEncoding:(UIPainter menuPullDown)) startUp
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1104
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1105
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1106
    <resource: #menu>
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1107
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1108
    ^
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1109
     
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1110
       #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1111
          
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1112
           #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1113
             #(#MenuItem
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1114
                #'label:' 'file'
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1115
                #'value:' #file
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1116
                #'enabled:' #enableChannel
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1117
                #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1118
                 #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1119
                    
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1120
                     #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1121
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1122
                          #'label:' 'new'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1123
                          #'value:' #doNew
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1124
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1125
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1126
                          #'label:' 'from class ...'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1127
                          #'value:' #doFromClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1128
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1129
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1130
                          #'label:' 'pick a view '
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1131
                          #'value:' #doPickAView
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1132
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1133
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1134
                          #'label:' '-'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1135
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1136
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1137
                          #'label:' 'quit'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1138
                          #'value:' #closeRequest
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1139
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1140
                    ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1141
                    nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1142
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1143
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1144
             #(#MenuItem
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1145
                #'label:' 'misc'
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1146
                #'value:' #misc
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1147
                #'enabled:' #enableChannel
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1148
                #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1149
                 #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1150
                    
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1151
                     #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1152
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1153
                          #'label:' 'grid'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1154
                          #'value:' #grid
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1155
                          #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1156
                           #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1157
                              
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1158
                               #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1159
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1160
                                    #'label:' 'show'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1161
                                    #'indication:' #'gridShown:'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1162
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1163
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1164
                                    #'label:' 'align'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1165
                                    #'indication:' #'gridAlign:'
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1166
                                )
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1167
                              ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1168
                              nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1169
                          )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1170
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1171
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1172
                          #'label:' 'undo'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1173
                          #'value:' #undo
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1174
                          #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1175
                           #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1176
                              
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1177
                               #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1178
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1179
                                    #'label:' 'last'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1180
                                    #'value:' #undoLast
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1181
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1182
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1183
                                    #'label:' 'menu'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1184
                                    #'value:' #openUndoMenu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1185
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1186
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1187
                                    #'label:' '-'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1188
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1189
                                 #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1190
                                    #'label:' 'delete'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1191
                                    #'value:' #removeUndoHistory
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1192
                                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1193
                              ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1194
                              nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1195
                          )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1196
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1197
                    ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1198
                    nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1199
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1200
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1201
             #(#MenuItem
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1202
                #'label:' 'code'
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1203
                #'value:' #code
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1204
                #'enabled:' #enableChannel
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1205
                #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1206
                 #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1207
                    
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1208
                     #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1209
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1210
                          #'label:' 'class && method ...'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1211
                          #'value:' #defineClassAndSelector
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1212
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1213
                       #(#MenuItem
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1214
                          #'label:' '-'
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1215
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1216
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1217
                          #'label:' 'install window spec.'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1218
                          #'value:' #doInstallSpec
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1219
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1220
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1221
                          #'label:' 'install help spec.'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1222
                          #'value:' #doInstallHelp
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1223
                          #'enabled:' #hasSpecClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1224
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1225
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1226
                          #'label:' 'install aspects'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1227
                          #'value:' #doInstallAspects
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1228
                          #'enabled:' #hasSpecClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1229
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1230
                       #(#MenuItem
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1231
                          #'label:' '-'
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1232
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1233
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1234
                          #'label:' 'show window spec.'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1235
                          #'value:' #doWindowSpec
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1236
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1237
                       #(#MenuItem
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1238
                          #'label:' 'browse application'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1239
                          #'value:' #doBrowseAppClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1240
                          #'enabled:' #hasSpecClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1241
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1242
                    ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1243
                    nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1244
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1245
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1246
             #(#MenuItem
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1247
                #'label:' 'test'
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1248
                #'nameKey:' #test
114
93cd25c62a68 menu and handling
ca
parents: 109
diff changeset
  1249
                #'value:' #test
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1250
                #'submenu:' 
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1251
                 #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1252
                    
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:' 'test mode'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1256
                          #'indication:' #'testMode:'
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1257
                      )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1258
                    ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1259
                    nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1260
                )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1261
            )
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1262
             #(#MenuItem
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1263
                #'label:' ''
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1264
            )
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1265
             #(#MenuItem
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1266
                #'label:' 'Gallery'
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1267
                #'indication:' #galleryShown
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1268
            )
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1269
             #(#MenuItem
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1270
                #'label:' 'Canvas'
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1271
                #'indication:' #painterShown
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1272
            )
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1273
             #(#MenuItem
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1274
                #'label:' ''
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1275
            )
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1276
             #(#MenuItem
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1277
                #'label:' '-'
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1278
            )
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1279
             #(#MenuItem
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1280
                #'label:' 'Install'
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1281
                #'value:' #doInstallSpec
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1282
                #'labelImage:' #(#ResourceRetriever nil #iconInstall 'Install')
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1283
            )
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1284
             #(#MenuItem
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1285
                #'label:' '-'
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1286
            )
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1287
             #(#MenuItem
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1288
                #'label:' 'Run'
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1289
                #'value:' #doStartApplication
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1290
            )
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1291
             #(#MenuItem
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1292
                #'label:' '-'
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  1293
            )
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1294
          ) nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1295
          nil
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1296
      )
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1297
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1298
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1299
!UIPainter methodsFor:'actions'!
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1300
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1301
accept
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1302
    "accept changes done to the specification. The component assigned to the
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1303
     specification will change immediately dependant on the attributes derived
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1304
     from the specification.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1305
    "
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1306
    |layout spec prop key layoutTool|
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1307
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1308
    self isLayoutToolSelected ifTrue:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1309
        layoutTool := self layoutTool.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1310
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1311
        (layout := layoutTool layout) notNil ifTrue:[
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1312
            layoutTool layoutType == #Extent ifTrue:[
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1313
                layoutTool layoutView == self painter topView ifTrue:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1314
                    layoutTool layoutView extent:layout
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1315
                ] ifFalse:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1316
                    self painter setExtent:layout
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1317
                ]
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1318
            ] ifFalse:[
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1319
                self painter setLayout:layout
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1320
            ]
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1321
        ]
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1322
    ] ifFalse:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1323
        spec := self specTool specification.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1324
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1325
        self isHelpToolSelected ifTrue:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1326
            self helpTool accept.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1327
            key  := self helpTool helpKey.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1328
            prop := treeView propertySelected.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1329
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1330
            prop notNil ifTrue:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1331
                prop spec activeHelpKey:key
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1332
            ].
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1333
            spec activeHelpKey:key.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1334
        ] ifFalse:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1335
            self painter updateFromSpec:spec.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1336
        ]
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1337
    ].
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1338
    self modifiedChannel value:false.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1339
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1340
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1341
cancel
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1342
    "cancel all changes done to the specification; reread attributes from the
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1343
     assigned component
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1344
    "
328
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1345
    |spec key view|
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1346
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  1347
    self isModified ifTrue:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1348
        (spec := self painter specForSelection) notNil ifTrue:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1349
            key := spec activeHelpKey.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1350
        ].
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1351
        self helpTool helpKey:key.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1352
        self specTool specification:spec.
328
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1353
        view := self layoutTool layoutView.
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1354
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1355
        self setViewInLayoutTool:view.
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1356
        spec class == DataSetSpec ifTrue:[
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1357
            view columnDescriptors:(spec columns)
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1358
        ].        
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1359
        self modifiedChannel value:false.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1360
    ]
137
ca
parents: 136
diff changeset
  1361
!
ca
parents: 136
diff changeset
  1362
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1363
moveSelectionDown
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1364
    "move selected components down
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1365
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1366
    self painter moveSelectionDown
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1367
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1368
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1369
moveSelectionLeft
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1370
    "move selected components left
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1371
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1372
    self painter moveSelectionLeft
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1373
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1374
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1375
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1376
moveSelectionRight
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1377
    "move selected components right
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1378
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1379
    self painter moveSelectionRight
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
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1383
moveSelectionUp
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1384
    "move selected components up
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1385
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1386
    self painter moveSelectionUp
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
328
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1390
openDataSetColumnEditor
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1391
    "opens a column editor
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1392
    "
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1393
    |cls aspect editor columns|
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1394
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1395
    cls := self resolveName:specClass.
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1396
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1397
    cls isNil ifTrue:[
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1398
        ^ self information:'no application class defined yet'
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1399
    ].
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1400
    aspect := self specTool specification columns.
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1401
    editor := DataSetBuilder new.
341
0f297824bcf6 set masterApplication for DataSetBuilder
ca
parents: 333
diff changeset
  1402
    editor masterApplication:self.
328
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1403
    editor columns:aspect fromView:(self layoutTool layoutView).
333
a2e23dea36bf change className to rowClassName
ca
parents: 328
diff changeset
  1404
    editor rowClassName:(self specTool specification rowClassName).
328
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1405
    editor openModal.
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1406
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1407
    editor hasChanged ifTrue:[
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1408
        self specTool specification columns:(editor columns).
333
a2e23dea36bf change className to rowClassName
ca
parents: 328
diff changeset
  1409
        self specTool specification rowClassName:(editor rowClassName).
328
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1410
        self modifiedChannel value:true.
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1411
    ].
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1412
!
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1413
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1414
openEditMenu
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1415
    "opens a menu editor on current widget
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1416
    "
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1417
    |cls aspect editor|
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1418
328
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1419
    cls := self resolveName:specClass.
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1420
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1421
    cls isNil ifTrue:[
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1422
        ^ self information:'no application class defined yet'
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1423
    ].
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1424
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1425
    cls notNil ifTrue:[
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
  1426
        (aspect := self specTool specification menuSelector) notNil ifTrue:[
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1427
            aspect := aspect asSymbol
229
cabe3bd6fd74 openEditMenu changed
ca
parents: 222
diff changeset
  1428
        ] ifFalse:[
267
6feed486f1f1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
  1429
            "/ cg: q&d hack ...
6feed486f1f1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 265
diff changeset
  1430
229
cabe3bd6fd74 openEditMenu changed
ca
parents: 222
diff changeset
  1431
            aspect := treeView propertySelected.
cabe3bd6fd74 openEditMenu changed
ca
parents: 222
diff changeset
  1432
            aspect notNil ifTrue:[
245
d48281345935 better warning message
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1433
                Object errorSignal handle:[:ex |
271
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1434
                    aspect := nil.
245
d48281345935 better warning message
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1435
                ] do:[
d48281345935 better warning message
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1436
                    aspect := aspect view asMenu.
d48281345935 better warning message
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
  1437
                ]
271
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1438
            ].
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1439
        ].
229
cabe3bd6fd74 openEditMenu changed
ca
parents: 222
diff changeset
  1440
        
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1441
        editor := MenuEditor new.
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1442
        editor masterApplication:self.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1443
        editor useHelpDictionary:(self helpTool dictionary).
271
ca85216907a4 better menu editing
Claus Gittinger <cg@exept.de>
parents: 268
diff changeset
  1444
        editor openModalOnClass:cls andSelector:aspect.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1445
        self helpTool updateList.
271
ca85216907a4 better menu editing
Claus Gittinger <cg@e