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