UIPainter.st
author tz
Mon, 30 Mar 1998 14:09:01 +0200
changeset 745 d3995881fa13
parent 743 d58a3e7e39d5
child 755 cfbbec0a33c6
permissions -rw-r--r--
some changes for instancing
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
368
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
    13
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
    14
ToolApplicationModel subclass:#UIPainter
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
    15
	instanceVariableNames:'treeView selectionPanel tabSelection specClass specSelector
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
    16
		specSuperclass aspects layoutCanvas helpCanvas specCanvas
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
    17
		transcript modified'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
    18
	classVariableNames:''
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    19
	poolDictionaries:''
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    20
	category:'Interface-UIPainter'
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    21
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    22
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    23
SelectionInTreeView subclass:#TreeView
491
c3af7854dbe8 image instance variables removed + release all widget icons while snap shoting
tz
parents: 490
diff changeset
    24
	instanceVariableNames:'lastDrawnMaster cvsEventsDisabled windowSpec'
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
    25
	classVariableNames:''
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:]
542
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
    61
        Claus Gittinger, eXept Software AG
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
    62
        Claus Atzkern, eXept Software AG
156
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
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
    75
    "open a GUI Painter on aClass and (windowSpec) aSelector
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
    76
    "
195
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    77
    ^ self new openOnClass:aClass andSelector:aSelector
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    78
!
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    79
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    80
painter:aBuilderView
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
    81
    "set the painter
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
    82
    "
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    83
    |application|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    84
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    85
    application := self new.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    86
    application painter:aBuilderView.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    87
  ^ application open
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    88
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    89
87
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    90
!UIPainter class methodsFor:'ST-80 queries'!
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    91
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    92
preferenceFor:aSymbol
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
    93
    "ST-80 compatible; always returns false
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
    94
    "
87
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    95
    ^ false
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    96
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
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   100
!UIPainter class methodsFor:'accessing-defaults'!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   101
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   102
defaultNameOfCanvas
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   103
    "returns the default name (id) of the application
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   104
    "
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   105
    ^'NewApplication'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   106
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   107
! !
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   108
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   109
!UIPainter class methodsFor:'help specs'!
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   110
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   111
helpSpec
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   112
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   113
     by the UIHelpTool of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   114
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   115
    "Do not manually edit this!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   116
     the UIHelpTool may not be able to read the specification."
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
   117
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   118
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   119
     UIHelpTool openOnClass:UIPainter    
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
   120
    "
114befd1c369 add some help text
ca
parents: 287
diff changeset
   121
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   122
    <resource: #help>
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   123
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   124
    ^super helpSpec addPairsFrom:#(
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   125
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   126
#alignSelectionBottom
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   127
'Aligns the selected widgets to the bottom edge of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   128
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   129
#alignSelectionCenterHor
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   130
'Aligns the selected widgets vertically to the center of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   131
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   132
#alignSelectionCenterVer
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   133
'Aligns the selected widgets horizontally to the center of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   134
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   135
#alignSelectionLeft
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   136
'Aligns the selected widgets to the left edge of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   137
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   138
#alignSelectionLeftAndRight
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   139
'Aligns the selected widgets to the right and left edge of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   140
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   141
#alignSelectionRight
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   142
'Aligns the selected widgets to the right edge of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   143
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   144
#alignSelectionTop
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   145
'Aligns the selected widgets to the top edge of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   146
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   147
#alignSelectionTopAndBottom
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   148
'Aligns the selected widgets to the top and bottom edge of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   149
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   150
#centerSelectionHor
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   151
'Centers the selected widgets horizontally to their contained widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   152
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   153
#centerSelectionVer
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   154
'Centers the selected widgets vertically in their contained widget.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   155
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   156
#changePositionDown
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   157
'Changes the position of the widgets to the bottom.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   158
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   159
#changePositionLeft
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   160
'Changes the position of the widgets to the left.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   161
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   162
#changePositionRight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   163
'Changes the position of the widgets to the right.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   164
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   165
#changePositionUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   166
'Changes the position of the widgets to the top.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   167
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   168
#editDimensionCopyExtent
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   169
'Copies the extent of the selected widgets.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   170
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   171
#editDimensionCopyLayout
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   172
'Copies the layout of the selected widgets.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   173
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   174
#editDimensionDefaultExtent
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   175
'Sets the selected widgets to their default extent.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   176
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   177
#editDimensionDefaultHeight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   178
'Sets the selected widgets to their default height.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   179
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   180
#editDimensionDefaultWidth
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   181
'Sets the selected widgets to their default width.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   182
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   183
#editDimensionPasteExtent
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   184
'Sets the extent of the selected widgets to the last copied extent.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   185
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   186
#editDimensionPasteHeight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   187
'Sets the height of the selected widgets to the height of the last copied layout/extent.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   188
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   189
#editDimensionPasteLayout
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   190
'Sets the layout of the selected widgets to the last copied layout.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   191
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   192
#editDimensionPasteWidth
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   193
'Sets the width of the selected widgets to the width of the last copied layout/extent.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   194
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   195
#editInspectSpec
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   196
'Opens an inspector on the spec of the selected widget.'
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   197
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   198
#editOpenSpecDocumentation
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   199
'Opens the documentation of the selected widget.'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   200
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   201
#fileBrowseAspectMethods
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   202
'Opens a System Browser to browse the aspect methods.'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   203
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   204
#fileLoad
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   205
'Opens a dialog to load a window spec from a class.'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   206
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
   207
#fileLoadSubspec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   208
'Opens a dialog to load an sub spec from a class.'
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
   209
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   210
#fileNew
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   211
'Creates a new window spec.'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   212
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   213
#filePickAnInterface
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   214
'Changes the cursor for moving it over another interface application to load its window spec.'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   215
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   216
#fileSave
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   217
'Saves current window spec on current class and if modified the help spec.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   218
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   219
#fileSaveAs
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   220
'Opens a dialog to select or create a class and selector in order to save current window spec.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   221
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   222
#fileShowWindowSpec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   223
'Opens a Workspace showing the current window spec.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   224
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   225
#generateAspectMethods
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   226
'Generates aspect methods for defined aspect selectors of the widgets.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   227
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   228
#generateHookMethods
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   229
'Generates startup/release methods. (#closeRequest, #postBuildWith:, #postOpenWith:)'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   230
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   231
#moveWidgetDown
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   232
'Moves the selected widget one step down.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   233
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   234
#moveWidgetInto
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   235
'Moves the selected widget into next widget as child widget.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   236
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   237
#moveWidgetOut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   238
'Moves the selected widget out of its parent widget.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   239
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   240
#moveWidgetUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   241
'Moves the selected widget one step up.'
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   242
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   243
#pasteBuffer
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   244
'Pastes the widgets of the clipboard at current mouse position.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   245
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   246
#pasteWithLayout
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   247
'Pastes the widgets of the clipboard without a changing of their layouts.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   248
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   249
#settingsCanvas
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   250
'Shows or hides the canvas window.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   251
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   252
#settingsGallery
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   253
'Shows or hides the gallery window.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   254
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   255
#settingsGridManager
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   256
'Opens a dialog to show/hide the grid points or to change the distances between them.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   257
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   258
#settingsRedefineAspectMethods
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   259
'Turns on/off the permission of redefinition of the aspect methods.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   260
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   261
#settingsTranscriptHelp
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   262
'Turns on/off showing help texts in a transcript (after opening of a new GUI Painter).'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   263
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   264
#settingsUndoManager
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   265
'Opens a dialog to reverse a certain number of last edit action.'
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   266
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   267
#spreadSelectionHor
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   268
'Sets the horizontal spaces between the selected widgets as the same.'
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   269
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   270
#spreadSelectionVer
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   271
'Sets the vertical spaces between the selected widgets as the same.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   272
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   273
#testGeometryTestMode
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   274
'Turns on/off the geometry test mode in order to define ratios of variable panels.'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   275
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   276
#testStartApplication
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   277
'Starts current application on current window spec.'
194
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   278
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   279
)
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   280
! !
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   281
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   282
!UIPainter class methodsFor:'helpers'!
14db1276218c change the spec;
ca
parents: 295
diff changeset
   283
368
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   284
convertString:aString maxLineSize:maxCharactersPerLine skipLineFeed:skipLineFeed
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   285
    "converts a string to a string collection with maximum characters
14db1276218c change the spec;
ca
parents: 295
diff changeset
   286
     per line
14db1276218c change the spec;
ca
parents: 295
diff changeset
   287
    "
14db1276218c change the spec;
ca
parents: 295
diff changeset
   288
    |stream
14db1276218c change the spec;
ca
parents: 295
diff changeset
   289
        max     "{ Class:SmallInteger }"
14db1276218c change the spec;
ca
parents: 295
diff changeset
   290
        size    "{ Class:SmallInteger }"
14db1276218c change the spec;
ca
parents: 295
diff changeset
   291
        start   "{ Class:SmallInteger }"
14db1276218c change the spec;
ca
parents: 295
diff changeset
   292
        stop    "{ Class:SmallInteger }"
14db1276218c change the spec;
ca
parents: 295
diff changeset
   293
        cpySz   "{ Class:SmallInteger }"
542
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   294
        lnSz    "{ Class:SmallInteger }"
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   295
        atBeginOfLine|
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   296
14db1276218c change the spec;
ca
parents: 295
diff changeset
   297
    maxCharactersPerLine < 20 ifFalse:[max := maxCharactersPerLine - 1]
14db1276218c change the spec;
ca
parents: 295
diff changeset
   298
                               ifTrue:[max := 20].
14db1276218c change the spec;
ca
parents: 295
diff changeset
   299
14db1276218c change the spec;
ca
parents: 295
diff changeset
   300
    (size := aString size) <= max ifTrue:[
14db1276218c change the spec;
ca
parents: 295
diff changeset
   301
        ^ aString
14db1276218c change the spec;
ca
parents: 295
diff changeset
   302
    ].
14db1276218c change the spec;
ca
parents: 295
diff changeset
   303
    start  := 1.
14db1276218c change the spec;
ca
parents: 295
diff changeset
   304
    lnSz   := 0.
14db1276218c change the spec;
ca
parents: 295
diff changeset
   305
    stream := (String new:size) writeStream.
14db1276218c change the spec;
ca
parents: 295
diff changeset
   306
542
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   307
    atBeginOfLine := true.
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   308
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   309
    [start <= size] whileTrue:[
14db1276218c change the spec;
ca
parents: 295
diff changeset
   310
        (start := aString indexOfNonSeparatorStartingAt:start) == 0 ifTrue:[
14db1276218c change the spec;
ca
parents: 295
diff changeset
   311
            ^ stream contents
14db1276218c change the spec;
ca
parents: 295
diff changeset
   312
        ].
368
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   313
        (aString at:start) == $\ ifTrue:[
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   314
            skipLineFeed ifFalse:[
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   315
                stream nextPut:$\
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   316
            ].
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   317
            start := start + 1.
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   318
            stream cr.
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   319
            start := start + 1.
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   320
            lnSz := 0.
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   321
        ] ifFalse:[
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   322
            (stop := aString indexOfSeparatorStartingAt:start) == 0 ifTrue:[
542
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   323
                stop := size + 1
368
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   324
            ].
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   325
            (aString at:(stop - 1)) == $\ ifTrue:[
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   326
                stop := stop - 1
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   327
            ].
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   328
            cpySz := stop - start.
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   329
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   330
            lnSz == 0 ifFalse:[
542
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   331
                (lnSz := lnSz + cpySz) >= max ifTrue:[stream cr.    lnSz := cpySz. atBeginOfLine := true. ]
368
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   332
                                             ifFalse:[stream space. lnSz := lnSz + 1]
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   333
            ] ifTrue:[
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   334
                lnSz := cpySz
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   335
            ].
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   336
            stream nextPutAll:aString startingAt:start to:(stop - 1).
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   337
            start := stop.
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   338
        ]
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   339
    ].
14db1276218c change the spec;
ca
parents: 295
diff changeset
   340
    ^ stream contents
542
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   341
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   342
    "Modified: / 1.2.1998 / 14:42:56 / cg"
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   343
! !
14db1276218c change the spec;
ca
parents: 295
diff changeset
   344
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   345
!UIPainter class methodsFor:'image specs'!
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   346
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   347
iconAlignB
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   348
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   349
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   350
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   351
    "Do not manually edit this!!!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   352
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   353
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   354
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   355
     ImageEditor openOnClass:self andSelector:#iconAlignB
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   356
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   357
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   358
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   359
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   360
    ^Icon
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   361
        constantNamed:#'UIPainter iconAlignB'
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   362
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@@@@@@@G@@@@@@@G@E@@@@@G@G@@@@@G@G@@@@@G@G@@@E@G@G@@@G@G@G@K@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@K@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@G C@G @@G'' @G'' @G'' @G'' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' G'''' O??0O??0@@@@@@@C@@@@') ; yourself); yourself]!
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   363
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   364
iconAlignL
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   365
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   366
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   367
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   368
    "Do not manually edit this!!!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   369
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   370
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   371
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   372
     ImageEditor openOnClass:self andSelector:#iconAlignL
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   373
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   374
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   375
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   376
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   377
    ^Icon
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   378
        constantNamed:#'UIPainter iconAlignL'
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   379
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@(@@@@@@@(@@@@@@@(UUUP@I@(_??0@@@(@@@@@@@(@@@@@@@(@@@@@@@(@@@@@@@(UUUU@@@(_???@@@(@@@@@E@(@@@@@@@(@@@@@@@(@@@@@@@(UU@@@@@(_?@@@@@(@@@@@@@(@@@@@@@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@@@G?>@G?>@G?>@G?>@F@@@F@@@G?? G?? G?? G?? F@@@F@@@G? @G? @G? @G? @F@@@@@@@@@@@') ; yourself); yourself]!
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   380
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   381
iconAlignLR
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   382
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   383
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   384
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   385
    "Do not manually edit this!!!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   386
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   387
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   388
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   389
     ImageEditor openOnClass:self andSelector:#iconAlignLR
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   390
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   391
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   392
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   393
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   394
    ^Icon
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   395
        constantNamed:#'UIPainter iconAlignLR'
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   396
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@(@@@B @@(@@@B @@(UUUR I@(_??2 @@(@@@B @@(@@@B @@(@@@B @@(@@@B @@(UUUR @@(_??2 @@(@@@B E@(@@@B @@(@@@B @@(@@@B @@(UUUR @@(_??B @@(@@@B @@(@@@B @@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@A G?? G?? G?? G?? F@A F@A G?? G?? G?? G?? F@A F@A G?? G?? G?; G?? F@A @@@@@@@@') ; yourself); yourself]!
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   397
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   398
iconAlignR
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   399
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   400
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   401
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   402
    "Do not manually edit this!!!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   403
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   404
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   405
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   406
     ImageEditor openOnClass:self andSelector:#iconAlignR
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   407
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   408
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   409
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   410
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   411
    ^Icon
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   412
        constantNamed:#'UIPainter iconAlignR'
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   413
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@B @@@@@@B @@@UUUR I@@_??2 @@@@@@B @@@@@@B @@@@@@B @@@@@@B @@EUUUR @@G???2 @@@@@@B E@@@@@B @@@@@@B @@@@@@B @@@@EUR @@@@G?2 @@@@@@B @@@@@@B @@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@A A?? A?? A?? A?? @@A @@A G?? G?? G?? G?? @@A @@A @G? @G? @G? @G? @@A @@@@@@@@') ; yourself); yourself]!
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   414
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   415
iconAlignT
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   416
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   417
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   418
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   419
    "Do not manually edit this!!!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   420
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   421
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   422
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   423
     ImageEditor openOnClass:self andSelector:#iconAlignT
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   424
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   425
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   426
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   427
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   428
    ^Icon
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   429
        constantNamed:#'UIPainter iconAlignT'
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   430
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@K@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@K@G@G@G@@@@@G@G@@@@@G@G@@@@@G@G@@@@@G@G@@@@@G@@@@@@@G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' @G'' @G'' @G'' @G'' @G @@G C@@@@@@@@@@@@') ; yourself); yourself]!
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   431
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   432
iconAlignTB
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   433
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   434
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   435
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   436
    "Do not manually edit this!!!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   437
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   438
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   439
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   440
     ImageEditor openOnClass:self andSelector:#iconAlignTB
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   441
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   442
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   443
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   444
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   445
    ^Icon
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   446
        constantNamed:#'UIPainter iconAlignTB'
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   447
        ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@G@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@H@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@@@G@G@D@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@H@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G''''!!G'''' G'''' G'''' G'''' G'''' G'''' G''''!!G''''!!G''& G'''' O??0O??2@@@@@@@@@@@@') ; yourself); yourself]! !
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   448
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
   449
!UIPainter class methodsFor:'interface specs'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
   450
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   451
dialogSpecForDefiningClassAndSelector
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   452
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   453
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   454
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   455
    "Do not manually edit this. If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   456
     the UIPainter may not be able to read the specification."
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   457
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   458
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   459
     UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningClassAndSelector
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   460
     UIPainter new openInterface:#dialogSpecForDefiningClassAndSelector
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   461
    "
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   462
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   463
    <resource: #canvas>
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   464
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   465
    ^
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   466
     
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   467
       #(#FullSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   468
          #window: 
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   469
           #(#WindowSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   470
              #name: 'GUI Painter'
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   471
              #layout: #(#LayoutFrame 575 0 296 0 921 0 455 0)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   472
              #label: 'GUI Painter'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   473
              #min: #(#Point 10 10)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   474
              #max: #(#Point 1152 900)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   475
              #bounds: #(#Rectangle 575 296 922 456)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   476
              #usePreferredExtent: false
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   477
          )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   478
          #component: 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   479
           #(#SpecCollection
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   480
              #collection: 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   481
               #(
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   482
                 #(#FramedBoxSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   483
                    #name: 'FramedBox'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   484
                    #layout: #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   485
                    #component: 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   486
                     #(#SpecCollection
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   487
                        #collection: 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   488
                         #(
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   489
                           #(#LabelSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   490
                              #name: 'selectorLabel'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   491
                              #layout: #(#AlignmentOrigin 77 0.11 39 0 1 0.5)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   492
                              #label: 'Selector:'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   493
                              #adjust: #right
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   494
                              #resizeForLabel: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   495
                          )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   496
                           #(#InputFieldSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   497
                              #name: 'methodNameField'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   498
                              #layout: #(#LayoutFrame 80 0.11 28 0 14 1.0 50 0)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   499
                              #tabable: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   500
                              #model: #methodNameChannel
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   501
                          )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   502
                           #(#LabelSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   503
                              #name: 'classLabel'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   504
                              #layout: #(#AlignmentOrigin 77 0.11 64 0 1 0.5)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   505
                              #label: 'Class:'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   506
                              #adjust: #right
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   507
                              #resizeForLabel: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   508
                          )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   509
                           #(#InputFieldSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   510
                              #name: 'classNameField'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   511
                              #layout: #(#LayoutFrame 80 0.11 53 0 14 1.0 75 0)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   512
                              #tabable: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   513
                              #model: #classNameChannel
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   514
                          )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   515
                           #(#LabelSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   516
                              #name: 'superClassLabel'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   517
                              #layout: #(#AlignmentOrigin 77 0.11 89 0 1 0.5)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   518
                              #label: 'Superclass:'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   519
                              #adjust: #right
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   520
                              #resizeForLabel: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   521
                          )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   522
                           #(#ComboBoxSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   523
                              #name: 'superclassNameComboBox'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   524
                              #layout: #(#LayoutFrame 80 0.11 78 0 14 1.0 100 0)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   525
                              #tabable: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   526
                              #model: #superclassNameChannel
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   527
                              #comboList: #superclassNameDefaults
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   528
                          )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   529
                        )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   530
                    )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   531
                    #label: 'Define Class And Selector'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   532
                    #labelPosition: #topLeft
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   533
                )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   534
                 #(#UISubSpecification
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   535
                    #name: 'subSpec'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   536
                    #layout: #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   537
                    #majorKey: #ToolApplicationModel
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   538
                    #minorKey: #windowSpecForCommitWithoutChannels
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   539
                )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   540
              )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   541
          )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   542
      )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   543
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   544
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   545
dialogSpecForDefiningGridParameters
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   546
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   547
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   548
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   549
    "Do not manually edit this. If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   550
     the UIPainter may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   551
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   552
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   553
     UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningGridParameters
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   554
     UIPainter new openInterface:#dialogSpecForDefiningGridParameters
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   555
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   556
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   557
    <resource: #canvas>
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   558
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   559
    ^
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   560
     
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   561
       #(#FullSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   562
          #window: 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   563
           #(#WindowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   564
              #name: 'GUI Painter'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   565
              #layout: #(#LayoutFrame 575 0 296 0 856 0 493 0)
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   566
              #label: 'GUI Painter'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   567
              #min: #(#Point 10 10)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   568
              #max: #(#Point 1280 1024)
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   569
              #bounds: #(#Rectangle 575 296 857 494)
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   570
              #usePreferredExtent: false
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   571
          )
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   572
          #component: 
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   573
           #(#SpecCollection
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   574
              #collection: 
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   575
               #(
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   576
                 #(#FramedBoxSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   577
                    #name: 'FramedBox'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   578
                    #layout: #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   579
                    #component: 
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   580
                     #(#SpecCollection
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   581
                        #collection: 
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   582
                         #(
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   583
                           #(#CheckBoxSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   584
                              #name: 'ShowGridCheckBox'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   585
                              #layout: #(#Point 23 24)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   586
                              #model: #showGrid
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   587
                              #label: 'Show Grid'
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   588
                          )
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   589
                           #(#CheckBoxSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   590
                              #name: 'AlignCheckBox'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   591
                              #layout: #(#Point 23 52)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   592
                              #model: #alignToGrid
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   593
                              #label: 'Align to Grid'
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   594
                          )
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   595
                           #(#LabelSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   596
                              #name: 'HorizontalPixelsLabel'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   597
                              #layout: #(#AlignmentOrigin 148 0 99 0 1 0.5)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   598
                              #label: 'Horizontal Pixels:'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   599
                              #adjust: #right
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   600
                              #resizeForLabel: true
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   601
                          )
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   602
                           #(#InputFieldSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   603
                              #name: 'HorizontalPixelsField'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   604
                              #layout: #(#LayoutFrame 154 0 87 0 207 0 109 0)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   605
                              #model: #hspace
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   606
                              #type: #numberOrNil
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   607
                          )
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   608
                           #(#LabelSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   609
                              #name: 'VerticalPixelsLabel'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   610
                              #layout: #(#AlignmentOrigin 149 0 124 0 1 0.5)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   611
                              #label: 'Vertical Pixels:'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   612
                              #adjust: #right
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   613
                              #resizeForLabel: true
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   614
                          )
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   615
                           #(#InputFieldSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   616
                              #name: 'VerticalPixelsField'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   617
                              #layout: #(#LayoutFrame 154 0 112 0 207 0 134 0)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   618
                              #model: #vspace
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   619
                              #type: #numberOrNil
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   620
                          )
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   621
                        )
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   622
                    )
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   623
                    #label: 'Grid Parameter'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   624
                    #labelPosition: #topLeft
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   625
                )
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   626
                 #(#UISubSpecification
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   627
                    #name: 'subSpec'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   628
                    #layout: #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   629
                    #majorKey: #ToolApplicationModel
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   630
                    #minorKey: #windowSpecForCommitWithoutChannels
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   631
                )
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   632
              )
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   633
          )
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   634
      )
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   635
!
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   636
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   637
windowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   638
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   639
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   640
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   641
    "Do not manually edit this!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   642
     the UIPainter may not be able to read the specification."
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   643
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   644
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   645
     UIPainter new openOnClass:UIPainter andSelector:#windowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   646
     UIPainter new openInterface:#windowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   647
     UIPainter open
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   648
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   649
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   650
    <resource: #canvas>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   651
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   652
    ^
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   653
     
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   654
       #(#FullSpec
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   655
          #window: 
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   656
           #(#WindowSpec
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   657
              #name: 'GUI Painter'
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   658
              #layout: #(#LayoutFrame 50 0 310 0 579 0 796 0)
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   659
              #label: 'GUI Painter'
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   660
              #min: #(#Point 10 10)
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   661
              #max: #(#Point 1160 870)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   662
              #bounds: #(#Rectangle 50 310 580 797)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   663
              #menu: #menu
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   664
              #usePreferredExtent: false
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   665
          )
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   666
          #component: 
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   667
           #(#SpecCollection
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   668
              #collection: 
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   669
               #(
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   670
                 #(#MenuPanelSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   671
                    #name: 'menuToolbarView'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   672
                    #layout: #(#LayoutFrame -1 0.0 0 0 -1 1.0 32 0)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   673
                    #tabable: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   674
                    #menu: #menuToolbar
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   675
                )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   676
                 #(#VariableHorizontalPanelSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   677
                    #name: 'hpanel'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   678
                    #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0)
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   679
                    #component: 
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   680
                     #(#SpecCollection
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   681
                        #collection: 
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   682
                         #(
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   683
                           #(#ArbitraryComponentSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   684
                              #name: 'treeView'
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   685
                              #tabable: true
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   686
                              #menu: #menuEdit
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   687
                              #hasHorizontalScrollBar: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   688
                              #hasVerticalScrollBar: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   689
                              #miniScrollerHorizontal: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   690
                              #miniScrollerVertical: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   691
                              #component: #treeView
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   692
                              #hasBorder: false
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   693
                          )
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   694
                           #(#ViewSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   695
                              #name: 'specHolderView'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   696
                              #component: 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   697
                               #(#SpecCollection
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   698
                                  #collection: 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   699
                                   #(
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   700
                                     #(#MenuPanelSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   701
                                        #name: 'menuToolbar2View'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   702
                                        #layout: #(#LayoutFrame -1 0.0 -2 0 -1 1.0 30 0)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   703
                                        #enableChannel: #canMoveOrAlignSelection
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   704
                                        #tabable: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   705
                                        #menu: #menuToolbar2
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   706
                                    )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   707
                                     #(#NoteBookViewSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   708
                                        #name: 'noteBook'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   709
                                        #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -30 1.0)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   710
                                        #enableChannel: #enableChannel
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   711
                                        #tabable: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   712
                                        #model: #tabModel
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   713
                                        #menu: #tabList
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   714
                                        #style: #(#FontDescription #helvetica #medium #roman 10)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   715
                                        #canvas: #noteBookView
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   716
                                    )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   717
                                     #(#HorizontalPanelViewSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   718
                                        #name: 'horizontalPanelView1'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   719
                                        #layout: #(#LayoutFrame -163 1 -1 0 -35 1.0 31 0)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   720
                                        #component: 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   721
                                         #(#SpecCollection
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   722
                                            #collection: 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   723
                                             #(
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   724
                                               #(#ArrowButtonSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   725
                                                  #name: 'MoveLeftButton'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   726
                                                  #activeHelpKey: #changePositionLeft
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   727
                                                  #tabable: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   728
                                                  #model: #moveSelectionLeft
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   729
                                                  #enableChannel: #canMoveOrAlignSelection
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   730
                                                  #isTriggerOnDown: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   731
                                                  #direction: #left
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   732
                                                  #extent: #(#Point 32 32)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   733
                                              )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   734
                                               #(#ArrowButtonSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   735
                                                  #name: 'MoveRightButton'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   736
                                                  #activeHelpKey: #changePositionRight
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   737
                                                  #model: #moveSelectionRight
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   738
                                                  #enableChannel: #canMoveOrAlignSelection
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   739
                                                  #isTriggerOnDown: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   740
                                                  #direction: #right
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   741
                                                  #extent: #(#Point 32 32)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   742
                                              )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   743
                                               #(#ArrowButtonSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   744
                                                  #name: 'MoveDownButton'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   745
                                                  #activeHelpKey: #changePositionDown
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   746
                                                  #model: #moveSelectionDown
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   747
                                                  #enableChannel: #canMoveOrAlignSelection
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   748
                                                  #isTriggerOnDown: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   749
                                                  #direction: #down
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   750
                                                  #extent: #(#Point 32 32)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   751
                                              )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   752
                                               #(#ArrowButtonSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   753
                                                  #name: 'MoveUpButton'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   754
                                                  #activeHelpKey: #changePositionUp
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   755
                                                  #model: #moveSelectionUp
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   756
                                                  #enableChannel: #canMoveOrAlignSelection
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   757
                                                  #isTriggerOnDown: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   758
                                                  #direction: #up
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   759
                                                  #extent: #(#Point 32 32)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   760
                                              )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   761
                                            )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   762
                                        )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   763
                                        #horizontalLayout: #fit
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   764
                                        #verticalLayout: #fit
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   765
                                        #horizontalSpace: 0
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   766
                                        #verticalSpace: 0
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   767
                                    )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   768
                                     #(#ActionButtonSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   769
                                        #name: 'openSpecDocumentationButton'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   770
                                        #layout: #(#LayoutFrame -32 1 -1 0 0 1 31 0)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   771
                                        #activeHelpKey: #editOpenSpecDocumentation
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   772
                                        #hasCharacterOrientedLabel: false
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   773
                                        #label: 'helpIcon'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   774
                                        #model: #openSpecDocumentation
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   775
                                    )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   776
                                     #(#ActionButtonSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   777
                                        #name: 'cancelButton'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   778
                                        #layout: #(#LayoutFrame 2 0 -26 1 -1 0.5 -2 1)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   779
                                        #activeHelpKey: #cancel
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   780
                                        #label: 'Cancel'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   781
                                        #tabable: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   782
                                        #model: #cancel
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   783
                                        #enableChannel: #modifiedChannel
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   784
                                    )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   785
                                     #(#ActionButtonSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   786
                                        #name: 'acceptButton'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   787
                                        #layout: #(#LayoutFrame 1 0.5 -26 1 -2 1 -2 1)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   788
                                        #activeHelpKey: #accept
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   789
                                        #label: 'OK'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   790
                                        #tabable: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   791
                                        #model: #accept
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   792
                                        #enableChannel: #modifiedChannel
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   793
                                    )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   794
                                  )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   795
                              )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   796
                              #borderWidth: 1
527
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   797
                          )
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   798
                        )
6dc446339dc2 dialog styles revised
tz
parents: 518
diff changeset
   799
                    )
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   800
                    #level: 1
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   801
                    #handles: #(#Any 0.318868 1.0)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   802
                )
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   803
                 #(#UISubSpecification
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   804
                    #name: 'infoBarSubSpec'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   805
                    #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   806
                    #majorKey: #ToolApplicationModel
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   807
                    #minorKey: #windowSpecForInfoBar
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   808
                )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   809
              )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   810
          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   811
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   812
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   813
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   814
windowSpecWithTranscriptHelp
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   815
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   816
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   817
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   818
    "Do not manually edit this. If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   819
     the UIPainter may not be able to read the specification."
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   820
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   821
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   822
     UIPainter new openOnClass:UIPainter andSelector:#windowSpecWithTranscriptHelp
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   823
     UIPainter new openInterface:#windowSpecWithTranscriptHelp
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   824
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   825
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   826
    <resource: #canvas>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   827
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   828
    ^
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   829
     
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   830
       #(#FullSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   831
          #window: 
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   832
           #(#WindowSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   833
              #name: 'GUI Painter'
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   834
              #layout: #(#LayoutFrame 575 0 296 0 1127 0 833 0)
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   835
              #label: 'GUI Painter'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   836
              #min: #(#Point 10 10)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   837
              #max: #(#Point 1160 870)
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   838
              #bounds: #(#Rectangle 575 296 1128 834)
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   839
              #menu: #menu
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   840
              #usePreferredExtent: false
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   841
          )
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   842
          #component: 
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   843
           #(#SpecCollection
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   844
              #collection: 
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   845
               #(
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   846
                 #(#MenuPanelSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   847
                    #name: 'menuToolbarView'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   848
                    #layout: #(#LayoutFrame -1 0.0 0 0 -1 1.0 32 0)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   849
                    #tabable: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   850
                    #menu: #menuToolbar
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   851
                )
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   852
                 #(#VariableVerticalPanelSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   853
                    #name: 'vpanel'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   854
                    #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   855
                    #component: 
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   856
                     #(#SpecCollection
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   857
                        #collection: 
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   858
                         #(
14db1276218c change the spec;
ca
parents: 295
diff changeset
   859
                           #(#VariableHorizontalPanelSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   860
                              #name: 'hpanel'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   861
                              #component: 
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   862
                               #(#SpecCollection
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   863
                                  #collection: 
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   864
                                   #(
14db1276218c change the spec;
ca
parents: 295
diff changeset
   865
                                     #(#ArbitraryComponentSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   866
                                        #name: 'treeView'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   867
                                        #tabable: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   868
                                        #menu: #menuEdit
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   869
                                        #hasHorizontalScrollBar: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   870
                                        #hasVerticalScrollBar: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   871
                                        #miniScrollerHorizontal: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   872
                                        #miniScrollerVertical: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   873
                                        #component: #treeView
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   874
                                        #hasBorder: false
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   875
                                    )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   876
                                     #(#ViewSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   877
                                        #name: 'specHolderView'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   878
                                        #component: 
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   879
                                         #(#SpecCollection
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   880
                                            #collection: 
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   881
                                             #(
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   882
                                               #(#MenuPanelSpec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   883
                                                  #name: 'menuToolbar2View'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   884
                                                  #layout: #(#LayoutFrame -1 0.0 -2 0 -1 1.0 30 0)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   885
                                                  #enableChannel: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   886
                                                  #tabable: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   887
                                                  #menu: #menuToolbar2
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   888
                                              )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   889
                                               #(#NoteBookViewSpec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   890
                                                  #name: 'noteBook'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   891
                                                  #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -30 1.0)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   892
                                                  #enableChannel: #enableChannel
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   893
                                                  #tabable: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   894
                                                  #model: #tabModel
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   895
                                                  #menu: #tabList
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   896
                                                  #style: #(#FontDescription #helvetica #medium #roman 10)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   897
                                                  #canvas: #noteBookView
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   898
                                              )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   899
                                               #(#HorizontalPanelViewSpec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   900
                                                  #name: 'horizontalPanelView1'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   901
                                                  #layout: #(#LayoutFrame -128 1 -1 0 0 1.0 31 0)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   902
                                                  #component: 
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   903
                                                   #(#SpecCollection
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   904
                                                      #collection: 
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   905
                                                       #(
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   906
                                                         #(#ArrowButtonSpec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   907
                                                            #name: 'MoveLeftButton'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   908
                                                            #activeHelpKey: #changePositionLeft
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   909
                                                            #tabable: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   910
                                                            #model: #moveSelectionLeft
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   911
                                                            #enableChannel: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   912
                                                            #isTriggerOnDown: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   913
                                                            #direction: #left
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   914
                                                            #extent: #(#Point 32 32)
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   915
                                                        )
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   916
                                                         #(#ArrowButtonSpec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   917
                                                            #name: 'MoveRightButton'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   918
                                                            #activeHelpKey: #changePositionRight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   919
                                                            #model: #moveSelectionRight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   920
                                                            #enableChannel: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   921
                                                            #isTriggerOnDown: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   922
                                                            #direction: #right
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   923
                                                            #extent: #(#Point 32 32)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   924
                                                        )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   925
                                                         #(#ArrowButtonSpec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   926
                                                            #name: 'MoveDownButton'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   927
                                                            #activeHelpKey: #changePositionDown
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   928
                                                            #model: #moveSelectionDown
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   929
                                                            #enableChannel: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   930
                                                            #isTriggerOnDown: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   931
                                                            #direction: #down
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   932
                                                            #extent: #(#Point 32 32)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   933
                                                        )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   934
                                                         #(#ArrowButtonSpec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   935
                                                            #name: 'MoveUpButton'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   936
                                                            #activeHelpKey: #changePositionUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   937
                                                            #model: #moveSelectionUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   938
                                                            #enableChannel: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   939
                                                            #isTriggerOnDown: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   940
                                                            #direction: #up
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   941
                                                            #extent: #(#Point 32 32)
547
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
   942
                                                        )
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   943
                                                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   944
                                                  )
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   945
                                                  #horizontalLayout: #fit
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   946
                                                  #verticalLayout: #fit
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   947
                                                  #horizontalSpace: 0
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   948
                                                  #verticalSpace: 0
547
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
   949
                                              )
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
   950
                                               #(#HorizontalPanelViewSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   951
                                                  #name: 'modifyPanel'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   952
                                                  #layout: #(#LayoutFrame 0 0.0 -30 1.0 0 1.0 0 1.0)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   953
                                                  #component: 
547
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
   954
                                                   #(#SpecCollection
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   955
                                                      #collection: 
547
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
   956
                                                       #(
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
   957
                                                         #(#ActionButtonSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   958
                                                            #name: 'cancelButton'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   959
                                                            #activeHelpKey: #cancel
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   960
                                                            #label: 'Cancel'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   961
                                                            #tabable: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   962
                                                            #model: #cancel
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   963
                                                            #enableChannel: #modifiedChannel
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   964
                                                            #extent: #(#Point 183 24)
547
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
   965
                                                        )
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
   966
                                                         #(#ActionButtonSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   967
                                                            #name: 'acceptButton'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   968
                                                            #activeHelpKey: #accept
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   969
                                                            #label: 'OK'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   970
                                                            #tabable: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   971
                                                            #model: #accept
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   972
                                                            #enableChannel: #modifiedChannel
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   973
                                                            #extent: #(#Point 183 24)
547
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
   974
                                                        )
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
   975
                                                      )
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
   976
                                                  )
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   977
                                                  #horizontalLayout: #fitSpace
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   978
                                                  #verticalLayout: #fitSpace
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   979
                                                  #horizontalSpace: 3
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   980
                                                  #verticalSpace: 3
547
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
   981
                                              )
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   982
                                            )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   983
                                        )
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   984
                                        #borderWidth: 1
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   985
                                    )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   986
                                  )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   987
                              )
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   988
                              #level: 1
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   989
                              #handles: #(#Any 0.318264 1.0)
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   990
                          )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   991
                           #(#TextEditorSpec
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   992
                              #name: 'HelpTranscript'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   993
                              #hasHorizontalScrollBar: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   994
                              #hasVerticalScrollBar: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   995
                              #miniScrollerHorizontal: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   996
                              #miniScrollerVertical: true
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   997
                              #isReadOnly: true
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   998
                          )
14db1276218c change the spec;
ca
parents: 295
diff changeset
   999
                        )
14db1276218c change the spec;
ca
parents: 295
diff changeset
  1000
                    )
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1001
                    #handles: #(#Any 0.880597 1.0)
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
  1002
                )
486
2a1024483349 info bar as subSpec to class ToolApplicationModel moved
tz
parents: 482
diff changeset
  1003
                 #(#UISubSpecification
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1004
                    #name: 'infoBarSubSpec'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1005
                    #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1006
                    #majorKey: #ToolApplicationModel
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1007
                    #minorKey: #windowSpecForInfoBar
448
9f115893b4df info bar added
tz
parents: 447
diff changeset
  1008
                )
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1009
              )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1010
          )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1011
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1012
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1013
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1014
!UIPainter class methodsFor:'menu specs'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1015
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1016
menu
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1017
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1018
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1019
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1020
    "Do not manually edit this!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1021
     the MenuEditor may not be able to read the specification."
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1022
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1023
    "
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1024
     MenuEditor new openOnClass:UIPainter andSelector:#menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1025
     (Menu new fromLiteralArrayEncoding:(UIPainter menu)) startUp
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1026
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1027
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1028
    <resource: #menu>
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1029
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1030
    ^
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1031
     
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1032
       #(#Menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1033
          
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1034
           #(
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1035
             #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1036
                #label: 'About'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1037
                #labelImage: #(#ResourceRetriever nil #menuIcon)
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1038
                #submenuChannel: #menuAbout
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1039
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1040
             #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1041
                #label: 'File'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1042
                #enabled: #enableChannel
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1043
                #submenu: 
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1044
                 #(#Menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1045
                    
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1046
                     #(
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1047
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1048
                          #label: 'New'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1049
                          #value: #doNew
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1050
                          #activeHelpKey: #fileNew
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1051
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1052
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1053
                          #label: '-'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1054
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1055
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1056
                          #label: 'Load...'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1057
                          #value: #doLoad
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1058
                          #activeHelpKey: #fileLoad
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1059
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1060
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1061
                          #label: 'Load Subspec...'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1062
                          #value: #doLoadSubspec
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1063
                          #activeHelpKey: #fileLoadSubspec
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1064
                      )
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1065
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1066
                          #label: '-'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1067
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1068
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1069
                          #label: 'Save'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1070
                          #value: #doSave
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1071
                          #activeHelpKey: #fileSave
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1072
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1073
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1074
                          #label: 'Save As...'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1075
                          #value: #doSaveAs
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1076
                          #activeHelpKey: #fileSaveAs
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1077
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1078
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1079
                          #label: 'Define Class And Selector...'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1080
                          #value: #defineClassAndSelector
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1081
                          #activeHelpKey: #fileSaveAs
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1082
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1083
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1084
                          #label: '-'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1085
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1086
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1087
                          #label: 'Pick A Window Spec...'
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1088
                          #value: #doPickAView
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1089
                          #activeHelpKey: #filePickAnInterface
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1090
                      )
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1091
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1092
                          #label: '-'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1093
                      )
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1094
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1095
                          #label: 'Show Window Spec'
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1096
                          #value: #doWindowSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1097
                          #activeHelpKey: #fileShowWindowSpec
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1098
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1099
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1100
                          #label: 'Browse Class'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1101
                          #value: #doBrowseClass
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1102
                          #activeHelpKey: #fileBrowseClass
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1103
                          #enabled: #hasSpecClass
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1104
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1105
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1106
                          #label: 'Browse Aspect Methods'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1107
                          #value: #doBrowseAspectMethods
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1108
                          #activeHelpKey: #fileBrowseAspectMethods
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1109
                          #enabled: #hasSpecClass
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1110
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1111
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1112
                          #label: '-'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1113
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1114
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1115
                          #label: 'Exit'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1116
                          #value: #closeRequest
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1117
                          #activeHelpKey: #fileExit
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1118
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1119
                    ) nil
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1120
                    nil
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1121
                )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1122
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1123
             #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1124
                #label: 'Edit'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1125
                #submenuChannel: #menuEdit
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1126
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1127
             #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1128
                #label: 'Align'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1129
                #submenuChannel: #menuAlign
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1130
            )
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1131
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1132
                #label: 'Generate'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1133
                #submenu: 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1134
                 #(#Menu
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1135
                    
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1136
                     #(
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1137
                       #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1138
                          #label: 'Aspect Methods'
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1139
                          #value: #doGenerateAspectMethods
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1140
                          #activeHelpKey: #generateAspectMethods
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1141
                          #enabled: #hasSpecClass
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1142
                      )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1143
                       #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1144
                          #label: '-'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1145
                      )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1146
                       #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1147
                          #label: 'Hook Methods'
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1148
                          #value: #doGenerateHookMethods
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1149
                          #activeHelpKey: #generateHookMethods
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1150
                          #enabled: #hasSpecClass
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1151
                      )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1152
                    ) nil
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1153
                    nil
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1154
                )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1155
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1156
             #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1157
                #label: 'Test'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1158
                #submenu: 
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1159
                 #(#Menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1160
                    
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1161
                     #(
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1162
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1163
                          #label: 'Start Application'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1164
                          #value: #doStartApplication
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1165
                          #activeHelpKey: #testStartApplication
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
  1166
                      )
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
  1167
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1168
                          #label: '-'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
  1169
                      )
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
  1170
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1171
                          #label: 'Geometry Test Mode'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1172
                          #activeHelpKey: #testGeometryTestMode
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1173
                          #indication: #testMode:
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1174
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1175
                    ) nil
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1176
                    nil
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1177
                )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1178
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1179
             #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1180
                #label: 'Settings'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1181
                #submenu: 
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1182
                 #(#Menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1183
                    
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1184
                     #(
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1185
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1186
                          #label: 'Canvas'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1187
                          #activeHelpKey: #settingsCanvas
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1188
                          #indication: #painterShown
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1189
                      )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1190
                       #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1191
                          #label: 'Gallery'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1192
                          #activeHelpKey: #settingsGallery
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1193
                          #indication: #galleryShown
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1194
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1195
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1196
                          #label: '-'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1197
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1198
                       #(#MenuItem
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1199
                          #label: 'Redefine Aspect Methods'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1200
                          #activeHelpKey: #settingsRedefineAspectMethods
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1201
                          #enabled: #hasSpecClass
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1202
                          #indication: #redefineAspectMethods:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1203
                      )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1204
                       #(#MenuItem
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1205
                          #label: 'Transcript Help'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1206
                          #activeHelpKey: #settingsTranscriptHelp
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1207
                          #indication: #transcriptHelp:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1208
                      )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1209
                       #(#MenuItem
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1210
                          #label: '-'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1211
                      )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1212
                       #(#MenuItem
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1213
                          #label: 'Fonts'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1214
                          #submenuChannel: #menuFont
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1215
                      )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1216
                       #(#MenuItem
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1217
                          #label: '-'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1218
                      )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1219
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1220
                          #label: 'Undo Manager...'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1221
                          #value: #openUndoMenu
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1222
                          #activeHelpKey: #settingsUndoManager
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1223
                      )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1224
                       #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1225
                          #label: 'Grid Manager...'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1226
                          #value: #gridMenu
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1227
                          #activeHelpKey: #settingsGridManager
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1228
                      )
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1229
                    ) nil
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1230
                    nil
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1231
                )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1232
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1233
             #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1234
                #label: 'History'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1235
                #submenuChannel: #menuHistory
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1236
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1237
             #(#MenuItem
692
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1238
                #label: 'Help'
0530a994f2c8 removed 'add' menu.
Claus Gittinger <cg@exept.de>
parents: 685
diff changeset
  1239
                #startGroup: #right
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1240
                #submenu: 
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1241
                 #(#Menu
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1242
                    
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1243
                     #(
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1244
                       #(#MenuItem
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1245
                          #label: 'Tutorial'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1246
                          #translateLabel: true
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1247
                          #value: #openHTMLDocument:
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1248
                          #activeHelpKey: #helpTutorial
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1249
                          #argument: 'tools/uipainter/TOP.html'
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1250
                      )
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1251
                       #(#MenuItem
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1252
                          #label: '-'
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1253
                      )
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1254
                       #(#MenuItem
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1255
                          #label: 'Functions'
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1256
                          #translateLabel: true
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1257
                          #value: #openHTMLDocument:
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1258
                          #activeHelpKey: #helpTutorial
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1259
                          #argument: 'tools/uipainter/Functions.html'
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1260
                      )
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1261
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1262
                          #label: 'Examples'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1263
                          #translateLabel: true
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1264
                          #value: #openHTMLDocument:
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1265
                          #activeHelpKey: #helpTutorial
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1266
                          #argument: 'tools/uipainter/Examples.html'
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1267
                      )
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1268
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1269
                          #label: '-'
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1270
                      )
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1271
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1272
                          #label: 'Show Help Texts'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1273
                          #translateLabel: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1274
                          #activeHelpKey: #helpShowHelp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1275
                          #indication: #showHelp:
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1276
                      )
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1277
                    ) nil
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1278
                    nil
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1279
                )
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1280
            )
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1281
          ) nil
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1282
          nil
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1283
      )
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1284
!
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1285
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1286
menuAlign
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1287
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1288
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1289
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1290
    "Do not manually edit this. If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1291
     the MenuEditor may not be able to read the specification."
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1292
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1293
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1294
     MenuEditor new openOnClass:UIPainter andSelector:#menuAlign
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1295
     (Menu new fromLiteralArrayEncoding:(UIPainter menuAlign)) startUp
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1296
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1297
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1298
    <resource: #menu>
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1299
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1300
    ^
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1301
     
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1302
       #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1303
          
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1304
           #(
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1305
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1306
                #label: 'Left'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1307
                #value: #alignSelectionLeft
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1308
                #activeHelpKey: #alignSelectionLeft
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1309
                #enabled: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1310
                #labelImage: #(#ResourceRetriever #UIPainter #iconAlignL 'Left')
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1311
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1312
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1313
                #label: 'Right'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1314
                #value: #alignSelectionRight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1315
                #activeHelpKey: #alignSelectionRight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1316
                #enabled: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1317
                #labelImage: #(#ResourceRetriever #UIPainter #iconAlignR 'Right')
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1318
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1319
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1320
                #label: 'Left & Right'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1321
                #value: #alignSelectionLeftAndRight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1322
                #activeHelpKey: #alignSelectionLeftAndRight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1323
                #enabled: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1324
                #labelImage: #(#ResourceRetriever #UIPainter #iconAlignLR 'Left & Right')
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1325
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1326
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1327
                #label: 'Top'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1328
                #value: #alignSelectionTop
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1329
                #activeHelpKey: #alignSelectionTop
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1330
                #enabled: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1331
                #labelImage: #(#ResourceRetriever #UIPainter #iconAlignT 'Top')
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1332
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1333
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1334
                #label: 'Bottom'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1335
                #value: #alignSelectionBottom
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1336
                #activeHelpKey: #alignSelectionBottom
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1337
                #enabled: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1338
                #labelImage: #(#ResourceRetriever #UIPainter #iconAlignB 'Bottom')
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1339
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1340
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1341
                #label: 'Top & Bottom'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1342
                #value: #alignSelectionTopAndBottom
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1343
                #activeHelpKey: #alignSelectionTopAndBottom
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1344
                #enabled: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1345
                #labelImage: #(#ResourceRetriever #UIPainter #iconAlignTB 'Top & Bottom')
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1346
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1347
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1348
                #label: '-'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1349
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1350
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1351
                #label: 'Centered Horizontal'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1352
                #value: #alignSelectionCenterHor
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1353
                #activeHelpKey: #alignSelectionCenterHor
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1354
                #enabled: #canMoveOrAlignSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1355
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1356
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1357
                #label: 'Centered Vertical'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1358
                #value: #alignSelectionCenterVer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1359
                #activeHelpKey: #alignSelectionCenterVer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1360
                #enabled: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1361
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1362
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1363
                #label: '-'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1364
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1365
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1366
                #label: 'Center Horizontal In Frame'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1367
                #value: #centerSelectionHor
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1368
                #activeHelpKey: #centerSelectionHor
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1369
                #enabled: #canMoveOrAlignSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1370
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1371
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1372
                #label: 'Center Vertical In Frame'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1373
                #value: #centerSelectionVer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1374
                #activeHelpKey: #centerSelectionVer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1375
                #enabled: #canMoveOrAlignSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1376
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1377
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1378
                #label: '-'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1379
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1380
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1381
                #label: 'Spread Horizontal'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1382
                #value: #spreadSelectionHor
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1383
                #activeHelpKey: #spreadSelectionHor
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1384
                #enabled: #canMoveOrAlignSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1385
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1386
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1387
                #label: 'Spread Vertical'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1388
                #value: #spreadSelectionVer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1389
                #activeHelpKey: #spreadSelectionVer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1390
                #enabled: #canMoveOrAlignSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1391
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1392
          ) nil
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1393
          nil
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1394
      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1395
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1396
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1397
menuEdit
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1398
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1399
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1400
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1401
    "Do not manually edit this. If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1402
     the MenuEditor may not be able to read the specification."
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1403
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1404
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1405
     MenuEditor new openOnClass:UIPainter andSelector:#menuEdit
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1406
     (Menu new fromLiteralArrayEncoding:(UIPainter menuEdit)) startUp
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1407
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1408
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1409
    <resource: #menu>
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1410
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1411
    ^
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1412
     
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1413
       #(#Menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1414
          
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1415
           #(
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1416
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1417
                #label: 'Undo'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1418
                #nameKey: #undo
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1419
                #value: #undoLast
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1420
                #activeHelpKey: #editUndo
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1421
                #enabled: #hasUndoHistory
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1422
                #shortcutKeyCharacter: #Cmdu
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1423
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1424
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1425
                #label: '-'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1426
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1427
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1428
                #label: 'Cut'
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1429
                #value: #deleteSelection
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1430
                #activeHelpKey: #editCut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1431
                #enabled: #valueOfCanCut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1432
                #shortcutKeyCharacter: #Cut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1433
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1434
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1435
                #label: 'Copy'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1436
                #value: #copySelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1437
                #activeHelpKey: #editCopy
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1438
                #enabled: #valueOfCanCopy
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1439
                #shortcutKeyCharacter: #Copy
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1440
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1441
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1442
                #label: 'Paste'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1443
                #value: #pasteBuffer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1444
                #activeHelpKey: #pasteBuffer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1445
                #enabled: #valueOfCanPaste
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1446
                #shortcutKeyCharacter: #Paste
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1447
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1448
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1449
                #label: 'Delete'
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1450
                #value: #deleteTotalSelection
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1451
                #activeHelpKey: #editDelete
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1452
                #enabled: #valueOfCanCut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1453
                #shortcutKeyCharacter: #Delete
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1454
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1455
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1456
                #label: '-'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1457
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1458
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1459
                #label: 'Paste With Layout'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1460
                #value: #pasteWithLayout
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1461
                #activeHelpKey: #pasteWithLayout
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1462
                #enabled: #valueOfCanPasteWithKeepingLayout
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1463
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1464
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1465
                #label: '-'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1466
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1467
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1468
                #label: 'Move'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1469
                #submenuChannel: #menuMove
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1470
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1471
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1472
                #label: 'Dimension'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1473
                #enabled: #hasSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1474
                #submenu: 
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1475
                 #(#Menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1476
                    
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1477
                     #(
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1478
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1479
                          #label: 'Default Extent'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1480
                          #value: #setToDefaultExtent
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1481
                          #activeHelpKey: #editDimensionDefaultExtent
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1482
                          #enabled: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1483
                      )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1484
                       #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1485
                          #label: 'Default Width'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1486
                          #value: #setToDefaultWidth
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1487
                          #activeHelpKey: #editDimensionDefaultWidth
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1488
                          #enabled: #canMoveOrAlignSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1489
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1490
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1491
                          #label: 'Default Height'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1492
                          #value: #setToDefaultHeight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1493
                          #activeHelpKey: #editDimensionDefaultHeight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1494
                          #enabled: #canMoveOrAlignSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1495
                      )
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1496
                       #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1497
                          #label: '-'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1498
                      )
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1499
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1500
                          #label: 'Copy Layout'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1501
                          #value: #copyLayout
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1502
                          #activeHelpKey: #editDimensionCopyLayout
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1503
                          #enabled: #hasSingleSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1504
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1505
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1506
                          #label: 'Copy Extent'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1507
                          #value: #copyExtent
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1508
                          #activeHelpKey: #editDimensionCopyExtent
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1509
                          #enabled: #hasSingleSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1510
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1511
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1512
                          #label: '-'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1513
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1514
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1515
                          #label: 'Paste Layout'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1516
                          #value: #pasteLayout
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1517
                          #activeHelpKey: #editDimensionPasteLayout
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1518
                          #enabled: #canMoveOrAlignSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1519
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1520
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1521
                          #label: 'Paste Extent'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1522
                          #value: #pasteExtent
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1523
                          #activeHelpKey: #editDimensionPasteExtent
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1524
                          #enabled: #canMoveOrAlignSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1525
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1526
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1527
                          #label: 'Paste Width'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1528
                          #value: #pasteWidth
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1529
                          #activeHelpKey: #editDimensionPasteWidth
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1530
                          #enabled: #canMoveOrAlignSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1531
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1532
                       #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1533
                          #label: 'Paste Height'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1534
                          #value: #pasteHeight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1535
                          #activeHelpKey: #editDimensionPasteHeight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1536
                          #enabled: #canMoveOrAlignSelection
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1537
                      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1538
                    ) nil
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1539
                    nil
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1540
                )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1541
            )
721
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1542
             #(#MenuItem
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1543
                #label: '-'
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1544
            )
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1545
             #(#MenuItem
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1546
                #label: 'Open Spec Documentation'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1547
                #value: #openSpecDocumentation
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1548
                #activeHelpKey: #editOpenSpecDocumentation
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1549
            )
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1550
             #(#MenuItem
721
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1551
                #label: 'Inspect Spec'
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1552
                #value: #inspectSpec
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1553
                #activeHelpKey: #editInspectSpec
721
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1554
            )
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1555
          ) nil
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1556
          nil
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1557
      )
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1558
!
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1559
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1560
menuMove
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1561
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1562
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1563
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1564
    "Do not manually edit this. If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1565
     the MenuEditor may not be able to read the specification."
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1566
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1567
    "
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1568
     MenuEditor new openOnClass:UIPainter andSelector:#menuMove
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1569
     (Menu new fromLiteralArrayEncoding:(UIPainter menuMove)) startUp
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1570
    "
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1571
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1572
    <resource: #menu>
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1573
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1574
    ^
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1575
     
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1576
       #(#Menu
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1577
          
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1578
           #(
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1579
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1580
                #label: 'Up'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1581
                #value: #doStepUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1582
                #activeHelpKey: #moveWidgetUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1583
                #enabled: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1584
                #labelImage: #(#ResourceRetriever #ToolApplicationModel #upIcon 'Up')
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1585
            )
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1586
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1587
                #label: 'Down'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1588
                #value: #doStepDown
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1589
                #activeHelpKey: #moveWidgetDown
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1590
                #enabled: #canMoveOrAlignSelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1591
                #labelImage: #(#ResourceRetriever #ToolApplicationModel #downIcon 'Down')
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1592
            )
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1593
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1594
                #label: 'Into'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1595
                #value: #doStepIn
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1596
                #activeHelpKey: #moveWidgetInto
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1597
                #enabled: #canMoveSelectionIntoContainer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1598
                #labelImage: #(#ResourceRetriever #ToolApplicationModel #downRightIcon 'Into')
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1599
            )
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1600
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1601
                #label: 'Out'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1602
                #value: #doStepOut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1603
                #activeHelpKey: #moveWidgetOut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1604
                #enabled: #canMoveSelectionOutOfContainer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1605
                #labelImage: #(#ResourceRetriever #ToolApplicationModel #leftDownIcon 'Out')
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1606
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1607
          ) nil
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1608
          nil
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1609
      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1610
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1611
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1612
menuToolbar
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1613
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1614
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1615
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1616
    "Do not manually edit this. If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1617
     the MenuEditor may not be able to read the specification."
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1618
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1619
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1620
     MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1621
     (Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar)) startUp
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1622
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1623
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1624
    <resource: #menu>
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1625
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1626
    ^
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1627
     
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1628
       #(#Menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1629
          
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1630
           #(
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1631
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1632
                #label: 'Start'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1633
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1634
                #value: #doStartApplication
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1635
                #activeHelpKey: #testStartApplication
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1636
                #labelImage: #(#ResourceRetriever nil #startIcon)
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1637
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1638
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1639
                #label: ''
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1640
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1641
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1642
                #label: 'New'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1643
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1644
                #value: #doNew
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1645
                #activeHelpKey: #fileNew
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1646
                #labelImage: #(#ResourceRetriever nil #newIcon)
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1647
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1648
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1649
                #label: 'Load'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1650
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1651
                #value: #doLoad
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1652
                #activeHelpKey: #fileLoad
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1653
                #labelImage: #(#ResourceRetriever nil #loadIcon)
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1654
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1655
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1656
                #label: 'Save'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1657
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1658
                #value: #doSave
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1659
                #activeHelpKey: #fileSave
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1660
                #labelImage: #(#ResourceRetriever nil #saveIcon)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1661
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1662
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1663
                #label: ''
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1664
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1665
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1666
                #label: 'Cut'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1667
                #isButton: true
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1668
                #value: #deleteSelection
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1669
                #activeHelpKey: #editCut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1670
                #enabled: #valueOfCanCut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1671
                #labelImage: #(#ResourceRetriever nil #cutIcon)
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1672
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1673
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1674
                #label: 'Copy'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1675
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1676
                #value: #copySelection
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1677
                #activeHelpKey: #editCopy
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1678
                #enabled: #valueOfCanCopy
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1679
                #labelImage: #(#ResourceRetriever nil #copyIcon)
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1680
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1681
             #(#MenuItem
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1682
                #label: 'Paste With Layout'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1683
                #isButton: true
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1684
                #value: #pasteWithLayout
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1685
                #activeHelpKey: #editPaste
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1686
                #enabled: #valueOfCanPasteWithKeepingLayout
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1687
                #labelImage: #(#ResourceRetriever nil #pasteIcon)
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1688
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1689
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1690
                #label: 'Delete'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1691
                #isButton: true
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1692
                #value: #deleteTotalSelection
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1693
                #activeHelpKey: #editDelete
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1694
                #enabled: #valueOfCanCut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1695
                #labelImage: #(#ResourceRetriever nil #deleteIcon)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1696
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1697
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1698
                #label: ''
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1699
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1700
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1701
                #label: 'Move Up'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1702
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1703
                #value: #doStepUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1704
                #activeHelpKey: #moveWidgetUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1705
                #enabled: #canChangeOrderInContainer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1706
                #labelImage: #(#ResourceRetriever nil #upIcon)
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1707
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1708
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1709
                #label: 'Move Down'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1710
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1711
                #value: #doStepDown
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1712
                #activeHelpKey: #moveWidgetDown
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1713
                #enabled: #canChangeOrderInContainer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1714
                #labelImage: #(#ResourceRetriever nil #downIcon)
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1715
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1716
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1717
                #label: 'Move Into'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1718
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1719
                #value: #doStepIn
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1720
                #activeHelpKey: #moveWidgetInto
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1721
                #enabled: #canMoveSelectionIntoContainer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1722
                #labelImage: #(#ResourceRetriever nil #downRightIcon)
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1723
            )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1724
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1725
                #label: 'Move Out'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1726
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1727
                #value: #doStepOut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1728
                #activeHelpKey: #moveWidgetOut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1729
                #enabled: #canMoveSelectionOutOfContainer
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1730
                #labelImage: #(#ResourceRetriever nil #leftDownIcon)
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1731
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1732
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1733
                #label: ''
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1734
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1735
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1736
                #label: 'Canvas'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1737
                #activeHelpKey: #settingsCanvas
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1738
                #indication: #painterShown
437
6317d2f08662 button style added
tz
parents: 394
diff changeset
  1739
            )
6317d2f08662 button style added
tz
parents: 394
diff changeset
  1740
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1741
                #label: 'Gallery'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1742
                #activeHelpKey: #settingsGallery
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1743
                #indication: #galleryShown
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1744
            )
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1745
          ) nil
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1746
          nil
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1747
      )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1748
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1749
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1750
menuToolbar2
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1751
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1752
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1753
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1754
    "Do not manually edit this. If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1755
     the MenuEditor may not be able to read the specification."
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1756
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1757
    "
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1758
     MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar2
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1759
     (Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar2)) startUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1760
    "
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1761
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1762
    <resource: #menu>
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1763
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1764
    ^
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1765
     
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1766
       #(#Menu
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1767
          
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1768
           #(
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1769
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1770
                #label: 'Align Left'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1771
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1772
                #value: #alignSelectionLeft
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1773
                #activeHelpKey: #alignSelectionLeft
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1774
                #labelImage: #(#ResourceRetriever nil #iconAlignL)
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1775
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1776
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1777
                #label: 'Align Right'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1778
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1779
                #value: #alignSelectionRight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1780
                #activeHelpKey: #alignSelectionRight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1781
                #labelImage: #(#ResourceRetriever nil #iconAlignR)
437
6317d2f08662 button style added
tz
parents: 394
diff changeset
  1782
            )
6317d2f08662 button style added
tz
parents: 394
diff changeset
  1783
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1784
                #label: 'Align Left & Right'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1785
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1786
                #value: #alignSelectionLeftAndRight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1787
                #activeHelpKey: #alignSelectionLeftAndRight
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1788
                #labelImage: #(#ResourceRetriever nil #iconAlignLR)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1789
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1790
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1791
                #label: ''
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1792
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1793
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1794
                #label: 'Align Top'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1795
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1796
                #value: #alignSelectionTop
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1797
                #activeHelpKey: #alignSelectionTop
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1798
                #labelImage: #(#ResourceRetriever nil #iconAlignT)
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1799
            )
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1800
             #(#MenuItem
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1801
                #label: 'Align Bottom'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1802
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1803
                #value: #alignSelectionBottom
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1804
                #activeHelpKey: #alignSelectionBottom
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1805
                #labelImage: #(#ResourceRetriever nil #iconAlignB)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1806
            )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1807
             #(#MenuItem
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1808
                #label: 'Align Top & Bottom'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1809
                #isButton: true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1810
                #value: #alignSelectionTopAndBottom
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1811
                #activeHelpKey: #alignSelectionTopAndBottom
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1812
                #labelImage: #(#ResourceRetriever nil #iconAlignTB)
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1813
            )
437
6317d2f08662 button style added
tz
parents: 394
diff changeset
  1814
          ) nil
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1815
          nil
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1816
      )
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1817
! !
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1818
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1819
!UIPainter methodsFor:'accessing'!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1820
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1821
redefineAspectMethods
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1822
    "redefine methods yes or no. If a method is defined in super class
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1823
     should the message be reinstalled ?
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1824
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1825
    ^ UIPainterView redefineAspectMethods
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1826
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1827
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1828
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1829
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1830
redefineAspectMethods:aBoolean
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1831
    "redefine methods yes or no. If a method is defined in super class
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1832
     should the message be reinstalled ?
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1833
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1834
    UIPainterView redefineAspectMethods:aBoolean
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1835
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1836
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1837
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1838
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1839
transcriptHelp
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1840
    "get whether the help transcript is turned on/off
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1841
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1842
    ^self class settings at: #transcriptHelp 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1843
        ifAbsent: [self class settings at: #transcriptHelp put: false]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1844
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1845
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1846
transcriptHelp:aBoolean
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1847
    "turn on/off the help transcript
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1848
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1849
    self class settings at: #transcriptHelp put: aBoolean
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1850
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1851
! !
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1852
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1853
!UIPainter methodsFor:'actions'!
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1854
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1855
accept
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1856
    "accept changes done to the specification. The component assigned to the
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1857
     specification will change immediately dependant on the attributes derived
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1858
     from the specification.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1859
    "
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1860
    |layout spec prop key layoutTool|
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1861
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1862
    self isLayoutToolSelected ifTrue:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1863
        layoutTool := self layoutTool.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1864
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1865
        (layout := layoutTool layout) notNil ifTrue:[
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1866
            layoutTool layoutType == #Extent ifTrue:[
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1867
                layoutTool layoutView == self painter topView ifTrue:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1868
                    layoutTool layoutView extent:layout
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1869
                ] ifFalse:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1870
                    self painter setExtent:layout
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1871
                ]
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1872
            ] ifFalse:[
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  1873
                self painter setLayout:layout
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1874
            ]
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1875
        ]
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  1876
    ] ifFalse:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1877
        spec := self specTool specification.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1878
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1879
        self isHelpToolSelected ifTrue:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1880
            self helpTool accept.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1881
            key  := self helpTool helpKey.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1882
            prop := treeView propertySelected.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1883
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1884
            prop notNil ifTrue:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1885
                prop spec activeHelpKey:key
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1886
            ].
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1887
            spec activeHelpKey:key.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1888
        ] ifFalse:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1889
            self painter updateFromSpec:spec.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1890
        ]
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1891
    ].             
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1892
    self modifiedChannel value:false.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1893
    modified := true.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1894
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1895
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1896
addWidget: aSpecClass
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1897
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1898
    self addWidgetOfSpec: (Array with: (Smalltalk at: aSpecClass) new)
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1899
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1900
!
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1901
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1902
addWidgetOfSpec: aSpec
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1903
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1904
    |newSel|  
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1905
    (newSel := self pasteSpecifications:aSpec keepLayout:false at:0@0) notNil
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1906
    ifTrue:
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1907
    [
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1908
        self select: newSel
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1909
    ]
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1910
    ifFalse:
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1911
    [   
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1912
        ((treeView selection size = 0) or: [treeView selectedNode isNil])
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1913
        ifTrue:
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1914
        [                          
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1915
            treeView selection: #(1).
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1916
        ]
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1917
        ifFalse:
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1918
        [  
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1919
            treeView selectNode: (treeView detectNode: [:n| n = treeView selectedNode parent])
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1920
        ].
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1921
        self addWidgetOfSpec: aSpec
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1922
    ]
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1923
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1924
!
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  1925
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1926
cancel
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1927
    "cancel all changes done to the specification; reread attributes from the
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1928
     assigned component
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1929
    "
328
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1930
    |spec key view|
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1931
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  1932
    self isModified ifTrue:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1933
        (spec := self painter specForSelection) notNil ifTrue:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1934
            key := spec activeHelpKey.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1935
        ].
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1936
        self helpTool helpKey:key.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  1937
        self specTool specification:spec.
328
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1938
        view := self layoutTool layoutView.
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1939
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1940
        self setViewInLayoutTool:view.
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1941
        spec class == DataSetSpec ifTrue:[
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1942
            view columnDescriptors:(spec columns)
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  1943
        ].        
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1944
        self modifiedChannel value:false.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1945
        modified := false
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  1946
    ]
137
ca
parents: 136
diff changeset
  1947
!
ca
parents: 136
diff changeset
  1948
721
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1949
inspectSpec
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1950
    "inspect the selected specification"
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1951
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1952
    |spec|
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1953
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1954
    (spec := self painter specForSelection) isNil ifTrue:[
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1955
        treeView isCanvasSelected ifTrue:[
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1956
            spec := treeView canvasSpec.
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1957
        ]
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1958
    ].
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1959
    spec notNil ifTrue:[
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1960
        spec inspect
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1961
    ]
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1962
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1963
    "Created: / 10.3.1998 / 18:11:42 / stefan"
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1964
    "Modified: / 10.3.1998 / 18:19:55 / stefan"
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1965
!
325eba9f37b7 Add menu entry to inspect selected specification
Stefan Vogel <sv@exept.de>
parents: 713
diff changeset
  1966
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1967
moveSelectionDown
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1968
    "move selected components down
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1969
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1970
    self painter moveSelectionDown
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1971
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1972
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1973
moveSelectionLeft
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1974
    "move selected components left
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1975
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1976
    self painter moveSelectionLeft
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1977
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1978
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1979
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1980
moveSelectionRight
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1981
    "move selected components right
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1982
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1983
    self painter moveSelectionRight
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1984
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1985
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1986
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1987
moveSelectionUp
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1988
    "move selected components up
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1989
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1990
    self painter moveSelectionUp
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1991
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1992
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1993
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1994
openSpecDocumentation
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1995
    "open documentation for the selected specification"
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1996
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1997
    |spec|
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1998
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1999
    (spec := self painter specForSelection) isNil ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2000
        treeView isCanvasSelected ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2001
            spec := treeView canvasSpec.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2002
        ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2003
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2004
    spec notNil ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2005
        HTMLDocumentView openFullOnDocumentationFile: 'tools/uipainter/', spec userFriendlyName,'.html'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2006
    ]
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2007
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2008
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2009
!UIPainter methodsFor:'aspects'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2010
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  2011
aspectFor:aKey
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  2012
    "aspect for a key
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  2013
    "
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  2014
  ^ aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  2015
!
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  2016
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  2017
canChangeOrderInContainer
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  2018
    "returns a boolean value holder which is true if the component order can be changed within their container.
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  2019
    "
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  2020
    ^ builder booleanValueAspectFor:#canChangeOrderInContainer
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  2021
!
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  2022
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2023
canMoveOrAlignSelection
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2024
    "returns a boolean value holder which is true in case that any selection exists
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2025
     and all widgets in the selection can change its layout through to a move or
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2026
     align operation
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2027
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2028
    ^ builder booleanValueAspectFor:#canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2029
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2030
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2031
canMoveSelectionIntoContainer
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2032
    "returns a boolean value holder which is true in case that one component is selected
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2033
     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
  2034
     the same container.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2035
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2036
    ^ builder booleanValueAspectFor:#canMoveSelectionIntoContainer
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2037
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2038
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2039
canMoveSelectionOutOfContainer
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2040
    "returns a boolean value holder which is true in case that one component is selected
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2041
     which is contained within another component
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2042
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2043
    ^ builder booleanValueAspectFor:#canMoveSelectionOutOfContainer
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2044
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2045
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  2046
enableChannel
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  2047
    "true if modifications are allowed otherwise running test
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  2048
    "
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  2049
  ^ self painter enableChannel
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2050
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2051
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2052
galleryShown
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2053
    "returns a boolean value holder which is set to true if the gallery is shown
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2054
    "
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2055
    |holder|
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2056
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2057
    (holder := builder bindingAt:#galleryShown) isNil ifTrue:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2058
        builder aspectAt:#galleryShown put:(holder :=  true asValue).
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2059
        holder addDependent:self
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2060
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2061
    ^ holder
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2062
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2063
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2064
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2065
hasOneSelectionOtherThanCanvas
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2066
    "returns a value holder which is true in case that one component is selected
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2067
     other than the canvas.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2068
    "               
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2069
    ^ builder booleanValueAspectFor:#hasOneSelectionOtherThanCanvas
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2070
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2071
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2072
modifiedChannel
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2073
    "returns a boolean value holder which is set to true if something is modified
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2074
     and not accepted
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2075
    "
256
d8643afc8203 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 254
diff changeset
  2076
    ^ builder booleanValueAspectFor:#modifiedChannel
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2077
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2078
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2079
noteBookView
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2080
    "returns the notebook view; initialize components within the notebook
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2081
    "
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2082
    |noteBook channel helpTool layoutTool specTool|
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2083
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2084
    (noteBook := builder bindingAt:#noteBookView) isNil ifTrue:[
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2085
        noteBook   := View new.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2086
        layoutTool := UILayoutTool new.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2087
        helpTool   := UIHelpTool   new.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2088
        helpTool helpSpecFrom:specClass.
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2089
        specTool   := UISpecificationTool new.
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  2090
        channel    := self modifiedChannel.
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2091
152
ca
parents: 149
diff changeset
  2092
        layoutTool masterApplication:self.
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2093
        specTool   masterApplication:self.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2094
        helpTool   masterApplication:self.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2095
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2096
        layoutCanvas := SubCanvas origin:0.0@0.0 corner:1.0@1.0 in:noteBook.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2097
        helpCanvas   := SubCanvas origin:0.0@0.0 corner:1.0@1.0 in:noteBook.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2098
        specCanvas   := SubCanvas origin:0.0@0.0 corner:1.0@1.0 in:noteBook.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2099
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2100
        layoutCanvas client:layoutTool.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2101
        helpCanvas   client:helpTool.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2102
        specTool builder:(specCanvas client:specTool).
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2103
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2104
        layoutTool masterApplication:self.
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2105
        specTool   masterApplication:self.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2106
        helpTool   masterApplication:self.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2107
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2108
        layoutTool modifiedHolder:channel.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2109
        helpTool   modifiedHolder:channel.
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2110
        specTool   modifiedHolder:channel.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2111
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2112
        builder aspectAt:#noteBookView put:noteBook.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2113
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2114
    ^ noteBook
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2115
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2116
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2117
painterShown
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2118
    "returns a boolean value holder which is set to true if the painter is shown
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2119
    "
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2120
    |holder|
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2121
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2122
    (holder := builder bindingAt:#painterShown) isNil ifTrue:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2123
        builder aspectAt:#painterShown put:(holder :=  true asValue).
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2124
        holder addDependent:self
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2125
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2126
    ^ holder
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2127
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2128
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2129
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2130
tabList
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2131
    "returns a value holder which keeps a list of labels assigned to the tabs
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2132
    "
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2133
    |holder|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2134
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2135
    (holder := builder bindingAt:#tabList) isNil ifTrue:[
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2136
        builder aspectAt:#tabList put:(holder :=  ValueHolder new).
144
bca8b1953ee8 checkin from browser
ca
parents: 142
diff changeset
  2137
        holder value:#( 'Properties' ).
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2138
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2139
    ^ holder
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2140
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2141
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2142
tabModel
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2143
    "returns a value holder which keeps the current name of the tab selected
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2144
    "
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2145
    |holder|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2146
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2147
    (holder := builder bindingAt:#tabModel) isNil ifTrue:[
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2148
        holder := AspectAdaptor new subject:self; forAspect:#tabSelection.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2149
        builder aspectAt:#tabModel put:holder.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2150
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2151
    ^ holder
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2152
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2153
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2154
treeView
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2155
    "returns the selection tree view which holds all widget identifiers
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2156
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2157
    ^ treeView
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2158
!
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2159
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2160
valueOfCanPasteWithKeepingLayout
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2161
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2162
    |holder|
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2163
    (holder := builder bindingAt:#valueOfCanPasteWithKeepingLayout) isNil ifTrue:[
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2164
        builder aspectAt:#valueOfCanPasteWithKeepingLayout put:(holder :=  false asValue).
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2165
    ].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2166
    ^ holder
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2167
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2168
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2169
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2170
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2171
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2172
!UIPainter methodsFor:'building editors'!
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2173
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2174
openDataSetColumnEditor
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2175
    "opens a column editor
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2176
    "
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2177
    |cls aspect editor columns|
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2178
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2179
    cls := self resolveName:specClass.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2180
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2181
    cls isNil ifTrue:[
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2182
        ^ self information:'No application class defined yet!!'
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2183
    ].
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2184
    aspect := self specTool specification columns.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2185
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2186
    editor := DataSetBuilder new.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2187
    editor masterApplication:self.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2188
    editor columns:aspect fromView:(self layoutTool layoutView).
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2189
    editor rowClassName:(self specTool specification rowClassName).
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2190
    editor openModal.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2191
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2192
    editor hasChanged ifTrue:[
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2193
        self specTool specification columns:(editor columns).
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2194
        self specTool specification rowClassName:(editor rowClassName).
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2195
        self modifiedChannel value:true.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2196
    ].
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2197
!
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2198
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2199
openEditMenu
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2200
    "opens a menu editor on current widget
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2201
    "
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2202
    |cls selectorOrMenu editor selectedSpec|
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2203
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2204
    cls := self resolveName:specClass.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2205
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2206
    cls isNil ifTrue:[
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2207
        ^ self warn:'No application class defined yet!!'
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2208
    ].
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2209
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2210
    cls notNil ifTrue:[
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2211
        (selectorOrMenu := self specTool specification menuSelector) notNil ifTrue:[
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2212
            selectorOrMenu := selectorOrMenu asSymbol
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2213
        ] ifFalse:[
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2214
            "/ cg: q&d hack ...
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2215
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2216
            (selectedSpec := treeView propertySelected) notNil ifTrue:[
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2217
                Object errorSignal handle:[:ex |
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2218
                    selectorOrMenu := nil.
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2219
                ] do:[
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2220
                    selectorOrMenu := selectedSpec view asMenu.
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2221
                ]
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2222
            ].
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2223
        ].
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2224
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2225
        editor := MenuEditor new.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2226
        editor masterApplication:self.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2227
        editor specClass: cls.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2228
        editor useHelpTool: self helpTool. 
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2229
        selectorOrMenu class ~~ Menu
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2230
            ifTrue:  [editor openModalOnClass:cls andSelector:selectorOrMenu]
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2231
            ifFalse: [editor openModalOnMenu:selectorOrMenu].
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2232
        self helpTool updateList.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2233
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  2234
        editor specSelector ~= selectorOrMenu ifTrue:[
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  2235
            editor hasSaved ifTrue:[
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  2236
                self specTool specification menuSelector:editor specSelector.
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2237
                self modifiedChannel value:true.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2238
                self accept
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2239
            ]
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2240
        ].
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2241
    ]
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2242
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2243
    "Modified: 31.7.1997 / 14:26:13 / cg"
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2244
!
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2245
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2246
openHierarchicalListEditor
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2247
    "opens a hierarchical list editor editor on current widget
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2248
    "
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2249
    |cls aspect editor|
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2250
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2251
    cls := self resolveName:specClass.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2252
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2253
    cls isNil ifTrue:[
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2254
        ^ self information:'No application class defined yet!!'
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2255
    ].
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2256
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2257
    (aspect := self specTool specification hierarchicalList) notNil ifTrue:[
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2258
        aspect := aspect asSymbol
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2259
    ].
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  2260
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2261
    editor := HierarchicalListEditor new.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2262
    editor masterApplication:self.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2263
    editor openModalOnClass:cls andSelector:aspect.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2264
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  2265
    editor specSelector ~= aspect ifTrue:[
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  2266
        editor hasSaved ifTrue:[
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  2267
            self specTool specification hierarchicalList:editor specSelector.
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2268
            self modifiedChannel value:true.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2269
            self accept
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2270
        ]
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2271
    ]
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2272
!
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2273
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2274
openSubSpecGUIPainter
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2275
    "opens a GUI Painter on the current subspecification"
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2276
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2277
    |spec cls meta sel|
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2278
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2279
    spec := self specTool specification.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2280
    cls := spec majorKey.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2281
    cls isNil ifTrue:[
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2282
        cls := specClass.
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2283
    ].
628
8992bc061c11 fixed openSubPainter
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
  2284
    (cls isNil or:[(cls := self resolveName:cls) isNil]) ifTrue:[
8992bc061c11 fixed openSubPainter
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
  2285
        spec majorKey isNil ifTrue:[
8992bc061c11 fixed openSubPainter
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
  2286
            ^ self warn:'Cannot find class (no majorKey specified)'.
8992bc061c11 fixed openSubPainter
Claus Gittinger <cg@exept.de>
parents: 625
diff changeset
  2287
        ].
657
34728d455e7b error of opening a GUI Painter on a sub spec with empty fields fixed
tz
parents: 656
diff changeset
  2288
        ^ self warn:'Cannot find class ', spec majorKey asBoldText, '!!'.
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2289
    ].
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2290
    sel := spec minorKey.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2291
    meta := cls class whichClassIncludesSelector:sel.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2292
    meta isNil ifTrue:[
657
34728d455e7b error of opening a GUI Painter on a sub spec with empty fields fixed
tz
parents: 656
diff changeset
  2293
        ^ self warn:'Cannot find selector #', (sel ? '') asBoldText, ' in class ', cls name asBoldText, '!!'
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2294
    ].
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2295
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2296
    self class openOnClass:meta soleInstance andSelector:spec minorKey.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2297
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2298
    "Created: / 6.2.1998 / 13:03:59 / stefan"
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2299
    "Modified: / 6.2.1998 / 13:59:30 / stefan"
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2300
!
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2301
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2302
openTabListEditor
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2303
    "open a TabListEditor
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2304
    "
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2305
    |cls aspect editor columns|
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2306
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2307
    cls := self resolveName:specClass.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2308
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2309
    cls isNil ifTrue:[
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2310
        ^ self information:'No application class defined yet!!'
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2311
    ].
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2312
    aspect := self specTool specification listSelector.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2313
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2314
    editor := TabListEditor new.
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2315
    editor masterApplication:self.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2316
    editor openModalOnClass:cls andSelector:aspect.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2317
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2318
    editor specSelector ~= aspect ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2319
        editor hasSaved ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2320
            self specTool specification listSelector:(editor specSelector).
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2321
            self modifiedChannel value:true.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2322
            self accept.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2323
        ]
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2324
    ]
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2325
! !
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2326
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2327
!UIPainter methodsFor:'change & update'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2328
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2329
layoutChanged
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2330
    "called by the painter/canvas whenever the layout of the current selected
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2331
     widget changed
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2332
    "
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2333
    self isModified ifFalse:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2334
        self layoutTool update.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2335
        self modifiedChannel value:false
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2336
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2337
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2338
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2339
propertyChanged
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2340
    "called by the painter/canvas whenever the property of the current selected
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2341
     widget changed
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2342
    "
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2343
    |p|
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2344
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2345
    (p := treeView propertySelected) notNil ifTrue:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2346
        self specTool specification:(p spec copy).
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2347
        self setViewInLayoutTool:(p view).
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2348
        self modifiedChannel value:false
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2349
    ] ifFalse:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2350
        self layoutTool layoutView notNil ifTrue:[
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2351
            self modifiedChannel value:false.
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2352
            self treeSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2353
        ]
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2354
    ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2355
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2356
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2357
update:something with:aParameter from:someObject
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2358
    "catch change notifications
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2359
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2360
    someObject == treeView model ifTrue:[
362
55154d7a4deb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 358
diff changeset
  2361
        (something == #selection
55154d7a4deb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 358
diff changeset
  2362
        or:[something == #selectionIndex]) ifTrue:[self treeSelection].
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2363
      ^ self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2364
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2365
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2366
    self galleryShown == someObject ifTrue:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2367
        (self galleryShown value) ifTrue:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2368
            self raiseUIView:(selectionPanel window)
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2369
        ] ifFalse:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2370
            self hideUIView:(selectionPanel window)
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2371
        ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2372
      ^ self
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2373
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2374
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2375
    self painterShown == someObject ifTrue:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2376
        (self painterShown value) ifTrue:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2377
            self raiseUIView:(self painter topView)
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2378
        ] ifFalse:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2379
            self hideUIView:(self painter topView)
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2380
        ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2381
      ^ self
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2382
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2383
362
55154d7a4deb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 358
diff changeset
  2384
    "Modified: / 29.10.1997 / 17:48:19 / cg"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2385
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2386
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2387
!UIPainter methodsFor:'event handling'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2388
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2389
doesNotUnderstand:aMessage
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2390
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2391
    |painter|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2392
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2393
    painter := self painter.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2394
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2395
    (painter respondsTo:(aMessage selector)) ifTrue:[
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2396
        ^ aMessage sendTo:painter
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2397
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2398
    super doesNotUnderstand:aMessage
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2399
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2400
! !
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2401
547
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
  2402
!UIPainter methodsFor:'help'!
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
  2403
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  2404
defaultInfoLabel
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  2405
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2406
    specClass isNil ifTrue: [^'No class and selector defined.'].
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  2407
    ^specClass printString, ' >> ', specSelector
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  2408
!
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  2409
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2410
show:aHelpText
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2411
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2412
    (self transcriptHelp and: [transcript notNil])
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2413
    ifFalse:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2414
    [
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2415
        super showHelp:aHelpText for:self
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2416
    ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2417
    ifTrue:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2418
    [
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2419
        transcript hideCursor; contents:aHelpText
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2420
    ]    
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2421
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2422
547
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
  2423
showHelp:aHelpText for:view
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
  2424
    "display active help texts in my own info area."
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
  2425
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2426
    (self transcriptHelp and: [transcript notNil])
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2427
    ifFalse:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2428
    [
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2429
        ^super showHelp:aHelpText for:view.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2430
    ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2431
    ifTrue:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2432
    [
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2433
        |txt|
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2434
        aHelpText isNil ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2435
            txt := nil
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2436
        ] ifFalse:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2437
            txt := self class 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2438
                    convertString:(aHelpText asString)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2439
                    maxLineSize:(transcript width // transcript font width)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2440
                    skipLineFeed:true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2441
        ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2442
        transcript hideCursor; contents:txt.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2443
        ^true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2444
    ]
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
  2445
! !
14db1276218c change the spec;
ca
parents: 295
diff changeset
  2446
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2447
!UIPainter methodsFor:'private'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2448
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2449
askForModification
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2450
    "check interface modification
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2451
    " 
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2452
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2453
    self treeSelection. "accept modifications"    
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2454
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2455
    (modified or: [self painter isModified or: [self helpTool modified]])
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2456
    ifTrue:
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2457
    [
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2458
        ((YesNoBox title:'Window Spec was modified!!')        
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2459
            noText:'Cancel';
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2460
            yesText:'Waste it and proceed';
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2461
            showAtPointer;
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2462
            accepted) ifFalse: [^false].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2463
        modified := false.
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2464
        self painter resetModification
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2465
    ].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2466
    ^true
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2467
!
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2468
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2469
checkClassAndSelector
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2470
    "check for class & superclass"
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2471
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2472
    |superclass cls|
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2473
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2474
    specClass isNil ifTrue:[^ false].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2475
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2476
    cls := self resolveName:specClass.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2477
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2478
    cls isNil ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2479
        superclass := self resolveName:specSuperclass.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2480
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2481
        superclass isNil ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2482
            self warn:'No class named ' , specSuperclass , ' exists!!'.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2483
            ^ false.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2484
        ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2485
        (self confirm:'Create class ' , specClass asBoldText, '?') ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2486
            superclass subclass:(specClass asSymbol)
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2487
                       instanceVariableNames:''
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2488
                       classVariableNames:''
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2489
                       poolDictionaries:''
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2490
                       category:'Applications'.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2491
            ^ true.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2492
        ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2493
        ^ false.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2494
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2495
    cls isBehavior ifFalse:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2496
        self warn:'A global named ' , specClass , ' exists, but it is no class.'.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2497
        ^ false.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2498
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2499
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2500
    specSuperclass isBehavior ifFalse:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2501
        specSuperclass isEmpty ifFalse:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2502
            superclass := self resolveName:specSuperclass
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2503
        ] ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2504
            specSuperclass := nil.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2505
        ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2506
    ] ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2507
        superclass := specSuperclass
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2508
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2509
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2510
    specSuperclass notNil ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2511
        superclass isNil ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2512
            self warn:'No class named ' , specSuperclass , ' exists!!'.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2513
            ^ false.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2514
        ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2515
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2516
        (cls isSubclassOf:superclass) ifFalse:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2517
            self information:('A global named ' , specClass , ' exists,\' ,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2518
                              'but is not a subclass of ' , superclass name , '.\\' ,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2519
                              'Check and try again if that is not what you want.') withCRs.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2520
        ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2521
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2522
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2523
    superclass isNil ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2524
        cls notNil ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2525
            specSuperclass := cls superclass name
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2526
        ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2527
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2528
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2529
    ^ true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2530
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2531
    "Modified: 12.8.1997 / 23:39:10 / cg"
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2532
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2533
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2534
checkModified
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2535
    "check interface modification
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2536
    "               
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2537
    (self isModified and: [self isModified or: [self helpTool modified]])
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2538
    ifTrue:
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2539
    [
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2540
        ((YesNoBox title:'Window Spec was modified!!')        
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2541
            noText:'Cancel';
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2542
            yesText:'Waste it and proceed';
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2543
            showAtPointer;
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2544
            accepted) ifFalse: [^false].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2545
        self painter resetModification
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2546
    ].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2547
    ^true
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2548
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2549
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2550
defineClassAndSelector
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2551
    "launch a dialog to define class, superclass and method"
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2552
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2553
    |again tmp|
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2554
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2555
    [
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2556
        again := false.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2557
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2558
        (tmp := specClass) isNil ifTrue:[tmp := 'NewApplication'].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2559
        aspects at:#classNameChannel put:tmp asValue.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2560
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2561
        (tmp := specSelector) isNil ifTrue:[tmp := 'windowSpec'].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2562
        aspects at:#methodNameChannel put:tmp asValue.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2563
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2564
        (tmp := specSuperclass) isNil ifTrue:[tmp := 'ApplicationModel'].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2565
        aspects at:#superclassNameChannel put:tmp asValue.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2566
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2567
        (self openDialogInterface:#dialogSpecForDefiningClassAndSelector) ifTrue:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2568
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2569
            specClass    := (self aspectFor:#classNameChannel) value.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2570
            specSelector := (self aspectFor:#methodNameChannel) value.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2571
            specSelector notNil ifTrue:[specSelector := specSelector asSymbol].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2572
            specSuperclass := (self aspectFor:#superclassNameChannel) value.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2573
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2574
            (again := self checkClassAndSelector not) ifFalse:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2575
                self painter className:specClass
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2576
                        superclassName:specSuperclass
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2577
                              selector:specSelector.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2578
            ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2579
        ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2580
        ifFalse:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2581
        [
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2582
            ^nil
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2583
        ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2584
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2585
    ] doWhile:[again].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2586
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2587
    self specClass:specClass.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2588
    self helpTool modified: true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2589
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2590
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2591
gridMenu
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2592
    "open a dialog for grip parameters configuration
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2593
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2594
    |hspace vspace bindings painter gridPara|
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2595
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2596
    painter  := self painter.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2597
    bindings := IdentityDictionary new.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2598
    gridPara := painter gridParameters copy.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2599
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2600
    bindings at:#showGrid    put:(painter gridShown asValue).
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2601
    bindings at:#alignToGrid put:(painter gridAlign asValue).
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2602
    bindings at:#hspace      put:((gridPara at:1) asValue).
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2603
    bindings at:#vspace      put:((gridPara at:2) asValue).
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2604
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2605
    (self openDialogInterface:#dialogSpecForDefiningGridParameters withBindings:bindings) ifFalse:[
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2606
        ^ self
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2607
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2608
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2609
    hspace := (bindings at:#hspace) value ? 5.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2610
    vspace := (bindings at:#vspace) value ? 5.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2611
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2612
    gridPara at:1 put:hspace.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2613
    gridPara at:2 put:vspace.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2614
    gridPara at:5 put:hspace.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2615
    gridPara at:6 put:vspace.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2616
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2617
    painter gridShown:false.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2618
    painter gridAlign:false.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2619
    painter gridParameters:gridPara.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2620
    painter gridAlign:(bindings at:#alignToGrid) value.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2621
    painter gridShown:(bindings at:#showGrid) value.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2622
    painter clear.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2623
    painter clear.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2624
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2625
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2626
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2627
hideUIView:aView
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2628
    "hide the view which is an application or top view
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2629
    "
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2630
    aView beIndependent.
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2631
    aView unmap.
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2632
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2633
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2634
raiseTabView
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2635
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2636
    self isLayoutToolSelected ifTrue:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2637
        layoutCanvas raise
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2638
    ] ifFalse:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2639
        self isHelpToolSelected ifTrue:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2640
            helpCanvas raise
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2641
        ] ifFalse:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2642
            self specTool selection:tabSelection.
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2643
            specCanvas raise
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2644
        ]
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2645
    ]
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2646
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2647
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2648
raiseUIView:aView
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2649
    "raise the view which is an application or top view
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2650
    "
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2651
    aView map.
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2652
    aView bePartner.
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2653
!
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2654
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2655
resourceMessage: aString
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2656
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2657
    (aString notNil and: [self askForModification]) 
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2658
    ifTrue:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2659
    [            
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2660
        |msg cls sel|
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2661
        msg := aString asCollectionOfWords.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2662
        (msg size == 2 and:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2663
        [(cls := self resolveName:(msg at:1)) notNil])
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2664
        ifTrue:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2665
        [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2666
            specClass := cls name.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2667
            specSuperclass := cls superclass name.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2668
            specSelector := (msg at: 2) asSymbol.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2669
            ^true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2670
        ]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2671
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2672
    ^false
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2673
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2674
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2675
setClass:cls selector:selector
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2676
    "set the application class and the selector under which the
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2677
     window specification should be stored
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2678
    "
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2679
    |clsName superClassName|
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2680
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2681
    clsName := cls name.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2682
    superClassName := cls superclass name.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2683
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2684
    (self aspectFor:#classNameChannel) value:clsName.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2685
    (self aspectFor:#methodNameChannel) value:(selector ? '').
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2686
    (self aspectFor:#superclassNameChannel) value:superClassName.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2687
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2688
    self painter 
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2689
            className:clsName 
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2690
            superclassName:superClassName
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2691
            selector:(selector ? '').
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2692
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2693
    self specClass:clsName.
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2694
    specSelector := (selector ? '').
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2695
    specSuperclass := superClassName.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2696
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2697
    specClass notNil & selector notNil ifTrue:[
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2698
        self addToHistory: (specClass, ' ', specSelector) -> #loadFromMessage:.
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  2699
        self updateInfoLabel
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2700
    ].
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2701
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2702
    "Modified: / 5.2.1998 / 09:44:58 / stefan"
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2703
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2704
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2705
setViewInLayoutTool:aView
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2706
    "set view for layout tool
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2707
    "
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2708
    |type|
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2709
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2710
    self painter topView == aView ifTrue:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2711
        type := #Extent
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2712
    ].
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2713
    self layoutTool layoutView:aView type:type
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2714
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2715
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2716
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2717
specClass:aClass
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2718
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2719
    specClass := aClass isBehavior ifTrue:[aClass name]
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2720
                                   ifFalse:[aClass].
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2721
    self helpTool helpSpecFrom:specClass.
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2722
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2723
    "Modified: / 5.2.1998 / 09:42:57 / stefan"
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2724
! !
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2725
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2726
!UIPainter methodsFor:'private tools'!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2727
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2728
helpTool
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2729
    "returns the help tool
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2730
    "
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2731
    helpCanvas isNil ifTrue:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2732
        self noteBookView
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2733
    ].
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2734
    ^ helpCanvas application
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2735
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2736
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2737
layoutTool
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2738
    "returns the layout tool
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2739
    "
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2740
    layoutCanvas isNil ifTrue:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2741
        self noteBookView
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2742
    ].
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2743
    ^ layoutCanvas application
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2744
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2745
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2746
painter
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2747
    "returns the painter/canvas view
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2748
    "
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2749
    ^ treeView canvas
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2750
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2751
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2752
specTool
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2753
    "returns the spec tool
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2754
    "
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2755
    specCanvas isNil ifTrue:[
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2756
        self noteBookView
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2757
    ].
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2758
    ^ specCanvas application
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2759
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2760
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2761
!UIPainter methodsFor:'queries'!
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2762
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2763
hasSpecClass
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2764
    "checks whether an application class is defined
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2765
    "
328
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  2766
    ^ (self resolveName:specClass) notNil
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2767
!
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2768
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2769
hasSpecClassAndSelector
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2770
    "checks whether an application class and a selector under which
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2771
     the window specification is stored is defined.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2772
    "
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2773
    specSelector size > 1 ifTrue:[
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2774
        ^ self hasSpecClass
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2775
    ].
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2776
  ^ false
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2777
!
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2778
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2779
isHelpToolSelected
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2780
    "returns true if current selected tab in the noteBook is assigned
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2781
     to the 'Help' tool
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2782
    "
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2783
    ^ tabSelection = UIHelpTool label
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2784
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2785
!
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2786
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2787
isLayoutToolSelected
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2788
    "returns true if current selected tab in the noteBook is assigned
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2789
     to the 'Layout' tool
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2790
    "
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2791
    ^ tabSelection = UILayoutTool label
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2792
!
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2793
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2794
isModified
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2795
    "return true if current specification or layout is modified
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2796
    "
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2797
    ^ self modifiedChannel value
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2798
!
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2799
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2800
isPainterEnabled
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2801
    "returns true if not running in test mode
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2802
    "
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2803
    ^ self painter enabled
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2804
! !
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2805
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2806
!UIPainter methodsFor:'selection'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2807
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2808
tabSelection
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2809
    "returns name of current selected tab in the notebook.
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2810
    "
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2811
    ^ tabSelection
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2812
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2813
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2814
tabSelection:something
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2815
    "the tab selection of the notebook changed
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2816
    "
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2817
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2818
    |whatToDo|
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2819
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2820
    (something isNil or:[tabSelection = something]) ifTrue:[
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2821
        ^ self
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2822
    ].
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2823
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2824
    self isModified ifTrue:[
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2825
        whatToDo := DialogBox 
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2826
                        confirmWithCancel:'Accept modifications in section ' , tabSelection printString , '?'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2827
                        labels:#('Cancel' 'Ignore' 'Accept')
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2828
                        default:3.
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2829
        whatToDo isNil ifTrue:[^self].
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2830
        whatToDo == true ifTrue:[
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2831
            self accept
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2832
        ] ifFalse:[
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2833
            self cancel
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2834
        ]
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2835
    ].
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2836
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2837
    tabSelection := something.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2838
    self raiseTabView.
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2839
    self cancel.
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2840
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2841
!
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2842
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2843
treeSelection
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2844
    "called whenever the selection of the treeview changed
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2845
    "
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2846
    |view list spec slices size property tabComponent canCutOrCopy canPaste clipboard sel|
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2847
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2848
    self isModified ifTrue:[
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2849
        (self confirm:'Accept modifications in section ' , tabSelection printString asBoldText, '?') ifTrue:[
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2850
            self accept
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2851
        ]
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2852
    ].
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2853
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2854
    self canMoveOrAlignSelection        value:(treeView canMoveOrAlignSelection).
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  2855
    self canChangeOrderInContainer      value:(treeView canChangeOrderInContainer).
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2856
    self canMoveSelectionIntoContainer  value:(treeView canMoveSelectionIntoContainer).
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2857
    self canMoveSelectionOutOfContainer value:(treeView canMoveSelectionOutOfContainer).
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2858
    self hasOneSelectionOtherThanCanvas value:(treeView hasOneSelectionOtherThanCanvas).
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2859
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  2860
    treeView isCanvasSelected ifTrue:[
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2861
        spec := treeView canvasSpec.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2862
        view := self painter topView.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2863
    ] ifFalse:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2864
        (property := treeView propertySelected) notNil ifTrue:[
301
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  2865
            treeView canResizeSelectedWidget ifTrue:[
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  2866
                view := property view.
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  2867
            ].
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2868
            spec := property spec copy.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2869
        ]
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  2870
    ].
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2871
    tabComponent := builder componentAt:#noteBook.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2872
    self setViewInLayoutTool:view.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2873
    self specTool specification:spec.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2874
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2875
    spec notNil ifTrue:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2876
        self helpTool helpKey:(spec activeHelpKey).
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
  2877
        slices := spec class slices.
114befd1c369 add some help text
ca
parents: 287
diff changeset
  2878
        size   := slices size.
301
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  2879
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  2880
        view notNil ifTrue:[
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  2881
            list := Array new:(size + 2).
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  2882
            list at:(size + 2) put:(UILayoutTool label).
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  2883
        ] ifFalse:[
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  2884
            list := Array new:(size + 1).
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  2885
        ].
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
  2886
        1 to:size do:[:i| list at:i put:((slices at:i) first asString)].
114befd1c369 add some help text
ca
parents: 287
diff changeset
  2887
        list at:(size + 1) put:(UIHelpTool   label).
301
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  2888
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2889
        self tabList value:list.
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
  2890
        self show:(spec class name).
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2891
        tabComponent enabled:true.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2892
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2893
        (tabSelection := tabComponent selection) isNil ifTrue:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2894
            tabComponent setSelection:(tabSelection := list first)
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2895
        ].
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2896
        self raiseTabView
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2897
    ] ifFalse:[
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2898
        self helpTool helpKey:nil.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2899
        tabComponent enabled:false.
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
  2900
        self show:nil.
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2901
    ].
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2902
    self modifiedChannel value:false.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2903
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2904
    treeView notNil
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2905
    ifTrue:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2906
    [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2907
        canCutOrCopy := treeView selection size >= 1 and:[treeView selection first ~~ 1].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2908
        clipboard := self getSelection.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2909
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2910
        clipboard isCollection ifTrue:[clipboard notEmpty ifTrue:[sel := clipboard first]]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2911
                              ifFalse:[sel := clipboard].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2912
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2913
        canPaste := (sel isKindOf:UISpecification) and:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2914
                    [treeView selection size  = 1 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2915
                    and:[treeView selection first == 1 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2916
                    or: [self canPasteInto: treeView selectedNode contents view]]]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2917
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2918
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2919
    self valueOfCanCut value: canCutOrCopy.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2920
    self valueOfCanCopy value: canCutOrCopy.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2921
    self valueOfCanPaste value: canPaste.             
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2922
    self valueOfCanPasteWithKeepingLayout value: (canPaste &  self canKeepLayoutInSelection).
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2923
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2924
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2925
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2926
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2927
!UIPainter methodsFor:'startup / release'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2928
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2929
closeRequest
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2930
    "close all windows open by builder
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2931
    "
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2932
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2933
    self askForModification ifFalse:[^self].
133
e12f82d3afb7 popup box caused by a closeRequest with still open
ca
parents: 130
diff changeset
  2934
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2935
    treeView model removeDependent:self.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2936
    self painter release.
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
  2937
    ColorMenu releaseResources.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2938
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2939
    selectionPanel notNil ifTrue:[
183
bb0cc63e2cf1 set masterApllication instead of application
ca
parents: 179
diff changeset
  2940
        selectionPanel masterApplication:nil.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2941
        selectionPanel closeRequest
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2942
    ].
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  2943
    selectionPanel := nil.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2944
    treeView       := nil.
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  2945
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2946
    ActiveHelp stopFor:self.
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2947
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2948
    super closeRequest.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2949
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2950
    "Modified: / 27.10.1997 / 00:01:30 / cg"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2951
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2952
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2953
closeRequestFor:aTopView
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2954
    "handle a close request for a specific view
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2955
    "
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2956
    |topView|
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2957
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2958
    topView := self window.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2959
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2960
    topView == aTopView ifTrue:[
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2961
        super closeRequestFor:aTopView
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2962
    ] ifFalse:[
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2963
        aTopView = selectionPanel window ifTrue:[
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2964
            self galleryShown value:false
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2965
        ] ifFalse:[
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2966
            aTopView == (self painter topView) ifTrue:[
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2967
                self painterShown value:false
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2968
            ] ifFalse:[
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2969
                aTopView closeRequest
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2970
            ]
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2971
        ].
133
e12f82d3afb7 popup box caused by a closeRequest with still open
ca
parents: 130
diff changeset
  2972
        topView raise.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2973
    ].
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2974
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2975
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2976
loadFromMessage: aMessage
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2977
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2978
    ((aMessage size > 0) and: [self askForModification])
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2979
    ifTrue:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2980
    [
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2981
        |readStream aClass aSelector|
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2982
        readStream := aMessage readStream.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2983
        (aClass := Smalltalk at: (readStream upTo: $ ) asSymbol) notNil
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2984
        ifTrue:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2985
        [
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2986
            aSelector :=  readStream upToEnd asSymbol.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2987
            self setClass: aClass selector: aSelector.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2988
            (aClass respondsTo:aSelector) 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2989
            ifTrue:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2990
            [
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2991
                self painter setupFromSpec:(aClass perform:aSelector).
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2992
                treeView selection: #(1). 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2993
            ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2994
        ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2995
    ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2996
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2997
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  2998
openInterface:aSymbol
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2999
    "open interfaces
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3000
    "
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  3001
    |painterView painter cls topView|
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3002
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3003
    modified := false.
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3004
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3005
    aspects := IdentityDictionary new.
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3006
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3007
    aspects at:#classNameChannel put:(
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3008
        (specClass notNil ifTrue:[specClass]
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3009
                         ifFalse:['NewApplication']) asValue
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3010
    ).
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3011
    specSuperclass isNil ifTrue:[
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3012
        specClass notNil ifTrue:[
328
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  3013
            (cls := self resolveName:specClass) notNil ifTrue:[
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3014
                specSuperclass := cls superclass name.
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3015
            ]
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3016
        ]
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3017
    ].
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3018
    aspects at:#superclassNameChannel put:(
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3019
        (specSuperclass notNil ifTrue:[specSuperclass]
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3020
                         ifFalse:['ApplicationModel']) asValue
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3021
    ).
157
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  3022
    aspects at:#superclassNameDefaults put:#('ApplicationModel' 'SimpleDialog') asValue.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3023
    aspects at:#methodNameChannel put:(
161
12a70f62f414 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 160
diff changeset
  3024
        (specSelector notNil ifTrue:[specSelector asValue]
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3025
                            ifFalse:[#windowSpec]) asValue
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3026
    ).
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3027
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3028
    treeView    := TreeView new.
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3029
    painterView := StandardSystemView new.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3030
    painterView name: self class defaultNameOfCanvas.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3031
    painterView label: self class defaultNameOfCanvas.
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3032
    painterView extent:300@300.
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3033
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3034
    painter := UIPainterView in:painterView.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3035
    painter layout:(0.0 @ 0.0 corner:1.0 @ 1.0) asLayout.
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3036
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3037
    treeView := treeView canvas:painter.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3038
    painter treeView:treeView.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3039
    treeView model addDependent:self.
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3040
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3041
    self transcriptHelp
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3042
    ifFalse:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3043
    [
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3044
        super openInterface:aSymbol.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3045
    ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3046
    ifTrue:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3047
    [
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3048
        super openInterface:#windowSpecWithTranscriptHelp.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3049
        transcript := (self builder componentAt:#HelpTranscript) scrolledView.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3050
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3051
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3052
    topView := self window.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3053
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  3054
    topView label:'GUI Painter'.
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3055
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3056
    painterView openInGroup:(topView windowGroup).
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3057
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3058
    painterView application:self.
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3059
    painterView open.
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3060
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3061
    painterView application:self.
183
bb0cc63e2cf1 set masterApllication instead of application
ca
parents: 179
diff changeset
  3062
    selectionPanel := UISelectionPanel new.
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3063
    selectionPanel allButOpenInterface:#windowSpec.
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  3064
    selectionPanel window openInGroup:(topView windowGroup).
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3065
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  3066
    selectionPanel openWindow.
183
bb0cc63e2cf1 set masterApllication instead of application
ca
parents: 179
diff changeset
  3067
    selectionPanel masterApplication:self.
274
2db2e583b3b4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
  3068
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  3069
    topView iconLabel:'GUI Painter'.
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  3070
    topView icon:(Image fromFile:'bitmaps/UIPainter.xbm' resolution:100).
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  3071
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  3072
    painterView iconLabel:'GUI Painter'.
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  3073
    painterView icon:(Image fromFile:'bitmaps/UIPainter.xbm' resolution:100).
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  3074
685
f8114ec98a82 make partner as a last step
dq
parents: 657
diff changeset
  3075
    topView bePartner.
f8114ec98a82 make partner as a last step
dq
parents: 657
diff changeset
  3076
    painterView bePartner.
f8114ec98a82 make partner as a last step
dq
parents: 657
diff changeset
  3077
    selectionPanel window bePartner.
f8114ec98a82 make partner as a last step
dq
parents: 657
diff changeset
  3078
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  3079
    selectionPanel window iconLabel:'GUI Painter'.
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  3080
    selectionPanel window icon:(Image fromFile:'bitmaps/UIPainter.xbm' resolution:100).
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  3081
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  3082
    ActiveHelp startFor:self.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3083
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3084
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3085
openOnClass:aClass
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3086
    "open up an interface builder
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3087
    "
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3088
    self openOnClass:aClass andSelector:#windowSpec
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3089
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3090
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3091
openOnClass:aClass andSelector:aSelector
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3092
    "open up an interface builder, fetching a spec from someClass
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3093
     via some selector
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3094
    "
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3095
    |painter|
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3096
157
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  3097
    aClass isNil ifTrue:[
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3098
        (self confirm:'No class given to the GUI Painter (class was probably renamed?)\\Open anyway (to create a new window spec) ?' withCRs)
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  3099
        ifFalse:[^ nil].
157
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  3100
    ].
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  3101
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  3102
    self openInterface.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3103
157
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  3104
    aClass notNil ifTrue:[
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  3105
        painter := self painter.
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  3106
        self setClass:aClass selector:aSelector.
195
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3107
        (aClass respondsTo:aSelector) ifTrue:[
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  3108
            "take care for those who do close very quickly"
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  3109
            Object errorSignal handle: [:ex|] do: 
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  3110
            [
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  3111
                painter setupFromSpec:(aClass perform:aSelector).
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  3112
                treeView selection: #(1)
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  3113
            ].
195
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
  3114
        ]
157
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  3115
    ]
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  3116
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  3117
    "Modified: / 25.10.1997 / 19:11:51 / cg"
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  3118
    "Modified: / 5.2.1998 / 09:48:15 / stefan"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3119
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3120
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3121
postOpenWith: aBuilder
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3122
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3123
    super postOpenWith: aBuilder.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3124
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3125
    treeView selection: (Array with: 1).
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3126
    self treeSelection.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3127
    self tabSelection: 'Basics'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3128
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3129
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3130
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3131
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3132
!UIPainter methodsFor:'user actions'!
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3133
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3134
doBrowseAspectMethods
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3135
    "open a browser on the aspect methods"
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3136
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3137
    |cls methods|
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3138
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3139
    self painter isModified ifTrue:[
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3140
        self warn:'The current window spec has not yet been saved!!\\The System Browser may show the code of the old aspect methods.' withCRs.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3141
    ].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3142
    cls := self resolveName:specClass.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3143
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3144
    cls notNil ifTrue:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3145
        methods := self painter aspectMethods.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3146
        methods isEmpty ifTrue:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3147
            self warn:'No aspect methods have been saved yet!!'.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3148
            ^ self.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3149
        ].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3150
        SystemBrowser browseMethods:methods title:'Aspect methods'.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3151
    ] ifFalse:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3152
        self information:'No class defined!!'.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3153
    ].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3154
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3155
    "Created: / 25.10.1997 / 19:07:55 / cg"
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3156
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3157
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3158
doBrowseClass
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3159
    "open a System Browser on the class"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3160
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3161
    |cls|
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3162
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3163
    self painter isModified ifTrue:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3164
        self warn:'The current window spec has not yet been saved!!\\The System Browser will show the code of the old window spec.' withCRs.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3165
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3166
    cls := self resolveName:specClass.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3167
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3168
    cls notNil ifTrue:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3169
        SystemBrowser openInClass:cls
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3170
    ] ifFalse:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3171
        self information:'No class defined!!'.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3172
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3173
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3174
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3175
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3176
doChooseTreeViewFont
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3177
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3178
    |font|
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3179
    (font := FontPanel 
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3180
        fontFromUserInitial: treeView class defaultFont
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3181
        title: 'Choose Tree View Font') notNil
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3182
    ifTrue:
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3183
    [
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3184
        treeView class defaultFont: (font on: device).
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3185
        treeView font: treeView class defaultFont
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3186
    ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3187
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3188
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3189
doGenerateAspectMethods
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3190
    "generate aspect and action methods
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3191
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3192
    |code|
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3193
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3194
    self treeSelection. "accept modifications"
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3195
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3196
    self hasSpecClassAndSelector ifFalse:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3197
        self defineClassAndSelector
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3198
    ].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3199
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3200
    self checkClassAndSelector ifFalse:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3201
        ^ self
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3202
    ].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3203
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3204
    self painter className:specClass
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3205
        superclassName:specSuperclass
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3206
              selector:specSelector.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3207
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3208
    code := self painter generateAspectMethods.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3209
    (ReadStream on:code) fileIn.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3210
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3211
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3212
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3213
doGenerateHookMethods
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3214
    "generate hook methods for the application class
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3215
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3216
    |code|
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3217
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3218
    self treeSelection. "accept modifications"
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3219
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3220
    self hasSpecClassAndSelector ifFalse:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3221
        self defineClassAndSelector
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3222
    ].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3223
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3224
    self checkClassAndSelector ifFalse:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3225
        ^ self
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3226
    ].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3227
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3228
    self painter className:specClass
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3229
        superclassName:specSuperclass
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3230
              selector:specSelector.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3231
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3232
    code := self painter generateHookMethods.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3233
    (ReadStream on:code) fileIn.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3234
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3235
    "Created: / 31.10.1997 / 17:37:54 / cg"
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3236
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3237
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3238
doLoad
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3239
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3240
    self askForModification ifFalse: [^nil].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3241
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3242
    self loadFromMessage: 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3243
        (ResourceSelectionBrowser
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3244
            request: 'Load Window Spec From Class'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3245
            onSuperclass: nil
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3246
            andClass: specClass
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  3247
            andSelector: specSelector ? #windowSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3248
            withResourceTypes: #(canvas))
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3249
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3250
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3251
doLoadSubspec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3252
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3253
    |subSpecMessage|
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3254
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3255
    self treeSelection. "ask for modification"
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3256
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3257
    (subSpecMessage := ResourceSelectionBrowser
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3258
            request: 'Load Subspec From Class'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3259
            onSuperclass: nil
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3260
            andClass: specClass
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3261
            andSelector: specSelector
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3262
            withResourceTypes: #(canvas)) notNil
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3263
    ifTrue:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3264
    [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3265
        |readStream aClass aSelector|
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3266
        readStream := subSpecMessage readStream.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3267
        (aClass := Smalltalk at: (readStream upTo: $ ) asSymbol) notNil
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3268
        ifTrue:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3269
        [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3270
            aSelector :=  readStream upToEnd asSymbol.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3271
            (aClass name == specClass and: [aSelector == specSelector]) ifTrue: [^self warn: 'Current interface as subspec not allowed!!'].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3272
            (aClass respondsTo:aSelector) 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3273
            ifTrue:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3274
            [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3275
                self addWidgetOfSpec: (Array with: (UISubSpecification new majorKey: aClass name; minorKey: aSelector))
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3276
            ]
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3277
        ]
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3278
    ]
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3279
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3280
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3281
doNew
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3282
    "remove all components and associated resources
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3283
    "
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3284
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3285
    self askForModification ifFalse: [^nil].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3286
    specClass := specSelector := nil.
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  3287
    self painter removeAll.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3288
    treeView canvas topView name:  UIPainter defaultNameOfCanvas.
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3289
    treeView canvas topView label: UIPainter defaultNameOfCanvas.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3290
    self helpTool reset.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3291
    treeView selection:#(1).
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3292
    self treeSelection.
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3293
    self updateInfoLabel.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3294
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3295
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3296
doPickAView
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3297
    "pick a view and setup specifications
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3298
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3299
    |painter view cls spec app|
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3300
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3301
    self askForModification ifFalse: [^nil].
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3302
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3303
    (view := Screen current viewFromUser) notNil ifTrue:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3304
        view == Screen current rootView ifFalse:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3305
            painter := self painter.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3306
            spec    := UISpecification fromView:view topView.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3307
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3308
         "/ ok, got it
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3309
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3310
         "   (app := view application) notNil ifTrue:[
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3311
                cls := app class
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3312
            ] ifFalse:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3313
                cls := view class
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3314
            ].            
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3315
            self setClass:cls selector:nil.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3316
         "
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3317
            painter setupFromSpec:spec.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3318
        ]
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3319
    ].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3320
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3321
    self updateInfoLabel
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3322
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3323
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3324
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3325
doSave
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3326
    "install window spec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3327
    "
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3328
    |code painter|
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3329
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3330
    self treeSelection. "ask for modification"
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3331
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3332
    self hasSpecClassAndSelector ifFalse:[
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3333
         (self defineClassAndSelector) isNil ifTrue: [^nil]
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3334
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3335
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3336
    (specClass notNil and: [(Smalltalk at: specClass asSymbol) isClass])
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3337
    ifFalse: 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3338
    [   
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3339
        ^nil
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3340
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3341
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3342
    self isModified ifTrue:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3343
        (self confirm:'Accept modifications in section ' , tabSelection printString , '?') ifTrue:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3344
            self accept
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3345
        ] ifFalse:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3346
            (self confirm:'Load old window spec?') ifFalse:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3347
                ^ self
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3348
            ]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3349
        ]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3350
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3351
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3352
    painter := self painter.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3353
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3354
    painter className:specClass
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3355
       superclassName:specSuperclass
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3356
             selector:specSelector.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3357
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3358
    code := painter generateWindowSpecMethodSource withCRs.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3359
    painter resetModification.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3360
    (ReadStream on:code) fileIn.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3361
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  3362
    self helpTool installHelpSpecsOnClass:specClass.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3363
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3364
    self updateInfoLabel.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3365
    modified := false.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3366
    self painter resetModification.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3367
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3368
    ((Smalltalk at: specClass asSymbol) class implements: specSelector) 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3369
    ifTrue: 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3370
    [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3371
        self addToHistory: (specClass, ' ', specSelector) -> #loadFromMessage:.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3372
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3373
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3374
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3375
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3376
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3377
doSaveAs
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3378
    "launch a dialog to define class, superclass and method"
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3379
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3380
    |resourceMessage|
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3381
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3382
    self treeSelection. "ask for modification"
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3383
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3384
    (resourceMessage := ResourceSelectionBrowser
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  3385
            request: 'Save Window Spec In Class'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3386
            onSuperclass: #Object
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3387
            andClass: (specClass ? #ApplicationModel) asSymbol
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3388
            andSelector: specSelector ? #windowSpec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3389
            withResourceTypes: #(canvas)) notNil
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3390
    ifTrue:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3391
    [
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3392
        modified := false.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3393
        self painter resetModification.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3394
        (self resourceMessage: resourceMessage)
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3395
        ifTrue:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3396
        [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3397
            self doSave.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3398
            ^true
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3399
        ]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3400
    ]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3401
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3402
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3403
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3404
doStartApplication
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3405
    "start current edited application
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3406
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3407
    |cls app infoMessage|
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3408
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3409
    self treeSelection. "accept modifications"
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3410
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3411
    (specClass isNil or:[specSelector size < 2]) ifTrue:[
697
ca492fc8390a better info-box message (if modieified and no class/selector is defined)
Claus Gittinger <cg@exept.de>
parents: 692
diff changeset
  3412
        self painter isModified ifTrue:[
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3413
            infoMessage := 'Class and selector must be defined,\and the window spec must be saved first!!' withCRs.
697
ca492fc8390a better info-box message (if modieified and no class/selector is defined)
Claus Gittinger <cg@exept.de>
parents: 692
diff changeset
  3414
        ] ifFalse:[
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3415
            infoMessage := 'No class and selector defined!!'.
697
ca492fc8390a better info-box message (if modieified and no class/selector is defined)
Claus Gittinger <cg@exept.de>
parents: 692
diff changeset
  3416
        ]
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3417
    ] ifFalse:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3418
        cls := self resolveName:specClass.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3419
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3420
        cls isNil ifTrue:[
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
  3421
            infoMessage := 'Class does not exist!!'.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3422
        ] ifFalse:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3423
            (cls respondsTo:specSelector) ifFalse:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3424
                infoMessage := ('No method for: #' 
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3425
                                , specSelector , ' in ' , cls name
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3426
                                , '\\(did you save the window spec?)') withCRs.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3427
            ]
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3428
        ]
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3429
    ].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3430
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3431
    infoMessage notNil ifTrue:[
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3432
        ^ self information:infoMessage
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3433
    ].
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3434
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3435
    self isModified ifTrue:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3436
        (self confirm:'Accept modifications in section ' , tabSelection printString asBoldText, '?') ifTrue:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3437
            self accept.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3438
            "/  "XXX must be fixed - canvas changes are not recorded in the history
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3439
            "/  so isModified returns false here
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3440
            "/
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3441
            "/ self painter isModified ifTrue:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3442
            "/
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3443
            (self confirm:'Save the new window spec?' withCRs) ifTrue:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3444
                self doSave
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3445
            ]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3446
        ]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3447
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3448
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3449
    self painter isModified ifTrue:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3450
        (self confirm:'The current window spec has not yet been saved!!\\Start anyway (based upon the previous window spec)?' withCRs) ifFalse:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3451
                ^ self
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3452
        ]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3453
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3454
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3455
    ((app := cls new) respondsTo:#openInterface:) ifFalse:[
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3456
        ^ self warn:('The application does not respond to the ''openInterface:'' message.\\(maybe its supposed to be used as subApplication/subCanvas)') withCRs.
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3457
    ].        
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3458
    app openInterface:specSelector
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3459
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3460
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3461
doStepDown
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3462
    "move selected component after the next component in the hierarchy of
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3463
     its container widget
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3464
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3465
    treeView doStepOver:1
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3466
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3467
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3468
doStepIn
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3469
    "change the container of the selected widget
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3470
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3471
    treeView doStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3472
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3473
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3474
doStepOut
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3475
    "change the container of the selected widget
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3476
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3477
    treeView doStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3478
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3479
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3480
doStepUp
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3481
    "move selected component before the previous component in the hierarchy of
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3482
     its container widget
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3483
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3484
    treeView doStepOver:-1
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3485
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3486
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3487
doWindowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3488
   "create the window specification but do not write to application; instead
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3489
    open a view
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3490
   "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3491
   |code v|
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3492
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3493
   self treeSelection. "accept modifications"
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3494
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3495
   code := self painter generateWindowSpecMethodSource.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3496
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3497
   v := CodeView open.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3498
   v contents:code.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3499
   v label:'windowSpec'.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3500
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3501
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3502
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3503
!UIPainter::TreeView class methodsFor:'documentation'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3504
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3505
documentation
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3506
"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3507
    selection in tree view; only used by the UIPainter
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3508
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3509
    [see also:]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3510
        SelectionInTreeView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3511
        SelectionInTree
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3512
        TreeItem
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3513
        UIPainter
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3514
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3515
    [author:]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3516
        Claus Atzkern
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3517
"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3518
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3519
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3520
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3521
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3522
!UIPainter::TreeView methodsFor:'accessing'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3523
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3524
canvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3525
    "returns the canvas( UIPainter )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3526
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3527
  ^ model root contents view
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3528
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3529
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3530
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3531
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3532
canvas:aCanvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3533
    "install canvas( UIPainter )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3534
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3535
    |props|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3536
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3537
    props := UIPainterView::ViewProperty new.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3538
    props view:aCanvas.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3539
    model root:(TreeItem name: UIPainter defaultNameOfCanvas asBoldText contents:props).
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3540
    model root expand.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3541
    self enableChannel:(aCanvas enableChannel).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3542
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3543
!
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3544
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3545
canvasSpec
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3546
    "returns spec assigned to canvas
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3547
    "
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3548
    |spec|
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3549
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3550
    spec := WindowSpec new.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3551
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3552
    spec fromView:(self canvas topView) callBack:nil.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3553
    windowSpec notNil ifTrue:[
362
55154d7a4deb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 358
diff changeset
  3554
        spec copyValuesFromSpec:windowSpec
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3555
    ].
362
55154d7a4deb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 358
diff changeset
  3556
    ^ spec
55154d7a4deb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 358
diff changeset
  3557
55154d7a4deb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 358
diff changeset
  3558
    "Modified: / 29.10.1997 / 18:06:44 / cg"
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3559
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3560
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3561
canvasSpec:aSpec
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3562
    "update canvas from spec
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3563
    "
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3564
    |spec|
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3565
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3566
    self setAttributesFromWindowSpec:aSpec.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3567
    spec := aSpec copy.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3568
    spec  menu:nil.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3569
    spec flags:nil.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3570
394
1933896da0c3 sett UIBuilder isEditing to true
ca
parents: 375
diff changeset
  3571
    spec setAttributesIn:(self canvas topView) with:(UIBuilder new isEditing:true).
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3572
!
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3573
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3574
itemOfView:aView
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3575
    "returns item assigned to view or nil
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3576
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3577
    aView notNil ifTrue:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3578
        self allItemsDo:[:anItem|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3579
            (anItem contents view == aView) ifTrue:[^ anItem]
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3580
        ]
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3581
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3582
  ^ nil
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3583
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3584
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3585
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3586
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3587
!UIPainter::TreeView methodsFor:'accessing property'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3588
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3589
propertiesDo:aOneArgBlock
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3590
    "evaluate the argument a block on each property
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3591
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3592
    self allItemsDo:[:anItem| aOneArgBlock value:(anItem contents)]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3593
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3594
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3595
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3596
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3597
propertyDetect:aOneArgBlock
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3598
    "evaluate the block on each property
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3599
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3600
    self allItemsDo:[:anItem|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3601
        (aOneArgBlock value:(anItem contents)) ifTrue:[^ anItem contents]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3602
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3603
  ^ nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3604
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3605
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3606
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3607
propertySelected
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3608
    "returns current selected property or nil in case of multi selection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3609
     or empty selection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3610
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3611
    |idx|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3612
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3613
    selection size == 1 ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3614
        (idx := selection first) ~~ 1 ifTrue:[          "canvas: not yet supported"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3615
            ^ (listOfNodes at:idx) contents
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3616
        ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3617
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3618
  ^ nil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3619
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3620
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3621
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3622
!UIPainter::TreeView methodsFor:'adding & removing'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3623
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3624
addProperty:aProperty
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3625
    "add a new item
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3626
    "
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  3627
    |parent| 
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
  3628
114befd1c369 add some help text
ca
parents: 287
diff changeset
  3629
    parent := self detectItemRespondsToView:(aProperty view superView).
114befd1c369 add some help text
ca
parents: 287
diff changeset
  3630
114befd1c369 add some help text
ca
parents: 287
diff changeset
  3631
    parent notNil ifTrue:[
656
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  3632
        model add:(TreeItem new contents:aProperty) below:parent
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
  3633
    ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3634
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3635
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3636
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3637
removeAll
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3638
    "remove all items other than canvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3639
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3640
    lastDrawnMaster := nil.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3641
    windowSpec := nil.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3642
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3643
    self canvas subViews copy do:[:aView|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3644
        (aView isKindOf:InputView) ifFalse:[aView destroy]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3645
    ].
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3646
    model root name: UIPainter defaultNameOfCanvas asBoldText.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3647
    model root children:(OrderedCollection new).
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3648
    model recomputeList.                
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3649
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3650
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3651
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3652
removeView:aView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3653
    "remove a view
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3654
    "
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3655
    |item prnt|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3656
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3657
    ((item := self itemOfView:aView) notNil and:[(prnt := item parent) notNil]) ifTrue:[
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3658
        aView destroy.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3659
        prnt contents view sizeChanged:nil.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3660
        model remove:item
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3661
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3662
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3663
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3664
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3665
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3666
!UIPainter::TreeView methodsFor:'building'!
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3667
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3668
generateFullSpecForComponents:aSpecArray
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  3669
    "generates a full spec for components
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3670
    "
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  3671
    |fullSpec winSpec|
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3672
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3673
    fullSpec := FullSpec new.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3674
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3675
    fullSpec fromBuilder:(self canvas topView)
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3676
              components:(SpecCollection new collection:aSpecArray).
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3677
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3678
    windowSpec notNil ifTrue:[
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  3679
        winSpec := fullSpec window.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3680
        winSpec copyValuesFromSpec:windowSpec.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3681
        winSpec name: winSpec label.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3682
    ].    
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3683
    ^ fullSpec literalArrayEncoding.
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  3684
362
55154d7a4deb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 358
diff changeset
  3685
    "Modified: / 29.10.1997 / 18:05:58 / cg"
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3686
!
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3687
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3688
setAttributesFromWindowSpec:aWindowSpec
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3689
    "set windowSpec from argument a WindowSpec
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3690
    "                           
362
55154d7a4deb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 358
diff changeset
  3691
    windowSpec := WindowSpec new copyValuesFromSpec:aWindowSpec.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3692
    self canvasNameChanged:aWindowSpec name.
362
55154d7a4deb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 358
diff changeset
  3693
55154d7a4deb checkin from browser
Claus Gittinger <cg@exept.de>
parents: 358
diff changeset
  3694
    "Modified: / 29.10.1997 / 18:06:56 / cg"
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3695
! !
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3696
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3697
!UIPainter::TreeView methodsFor:'canvas selection'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3698
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3699
cvsSelection:aSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3700
    "canvas changed its selection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3701
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3702
    |sel list rcLt|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3703
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3704
    list := OrderedCollection new.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3705
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3706
    aSelection isNil ifFalse:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3707
        aSelection isCollection ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3708
            aSelection notNil ifTrue:[sel := aSelection]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3709
        ] ifFalse:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3710
            sel := Array with:aSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3711
        ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3712
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3713
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3714
    sel notNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3715
        rcLt := false.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3716
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3717
        sel do:[:aView||item|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3718
            (item := self itemOfView:aView) notNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3719
                list add:item.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3720
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3721
                [(item := item parent) notNil] whileTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3722
                    item hidden ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3723
                        rcLt := true.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3724
                        item expand.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3725
                    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3726
                ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3727
            ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3728
        ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3729
        rcLt ifTrue:[model recomputeList].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3730
        sel := list collect:[:anItem| listOfNodes findFirst:[:el| el == anItem]]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3731
    ] ifFalse:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3732
        sel := list
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3733
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3734
    self cvsEventsDisabledDo:[ self selection:sel ].            
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3735
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3736
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3737
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3738
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3739
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3740
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3741
cvsSelectionAdd:aView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3742
    "canvas adds a view to current selection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3743
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3744
    |parent item rcLt oldSel|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3745
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3746
    item := self itemOfView:aView.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3747
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3748
    item notNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3749
        parent := item.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3750
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3751
        [ (parent := parent parent) notNil ] whileTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3752
            parent hidden ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3753
                rcLt := true.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3754
                parent expand.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3755
            ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3756
        ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3757
        rcLt == true ifTrue:[model recomputeList].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3758
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3759
        oldSel := selection copy.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3760
        self addToSelection:(listOfNodes findFirst:[:el| el == item]).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3761
        self selectionChangedFrom:oldSel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3762
    ].            
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3763
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3764
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3765
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3766
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3767
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3768
cvsSelectionRemove:aView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3769
    "canvas removes a view from current selection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3770
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3771
    |parent item rcLt oldSel|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3772
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3773
    item := self itemOfView:aView.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3774
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3775
    item notNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3776
        parent := item.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3777
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3778
        [ (parent := parent parent) notNil ] whileTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3779
            parent hidden ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3780
                rcLt := true.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3781
                parent expand.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3782
            ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3783
        ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3784
        rcLt == true ifTrue:[model recomputeList].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3785
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3786
        oldSel := selection copy.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3787
        self removeFromSelection:(listOfNodes findFirst:[:el| el == item]).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3788
        self selectionChangedFrom:oldSel
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3789
    ].            
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3790
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3791
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3792
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3793
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3794
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3795
!UIPainter::TreeView methodsFor:'change & update'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3796
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3797
canvasNameChanged:aName
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3798
    "called if identification name assigned to window (canvas) changed
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3799
    "
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3800
    |name node|
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3801
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3802
    node := listOfNodes at:1.
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3803
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3804
    (    aName size ~~ 0
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3805
     and:[(name := aName string withoutSeparators) size ~~ 0
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3806
     and:[(self propertyDetect:[:p| p name = name]) isNil
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3807
     and:[node name ~= name]]]
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3808
    ) ifTrue:[
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3809
        node name: name asBoldText.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3810
        node changed.
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3811
    ].
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3812
!
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3813
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3814
layoutChanged
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3815
    "layout of any component changed; in case of single selection, the
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3816
     application will be informed to update its layout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3817
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3818
    selection size == 1 ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3819
        self application layoutChanged
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3820
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3821
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3822
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3823
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3824
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3825
propertyChanged:aProperty
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3826
    "property of view derived from argument a property changed
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3827
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3828
    |item idx end|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3829
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3830
    item := self itemOfView:(aProperty view).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3831
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3832
    item notNil ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3833
        item contents:aProperty.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3834
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3835
        item name = aProperty name ifFalse:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3836
            idx := self firstLineShown.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3837
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3838
            (end := self lastLineShown) > listOfNodes size ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3839
                end := listOfNodes size
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3840
            ].                          
656
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  3841
            item changed.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3842
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3843
            [idx <= end] whileTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3844
                (listOfNodes at:idx) == item ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3845
                    self redrawLine:idx.                "/ is visible; redraw line
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3846
                    end := 0
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3847
                ] ifFalse:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3848
                    idx := idx + 1
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3849
                ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3850
            ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3851
        ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3852
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3853
        self selectedNode == item ifTrue:[              "/ inform application
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  3854
            self application propertyChanged
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3855
        ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3856
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3857
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3858
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3859
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3860
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3861
!UIPainter::TreeView methodsFor:'drag & drop'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3862
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3863
canDrop:anObjectOrCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3864
    "can drop ? delegate to canvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3865
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3866
  ^ self canvas canDrop:anObjectOrCollection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3867
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3868
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3869
drop:anObjectOrCollection at:aPoint
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3870
    "drop objects ? delegate to canvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3871
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3872
    self canvas drop:anObjectOrCollection at:aPoint
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3873
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3874
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3875
!UIPainter::TreeView methodsFor:'enumerating'!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3876
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3877
allItemsDo:aOneArgBlock
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3878
    "evaluate the argument a block on each item other than the canvas
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3879
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3880
    model root allChildrenDo:aOneArgBlock
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3881
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3882
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3883
! !
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3884
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3885
!UIPainter::TreeView methodsFor:'event processing'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3886
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3887
cvsEventsDisabledDo:aBlock
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3888
    "evaluate the block without raising selection changed notifications
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3889
     to canvas
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3890
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3891
    |restoreCvsEvents|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3892
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3893
    restoreCvsEvents  := cvsEventsDisabled.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3894
    cvsEventsDisabled := true.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3895
    aBlock value.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3896
    cvsEventsDisabled := restoreCvsEvents.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3897
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3898
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3899
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3900
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3901
cvsSetupListDo:aBlock
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3902
    "evaluate block without handling notifications from model; after evaluation
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3903
     the new list will be recomputed
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3904
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3905
    model removeDependent:self.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3906
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3907
    self cvsEventsDisabledDo:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3908
        self selection:nil.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3909
        aBlock value
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3910
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3911
    model addDependent:self.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3912
    model recomputeList.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3913
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3914
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3915
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3916
doubleClicked
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3917
    "disable collapse of canvas item
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3918
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3919
    self selectedNode == model root ifFalse:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3920
        super doubleClicked
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3921
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3922
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3923
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3924
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3925
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3926
!UIPainter::TreeView methodsFor:'initialization'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3927
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3928
initialize
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3929
    "initialization; set multiple select and model
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3930
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3931
    super initialize.
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  3932
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3933
    self multipleSelectOk:true.
368
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
  3934
    cvsEventsDisabled := false.
440
1198f19712ff spec items have got individual icons
tz
parents: 437
diff changeset
  3935
    self showDirectoryIndicator: true.
656
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  3936
    self showDirectoryIndicatorForRoot: false.
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  3937
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  3938
    self model iconAction: 
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  3939
    [:aNode|
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  3940
        |specClass|
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  3941
        (specClass := aNode contents spec) isNil 
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3942
        ifTrue:  
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3943
        [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3944
            WindowSpec icon
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3945
        ]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3946
        ifFalse:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3947
        [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3948
            ((selection size > 1) and: [(listOfNodes at:selection first) == aNode])
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3949
            ifTrue: 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3950
            [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3951
                specClass class icon copyWithColorMapProcessing:[:clr | clr blendWith:Color red]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3952
            ] 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3953
            ifFalse:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3954
            [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3955
                specClass class icon
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3956
            ]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3957
        ]
656
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  3958
    ].
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  3959
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3960
    self model labelAction: 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3961
    [:aNode|
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3962
        |spec|
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3963
        (spec := aNode contents spec) notNil
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3964
            ifTrue:  [self nameForSpecInList:spec] 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3965
            ifFalse: [aNode name]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3966
    ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3967
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3968
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3969
!UIPainter::TreeView methodsFor:'private'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3970
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3971
nameForSpecInList:aSpec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3972
     ^ aSpec name asBoldText, ': [', aSpec viewClass name , ']' 
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3973
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3974
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3975
selectionChangedFrom:oldSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3976
    "selection has changed. update master selection and raise notification
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3977
     to canvas in case of enabled cvs events
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3978
    "
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3979
    |sel size|
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3980
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3981
    super selectionChangedFrom:oldSelection.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3982
    size := selection size.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3983
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3984
    cvsEventsDisabled ifFalse:[
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3985
        (size ~~ 0 and:[size ~~ 1 or:[selection first ~~ 1]]) ifTrue:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3986
            sel := OrderedCollection new.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3987
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3988
            selection do:[:i|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3989
                i ~~ 1 ifTrue:[sel add:(listOfNodes at:i) contents view]
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3990
            ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3991
        ].
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3992
        self canvas updateSelectionFromModel:sel
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3993
    ].
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3994
    size = 1 ifTrue:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3995
        oldSelection size = 2 ifTrue: [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3996
        self redrawLine: (lastDrawnMaster := selection first)]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3997
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3998
    size > 1 ifTrue:[
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3999
        selection first ~~ lastDrawnMaster ifTrue: [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4000
        self redrawLine: (lastDrawnMaster := selection first)]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4001
    ]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4002
    ifFalse: [
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4003
        lastDrawnMaster := nil
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4004
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4005
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4006
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4007
!UIPainter::TreeView methodsFor:'queries'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4008
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4009
canChangeOrderInContainer
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4010
    "returns true if any selection exists and all widgets in the selection
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4011
     can change their layout through to a move or align operation.
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4012
    "
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4013
    |canvas|
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4014
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4015
    ((selection size ~~ 1) or: [(selection at: 1) == 1]) ifTrue:[
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4016
        ^ false
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4017
    ].
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4018
    ^ true
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4019
!
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4020
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4021
canMoveOrAlignSelection
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4022
    "returns true if any selection exists and all widgets in the selection
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4023
     can change their layout through to a move or align operation.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4024
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4025
    |canvas|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4026
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4027
    selection size == 0 ifTrue:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4028
        ^ false
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4029
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4030
    canvas := self canvas.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4031
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4032
    selection do:[:i|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4033
        i == 1 ifTrue:[^ false].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4034
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4035
        (canvas canChangeLayoutOfView:((listOfNodes at:i) contents view)) ifFalse:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4036
            ^ false
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4037
        ]
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4038
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4039
    ^ true
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4040
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4041
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4042
canMoveSelectionIntoContainer
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4043
    "returns true in case that one component is selected and can change its container
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4044
     widget to the next element in the list which will have the same container.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4045
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4046
    |item prnt|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4047
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4048
    (     (item := self selectedNode) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4049
      or:[(prnt := item parent) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4050
      or:[(prnt := prnt childAt:((prnt indexOfChild:item) + 1)) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4051
      or:[prnt contents spec class supportsSubComponents not]]]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4052
    ) ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4053
        ^ false
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4054
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4055
  ^ true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4056
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4057
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4058
canMoveSelectionOutOfContainer
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4059
    "returns true in case that one component is selected which is contained within
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4060
     another component.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4061
    "
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4062
    |item prnt|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4063
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4064
    (     (item := self selectedNode) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4065
      or:[(prnt := item parent) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4066
      or:[prnt parent isNil]]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4067
    ) ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4068
        ^ false
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4069
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4070
  ^ true
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4071
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4072
301
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4073
canResizeSelectedWidget
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4074
    "returns true in case of one widget selected and is contained
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4075
     within a widget which allows to resize sub components
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4076
    "
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4077
    |n|
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4078
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4079
    (n := self selectedNode) notNil ifTrue:[
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4080
        (n := n parent) notNil ifTrue:[
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4081
            ^ (n parent isNil or:[n contents spec class canResizeSubComponents])
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4082
        ]
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4083
    ].
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4084
    ^ false
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4085
!
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4086
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4087
hasOneSelectionOtherThanCanvas
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4088
    "returns true in case that one selection exists other than the canvas
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4089
    "
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4090
    ^ (selection size == 1 and:[selection first ~~ 1])
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  4091
!
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  4092
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  4093
isCanvasSelected
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  4094
    "returns true in case of a single selection and the
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  4095
     selection is the canvas (index 1)
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  4096
    "
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  4097
    ^ (selection size == 1 and:[self isInSelection:1])
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4098
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4099
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4100
!UIPainter::TreeView methodsFor:'seraching'!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4101
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4102
detectItemRespondsToView:aView
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4103
    "detect the item responding to the view. The item of the view or the first
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4104
     subview providing the item is returned. If no property is detected nil is
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4105
     returned
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4106
    "
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4107
    |view item|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4108
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4109
    (view := aView) notNil ifTrue:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4110
        [(item := self itemOfView:view) isNil] whileTrue:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4111
            (view := view superView) isNil ifTrue:[^ listOfNodes at:1]
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4112
        ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4113
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4114
    ^ item
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4115
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4116
! !
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4117
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4118
!UIPainter::TreeView methodsFor:'user interactions'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4119
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4120
doStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4121
    |item prnt canvas|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4122
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4123
    (     (item := self selectedNode) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4124
      or:[(prnt := item parent) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4125
      or:[(prnt := prnt childAt:((prnt indexOfChild:item) + 1)) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4126
      or:[prnt contents spec class supportsSubComponents not]]]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4127
    ) ifFalse:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4128
        canvas := self canvas.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4129
        canvas deleteSelection.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4130
        canvas setSelection:(prnt contents view) withRedraw:false.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4131
        canvas pasteWithLayout.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4132
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4133
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4134
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4135
doStepOut
250
d2d028799b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 248
diff changeset
  4136
    |item next prnt canvas|
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4137
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4138
    (     (item := self selectedNode) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4139
      or:[(prnt := item parent) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4140
      or:[(next := prnt parent) isNil]]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4141
    ) ifTrue:[
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4142
        ^ self
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4143
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4144
    model removeDependent:self.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4145
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4146
    canvas := self canvas.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4147
    canvas deleteSelection.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4148
    canvas setSelection:(next contents view) withRedraw:false.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4149
    canvas pasteWithLayout.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4150
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4151
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4152
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4153
doStepOver:anIndex
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4154
    "move child 'anOffset' forward or backward in list of children
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4155
    "
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4156
    |item idx size prnt spVw view canvas|
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4157
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4158
    (    (item := self selectedNode) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4159
     or:[(prnt := item parent) isNil
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4160
     or:[(size := prnt children size) < 2
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4161
     or:[(idx  := prnt indexOfChild:item) == 0]]]
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4162
    ) ifTrue:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4163
        ^ self
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4164
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4165
    model removeDependent:self.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4166
    model removeSelection.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4167
    selection := nil.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4168
    model addDependent:self.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4169
    idx := idx + anIndex.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4170
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4171
    idx < 1 ifTrue:[idx := size]
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4172
           ifFalse:[idx > size ifTrue:[idx := 1]].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4173
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4174
    model add:item beforeIndex:idx below:prnt.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4175
    idx    := prnt indexOfChild:item.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4176
    view   := item contents view.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4177
    spVw   := prnt contents view.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4178
    canvas := self canvas.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4179
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4180
    canvas hideSelection.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4181
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4182
 "/ input view might by contained in sequence
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4183
    ((size := canvas findInputViewIn:spVw) ~~ 0 and:[idx >= size]) ifTrue:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4184
        idx := idx + 1
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4185
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4186
    spVw changeSequenceOrderFor:view to:idx.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4187
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4188
    spVw specClass isLayoutContainer ifFalse:[
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4189
        spVw subViews do:[:v| v raise ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4190
        canvas inputView raise
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4191
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4192
    canvas showSelection.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4193
    self selectNode:item.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4194
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4195
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4196
!UIPainter class methodsFor:'documentation'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4197
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4198
version
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4199
    ^ '$Header$'
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4200
! !