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