UIPainter.st
author Claus Gittinger <cg@exept.de>
Thu, 17 May 2001 13:09:50 +0200
changeset 1468 94fcd912ef88
parent 1466 6fecdd5341dc
child 1487 846527ddac8b
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
     1
"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
     2
 COPYRIGHT (c) 1995-1998 by eXept Software AG
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
     3
	      All Rights Reserved
156
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
1391
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
    14
"{ Package: 'stx:libtool2' }"
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
    15
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
    16
ToolApplicationModel subclass:#UIPainter
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
    17
	instanceVariableNames:'specClass specSelector specSuperclass aspects treeView
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
    18
		selectionPanel tabSelection modified specTool layoutTool helpTool'
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
    19
	classVariableNames:''
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    20
	poolDictionaries:''
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    21
	category:'Interface-UIPainter'
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    22
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    23
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    24
SelectionInTreeView subclass:#TreeView
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
    25
	instanceVariableNames:'lastDrawnMaster cvsEventsDisabled windowSpec windowSpecClass'
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
    26
	classVariableNames:''
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    27
	poolDictionaries:''
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    28
	privateIn:UIPainter
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    29
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
    30
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    31
!UIPainter class methodsFor:'documentation'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    32
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    33
copyright
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    34
"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    35
 COPYRIGHT (c) 1995-1998 by eXept Software AG
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
    36
	      All Rights Reserved
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    37
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    38
 This software is furnished under a license and may be used
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    39
 only in accordance with the terms of that license and with the
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    40
 inclusion of the above copyright notice.   This software may not
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    41
 be provided or otherwise made available to, or used by, any
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    42
 other person.  No title to or ownership of the software is
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    43
 hereby transferred.
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    44
"
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    45
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    46
!
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    47
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    48
documentation
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    49
"
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    50
    The GUI Painter provides the user with a graphical user interface for building own 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    51
    interfaces by interactively assembling widgets and defining the behavior of the widgets.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    52
    The resulting interface specifications can be saved as methods on the application
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    53
    classes, typically subclasses of the class ApplicationModel. These specifications
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    54
    are used by the UIBuilder to generate the application window and its widgets when 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    55
    opening 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:]
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
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:]
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
    61
	Claus Gittinger, eXept Software AG
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
    62
	Claus Atzkern, eXept Software AG
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
    63
	Thomas Zwick, eXept Software AG
156
b332d7117c40 added copyrights
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    64
127
95070ea7ae42 update layout from view
ca
parents: 124
diff changeset
    65
    [see also:]
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
    66
	UIBuilder
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
    67
	ApplicationModel
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
    68
	UISpecification
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    69
"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    70
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    71
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    72
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    73
!UIPainter class methodsFor:'instance creation'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    74
195
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    75
openOnClass:aClass andSelector:aSelector
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
    76
    "open a GUI Painter on aClass and (windowSpec) aSelector
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
    77
    "
195
350f95af5d9d check before sending selector to class
Claus Gittinger <cg@exept.de>
parents: 194
diff changeset
    78
    ^ self new openOnClass:aClass andSelector:aSelector
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    79
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
    80
87
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    81
!UIPainter class methodsFor:'ST-80 queries'!
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    82
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    83
preferenceFor:aSymbol
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
    84
    "ST-80 compatible; always returns false
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
    85
    "
87
cc6d70449622 add ST-80 queries
ca
parents: 81
diff changeset
    86
    ^ false
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    87
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    88
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    89
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
    90
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    91
!UIPainter class methodsFor:'accessing'!
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
    92
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
    93
defaultNameOfCanvas
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    94
    "returns the default name of the application"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
    95
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
    96
    ^'NewApplication'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
    97
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
    98
! !
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
    99
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   100
!UIPainter class methodsFor:'help specs'!
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   101
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   102
helpSpec
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   103
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   104
     by the UIHelpTool of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   105
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   106
    "Do not manually edit this!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   107
     the UIHelpTool may not be able to read the specification."
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
   108
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   109
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   110
     UIHelpTool openOnClass:UIPainter    
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
   111
    "
114befd1c369 add some help text
ca
parents: 287
diff changeset
   112
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   113
    <resource: #help>
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   114
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   115
    ^super helpSpec addPairsFrom:#(
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   116
934
b32cfce56571 help specs
Claus Gittinger <cg@exept.de>
parents: 924
diff changeset
   117
#align
b32cfce56571 help specs
Claus Gittinger <cg@exept.de>
parents: 924
diff changeset
   118
'Widget alignment functions.'
b32cfce56571 help specs
Claus Gittinger <cg@exept.de>
parents: 924
diff changeset
   119
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   120
#alignSelectionBottom
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   121
'Aligns the selected widgets bottom edges with the bottom of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   122
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   123
#alignSelectionCenterHor
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   124
'Aligns the selected widgets centers vertically with the center of the dominant widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   125
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   126
#alignSelectionCenterVer
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   127
'Aligns the selected widgets centers horizontally with the center 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
#alignSelectionLeft
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   130
'Aligns the selected widgets left edges with the left edge 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
#alignSelectionLeftAndRight
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   133
'Aligns the selected widgets left & right edges with 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
#alignSelectionRight
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   136
'Aligns the selected widgets right edges with the right 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
#alignSelectionTop
934
b32cfce56571 help specs
Claus Gittinger <cg@exept.de>
parents: 924
diff changeset
   139
'Aligns the selected widgets top edgegs with the top 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
#alignSelectionTopAndBottom
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   142
'Aligns the selected widgets top and bottom edges with 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
#centerSelectionHor
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   145
'Centers the selected widgets horizontally within their containing widget.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   146
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   147
#centerSelectionVer
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   148
'Centers the selected widgets vertically within their containing widget.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   149
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   150
#changePositionDown
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   151
'Moves the selected widget(s) towards the bottom.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   152
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   153
#changePositionLeft
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   154
'Moves the selected widget(s) towards the left.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   155
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   156
#changePositionRight
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   157
'Moves the selected widget(s) towards the right.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   158
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   159
#changePositionUp
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   160
'Moves the selected widget(s) towards the top.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   161
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   162
#editDimensionCopyExtent
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   163
'Copies the extent of the selected widget.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   164
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   165
#editDimensionCopyLayout
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   166
'Copies the layout of the selected widget.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   167
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   168
#editDimensionDefaultExtent
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   169
'Sets the selected widget(s) extent to their default.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   170
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   171
#editDimensionDefaultHeight
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   172
'Sets the selected widget(s) height to their default.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   173
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   174
#editDimensionDefaultWidth
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   175
'Sets the selected widget(s) width to their default.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   176
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   177
#editDimensionPasteExtent
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   178
'Sets the extent of the selected widget(s) to the last copied extent.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   179
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   180
#editDimensionPasteHeight
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   181
'Sets the height of the selected widget(s) to the height of the last copied layout/extent.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   182
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   183
#editDimensionPasteLayout
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   184
'Sets the layout of the selected widget(s) to the last copied layout.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   185
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   186
#editDimensionPasteWidth
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   187
'Sets the width of the selected widget(s) to the width of the last copied layout/extent.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   188
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   189
#editInspectSpec
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   190
'Opens an inspector on the spec of the selected widget.'
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
   191
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   192
#editInspectView
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   193
'Opens an inspector on the view of the selected widget.'
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   194
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   195
#editOpenSpecDocumentation
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   196
'Opens the documentation of the selected widget.'
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   197
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   198
#fileBrowseAspectMethods
934
b32cfce56571 help specs
Claus Gittinger <cg@exept.de>
parents: 924
diff changeset
   199
'Opens a System Browser on the aspect methods.'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   200
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   201
#fileLoad
1032
abe3ed3bebc9 help texts
Claus Gittinger <cg@exept.de>
parents: 1027
diff changeset
   202
'Opens a dialog to load a window specification from a classes spec method.'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   203
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
   204
#fileLoadSubspec
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   205
'Opens a dialog to load a sub specification from a classes windowSpec method.'
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
   206
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   207
#fileNew
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   208
'Creates a new window spec.'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   209
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   210
#filePickAnInterface
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   211
'Select a view on the screen, generate a window spec for it and edit this spec.'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   212
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   213
#fileSave
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   214
'Saves the window spec in the current class (as spec method).'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   215
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   216
#fileSaveAs
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   217
'Opens a dialog to select class and selector for saving the window spec.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   218
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   219
#fileShowWindowSpec
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   220
'Opens a Workspace showing the 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
#generateAspectMethods
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   223
'Generates aspect methods for defined aspect selectors of the widgets.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   224
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   225
#generateHookMethods
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   226
'Generates startup/release methods. (#closeRequest, #postBuildWith:, #postOpenWith:)'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   227
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   228
#helpExamples
935
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   229
'Show some examples uses of the GUI Painter.'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   230
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   231
#helpFunctions
935
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   232
'Show the documentation on the GUI Painters menu and button functions.'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   233
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   234
#helpLayoutTool
935
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   235
'Show the Layout Tools documentation.'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   236
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   237
#helpSelectedWidget
935
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   238
'Show the documentation of the selected widget.'
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   239
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   240
#helpTutorial
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   241
'Show the GUI Painters documentation.'
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
   242
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   243
#historyMenuItem
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   244
'Edit this windowSpec.'
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   245
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   246
#moveWidgetDown
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   247
'Moves the selected widget one step down.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   248
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   249
#moveWidgetInto
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   250
'Moves the selected widget into next widget as child widget.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   251
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   252
#moveWidgetOut
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   253
'Moves the selected widget out of its parent widget.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   254
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   255
#moveWidgetUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   256
'Moves the selected widget one step up.'
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   257
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   258
#pasteBuffer
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   259
'Pastes the widgets of the clipboard at the current mouse position.'
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   260
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   261
#pasteWithLayout
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   262
'Pastes the widgets of the clipboard without a changing of their layouts.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   263
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   264
#settingsCanvas
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   265
'Shows or hides the canvas window.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   266
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   267
#settingsGallery
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   268
'Shows or hides the gallery window.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   269
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   270
#settingsGridManager
1032
abe3ed3bebc9 help texts
Claus Gittinger <cg@exept.de>
parents: 1027
diff changeset
   271
'Opens a dialog to toggle grid display or to change the grids spacing.'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   272
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   273
#settingsRedefineAspectMethods
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   274
'Toggles the permission to overwrite existing aspect methods.'
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   275
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   276
#settingsAspectsAsInstances
1032
abe3ed3bebc9 help texts
Claus Gittinger <cg@exept.de>
parents: 1027
diff changeset
   277
'Generate aspects as instance variables (or bindings, if off).'
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   278
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   279
#settingsTranscriptHelp
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   280
'Toggles display of help texts (after opening a new GUI Painter).'
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   281
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   282
#settingsUndoManager
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   283
'Opens a dialog to undo modifications.'
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   284
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   285
#spreadSelectionHor
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   286
'Sets the horizontal spaces between the selected widgets as the same.'
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
   287
466
daba7254ed49 no separate help saves
tz
parents: 453
diff changeset
   288
#spreadSelectionVer
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   289
'Sets the vertical spaces between the selected widgets as the same.'
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   290
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
   291
#testGeometryTestMode
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
   292
'Toggles geometry test mode (to define ratios of variable panels and top-window dimension).'
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   293
43a78c5f806c help texts added
tz
parents: 496
diff changeset
   294
#testStartApplication
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   295
'Starts the application with the current window spec.'
194
2b05bd327785 recompute property list when changing view ordering by
ca
parents: 193
diff changeset
   296
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   297
)
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   298
935
43e8ce3b62ca help specs again.
Claus Gittinger <cg@exept.de>
parents: 934
diff changeset
   299
    "Modified: / 31.7.1998 / 19:29:53 / cg"
193
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   300
! !
450d9e5c6f4a checkin from browser
ca
parents: 187
diff changeset
   301
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   302
!UIPainter class methodsFor:'helpers'!
14db1276218c change the spec;
ca
parents: 295
diff changeset
   303
368
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
   304
convertString:aString maxLineSize:maxCharactersPerLine skipLineFeed:skipLineFeed
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   305
    "converts a string to a string collection with maximum characters
14db1276218c change the spec;
ca
parents: 295
diff changeset
   306
     per line
14db1276218c change the spec;
ca
parents: 295
diff changeset
   307
    "
14db1276218c change the spec;
ca
parents: 295
diff changeset
   308
    |stream
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   309
	max     "{ Class:SmallInteger }"
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   310
	size    "{ Class:SmallInteger }"
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   311
	start   "{ Class:SmallInteger }"
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   312
	stop    "{ Class:SmallInteger }"
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   313
	cpySz   "{ Class:SmallInteger }"
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   314
	lnSz    "{ Class:SmallInteger }"
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   315
	atBeginOfLine|
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   316
14db1276218c change the spec;
ca
parents: 295
diff changeset
   317
    maxCharactersPerLine < 20 ifFalse:[max := maxCharactersPerLine - 1]
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   318
			       ifTrue:[max := 20].
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   319
14db1276218c change the spec;
ca
parents: 295
diff changeset
   320
    (size := aString size) <= max ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   321
	^ aString
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   322
    ].
14db1276218c change the spec;
ca
parents: 295
diff changeset
   323
    start  := 1.
14db1276218c change the spec;
ca
parents: 295
diff changeset
   324
    lnSz   := 0.
14db1276218c change the spec;
ca
parents: 295
diff changeset
   325
    stream := (String new:size) writeStream.
14db1276218c change the spec;
ca
parents: 295
diff changeset
   326
542
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   327
    atBeginOfLine := true.
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   328
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   329
    [start <= size] whileTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   330
	(start := aString indexOfNonSeparatorStartingAt:start) == 0 ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   331
	    ^ stream contents
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   332
	].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   333
	(aString at:start) == $\ ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   334
	    skipLineFeed ifFalse:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   335
		stream nextPut:$\
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   336
	    ].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   337
	    start := start + 1.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   338
	    stream cr.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   339
	    start := start + 1.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   340
	    lnSz := 0.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   341
	] ifFalse:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   342
	    (stop := aString indexOfSeparatorStartingAt:start) == 0 ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   343
		stop := size + 1
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   344
	    ].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   345
	    (aString at:(stop - 1)) == $\ ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   346
		stop := stop - 1
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   347
	    ].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   348
	    cpySz := stop - start.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   349
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   350
	    lnSz == 0 ifFalse:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   351
		(lnSz := lnSz + cpySz) >= max ifTrue:[stream cr.    lnSz := cpySz. atBeginOfLine := true. ]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   352
					     ifFalse:[stream space. lnSz := lnSz + 1]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   353
	    ] ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   354
		lnSz := cpySz
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   355
	    ].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   356
	    stream nextPutAll:aString startingAt:start to:(stop - 1).
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   357
	    start := stop.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   358
	]
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   359
    ].
14db1276218c change the spec;
ca
parents: 295
diff changeset
   360
    ^ stream contents
542
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   361
11be1353d34c author in doc method
Claus Gittinger <cg@exept.de>
parents: 538
diff changeset
   362
    "Modified: / 1.2.1998 / 14:42:56 / cg"
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
   363
! !
14db1276218c change the spec;
ca
parents: 295
diff changeset
   364
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   365
!UIPainter class methodsFor:'image specs'!
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   366
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   367
iconAlignB
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   368
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   369
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   370
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   371
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   372
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   373
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   374
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   375
     ImageEditor openOnClass:self andSelector:#iconAlignB
735
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
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   378
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   379
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   380
    ^Icon
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   381
	constantNamed:#'UIPainter iconAlignB'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   382
	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]
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   383
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   384
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   385
iconAlignL
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   386
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   387
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   388
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   389
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   390
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   391
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   392
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   393
     ImageEditor openOnClass:self andSelector:#iconAlignL
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   394
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   395
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   396
    <resource: #image>
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
    ^Icon
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   399
	constantNamed:#'UIPainter iconAlignL'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   400
	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]
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   401
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   402
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   403
iconAlignLR
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   404
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   405
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   406
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
   407
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   408
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   409
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   410
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   411
     ImageEditor openOnClass:self andSelector:#iconAlignLR
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   412
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   413
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   414
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   415
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   416
    ^Icon
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   417
	constantNamed:#'UIPainter iconAlignLR'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   418
	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]
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
   419
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   420
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   421
iconAlignR
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   422
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   423
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   424
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   425
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   426
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   427
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   428
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   429
     ImageEditor openOnClass:self andSelector:#iconAlignR
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   430
    "
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
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   433
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   434
    ^Icon
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   435
	constantNamed:#'UIPainter iconAlignR'
1432
c032f34cd7bb remove shortcutKeyCharacter's from menu
ca
parents: 1397
diff changeset
   436
	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]
c032f34cd7bb remove shortcutKeyCharacter's from menu
ca
parents: 1397
diff changeset
   437
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   438
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   439
iconAlignT
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   440
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   441
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   442
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   443
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   444
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   445
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   446
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   447
     ImageEditor openOnClass:self andSelector:#iconAlignT
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   448
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   449
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   450
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   451
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   452
    ^Icon
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   453
	constantNamed:#'UIPainter iconAlignT'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   454
	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]
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   455
!
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   456
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   457
iconAlignTB
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   458
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   459
     by the ImageEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   460
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   461
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   462
     the ImageEditor may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   463
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   464
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   465
     ImageEditor openOnClass:self andSelector:#iconAlignTB
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   466
    "
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   467
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   468
    <resource: #image>
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   469
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   470
    ^Icon
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   471
	constantNamed:#'UIPainter iconAlignTB'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   472
	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]
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
   473
! !
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
   474
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
   475
!UIPainter class methodsFor:'interface specs'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
   476
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   477
dialogSpecForDefiningClassAndSelector
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   478
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   479
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   480
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
   481
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   482
     the UIPainter may not be able to read the specification."
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   483
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   484
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   485
     UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningClassAndSelector
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   486
     UIPainter new openInterface:#dialogSpecForDefiningClassAndSelector
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   487
    "
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   488
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   489
    <resource: #canvas>
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   490
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   491
    ^
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   492
     
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   493
       #(#FullSpec
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   494
	  #window: 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   495
	   #(#WindowSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   496
	      #name: 'GUI Painter'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   497
	      #layout: #(#LayoutFrame 291 0 130 0 637 0 289 0)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   498
	      #label: 'GUI Painter'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   499
	      #min: #(#Point 350 160)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   500
	      #max: #(#Point 500 160)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   501
	      #bounds: #(#Rectangle 291 130 638 290)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   502
	      #usePreferredExtent: false
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   503
	  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   504
	  #component: 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   505
	   #(#SpecCollection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   506
	      #collection: 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   507
	       #(
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   508
		 #(#FramedBoxSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   509
		    #name: 'FramedBox'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   510
		    #layout: #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   511
		    #component: 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   512
		     #(#SpecCollection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   513
			#collection: 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   514
			 #(
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   515
			   #(#LabelSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   516
			      #name: 'selectorLabel'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   517
			      #layout: #(#AlignmentOrigin 67 0.11 29 0 1 0.5)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   518
			      #label: 'Selector:'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   519
			      #translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   520
			      #adjust: #right
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   521
			      #resizeForLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   522
			  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   523
			   #(#InputFieldSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   524
			      #name: 'methodNameField'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   525
			      #layout: #(#LayoutFrame 70 0.11 18 0 4 1.0 40 0)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   526
			      #tabable: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   527
			      #model: #methodNameChannel
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   528
			      #group: #inputGroup
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   529
			  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   530
			   #(#LabelSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   531
			      #name: 'classLabel'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   532
			      #layout: #(#AlignmentOrigin 67 0.11 54 0 1 0.5)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   533
			      #label: 'Class:'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   534
			      #translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   535
			      #adjust: #right
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   536
			      #resizeForLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   537
			  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   538
			   #(#InputFieldSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   539
			      #name: 'classNameField'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   540
			      #layout: #(#LayoutFrame 70 0.11 43 0 4 1.0 65 0)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   541
			      #tabable: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   542
			      #model: #classNameChannel
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   543
			      #group: #inputGroup
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   544
			  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   545
			   #(#LabelSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   546
			      #name: 'superClassLabel'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   547
			      #layout: #(#AlignmentOrigin 67 0.11 79 0 1 0.5)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   548
			      #label: 'Superclass:'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   549
			      #translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   550
			      #adjust: #right
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   551
			      #resizeForLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   552
			  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   553
			   #(#ComboBoxSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   554
			      #name: 'superclassNameComboBox'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   555
			      #layout: #(#LayoutFrame 70 0.11 68 0 4 1.0 90 0)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   556
			      #tabable: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   557
			      #model: #superclassNameChannel
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   558
			      #comboList: #superclassNameDefaults
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   559
			  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   560
			)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   561
		    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   562
		    #label: 'Define Class And Selector'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   563
		    #labelPosition: #topLeft
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   564
		    #translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   565
		)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   566
		 #(#UISubSpecification
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   567
		    #name: 'subSpec'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   568
		    #layout: #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   569
		    #majorKey: #ToolApplicationModel
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   570
		    #minorKey: #windowSpecForCommitWithoutChannels
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   571
		)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   572
	      )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   573
	  )
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   574
      )
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   575
950
3e227dc788be fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   576
    "Modified: / 13.8.1998 / 19:59:44 / cg"
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   577
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   578
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   579
dialogSpecForDefiningGridParameters
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   580
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   581
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   582
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
   583
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   584
     the UIPainter may not be able to read the specification."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   585
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   586
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   587
     UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningGridParameters
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   588
     UIPainter new openInterface:#dialogSpecForDefiningGridParameters
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   589
    "
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   590
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   591
    <resource: #canvas>
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   592
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   593
    ^
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   594
     
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   595
       #(#FullSpec
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   596
	  #window: 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   597
	   #(#WindowSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   598
	      #name: 'GUI Painter'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   599
	      #layout: #(#LayoutFrame 291 0 130 0 572 0 327 0)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   600
	      #label: 'GUI Painter'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   601
	      #min: #(#Point 300 200)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   602
	      #max: #(#Point 300 200)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   603
	      #bounds: #(#Rectangle 291 130 573 328)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   604
	      #usePreferredExtent: false
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   605
	  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   606
	  #component: 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   607
	   #(#SpecCollection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   608
	      #collection: 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   609
	       #(
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   610
		 #(#FramedBoxSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   611
		    #name: 'FramedBox'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   612
		    #layout: #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   613
		    #component: 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   614
		     #(#SpecCollection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   615
			#collection: 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   616
			 #(
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   617
			   #(#CheckBoxSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   618
			      #name: 'ShowGridCheckBox'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   619
			      #layout: #(#Point 13 14)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   620
			      #model: #showGrid
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   621
			      #label: 'Show Grid'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   622
			  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   623
			   #(#CheckBoxSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   624
			      #name: 'AlignCheckBox'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   625
			      #layout: #(#Point 13 42)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   626
			      #model: #alignToGrid
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   627
			      #label: 'Align To Grid'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   628
			  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   629
			   #(#LabelSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   630
			      #name: 'HorizontalPixelsLabel'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   631
			      #layout: #(#AlignmentOrigin 138 0 89 0 1 0.5)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   632
			      #label: 'Horizontal Pixels:'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   633
			      #translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   634
			      #adjust: #right
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   635
			      #resizeForLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   636
			  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   637
			   #(#InputFieldSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   638
			      #name: 'HorizontalPixelsField'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   639
			      #layout: #(#LayoutFrame 144 0 77 0 197 0 99 0)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   640
			      #model: #hspace
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   641
			      #group: #inputGroup
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   642
			      #type: #numberOrNil
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   643
			  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   644
			   #(#LabelSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   645
			      #name: 'VerticalPixelsLabel'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   646
			      #layout: #(#AlignmentOrigin 139 0 114 0 1 0.5)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   647
			      #label: 'Vertical Pixels:'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   648
			      #translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   649
			      #adjust: #right
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   650
			      #resizeForLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   651
			  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   652
			   #(#InputFieldSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   653
			      #name: 'VerticalPixelsField'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   654
			      #layout: #(#LayoutFrame 144 0 102 0 197 0 124 0)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   655
			      #model: #vspace
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   656
			      #group: #inputGroup
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   657
			      #type: #numberOrNil
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   658
			  )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   659
			)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   660
		    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   661
		    #label: 'Grid Parameter'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   662
		    #labelPosition: #topLeft
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   663
		    #translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   664
		)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   665
		 #(#UISubSpecification
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   666
		    #name: 'subSpec'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   667
		    #layout: #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   668
		    #majorKey: #ToolApplicationModel
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   669
		    #minorKey: #windowSpecForCommitWithoutChannels
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   670
		)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   671
	      )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   672
	  )
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   673
      )
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
   674
950
3e227dc788be fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents: 939
diff changeset
   675
    "Modified: / 13.8.1998 / 20:00:00 / cg"
366
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   676
!
68b0e0a329a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 365
diff changeset
   677
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   678
windowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   679
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   680
     by the UIPainter of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   681
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   682
    "Do not manually edit this!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   683
     the UIPainter may not be able to read the specification."
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   684
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   685
    "
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   686
     UIPainter new openOnClass:UIPainter andSelector:#windowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   687
     UIPainter new openInterface:#windowSpec
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   688
     UIPainter open
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   689
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   690
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   691
    <resource: #canvas>
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   692
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
   693
    ^ 
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
   694
     #(#FullSpec
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   695
        #name: #windowSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   696
        #window: 
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
   697
       #(#WindowSpec
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   698
          #label: 'GUI Painter'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   699
          #name: 'GUI Painter'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   700
          #min: #(#Point 560 460)
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   701
          #max: #(#Point 1160 870)
1457
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   702
          #bounds: #(#Rectangle 16 46 624 569)
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   703
          #menu: #menu
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   704
        )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   705
        #component: 
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
   706
       #(#SpecCollection
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   707
          #collection: #(
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   708
           #(#MenuPanelSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   709
              #name: 'menuToolbarView'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   710
              #layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   711
              #tabable: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   712
              #menu: #menuToolbar
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   713
            )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   714
           #(#VariableHorizontalPanelSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   715
              #name: 'hpanel'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   716
              #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0)
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   717
              #level: 1
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   718
              #component: 
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   719
             #(#SpecCollection
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   720
                #collection: #(
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   721
                 #(#ArbitraryComponentSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   722
                    #name: 'treeView'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   723
                    #tabable: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   724
                    #menu: #menuEdit
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   725
                    #hasHorizontalScrollBar: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   726
                    #hasVerticalScrollBar: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   727
                    #miniScrollerHorizontal: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   728
                    #miniScrollerVertical: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   729
                    #hasBorder: false
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   730
                    #component: #treeView
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   731
                  )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   732
                 #(#ViewSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   733
                    #name: 'specHolderView'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   734
                    #borderWidth: 1
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   735
                    #component: 
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   736
                   #(#SpecCollection
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   737
                      #collection: #(
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   738
                       #(#MenuPanelSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   739
                          #name: 'menuToolbar2View'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   740
                          #layout: #(#LayoutFrame -1 0.0 -2 0 -1 1.0 30 0)
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   741
                          #enableChannel: #canMoveOrAlignSelection
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   742
                          #tabable: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   743
                          #menu: #menuToolbar2
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   744
                        )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   745
                       #(#HorizontalPanelViewSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   746
                          #name: 'horizontalPanelView1'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   747
                          #layout: #(#LayoutFrame -163 1 -1 0 -35 1.0 28 0)
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   748
                          #horizontalLayout: #fit
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   749
                          #verticalLayout: #fit
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   750
                          #horizontalSpace: 0
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   751
                          #verticalSpace: 0
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   752
                          #component: 
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   753
                         #(#SpecCollection
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   754
                            #collection: #(
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   755
                             #(#ArrowButtonSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   756
                                #name: 'MoveLeftButton'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   757
                                #activeHelpKey: #changePositionLeft
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   758
                                #tabable: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   759
                                #model: #moveSelectionLeft
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   760
                                #enableChannel: #canMoveOrAlignSelection
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   761
                                #isTriggerOnDown: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   762
                                #direction: #left
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   763
                                #useDefaultExtent: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   764
                              )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   765
                             #(#ArrowButtonSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   766
                                #name: 'MoveRightButton'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   767
                                #activeHelpKey: #changePositionRight
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   768
                                #tabable: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   769
                                #model: #moveSelectionRight
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   770
                                #enableChannel: #canMoveOrAlignSelection
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   771
                                #isTriggerOnDown: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   772
                                #actionValue: ''
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   773
                                #direction: #right
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   774
                                #useDefaultExtent: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   775
                              )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   776
                             #(#ArrowButtonSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   777
                                #name: 'MoveDownButton'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   778
                                #activeHelpKey: #changePositionDown
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   779
                                #tabable: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   780
                                #model: #moveSelectionDown
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   781
                                #enableChannel: #canMoveOrAlignSelection
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   782
                                #isTriggerOnDown: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   783
                                #actionValue: ''
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   784
                                #direction: #down
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   785
                                #useDefaultExtent: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   786
                              )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   787
                             #(#ArrowButtonSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   788
                                #name: 'MoveUpButton'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   789
                                #activeHelpKey: #changePositionUp
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   790
                                #tabable: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   791
                                #model: #moveSelectionUp
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   792
                                #enableChannel: #canMoveOrAlignSelection
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   793
                                #isTriggerOnDown: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   794
                                #actionValue: ''
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   795
                                #direction: #up
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   796
                                #useDefaultExtent: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   797
                              )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   798
                             )
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
   799
                           
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   800
                          )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   801
                        )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   802
                       #(#ActionButtonSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   803
                          #label: 'helpIcon'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   804
                          #name: 'openWidgetDocumentationButton'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   805
                          #layout: #(#LayoutFrame -28 1 -1 0 0 1 28 0)
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   806
                          #activeHelpKey: #editOpenSpecDocumentation
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   807
                          #hasCharacterOrientedLabel: false
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   808
                          #tabable: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   809
                          #model: #doOpenWidgetDocumentation
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   810
                        )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   811
                       #(#NoteBookViewSpec
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   812
                          #name: 'noteBook'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   813
                          #layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -30 1.0)
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   814
                          #enableChannel: #enableChannel
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   815
                          #tabable: true
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   816
                          #model: #tabModel
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   817
                          #menu: #tabList
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   818
                          #canvas: #noteBookView
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   819
                        )
1457
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   820
                       #(#HorizontalPanelViewSpec
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   821
                          #name: 'HorizontalPanel1'
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   822
                          #layout: #(#LayoutFrame 2 0 -28 1 -2 1 -2 1)
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   823
                          #horizontalLayout: #center
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   824
                          #verticalLayout: #center
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   825
                          #horizontalSpace: 3
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   826
                          #verticalSpace: 3
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   827
                          #reverseOrderIfOKAtLeft: true
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   828
                          #component: 
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   829
                         #(#SpecCollection
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   830
                            #collection: #(
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   831
                             #(#ActionButtonSpec
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   832
                                #label: 'Cancel'
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   833
                                #name: 'cancelButton'
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   834
                                #activeHelpKey: #commitCancel
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   835
                                #tabable: true
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   836
                                #model: #cancel
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   837
                                #enableChannel: #modifiedChannel
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   838
                                #extent: #(#Point 201 24)
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   839
                              )
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   840
                             #(#ActionButtonSpec
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   841
                                #label: 'OK'
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   842
                                #name: 'acceptButton'
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   843
                                #activeHelpKey: #commitOK
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   844
                                #tabable: true
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   845
                                #model: #accept
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   846
                                #enableChannel: #modifiedChannel
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   847
                                #extent: #(#Point 201 24)
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   848
                              )
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   849
                             )
8c15098c3469 ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents: 1456
diff changeset
   850
                           
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   851
                          )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   852
                        )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   853
                       )
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
   854
                     
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   855
                    )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   856
                  )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   857
                 )
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
   858
               
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   859
              )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   860
              #handles: #(#Any 0.318868 1.0)
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   861
            )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   862
           #(#UISubSpecification
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   863
              #name: 'infoBarSubSpec'
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   864
              #layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   865
              #majorKey: #ToolApplicationModel
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   866
              #minorKey: #windowSpecForInfoBar
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   867
            )
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   868
           )
1115
1d0ff67419fc arrowButtons smaller
Claus Gittinger <cg@exept.de>
parents: 1103
diff changeset
   869
         
1317
49d6dac15a57 update focusSequence in UIPainter
ca
parents: 1316
diff changeset
   870
        )
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   871
      )
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   872
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   873
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   874
!UIPainter class methodsFor:'menu specs'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
   875
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   876
menu
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   877
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   878
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   879
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   880
    "Do not manually edit this!! If it is corrupted,
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
   881
     the MenuEditor may not be able to read the specification."
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   882
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
   883
    "
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   884
     MenuEditor new openOnClass:UIPainter andSelector:#menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   885
     (Menu new fromLiteralArrayEncoding:(UIPainter menu)) startUp
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   886
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   887
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   888
    <resource: #menu>
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   889
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   890
    ^
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   891
     
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   892
       #(#Menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   893
          
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   894
	   #(
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   895
	     #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   896
		#label: 'About'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   897
		#translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   898
		#activeHelpKey: #about
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   899
		#labelImage: #(#ResourceRetriever nil #menuIcon)
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   900
		#submenuChannel: #menuAbout
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   901
	    )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   902
	     #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   903
		#label: 'File'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   904
		#translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   905
		#activeHelpKey: #file
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   906
		#enabled: #enableChannel
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   907
		#submenu: 
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   908
		 #(#Menu
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
   909
                    
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   910
		     #(
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   911
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   912
			  #label: 'New'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   913
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   914
			  #value: #doNew
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   915
			  #activeHelpKey: #fileNew
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   916
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   917
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   918
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   919
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   920
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   921
			  #label: 'Load...'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   922
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   923
			  #value: #doLoad
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   924
			  #activeHelpKey: #fileLoad
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   925
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   926
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   927
			  #label: 'Load Subspec...'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   928
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   929
			  #value: #doLoadSubspec
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   930
			  #activeHelpKey: #fileLoadSubspec
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   931
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   932
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   933
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   934
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   935
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   936
			  #label: 'Save'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   937
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   938
			  #value: #doSave
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   939
			  #activeHelpKey: #fileSave
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   940
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   941
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   942
			  #label: 'Save As...'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   943
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   944
			  #value: #doSaveAs
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   945
			  #activeHelpKey: #fileSaveAs
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   946
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   947
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   948
			  #label: 'Define Class And Selector...'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   949
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   950
			  #value: #doDefineClassAndSelector
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   951
			  #activeHelpKey: #fileSaveAs
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   952
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   953
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   954
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   955
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   956
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   957
			  #label: 'Pick A Window Spec...'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   958
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   959
			  #value: #doPickAView
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   960
			  #activeHelpKey: #filePickAnInterface
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   961
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   962
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   963
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   964
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   965
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   966
			  #label: 'Show Window Spec'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   967
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   968
			  #value: #doWindowSpec
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   969
			  #activeHelpKey: #fileShowWindowSpec
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   970
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   971
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   972
			  #label: 'Browse Class'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   973
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   974
			  #value: #doBrowseClass
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   975
			  #activeHelpKey: #fileBrowseClass
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   976
			  #enabled: #hasSpecClass
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   977
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   978
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   979
			  #label: 'Browse Aspect Methods'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   980
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   981
			  #value: #doBrowseAspectMethods
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   982
			  #activeHelpKey: #fileBrowseAspectMethods
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   983
			  #enabled: #hasSpecClass
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   984
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   985
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   986
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   987
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   988
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   989
			  #label: 'Exit'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   990
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   991
			  #value: #closeRequest
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   992
			  #activeHelpKey: #fileExit
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   993
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   994
		    ) nil
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   995
		    nil
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   996
		)
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   997
	    )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   998
	     #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
   999
		#label: 'Edit'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1000
		#translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1001
		#activeHelpKey: #edit
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1002
		#submenuChannel: #menuEdit
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1003
	    )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1004
	     #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1005
		#label: 'Align'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1006
		#translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1007
		#activeHelpKey: #align
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1008
		#submenuChannel: #menuAlign
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1009
	    )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1010
	     #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1011
		#label: 'Generate'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1012
		#translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1013
		#activeHelpKey: #generate
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1014
		#submenu: 
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1015
		 #(#Menu
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1016
                    
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1017
		     #(
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1018
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1019
			  #label: 'Aspect Methods'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1020
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1021
			  #value: #doGenerateAspectMethods
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1022
			  #activeHelpKey: #generateAspectMethods
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1023
			  #enabled: #hasSpecClass
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1024
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1025
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1026
			  #label: 'Menu Stub Methods'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1027
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1028
			  #value: #doGenerateMenuMethods
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1029
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1030
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1031
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1032
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1033
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1034
			  #label: 'Hook Methods'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1035
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1036
			  #value: #doGenerateHookMethods
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1037
			  #activeHelpKey: #generateHookMethods
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1038
			  #enabled: #hasSpecClass
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1039
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1040
		    ) nil
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1041
		    nil
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1042
		)
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1043
	    )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1044
	     #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1045
		#label: 'Test'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1046
		#translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1047
		#activeHelpKey: #test
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1048
		#submenu: 
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1049
		 #(#Menu
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1050
                    
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1051
		     #(
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1052
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1053
			  #label: 'Start Application'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1054
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1055
			  #value: #doStartApplication
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1056
			  #activeHelpKey: #testStartApplication
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1057
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1058
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1059
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1060
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1061
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1062
			  #label: 'Geometry Test Mode'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1063
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1064
			  #activeHelpKey: #testGeometryTestMode
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1065
			  #indication: #testMode:
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1066
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1067
		    ) nil
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1068
		    nil
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1069
		)
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1070
	    )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1071
	     #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1072
		#label: 'Settings'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1073
		#translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1074
		#activeHelpKey: #settings
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1075
		#submenu: 
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1076
		 #(#Menu
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1077
                    
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1078
		     #(
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1079
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1080
			  #label: 'Canvas'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1081
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1082
			  #activeHelpKey: #settingsCanvas
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1083
			  #indication: #painterShown
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1084
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1085
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1086
			  #label: 'Gallery'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1087
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1088
			  #activeHelpKey: #settingsGallery
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1089
			  #indication: #galleryShown
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1090
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1091
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1092
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1093
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1094
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1095
			  #label: 'Redefine Aspect Methods'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1096
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1097
			  #activeHelpKey: #settingsRedefineAspectMethods
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1098
			  #enabled: #hasSpecClass
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1099
			  #indication: #redefineAspectMethods:
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1100
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1101
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1102
			  #label: 'Aspects As Instances'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1103
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1104
			  #activeHelpKey: #settingsAspectsAsInstances
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1105
			  #enabled: #hasSpecClass
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1106
			  #indication: #generateAspectsAsInstanceVariables:
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1107
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1108
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1109
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1110
		      )
1032
abe3ed3bebc9 help texts
Claus Gittinger <cg@exept.de>
parents: 1027
diff changeset
  1111
"/                       #(#MenuItem
abe3ed3bebc9 help texts
Claus Gittinger <cg@exept.de>
parents: 1027
diff changeset
  1112
"/                          #label: 'Fonts'
abe3ed3bebc9 help texts
Claus Gittinger <cg@exept.de>
parents: 1027
diff changeset
  1113
"/                          #submenuChannel: #menuFont
abe3ed3bebc9 help texts
Claus Gittinger <cg@exept.de>
parents: 1027
diff changeset
  1114
"/                      )
abe3ed3bebc9 help texts
Claus Gittinger <cg@exept.de>
parents: 1027
diff changeset
  1115
"/                       #(#MenuItem
abe3ed3bebc9 help texts
Claus Gittinger <cg@exept.de>
parents: 1027
diff changeset
  1116
"/                          #label: '-'
abe3ed3bebc9 help texts
Claus Gittinger <cg@exept.de>
parents: 1027
diff changeset
  1117
"/                      )
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1118
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1119
			  #label: 'Undo Manager...'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1120
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1121
			  #value: #openUndoMenu
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1122
			  #activeHelpKey: #settingsUndoManager
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1123
			  #enabled: #hasUndoHistory
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1124
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1125
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1126
			  #label: 'Grid Manager...'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1127
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1128
			  #value: #doDefineGrid
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1129
			  #activeHelpKey: #settingsGridManager
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1130
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1131
		    ) nil
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1132
		    nil
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1133
		)
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1134
	    )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1135
	     #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1136
		#label: 'History'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1137
		#translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1138
		#activeHelpKey: #history
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1139
		#submenuChannel: #menuHistory
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1140
	    )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1141
	     #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1142
		#label: 'Help'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1143
		#translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1144
		#startGroup: #right
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1145
		#activeHelpKey: #help
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1146
		#submenu: 
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1147
		 #(#Menu
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1148
                    
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1149
		     #(
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1150
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1151
			  #label: 'Tutorial'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1152
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1153
			  #value: #openHTMLDocument:
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1154
			  #activeHelpKey: #helpTutorial
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1155
			  #argument: 'tools/uipainter/TOP.html'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1156
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1157
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1158
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1159
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1160
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1161
			  #label: 'Functions'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1162
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1163
			  #value: #openHTMLDocument:
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1164
			  #activeHelpKey: #helpFunctions
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1165
			  #argument: 'tools/uipainter/Functions.html'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1166
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1167
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1168
			  #label: 'Examples'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1169
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1170
			  #value: #openHTMLDocument:
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1171
			  #activeHelpKey: #helpExamples
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1172
			  #argument: 'tools/uipainter/Examples.html'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1173
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1174
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1175
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1176
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1177
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1178
			  #label: 'Help Tool'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1179
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1180
			  #value: #openHTMLDocument:
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1181
			  #activeHelpKey: #helpHelpTool
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1182
			  #argument: 'tools/uipainter/HelpTool.html'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1183
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1184
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1185
			  #label: 'Layout Tool'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1186
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1187
			  #value: #openHTMLDocument:
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1188
			  #activeHelpKey: #helpLayoutTool
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1189
			  #argument: 'tools/uipainter/LayoutTool.html'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1190
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1191
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1192
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1193
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1194
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1195
			  #label: 'Selected Widget'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1196
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1197
			  #value: #doOpenWidgetDocumentation
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1198
			  #activeHelpKey: #helpSelectedWidget
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1199
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1200
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1201
			  #label: '-'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1202
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1203
		       #(#MenuItem
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1204
			  #label: 'Show Help Texts'
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1205
			  #translateLabel: true
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1206
			  #activeHelpKey: #helpShowHelp
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1207
			  #indication: #showingHelp:
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1208
		      )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1209
		    ) nil
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1210
		    nil
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1211
		)
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1212
	    )
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1213
	  ) nil
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  1214
	  nil
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1215
      )
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  1216
966
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  1217
    "Modified: / 23.8.1998 / 16:09:22 / cg"
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1218
!
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  1219
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1220
menuAlign
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1221
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1222
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1223
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  1224
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1225
     the MenuEditor may not be able to read the specification."
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1226
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1227
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1228
     MenuEditor new openOnClass:UIPainter andSelector:#menuAlign
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1229
     (Menu new fromLiteralArrayEncoding:(UIPainter menuAlign)) startUp
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1230
    "
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1231
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1232
    <resource: #menu>
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1233
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1234
    ^
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1235
     
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1236
       #(#Menu
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1237
          
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1238
	   #(
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1239
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1240
		#label: 'Left'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1241
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1242
		#value: #alignSelectionLeft
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1243
		#activeHelpKey: #alignSelectionLeft
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1244
		#enabled: #canMoveOrAlignSelection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1245
		#labelImage: #(#ResourceRetriever #UIPainter #iconAlignL 'Left')
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1246
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1247
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1248
		#label: 'Right'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1249
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1250
		#value: #alignSelectionRight
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1251
		#activeHelpKey: #alignSelectionRight
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1252
		#enabled: #canMoveOrAlignSelection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1253
		#labelImage: #(#ResourceRetriever #UIPainter #iconAlignR 'Right')
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1254
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1255
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1256
		#label: 'Left & Right'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1257
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1258
		#value: #alignSelectionLeftAndRight
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1259
		#activeHelpKey: #alignSelectionLeftAndRight
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1260
		#enabled: #canMoveOrAlignSelection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1261
		#labelImage: #(#ResourceRetriever #UIPainter #iconAlignLR 'Left & Right')
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1262
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1263
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1264
		#label: 'Top'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1265
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1266
		#value: #alignSelectionTop
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1267
		#activeHelpKey: #alignSelectionTop
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1268
		#enabled: #canMoveOrAlignSelection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1269
		#labelImage: #(#ResourceRetriever #UIPainter #iconAlignT 'Top')
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1270
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1271
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1272
		#label: 'Bottom'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1273
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1274
		#value: #alignSelectionBottom
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1275
		#activeHelpKey: #alignSelectionBottom
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1276
		#enabled: #canMoveOrAlignSelection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1277
		#labelImage: #(#ResourceRetriever #UIPainter #iconAlignB 'Bottom')
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1278
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1279
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1280
		#label: 'Top & Bottom'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1281
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1282
		#value: #alignSelectionTopAndBottom
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1283
		#activeHelpKey: #alignSelectionTopAndBottom
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1284
		#enabled: #canMoveOrAlignSelection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1285
		#labelImage: #(#ResourceRetriever #UIPainter #iconAlignTB 'Top & Bottom')
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1286
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1287
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1288
		#label: '-'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1289
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1290
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1291
		#label: 'Centered Horizontal'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1292
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1293
		#value: #alignSelectionCenterHor
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1294
		#activeHelpKey: #alignSelectionCenterHor
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1295
		#enabled: #canMoveOrAlignSelection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1296
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1297
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1298
		#label: 'Centered Vertical'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1299
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1300
		#value: #alignSelectionCenterVer
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1301
		#activeHelpKey: #alignSelectionCenterVer
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1302
		#enabled: #canMoveOrAlignSelection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1303
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1304
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1305
		#label: '-'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1306
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1307
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1308
		#label: 'Center Horizontal In Frame'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1309
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1310
		#value: #centerSelectionHor
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1311
		#activeHelpKey: #centerSelectionHor
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1312
		#enabled: #canMoveOrAlignSelection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1313
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1314
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1315
		#label: 'Center Vertical In Frame'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1316
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1317
		#value: #centerSelectionVer
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1318
		#activeHelpKey: #centerSelectionVer
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1319
		#enabled: #canMoveOrAlignSelection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1320
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1321
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1322
		#label: '-'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1323
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1324
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1325
		#label: 'Spread Horizontal'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1326
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1327
		#value: #spreadSelectionHor
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1328
		#activeHelpKey: #spreadSelectionHor
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1329
		#enabled: #canMoveOrAlignSelection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1330
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1331
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1332
		#label: 'Spread Vertical'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1333
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1334
		#value: #spreadSelectionVer
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1335
		#activeHelpKey: #spreadSelectionVer
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1336
		#enabled: #canMoveOrAlignSelection
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1337
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1338
	  ) nil
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1339
	  nil
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1340
      )
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  1341
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  1342
    "Modified: / 20.5.1998 / 01:42:57 / cg"
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1343
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1344
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1345
menuEdit
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1346
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1347
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1348
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  1349
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1350
     the MenuEditor may not be able to read the specification."
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1351
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1352
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1353
     MenuEditor new openOnClass:UIPainter andSelector:#menuEdit
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1354
     (Menu new fromLiteralArrayEncoding:(UIPainter menuEdit)) startUp
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1355
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1356
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1357
    <resource: #menu>
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1358
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1359
    ^
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1360
     
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1361
       #(#Menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1362
          
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1363
           #(
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1364
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1365
                #label: 'Undo'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1366
                #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1367
                #nameKey: #undo
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1368
                #value: #undoLast
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1369
                #activeHelpKey: #editUndo
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1370
                #enabled: #hasUndoHistory
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1371
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1372
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1373
                #label: '-'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1374
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1375
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1376
                #label: 'Cut'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1377
                #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1378
                #value: #deleteSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1379
                #activeHelpKey: #editCut
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1380
                #enabled: #valueOfCanCut
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1381
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1382
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1383
                #label: 'Copy'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1384
                #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1385
                #value: #copySelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1386
                #activeHelpKey: #editCopy
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1387
                #enabled: #valueOfCanCopy
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1388
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1389
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1390
                #label: 'Paste'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1391
                #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1392
                #value: #pasteBuffer
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1393
                #activeHelpKey: #pasteBuffer
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1394
                #enabled: #valueOfCanPaste
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1395
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1396
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1397
                #label: 'Delete'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1398
                #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1399
                #value: #deleteTotalSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1400
                #activeHelpKey: #editDelete
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1401
                #enabled: #valueOfCanCut
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1402
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1403
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1404
                #label: '-'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1405
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1406
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1407
                #label: 'Paste With Layout'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1408
                #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1409
                #value: #pasteWithLayout
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1410
                #activeHelpKey: #pasteWithLayout
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1411
                #enabled: #valueOfCanPasteWithKeepingLayout
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1412
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1413
             #(#MenuItem
1338
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1414
                #label: 'Paste Keeping Absolute Position'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1415
                #translateLabel: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1416
                #value: #pasteKeepingPosition
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1417
                #activeHelpKey: #editPaste
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1418
                #enabled: #valueOfCanPasteWithKeepingLayout
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1419
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1420
             #(#MenuItem
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1421
                #label: '-'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1422
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1423
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1424
                #label: 'Move'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1425
                #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1426
                #enabled: #canMoveSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1427
                #submenuChannel: #menuMove
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1428
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1429
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1430
                #label: 'Dimension'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1431
                #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1432
                #enabled: #hasSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1433
                #submenu: 
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1434
                 #(#Menu
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1435
                    
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1436
                     #(
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1437
                       #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1438
                          #label: 'Default Extent'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1439
                          #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1440
                          #value: #setToDefaultExtent
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1441
                          #activeHelpKey: #editDimensionDefaultExtent
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1442
                          #enabled: #canMoveOrAlignSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1443
                      )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1444
                       #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1445
                          #label: 'Default Width'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1446
                          #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1447
                          #value: #setToDefaultWidth
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1448
                          #activeHelpKey: #editDimensionDefaultWidth
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1449
                          #enabled: #canMoveOrAlignSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1450
                      )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1451
                       #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1452
                          #label: 'Default Height'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1453
                          #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1454
                          #value: #setToDefaultHeight
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1455
                          #activeHelpKey: #editDimensionDefaultHeight
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1456
                          #enabled: #canMoveOrAlignSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1457
                      )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1458
                       #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1459
                          #label: '-'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1460
                      )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1461
                       #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1462
                          #label: 'Copy Layout'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1463
                          #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1464
                          #value: #copyLayout
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1465
                          #activeHelpKey: #editDimensionCopyLayout
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1466
                          #enabled: #hasSingleSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1467
                      )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1468
                       #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1469
                          #label: 'Paste Layout'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1470
                          #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1471
                          #value: #pasteLayout
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1472
                          #activeHelpKey: #editDimensionPasteLayout
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1473
                          #enabled: #canMoveOrAlignSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1474
                      )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1475
                       #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1476
                          #label: 'Exchange Layouts'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1477
                          #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1478
                          #value: #exchangeLayouts
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1479
                          #activeHelpKey: #editDimensionExchangeLayouts
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1480
                          #enabled: #canExchangeSelectionLayouts
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1481
                      )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1482
                       #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1483
                          #label: '-'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1484
                      )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1485
                       #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1486
                          #label: 'Copy Extent'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1487
                          #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1488
                          #value: #copyExtent
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1489
                          #activeHelpKey: #editDimensionCopyExtent
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1490
                          #enabled: #hasSingleSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1491
                      )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1492
                       #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1493
                          #label: 'Paste Extent'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1494
                          #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1495
                          #value: #pasteExtent
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1496
                          #activeHelpKey: #editDimensionPasteExtent
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1497
                          #enabled: #canMoveOrAlignSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1498
                      )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1499
                       #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1500
                          #label: 'Paste Width'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1501
                          #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1502
                          #value: #pasteWidth
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1503
                          #activeHelpKey: #editDimensionPasteWidth
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1504
                          #enabled: #canMoveOrAlignSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1505
                      )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1506
                       #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1507
                          #label: 'Paste Height'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1508
                          #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1509
                          #value: #pasteHeight
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1510
                          #activeHelpKey: #editDimensionPasteHeight
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1511
                          #enabled: #canMoveOrAlignSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1512
                      )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1513
                    ) nil
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1514
                    nil
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1515
                )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1516
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1517
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1518
                #label: '-'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1519
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1520
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1521
                #label: 'Open Widget Documentation'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1522
                #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1523
                #value: #doOpenWidgetDocumentation
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1524
                #activeHelpKey: #editOpenSpecDocumentation
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1525
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1526
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1527
                #label: '-'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1528
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1529
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1530
                #label: 'Inspect View'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1531
                #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1532
                #value: #doInspectView
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1533
                #activeHelpKey: #editInspectView
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1534
                #enabled: #hasOneSelectionOtherThanCanvas
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1535
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1536
             #(#MenuItem
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1537
                #label: 'Inspect Spec'
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1538
                #translateLabel: true
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1539
                #value: #doInspectSpec
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1540
                #activeHelpKey: #editInspectSpec
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1541
            )
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1542
          ) nil
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1543
          nil
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1544
      )
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  1545
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  1546
    "Modified: / 20.5.1998 / 01:46:00 / cg"
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1547
!
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1548
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1549
menuMove
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1550
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1551
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1552
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  1553
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1554
     the MenuEditor may not be able to read the specification."
498
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1555
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1556
    "
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1557
     MenuEditor new openOnClass:UIPainter andSelector:#menuMove
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1558
     (Menu new fromLiteralArrayEncoding:(UIPainter menuMove)) startUp
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1559
    "
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1560
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1561
    <resource: #menu>
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1562
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1563
    ^
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1564
     
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1565
       #(#Menu
43a78c5f806c help texts added
tz
parents: 496
diff changeset
  1566
          
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1567
	   #(
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1568
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1569
		#label: 'Up'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1570
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1571
		#value: #doStepUp
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1572
		#activeHelpKey: #moveWidgetUp
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1573
		#enabled: #canChangeOrderInContainer
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1574
		#labelImage: #(#ResourceRetriever #Icon #upIcon 'Up')
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1575
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1576
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1577
		#label: 'Down'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1578
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1579
		#value: #doStepDown
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1580
		#activeHelpKey: #moveWidgetDown
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1581
		#enabled: #canChangeOrderInContainer
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1582
		#labelImage: #(#ResourceRetriever #Icon #downIcon 'Down')
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1583
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1584
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1585
		#label: 'Into'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1586
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1587
		#value: #doStepIn
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1588
		#activeHelpKey: #moveWidgetInto
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1589
		#enabled: #canMoveSelectionIntoContainer
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1590
		#labelImage: #(#ResourceRetriever #Icon #downRightIcon 'Into')
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1591
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1592
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1593
		#label: 'Out'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1594
		#translateLabel: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1595
		#value: #doStepOut
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1596
		#activeHelpKey: #moveWidgetOut
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1597
		#enabled: #canMoveSelectionOutOfContainer
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1598
		#labelImage: #(#ResourceRetriever #Icon #leftDownIcon 'Out')
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1599
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1600
	  ) nil
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1601
	  nil
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1602
      )
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1603
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1604
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1605
menuToolbar
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1606
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1607
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1608
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  1609
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1610
     the MenuEditor may not be able to read the specification."
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1611
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1612
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1613
     MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1614
     (Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar)) startUp
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1615
    "
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1616
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1617
    <resource: #menu>
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
     
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1621
       #(#Menu
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1622
          
1338
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1623
           #(
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1624
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1625
                #label: 'Start'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1626
                #isButton: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1627
                #value: #doStartApplication
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1628
                #activeHelpKey: #testStartApplication
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1629
                #labelImage: #(#ResourceRetriever #Icon #startIcon)
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1630
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1631
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1632
                #label: ''
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1633
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1634
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1635
                #label: 'New'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1636
                #isButton: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1637
                #value: #doNew
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1638
                #activeHelpKey: #fileNew
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1639
                #labelImage: #(#ResourceRetriever #Icon #newIcon)
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1640
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1641
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1642
                #label: 'Load'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1643
                #isButton: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1644
                #value: #doLoad
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1645
                #activeHelpKey: #fileLoad
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1646
                #labelImage: #(#ResourceRetriever #Icon #loadIcon)
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1647
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1648
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1649
                #label: 'Save'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1650
                #isButton: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1651
                #value: #doSave
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1652
                #activeHelpKey: #fileSave
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1653
                #labelImage: #(#ResourceRetriever #Icon #saveIcon)
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1654
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1655
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1656
                #label: ''
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1657
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1658
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1659
                #label: 'Cut'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1660
                #isButton: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1661
                #value: #deleteSelection
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1662
                #activeHelpKey: #editCut
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1663
                #enabled: #valueOfCanCut
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1664
                #labelImage: #(#ResourceRetriever #Icon #cutIcon)
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1665
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1666
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1667
                #label: 'Copy'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1668
                #isButton: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1669
                #value: #copySelection
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1670
                #activeHelpKey: #editCopy
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1671
                #enabled: #valueOfCanCopy
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1672
                #labelImage: #(#ResourceRetriever #Icon #copyIcon)
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1673
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1674
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1675
                #label: 'Paste With Layout'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1676
                #isButton: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1677
                #value: #pasteWithLayout
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1678
                #activeHelpKey: #editPaste
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1679
                #enabled: #valueOfCanPasteWithKeepingLayout
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1680
                #labelImage: #(#ResourceRetriever #Icon #pasteIcon)
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1681
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1682
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1683
                #label: 'Delete'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1684
                #isButton: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1685
                #value: #deleteTotalSelection
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1686
                #activeHelpKey: #editDelete
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1687
                #enabled: #valueOfCanCut
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1688
                #labelImage: #(#ResourceRetriever #Icon #deleteIcon)
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1689
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1690
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1691
                #label: ''
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1692
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1693
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1694
                #label: 'Move Up'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1695
                #isButton: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1696
                #value: #doStepUp
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1697
                #activeHelpKey: #moveWidgetUp
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1698
                #enabled: #canChangeOrderInContainer
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1699
                #labelImage: #(#ResourceRetriever #Icon #upIcon)
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1700
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1701
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1702
                #label: 'Move Down'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1703
                #isButton: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1704
                #value: #doStepDown
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1705
                #activeHelpKey: #moveWidgetDown
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1706
                #enabled: #canChangeOrderInContainer
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1707
                #labelImage: #(#ResourceRetriever #Icon #downIcon)
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1708
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1709
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1710
                #label: 'Move Into'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1711
                #isButton: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1712
                #value: #doStepIn
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1713
                #activeHelpKey: #moveWidgetInto
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1714
                #enabled: #canMoveSelectionIntoContainer
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1715
                #labelImage: #(#ResourceRetriever #Icon #downRightIcon)
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1716
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1717
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1718
                #label: 'Move Out'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1719
                #isButton: true
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1720
                #value: #doStepOut
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1721
                #activeHelpKey: #moveWidgetOut
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1722
                #enabled: #canMoveSelectionOutOfContainer
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1723
                #labelImage: #(#ResourceRetriever #Icon #leftDownIcon)
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1724
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1725
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1726
                #label: ''
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1727
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1728
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1729
                #label: 'Canvas'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1730
                #activeHelpKey: #settingsCanvas
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1731
                #indication: #painterShown
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1732
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1733
             #(#MenuItem
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1734
                #label: 'Gallery'
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1735
                #activeHelpKey: #settingsGallery
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1736
                #indication: #galleryShown
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1737
            )
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1738
          ) nil
3c1a528c50db added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents: 1319
diff changeset
  1739
          nil
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1740
      )
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1741
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1742
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1743
menuToolbar2
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1744
    "This resource specification was automatically generated
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1745
     by the MenuEditor of ST/X."
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1746
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  1747
    "Do not manually edit this!! If it is corrupted,
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  1748
     the MenuEditor may not be able to read the specification."
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1749
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1750
    "
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1751
     MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar2
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1752
     (Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar2)) startUp
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1753
    "
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1754
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1755
    <resource: #menu>
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
     
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1759
       #(#Menu
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  1760
          
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1761
	   #(
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1762
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1763
		#label: 'Align Left'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1764
		#isButton: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1765
		#value: #alignSelectionLeft
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1766
		#activeHelpKey: #alignSelectionLeft
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1767
		#labelImage: #(#ResourceRetriever nil #iconAlignL)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1768
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1769
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1770
		#label: 'Align Right'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1771
		#isButton: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1772
		#value: #alignSelectionRight
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1773
		#activeHelpKey: #alignSelectionRight
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1774
		#labelImage: #(#ResourceRetriever nil #iconAlignR)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1775
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1776
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1777
		#label: 'Align Left & Right'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1778
		#isButton: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1779
		#value: #alignSelectionLeftAndRight
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1780
		#activeHelpKey: #alignSelectionLeftAndRight
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1781
		#labelImage: #(#ResourceRetriever nil #iconAlignLR)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1782
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1783
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1784
		#label: ''
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1785
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1786
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1787
		#label: 'Align Top'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1788
		#isButton: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1789
		#value: #alignSelectionTop
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1790
		#activeHelpKey: #alignSelectionTop
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1791
		#labelImage: #(#ResourceRetriever nil #iconAlignT)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1792
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1793
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1794
		#label: 'Align Bottom'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1795
		#isButton: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1796
		#value: #alignSelectionBottom
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1797
		#activeHelpKey: #alignSelectionBottom
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1798
		#labelImage: #(#ResourceRetriever nil #iconAlignB)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1799
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1800
	     #(#MenuItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1801
		#label: 'Align Top & Bottom'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1802
		#isButton: true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1803
		#value: #alignSelectionTopAndBottom
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1804
		#activeHelpKey: #alignSelectionTopAndBottom
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1805
		#labelImage: #(#ResourceRetriever nil #iconAlignTB)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1806
	    )
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1807
	  ) nil
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1808
	  nil
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  1809
      )
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1810
! !
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  1811
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1812
!UIPainter methodsFor:'aspects'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1813
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1814
aspectFor:aKey
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1815
    "returns the aspect for aKey"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1816
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1817
    ^aspects at:aKey ifAbsent:[ super aspectFor:aKey ]
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1818
!
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  1819
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  1820
canChangeOrderInContainer
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1821
    "returns a boolean value holder which is true if the widget order can be changed 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1822
     within their container"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1823
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  1824
    ^ builder booleanValueAspectFor:#canChangeOrderInContainer
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  1825
!
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  1826
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1827
canExchangeSelectionLayouts
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1828
    "returns a boolean value holder which is true in case that the selection 
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1829
     consists of exactly 2 components
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1830
     and all widgets in the selection can change its layout through to a move or
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1831
     align operation"
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1832
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1833
    ^ builder booleanValueAspectFor:#canExchangeSelectionLayouts
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1834
!
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  1835
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1836
canMoveOrAlignSelection
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1837
    "returns a boolean value holder which is true in case that any selection exists
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1838
     and all widgets in the selection can change its layout through to a move or
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1839
     align operation"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1840
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1841
    ^ builder booleanValueAspectFor:#canMoveOrAlignSelection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1842
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1843
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  1844
canMoveSelection
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  1845
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1846
    ^self canChangeOrderInContainer value or: [ 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1847
     self canMoveSelectionOutOfContainer value or: [
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1848
     self canMoveSelectionOutOfContainer value]]
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  1849
!
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  1850
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1851
canMoveSelectionIntoContainer
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1852
    "returns a boolean value holder which is true in case that one widget is selected
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1853
     and can change its container widget to the next element in the list which will have
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1854
     the same container"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1855
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1856
    ^ builder booleanValueAspectFor:#canMoveSelectionIntoContainer
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1857
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1858
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1859
canMoveSelectionOutOfContainer
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1860
    "returns a boolean value holder which is true in case that one widget is selected
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1861
     which is contained within another component"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1862
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1863
    ^ builder booleanValueAspectFor:#canMoveSelectionOutOfContainer
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1864
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1865
118
bc196200ea8b enabled and style
ca
parents: 114
diff changeset
  1866
enableChannel
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1867
    "true if modifications are allowed otherwise running test"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1868
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1869
    ^ self painter enableChannel
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1870
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1871
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1872
galleryShown
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1873
    "returns a boolean value holder which is set to true if the gallery is shown"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1874
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1875
    |holder|
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1876
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1877
    (holder := builder bindingAt:#galleryShown) isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1878
	builder aspectAt:#galleryShown put:(holder :=  true asValue).
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1879
	holder addDependent:self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1880
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1881
    ^ holder
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1882
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1883
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1884
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1885
hasOneSelectionOtherThanCanvas
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1886
    "returns a value holder which is true in case that one widget is selected
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1887
     other than the root"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1888
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1889
    ^ builder booleanValueAspectFor:#hasOneSelectionOtherThanCanvas
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1890
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1891
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  1892
helpIcon
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  1893
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  1894
    ^Icon helpIcon
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  1895
!
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  1896
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1897
noteBookView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1898
    "returns the notebook view; initialize the tools embedded in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1899
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1900
    |noteBook modifiedChannel applBuilder applWindow|
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1901
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1902
    (noteBook := builder bindingAt:#noteBookView) isNil ifTrue:[
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1903
        modifiedChannel := self modifiedChannel.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1904
        noteBook := View new.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1905
        builder aspectAt:#noteBookView put:noteBook.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1906
1314
f22b28597a05 set level of subCanvas'es 'help layout, ...' to 0
ca
parents: 1306
diff changeset
  1907
        layoutTool := UILayoutTool new.
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1908
        layoutTool createBuilder.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1909
        applBuilder := layoutTool builder.
1319
6a245b972637 use ApplicationSubView instead of SimpleView; application query
ca
parents: 1317
diff changeset
  1910
        applWindow  := ApplicationSubView origin:0.0@0.0 corner:1.0@1.0 in:noteBook.
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1911
        applWindow level:0.
1314
f22b28597a05 set level of subCanvas'es 'help layout, ...' to 0
ca
parents: 1306
diff changeset
  1912
        layoutTool masterApplication:self.
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1913
        applBuilder window:applWindow.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1914
        applWindow client:layoutTool spec:#windowSpec builder:applBuilder.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1915
        applBuilder window:applWindow.
1314
f22b28597a05 set level of subCanvas'es 'help layout, ...' to 0
ca
parents: 1306
diff changeset
  1916
        layoutTool modifiedHolder:modifiedChannel.
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1917
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1918
        helpTool := UIHelpTool new.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1919
        helpTool createBuilder.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1920
        applBuilder := helpTool builder.
1319
6a245b972637 use ApplicationSubView instead of SimpleView; application query
ca
parents: 1317
diff changeset
  1921
        applWindow  := ApplicationSubView origin:0.0@0.0 corner:1.0@1.0 in:noteBook.
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1922
        applWindow level:0.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1923
        helpTool buildFromClass:specClass.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1924
        helpTool masterApplication:self.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1925
        applBuilder window:applWindow.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1926
        applWindow client:helpTool spec:#windowSpec builder:applBuilder.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1927
        applBuilder window:applWindow.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1928
        helpTool modifiedHolder:modifiedChannel.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1929
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1930
        specTool := UISpecificationTool new.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1931
        specTool createBuilder.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1932
        applBuilder := specTool builder.
1319
6a245b972637 use ApplicationSubView instead of SimpleView; application query
ca
parents: 1317
diff changeset
  1933
        applWindow  := ApplicationSubView origin:0.0@0.0 corner:1.0@1.0 in:noteBook.
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1934
        specTool masterApplication:self.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1935
        applWindow level:0.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1936
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1937
        applBuilder window:applWindow.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1938
        applWindow client:specTool spec:#windowSpec builder:applBuilder.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1939
        applBuilder window:applWindow.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1940
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  1941
        specTool modifiedHolder:modifiedChannel.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1942
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1943
    ^ noteBook
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1944
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1945
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  1946
painterShown
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1947
    "returns a boolean value holder which is set to true if the painter is shown"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1948
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1949
    |holder|
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1950
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1951
    (holder := builder bindingAt:#painterShown) isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1952
	builder aspectAt:#painterShown put:(holder :=  true asValue).
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1953
	holder addDependent:self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1954
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1955
    ^ holder
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1956
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1957
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  1958
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1959
tabList
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1960
    "returns a value holder which keeps a list of the section labels in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1961
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1962
    |holder|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1963
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1964
    (holder := builder bindingAt:#tabList) isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1965
	builder aspectAt:#tabList put:(holder :=  #(Basics Details Layout) asValue).
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1966
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1967
    ^ holder
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1968
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1969
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1970
tabModel
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1971
    "returns a value holder which keeps the label of the current section in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1972
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1973
    |holder|
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1974
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1975
    (holder := builder bindingAt:#tabModel) isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1976
	holder := AspectAdaptor new subject:self; forAspect:#tabSelection.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1977
	builder aspectAt:#tabModel put:holder.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1978
    ].
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  1979
    ^ holder
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1980
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1981
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1982
treeView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1983
    "returns the tree view which holds all widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  1984
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  1985
    ^ treeView
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1986
!
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1987
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1988
valueOfCanPasteWithKeepingLayout
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1989
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1990
    |holder|
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1991
    (holder := builder bindingAt:#valueOfCanPasteWithKeepingLayout) isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  1992
	builder aspectAt:#valueOfCanPasteWithKeepingLayout put:(holder :=  false asValue).
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1993
    ].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1994
    ^ holder
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1995
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1996
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  1997
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1998
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  1999
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2000
!UIPainter methodsFor:'building editors'!
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2001
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2002
openDataSetColumnEditor
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2003
    "opens a Table Column Editor on current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2004
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2005
    |cls editor specTool columnHolder tableSelector columns|
824
1d5adf147721 change mechanism for opening the dataset builder (step 2)
tz
parents: 819
diff changeset
  2006
1d5adf147721 change mechanism for opening the dataset builder (step 2)
tz
parents: 819
diff changeset
  2007
    (cls := self resolveName:specClass) isNil ifTrue:[
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2008
        self askForSaving ifTrue:[cls := self resolveName:specClass].
1103
ecc91379704b accept before opening an editor
Claus Gittinger <cg@exept.de>
parents: 1071
diff changeset
  2009
    ].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2010
    cls isNil ifTrue:[^ self].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2011
1103
ecc91379704b accept before opening an editor
Claus Gittinger <cg@exept.de>
parents: 1071
diff changeset
  2012
    self modifiedChannel value ifTrue:[
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2013
        (self confirm:'Accept changes made to spec ?') ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2014
            self accept
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2015
        ]
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2016
    ].
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2017
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2018
    editor   := DataSetBuilder new.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2019
    specTool := self specTool.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2020
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2021
    editor masterApplication:self.
824
1d5adf147721 change mechanism for opening the dataset builder (step 2)
tz
parents: 819
diff changeset
  2022
    editor specClass: cls.
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2023
    editor rowClassName:(specTool specification rowClassName).
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2024
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2025
    columnHolder  := specTool aspectFor:#columnHolder.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2026
    tableSelector := columnHolder value.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2027
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2028
    tableSelector := tableSelector size ~~ 0 ifTrue:[tableSelector asSymbol]
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2029
                                            ifFalse:[nil].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2030
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2031
    (tableSelector notNil and:[cls class implements:tableSelector]) ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2032
        editor openModalOnClass:cls andSelector:tableSelector
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2033
    ] ifFalse:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2034
        columns := specTool specification columns.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2035
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2036
        columns size ~~ 0 ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2037
            editor openModalOnResourceSpec:columns
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2038
        ] ifFalse:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2039
            editor openModal
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2040
        ]
827
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  2041
    ].
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  2042
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2043
    editor hasSaved ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2044
        specTool specification columns:nil.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2045
        specTool specification rowClassName:(editor rowClassName).
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2046
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2047
        tableSelector = editor specSelector ifFalse:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2048
            columnHolder value:(editor specSelector).
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2049
            self accept.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2050
        ].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2051
        ^ self
827
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  2052
    ].
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  2053
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2054
    (editor modified and:[tableSelector isNil]) ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2055
        specTool specification columns:(editor columns).
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2056
        specTool specification rowClassName:(editor rowClassName).
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2057
        self modifiedChannel value:true.
827
aa8f49da0f22 change mechanism for opening the dataset builder (step 3)
tz
parents: 824
diff changeset
  2058
    ].
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2059
!
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2060
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2061
openEditMenu
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2062
    "opens a Menu Editor on current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2063
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2064
    |cls selectorOrMenu editor selectedSpec spec holder|
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2065
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2066
    (cls := self resolveName:specClass) isNil ifTrue:[
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2067
        self askForSaving ifTrue:[cls := self resolveName:specClass].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2068
    ].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2069
    cls isNil ifTrue:[^ self].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2070
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2071
    self modifiedChannel value ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2072
        (self confirm:'Accept changes made to spec ?') ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2073
            self accept
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2074
        ]
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2075
    ].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2076
    spec := self specTool specification.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2077
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2078
    (selectorOrMenu := spec menuSelector) notNil ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2079
        selectorOrMenu := selectorOrMenu asSymbol
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2080
    ] ifFalse:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2081
        "/ cg: q&d hack ...
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2082
        selectorOrMenu := nil.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2083
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2084
        (selectedSpec := treeView propertySelected) notNil ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2085
            Object errorSignal handle:[:ex |
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2086
                selectorOrMenu := nil.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2087
            ] do:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2088
                selectorOrMenu := selectedSpec view asMenu.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2089
            ]
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2090
        ].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2091
    ].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2092
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2093
    editor := MenuEditor new.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2094
    editor masterApplication:self.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2095
    editor specClass: cls.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2096
    editor useHelpTool: self helpTool.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2097
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2098
    selectorOrMenu class ~~ Menu
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2099
        ifTrue:  [editor openModalOnClass:cls andSelector:selectorOrMenu]
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2100
        ifFalse: [editor openModalOnMenu:selectorOrMenu].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2101
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2102
    self helpTool updateList.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2103
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2104
    editor hasSaved ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2105
        holder := self specTool aspectFor:#menuSelector.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2106
        holder value:(editor specSelector).
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2107
        self accept.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2108
      ^ self
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2109
    ].
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2110
!
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2111
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2112
openHierarchicalListEditor
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2113
    "opens a Hierarchical List Editor on current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2114
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2115
    |selector editor spec|
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2116
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2117
    (self resolveName:specClass) isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2118
	self askForSaving ifFalse: [^self]
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2119
    ].
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2120
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2121
    spec := self specTool specification.
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2122
    (selector := spec hierarchicalList) notNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2123
	selector := selector asSymbol
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2124
    ].
735
29c8681ce68d no picking for hierarchical lists + error handler for the starting phase
tz
parents: 729
diff changeset
  2125
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2126
    editor := HierarchicalListEditor new.
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2127
    editor masterApplication:self.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2128
    editor openModalOnClass:specClass andSelector:selector.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2129
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2130
    editor specSelector ~= selector ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2131
	editor hasSaved ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2132
	    spec hierarchicalList:editor specSelector.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2133
	    self modifiedChannel value:true.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2134
	    self accept
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2135
	]
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2136
    ]
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2137
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2138
    "Modified: / 16.7.1998 / 18:15:46 / cg"
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2139
!
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2140
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2141
openSubSpecGUIPainter
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2142
    "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
  2143
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2144
    |spec cls meta sel|
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2145
913
12e73e6c57b4 do open building editors after defining first new app class
tz
parents: 892
diff changeset
  2146
    (self resolveName:specClass) isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2147
	self askForSaving ifFalse: [^self]
913
12e73e6c57b4 do open building editors after defining first new app class
tz
parents: 892
diff changeset
  2148
    ]. 
12e73e6c57b4 do open building editors after defining first new app class
tz
parents: 892
diff changeset
  2149
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2150
    spec := self specTool specification.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2151
    cls := spec majorKey.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2152
    cls isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2153
	cls := specClass.
609
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2154
    ].
913
12e73e6c57b4 do open building editors after defining first new app class
tz
parents: 892
diff changeset
  2155
    (cls := self resolveName:cls inClass:(Smalltalk at: specClass asSymbol)) isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2156
	spec majorKey isNil ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2157
	    ^ self warn:'Cannot find class (no majorKey specified)'.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2158
	].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2159
	^ 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
  2160
    ].
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2161
    sel := spec minorKey.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2162
    meta := cls class whichClassIncludesSelector:sel.
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2163
    meta isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2164
	^ 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
  2165
    ].
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2166
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2167
    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
  2168
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2169
!
60f89fba074a Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents: 587
diff changeset
  2170
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2171
openTabListEditor
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2172
    "opens a Tab List Editor on current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2173
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2174
    |selector editor spec cls holder|
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2175
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2176
    (cls := self resolveName:specClass) isNil ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2177
        self askForSaving ifTrue:[cls := self resolveName:specClass].
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2178
    ].
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2179
    cls isNil ifTrue:[^ self].
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2180
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2181
    self modifiedChannel value ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2182
        (self confirm:'Accept changes made to spec ?') ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2183
            self accept
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2184
        ]
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2185
    ].
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2186
    spec := self specTool specification.
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2187
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2188
    (selector := spec listSelector) isArray 
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2189
        ifTrue: [^self warn: 'Cannot open the Tab List Editor on an array!!'].
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2190
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2191
    editor := TabListEditor new.
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2192
    editor masterApplication:self.
1453
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2193
    editor openModalOnClass:cls andSelector:selector.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2194
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2195
    editor hasSaved ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2196
        holder := self specTool aspectFor:#listSelector.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2197
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2198
        holder value ~= editor specSelector ifTrue:[
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2199
            holder value:editor specSelector.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2200
            self accept.
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2201
        ]
0cf534cc29a9 bugfix when after close subtool (table menu ..) when reading selector
ca
parents: 1444
diff changeset
  2202
    ].
513
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2203
! !
a0d00fecb49a support of TabItemEditor
ca
parents: 512
diff changeset
  2204
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2205
!UIPainter methodsFor:'change & update'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2206
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2207
layoutChanged
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2208
    "called by the painter/canvas whenever the layout of the current selected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2209
     widget has changed"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2210
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2211
    self isModified ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2212
        self layoutTool update.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2213
        self clearModifiedFlag
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2214
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2215
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2216
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2217
propertyChanged
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2218
    "called by the painter/canvas whenever the property of the current selected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2219
     widget has changed"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2220
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  2221
    |property spec|
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2222
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2223
    (property := treeView propertySelected) notNil ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2224
        spec := property spec copy.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2225
        self specTool specification:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2226
        self setViewInLayoutTool:(property view) spec:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2227
        self clearModifiedFlag
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2228
    ] ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2229
        self layoutTool layoutView notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2230
            self clearModifiedFlag.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2231
            self treeSelection
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2232
        ]
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2233
    ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2234
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2235
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2236
update:something with:aParameter from:someObject
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2237
    "catches change notifications"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2238
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2239
    |window|
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2240
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2241
    someObject == treeView model ifTrue:[
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2242
	(something == #selection
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2243
	or:[something == #selectionIndex]) ifTrue:[self treeSelection].
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2244
      ^ self
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2245
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2246
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2247
    someObject == self galleryShown ifTrue:[
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2248
	"/ galleryShown toggle changed
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2249
	window := selectionPanel window.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2250
	(someObject value) ifTrue:[
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2251
	    self raiseUIView:window
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2252
	] ifFalse:[
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2253
	    self hideUIView:window
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2254
	].
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2255
      ^ self
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2256
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2257
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2258
    someObject == self painterShown ifTrue:[
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2259
	"/ canvasShown toggle changed
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2260
	window := self painter topView.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2261
	(someObject value) ifTrue:[
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2262
	    self raiseUIView:window
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2263
	] ifFalse:[
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2264
	    self hideUIView:window
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2265
	].
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2266
      ^ self
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2267
    ].
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2268
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2269
    "Modified: / 16.7.1998 / 19:09:57 / cg"
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2270
!
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2271
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2272
updateChannels
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2273
    "updates the channels"
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2274
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2275
    |canCutOrCopy canPaste clipboard sel treeSelection|
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2276
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2277
    self canMoveOrAlignSelection        value:(treeView canMoveOrAlignSelection).
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2278
    self canExchangeSelectionLayouts    value:(treeView canExchangeSelectionLayouts).
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2279
    self canChangeOrderInContainer      value:(treeView canChangeOrderInContainer).
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2280
    self canMoveSelectionIntoContainer  value:(treeView canMoveSelectionIntoContainer).
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2281
    self canMoveSelectionOutOfContainer value:(treeView canMoveSelectionOutOfContainer).
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2282
    self hasOneSelectionOtherThanCanvas value:(treeView hasOneSelectionOtherThanCanvas).
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2283
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2284
    treeView notNil
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2285
    ifTrue:
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2286
    [
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2287
        treeSelection := treeView selection.
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2288
        "/ the top-node cannot be cut, copied or pasted.
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2289
        canCutOrCopy := treeSelection size >= 1 and:[treeSelection first ~~ 1].
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2290
        clipboard := self getSelection.
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2291
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2292
        clipboard isCollection ifTrue:[clipboard notEmpty ifTrue:[sel := clipboard first]]
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2293
                              ifFalse:[sel := clipboard].
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2294
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2295
        canPaste := (sel isKindOf:UISpecification) and: 
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2296
                    [treeSelection size  = 1 
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2297
                    and:[treeSelection first == 1 
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  2298
                    or: [self canPasteInto: treeView selectedNode contents view]]]
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2299
    ].
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2300
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2301
    self valueOfCanCut value: canCutOrCopy.
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2302
    self valueOfCanCopy value: canCutOrCopy.
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2303
    self valueOfCanPaste value: canPaste.            
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2304
    self valueOfCanPasteWithKeepingLayout value: (canPaste "&  self canKeepLayoutInSelection").
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2305
1063
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  2306
"/    self modifiedChannel value: false.
9e710dbc7c92 inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents: 1059
diff changeset
  2307
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  2308
    "Modified: / 16.7.1998 / 19:13:30 / cg"
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2309
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2310
952
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  2311
!UIPainter methodsFor:'defaults'!
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  2312
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  2313
aboutImage
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  2314
    "the image to be displayed in my about-box;
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  2315
     If nil is returned, thhe ST/X default image is used."
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  2316
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  2317
    ^ Image fromFile:'bitmaps/xpmBitmaps/misc_tools/setup_windows.xpm'
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  2318
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  2319
    "Created: / 13.8.1998 / 20:33:05 / cg"
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2320
!
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2321
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2322
defaultWindowSpecClass
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2323
    ^ WindowSpec
952
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  2324
! !
c6408190dc6d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 950
diff changeset
  2325
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2326
!UIPainter methodsFor:'event handling'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2327
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2328
doesNotUnderstand:aMessage
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2329
    "if does not understand incoming messages, detour them to painter"
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2330
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2331
    |painter|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2332
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2333
    painter := self painter.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2334
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2335
    (painter respondsTo:(aMessage selector)) ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2336
	^ aMessage sendTo:painter
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2337
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2338
    super doesNotUnderstand:aMessage
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2339
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2340
! !
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2341
547
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
  2342
!UIPainter methodsFor:'help'!
930b3df19305 help menu item aligned to the right
tz
parents: 542
diff changeset
  2343
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  2344
defaultInfoLabel
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2345
    "returns the default info label"
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  2346
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2347
    specClass isNil ifTrue: [^'No class and selector defined.'].
877
f31f41b29710 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
  2348
    specSelector isNil ifTrue: [^'No selector defined.'].
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  2349
    ^specClass printString, ' >> ', specSelector
877
f31f41b29710 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
  2350
f31f41b29710 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 852
diff changeset
  2351
    "Modified: / 20.6.1998 / 16:49:16 / cg"
297
14db1276218c change the spec;
ca
parents: 295
diff changeset
  2352
! !
14db1276218c change the spec;
ca
parents: 295
diff changeset
  2353
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2354
!UIPainter methodsFor:'private'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2355
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2356
askForModification
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2357
    "asks for window spec modification"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2358
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2359
    |painter|
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2360
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2361
    painter := self painter.
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2362
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2363
    self askForSectionModification.    
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2364
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2365
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2366
    (modified or: [painter isModified or: [self helpTool modified]])
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2367
    ifTrue:[
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2368
        ((YesNoBox title:(resources string:'Window Spec was modified !!'))        
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2369
            noText:(resources string:'Cancel');
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2370
            yesText:(resources string:'Forget it and proceed');
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2371
            showAtPointer;
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2372
            accepted) ifFalse: [^false].
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2373
        modified := false.
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  2374
        painter resetModification
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2375
    ].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2376
    ^true
838
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  2377
0ac5a26498c1 help texts & national strings
Claus Gittinger <cg@exept.de>
parents: 827
diff changeset
  2378
    "Modified: / 20.5.1998 / 02:03:16 / cg"
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2379
!
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2380
808
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  2381
askForSaving
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  2382
    "asks for defining an application class"
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  2383
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  2384
    self askForSectionModification.    
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  2385
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  2386
    ((YesNoBox title:'No application class defined yet!!')        
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2387
	noText:'Cancel';
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2388
	yesText:'Define';
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2389
	showAtPointer;
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2390
	accepted) ifFalse: [^false].
808
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  2391
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  2392
    self doSave.
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  2393
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  2394
    ^true
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  2395
!
4e2ab5e77344 ask first for saving before calling other editors
tz
parents: 807
diff changeset
  2396
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2397
askForSectionModification
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2398
    "asks for section modification in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2399
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2400
    self isModified ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2401
	(self confirm:'Accept modifications in section ' , tabSelection printString asBoldText, '?') ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2402
	    self accept
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2403
	] ifFalse: [
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2404
	    self cancel
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2405
	]
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2406
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2407
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2408
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2409
checkClassAndSelector
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2410
    "checks for class & superclass"
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2411
1211
53cfc272acc9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1204
diff changeset
  2412
    |superclass cls|
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2413
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2414
    specClass isNil ifTrue:[^ false].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2415
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2416
    cls := self resolveName:specClass.
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2417
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2418
    cls isNil ifTrue:[
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2419
	superclass := self resolveName:specSuperclass.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2420
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2421
	superclass isNil ifTrue:[
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2422
	    self warn:'No class named ' , specSuperclass , ' exists!!'.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2423
	    ^ false.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2424
	].
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2425
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2426
	(self confirm:'Create class ' , specClass asBoldText, '?') ifTrue:[
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2427
	    cls := superclass 
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2428
			subclass:(specClass asSymbol)
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2429
			instanceVariableNames:''
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2430
			classVariableNames:''
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2431
			poolDictionaries:''
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2432
			category:'Applications'.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2433
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2434
	    cls name ~= specClass ifTrue:[
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2435
		self information:'Created new class is ' , cls name.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2436
		specClass := cls name
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2437
	    ].
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2438
	    ^ true.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2439
	].
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2440
	^ false.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2441
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2442
    cls isBehavior ifFalse:[
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2443
	self warn:'A global named ' , specClass , ' exists, but it is no class.'.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2444
	^ false.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2445
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2446
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2447
    specSuperclass isBehavior ifFalse:[
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2448
	specSuperclass isEmpty ifFalse:[
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2449
	    superclass := self resolveName:specSuperclass
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2450
	] ifTrue:[
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2451
	    specSuperclass := nil.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2452
	]
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2453
    ] ifTrue:[
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2454
	superclass := specSuperclass
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2455
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2456
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2457
    specSuperclass notNil ifTrue:[
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2458
	superclass isNil ifTrue:[
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2459
	    self warn:'No class named ' , specSuperclass , ' exists!!'.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2460
	    ^ false.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2461
	].
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2462
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2463
	(cls isSubclassOf:superclass) ifFalse:[
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2464
	    self information:('A global named ' , specClass , ' exists,\' ,
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2465
			      'but is not a subclass of ' , superclass name , '.\\' ,
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2466
			      'Check and try again if that is not what you want.') withCRs.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2467
	]
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2468
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2469
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2470
    superclass isNil ifTrue:[
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2471
	cls notNil ifTrue:[
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2472
	    specSuperclass := cls superclass name
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2473
	]
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2474
    ].
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2475
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2476
    ^ true
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2477
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2478
    "Modified: 12.8.1997 / 23:39:10 / cg"
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2479
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2480
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2481
hideUIView:aView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2482
    "hides the view which is an application or top view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2483
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2484
    aView beIndependent.
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2485
    aView unmap.
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2486
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2487
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2488
raiseTabView
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2489
    |appl|
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2490
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2491
    self isLayoutToolSelected ifTrue:[
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2492
        helpTool   window unmap.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2493
        specTool   window unmap.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2494
        layoutTool window realize.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2495
    ] ifFalse:[
1306
66252dfdd14c hack for tabable (becomes better)
ca
parents: 1273
diff changeset
  2496
        self isHelpToolSelected ifTrue:[
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2497
            layoutTool window unmap.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2498
            specTool   window unmap.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2499
            helpTool   window realize.
1306
66252dfdd14c hack for tabable (becomes better)
ca
parents: 1273
diff changeset
  2500
        ] ifFalse:[
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2501
            specTool selection:tabSelection.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2502
            helpTool   window unmap.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2503
            layoutTool window unmap.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2504
            specTool   window realize.
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2505
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2506
"/            specTool selection:tabSelection.
1306
66252dfdd14c hack for tabable (becomes better)
ca
parents: 1273
diff changeset
  2507
        ]
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2508
    ]
1306
66252dfdd14c hack for tabable (becomes better)
ca
parents: 1273
diff changeset
  2509
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2510
!
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2511
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2512
raiseUIView:aView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2513
    "raise the view which is an application or top view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2514
1193
ada18c876301 partners must be remapped (at old position)
Claus Gittinger <cg@exept.de>
parents: 1192
diff changeset
  2515
    aView remap.
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2516
    aView bePartner.
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2517
!
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2518
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2519
resourceMessage: aString
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2520
    "reads the specClass and the specSelector by evaluating aString"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2521
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2522
    (aString notNil and: [self askForModification]) 
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2523
    ifTrue:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2524
    [            
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2525
	|msg cls sel|
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2526
	msg := aString asCollectionOfWords.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2527
	(msg size == 2 and:
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2528
	[(cls := self resolveName:(msg at:1)) notNil])
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2529
	ifTrue:
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2530
	[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2531
	    self specClass:cls.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2532
	    specSuperclass := cls superclass name.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2533
	    specSelector := (msg at: 2) asSymbol.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2534
	    ^true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2535
	]
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2536
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2537
    ^false
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2538
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2539
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2540
setClass:cls selector:selector
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2541
    "sets the specClass and the specSelector under which the window spec should be saved"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2542
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2543
    |clsName superClassName|
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2544
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2545
    clsName := cls name.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2546
    superClassName := cls superclass name.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2547
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2548
    (self aspectFor:#classNameChannel) value:clsName.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2549
    (self aspectFor:#methodNameChannel) value:(selector ? '').
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2550
    (self aspectFor:#superclassNameChannel) value:superClassName.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2551
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2552
    self painter 
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2553
	    className:clsName 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2554
	    superclassName:superClassName
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2555
	    selector:(selector ? '').
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2556
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2557
    self specClass:clsName.
177
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2558
    specSelector := (selector ? '').
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2559
    specSuperclass := superClassName.
eefd69a52f5b fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
  2560
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2561
    specClass notNil & selector notNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2562
	self addToHistory: (specClass, ' ', specSelector) -> #loadFromMessage:.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2563
	self updateInfoLabel
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  2564
    ].
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2565
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2566
    "Modified: / 5.2.1998 / 09:44:58 / stefan"
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2567
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2568
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  2569
setViewInLayoutTool:aView spec:aSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2570
    "sets view for layout tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2571
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2572
    |type|
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2573
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2574
    self painter topView == aView ifTrue:[
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  2575
	type := #Extent
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2576
    ].
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  2577
    self layoutTool layoutView:aView type:type spec:aSpec
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2578
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2579
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2580
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2581
specClass:aClass
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2582
    "sets the specClass and updates the Help Tool"
587
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2583
dd545d089d95 Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents: 572
diff changeset
  2584
    specClass := aClass isBehavior ifTrue:[aClass name]
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2585
                                   ifFalse:[aClass].
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  2586
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  2587
    self helpTool buildFromClass:specClass.    
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  2588
    self helpTool updateList.
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2589
    self clearModifiedFlag. 
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  2590
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2591
! !
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2592
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2593
!UIPainter methodsFor:'private tools'!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2594
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2595
helpTool
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2596
    "returns the help tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2597
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2598
    helpTool isNil ifTrue:[self noteBookView].
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2599
  ^ helpTool
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2600
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2601
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2602
layoutTool
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2603
    "returns the layout tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2604
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2605
    layoutTool isNil ifTrue:[self noteBookView].
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2606
  ^ layoutTool
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2607
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2608
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2609
painter
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2610
    "returns the canvas view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2611
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2612
    ^ treeView canvas
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2613
!
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2614
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2615
specTool
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2616
    "returns the spec tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2617
1316
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2618
    specTool isNil ifTrue:[self noteBookView].
d66f0b84aa6b *** empty log message ***
ca
parents: 1314
diff changeset
  2619
  ^ specTool
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2620
! !
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2621
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2622
!UIPainter methodsFor:'queries'!
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2623
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2624
hasSpecClass
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2625
    "answers whether an application class is defined"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2626
328
0e8a4296dec1 add DataSetBuilder
ca
parents: 321
diff changeset
  2627
    ^ (self resolveName:specClass) notNil
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2628
!
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2629
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2630
hasSpecClassAndSelector
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2631
    "answers whether an application class and a selector under which
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2632
     the window spec is stored is defined"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2633
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2634
    specSelector size > 1 ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2635
	^ self hasSpecClass
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2636
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2637
    ^ false
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2638
!
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2639
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2640
isHelpToolSelected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2641
    "answers whether the current selected section in the noteBook is the Help Tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2642
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2643
    ^ tabSelection = UIHelpTool label
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2644
!
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2645
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2646
isLayoutToolSelected
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2647
    "answers whether the current selected section in the noteBook is the Layout Tool"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2648
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2649
    ^ tabSelection = UILayoutTool label
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2650
!
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2651
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2652
isModified
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2653
    "answers whether the current window spec or a layout is modified"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2654
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2655
    ^ self modifiedChannel value
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2656
!
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2657
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2658
isPainterEnabled
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2659
    "answers whether I am running in test mode"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2660
217
354ba46948b4 access MenuEditor for specs
ca
parents: 206
diff changeset
  2661
    ^ self painter enabled
166
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2662
! !
cd5699643975 add tools: layout and specification tool
ca
parents: 161
diff changeset
  2663
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2664
!UIPainter methodsFor:'selection'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2665
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2666
tabSelection
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2667
    "returns the label of the current section in the notebook"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2668
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2669
    ^ tabSelection
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2670
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2671
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2672
tabSelection:something
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2673
    "called whenever the section of the notebook has changed"
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2674
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2675
    |whatToDo|
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2676
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2677
    (something isNil or:[tabSelection = something]) ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2678
	^ self
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2679
    ].
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2680
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2681
    self isModified ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2682
	whatToDo := DialogBox 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2683
			confirmWithCancel:'Accept modifications in section ' , tabSelection printString asBoldText, '?'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2684
			labels:#('Cancel' 'Ignore' 'Accept')
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2685
			default:3.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2686
	whatToDo isNil ifTrue:[^self].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2687
	whatToDo == true ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2688
	    self accept
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2689
	] ifFalse:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2690
	    self cancel
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2691
	]
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2692
    ].
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2693
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2694
    tabSelection := something.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2695
    self raiseTabView.
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2696
    self cancel.
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  2697
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2698
!
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2699
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2700
treeSelection
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2701
    "called whenever the selection of the treeview has changed"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2702
890
dac91d5af289 unused local vars removed
tz
parents: 889
diff changeset
  2703
    |view list spec slices size property tabComponent|
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2704
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2705
    self isModified ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2706
        (self confirm:'Accept modifications in section ' , tabSelection printString asBoldText, '?') ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2707
            self accept
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2708
        ]
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2709
    ].
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2710
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  2711
    treeView isCanvasSelected ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2712
        spec := treeView canvasSpec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2713
        view := self painter topView.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2714
    ] ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2715
        (property := treeView propertySelected) notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2716
            treeView canResizeSelectedWidget ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2717
                view := property view.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2718
            ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2719
            spec := property spec copy.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2720
        ]
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  2721
    ].
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2722
    tabComponent := builder componentAt:#noteBook.
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  2723
    self setViewInLayoutTool:view spec:spec.
287
1ecabfd468dc HelpTool is seperated like LayoutTool
ca
parents: 282
diff changeset
  2724
    self specTool specification:spec.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2725
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2726
    spec notNil ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2727
        self helpTool helpKey:(spec activeHelpKey).
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2728
        slices := spec class slices.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2729
        size   := slices size.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2730
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2731
        view notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2732
            self treeView isCanvasSelected 
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2733
            ifFalse:
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2734
            [
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2735
                list := Array new:(size + 2).
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2736
                list at:(size + 2) put:(UILayoutTool label).
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2737
            ]
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2738
            ifTrue:
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2739
            [
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2740
                list := Array new:(size + 1).
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2741
                list at:(size + 1) put:(UILayoutTool label).
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2742
            ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2743
        ] ifFalse:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2744
            list := Array new:(size + 1).
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2745
        ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2746
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2747
        1 to:size do:[:i| list at:i put:((slices at:i) first asString)].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2748
        self treeView isCanvasSelected ifFalse: [list at:(size + 1) put:(UIHelpTool label)].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2749
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2750
        self tabList value:list.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2751
        self showHelp:spec class name for:self.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2752
        tabComponent enabled:true.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2753
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2754
        (tabSelection := tabComponent selection) isNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2755
            tabComponent setSelection:(tabSelection := list first)
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2756
        ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2757
        self raiseTabView
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  2758
    ] ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2759
        self helpTool helpKey:nil.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2760
        tabComponent enabled:false.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2761
        self defaultInfoLabel.
272
99de6af43afa confirm/cancel changes before switching a section or widget
ca
parents: 271
diff changeset
  2762
    ].
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  2763
    self clearModifiedFlag.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2764
884
a291fc248a8b images moved to class Icon
tz
parents: 877
diff changeset
  2765
    self updateChannels
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2766
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2767
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2768
!UIPainter methodsFor:'settings'!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2769
924
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2770
generateAspectsAsInstanceVariables
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2771
    "if on, aspects are held as instance variables;
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2772
     if off (the default), they are kept in the bindings dictionary.
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2773
    "
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2774
    ^ UIPainterView generateAspectsAsInstanceVariables
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2775
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2776
    "Created: / 29.7.1998 / 11:17:59 / cg"
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2777
!
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2778
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2779
generateAspectsAsInstanceVariables:aBoolean
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2780
    "if on, aspects are held as instance variables;
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2781
     if off (the default), they are kept in the bindings dictionary.
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2782
    "
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2783
    ^ UIPainterView generateAspectsAsInstanceVariables:aBoolean
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2784
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2785
    "Created: / 29.7.1998 / 11:18:20 / cg"
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2786
!
0416d7cbae92 reviewed help texts;
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
  2787
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2788
redefineAspectMethods
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2789
    "redefine methods yes or no. If a method is defined in super class
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2790
     should the message be reinstalled ?
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2791
    "
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2792
    ^ UIPainterView redefineAspectMethods
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2793
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2794
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2795
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2796
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2797
redefineAspectMethods:aBoolean
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2798
    "redefine methods yes or no. If a method is defined in super class
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2799
     should the message be reinstalled ?
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2800
    "
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2801
    UIPainterView redefineAspectMethods:aBoolean
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2802
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2803
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2804
! !
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2805
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2806
!UIPainter methodsFor:'startup / release'!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2807
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2808
closeRequest
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2809
    "close request"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2810
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2811
    self askForModification ifFalse:[^self].
133
e12f82d3afb7 popup box caused by a closeRequest with still open
ca
parents: 130
diff changeset
  2812
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2813
    treeView model removeDependent:self.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2814
    self painter release.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2815
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2816
    selectionPanel notNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2817
	selectionPanel masterApplication:nil.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2818
	selectionPanel closeRequest
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2819
    ].
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  2820
    selectionPanel := nil.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2821
    treeView       := nil.
149
e652608690b1 help ...
ca
parents: 144
diff changeset
  2822
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2823
    super closeRequest.
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2824
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2825
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2826
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2827
closeRequestFor:aTopView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2828
    "handles a close request for a specific view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2829
173
a8468f4e83f0 show/hide painter/gallery
ca
parents: 171
diff changeset
  2830
    |topView|
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2831
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2832
    (topView := self window) == aTopView ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2833
	super closeRequestFor:aTopView
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2834
    ] ifFalse:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2835
	aTopView = selectionPanel window ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2836
	    self galleryShown value:false
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2837
	] ifFalse:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2838
	    aTopView == (self painter topView) ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2839
		self painterShown value:false
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2840
	    ] ifFalse:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2841
		aTopView closeRequest
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2842
	    ]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2843
	].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2844
	topView raise.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2845
    ].
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2846
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2847
1185
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2848
loadFromMessage: aMessageString
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2849
    "loads a window spec by evaluating aMessageString
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2850
     (which is something like 'fooClass windowSpec')"
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2851
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2852
    |readStream aClass aSelector|
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2853
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2854
    ((aMessageString size > 0) and: [self askForModification])
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2855
    ifTrue:[
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2856
        readStream := aMessageString readStream.
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2857
        (aClass := Smalltalk at: (readStream upTo: $ ) asSymbol) notNil
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2858
        ifTrue:[
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2859
            aSelector :=  readStream upToEnd asSymbol.
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2860
            self setClass: aClass selector: aSelector.    
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2861
            (aClass respondsTo:aSelector) ifTrue:[   
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2862
                self painter setupFromSpec:(aClass perform:aSelector)
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2863
            ]
6c14008722e9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1180
diff changeset
  2864
        ]
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2865
    ]
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2866
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2867
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  2868
openInterface:aSymbol
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2869
    "opens the interface on the selector aSymbol"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2870
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2871
    |cls painterView painter topView galleryWindow icon name|
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2872
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2873
    modified := false.
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  2874
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2875
    aspects := IdentityDictionary new.
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2876
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2877
    specClass notNil ifTrue:[
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2878
        specClass isBehavior ifTrue:[
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2879
            name := specClass nameWithoutPrefix.
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2880
        ] ifFalse:[
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2881
            name := specClass printString string
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2882
        ]
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2883
    ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2884
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2885
    aspects at:#classNameChannel put:(
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2886
        (specClass notNil ifTrue:[specClass]
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2887
                         ifFalse:['NewApplication']) asValue
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2888
    ).
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2889
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2890
    specSuperclass isNil ifTrue:[
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2891
        specClass notNil ifTrue:[
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2892
            (cls := self resolveName:specClass) notNil ifTrue:[
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2893
                specSuperclass := cls superclass name.
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2894
            ]
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2895
        ]
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2896
    ].
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2897
    aspects at:#superclassNameChannel put:(
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2898
        (specSuperclass notNil ifTrue:[specSuperclass]
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2899
                         ifFalse:['ApplicationModel']) asValue
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2900
    ).
157
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  2901
    aspects at:#superclassNameDefaults put:#('ApplicationModel' 'SimpleDialog') asValue.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2902
    aspects at:#methodNameChannel put:(
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2903
        (specSelector notNil ifTrue:[specSelector asValue]
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2904
                            ifFalse:[#windowSpec]) asValue
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2905
    ).
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  2906
1046
b3994c5e5e2f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1041
diff changeset
  2907
    "/ the canvas ...
b3994c5e5e2f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1041
diff changeset
  2908
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2909
    treeView    := TreeView new.
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2910
    treeView windowSpecClass:(self defaultWindowSpecClass).
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  2911
    painterView := StandardSystemView new.
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2912
1397
054670838983 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1396
diff changeset
  2913
    name := name ? UIPainter defaultNameOfCanvas.
054670838983 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1396
diff changeset
  2914
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2915
    painterView name: name.
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2916
    painterView label: name.
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  2917
    painterView extent:(treeView windowSpecClass defaultExtentInUIPainter). "/ 300@300.
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  2918
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  2919
    painter := UIPainterView in:painterView.
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2920
    painter layout:(0.0 @ 0.0 corner:1.0 @ 1.0) asLayout.
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  2921
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  2922
    treeView := treeView canvas:painter specName:name.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2923
    painter treeView:treeView.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  2924
    treeView model addDependent:self.
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  2925
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2926
    super openInterface:aSymbol.
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  2927
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  2928
    topView := self window.
345
c4d8f4c74c26 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 344
diff changeset
  2929
    topView label:'GUI Painter'.
136
42a2a4494281 remove postOpen
ca
parents: 133
diff changeset
  2930
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  2931
    painterView openInGroup:(topView windowGroup).
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  2932
    painterView application:self.
794
212bc7e46765 openOnClass....
ca
parents: 788
diff changeset
  2933
1046
b3994c5e5e2f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1041
diff changeset
  2934
    "/ the selectionPanel ...
b3994c5e5e2f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1041
diff changeset
  2935
1461
b061747908b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  2936
    selectionPanel := self selectionPanelClass new.
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  2937
    selectionPanel allButOpenInterface:#windowSpec.
1193
ada18c876301 partners must be remapped (at old position)
Claus Gittinger <cg@exept.de>
parents: 1192
diff changeset
  2938
    (galleryWindow := selectionPanel window) openInGroup:(topView windowGroup).
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  2939
    selectionPanel openWindow.
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  2940
    selectionPanel masterApplication:self.
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  2941
1273
4703a5b17114 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1270
diff changeset
  2942
    icon := Smalltalk imageFromFileNamed:'UIPainter.xbm' forClass:self class.
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  2943
    topView iconLabel:'GUI Painter'.
1270
8e1a2c6db256 try my bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents: 1247
diff changeset
  2944
    topView icon:icon.
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  2945
1046
b3994c5e5e2f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1041
diff changeset
  2946
    painterView iconLabel:'GUI Canvas'.
1270
8e1a2c6db256 try my bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents: 1247
diff changeset
  2947
    painterView icon:icon.
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  2948
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  2949
    topView bePartner.
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  2950
    painterView bePartner.
1193
ada18c876301 partners must be remapped (at old position)
Claus Gittinger <cg@exept.de>
parents: 1192
diff changeset
  2951
    galleryWindow bePartner.
ada18c876301 partners must be remapped (at old position)
Claus Gittinger <cg@exept.de>
parents: 1192
diff changeset
  2952
ada18c876301 partners must be remapped (at old position)
Claus Gittinger <cg@exept.de>
parents: 1192
diff changeset
  2953
    galleryWindow iconLabel:'GUI Gallery'.
1270
8e1a2c6db256 try my bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents: 1247
diff changeset
  2954
    galleryWindow icon:icon.
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2955
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2956
    painterView topView raise.
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2957
!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2958
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2959
openOnClass:aClass
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2960
    "opens the GUI Painter on aClass and #windowSpec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2961
109
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2962
    self openOnClass:aClass andSelector:#windowSpec
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2963
!
0b53bd128667 *** empty log message ***
ca
parents: 101
diff changeset
  2964
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2965
openOnClass:aClass andSelector:aSelector
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  2966
    "opens the GUI Painter on aClass and aSelector
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  2967
    "
157
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  2968
    aClass isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2969
	(self confirm:'No class given to the GUI Painter (class was probably renamed?)\\Open anyway (to create a new window spec) ?' withCRs)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  2970
	ifFalse:[^ nil].
157
ce974dce3dd4 enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents: 156
diff changeset
  2971
    ].
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  2972
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  2973
    specSelector := aSelector.
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  2974
    specClass := aClass.
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  2975
964
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  2976
    self openInterface.
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  2977
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  2978
"/    specSelector := aSelector.
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  2979
"/    specClass := aClass.
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  2980
476235fbb312 setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents: 952
diff changeset
  2981
    "Modified: / 21.8.1998 / 20:59:15 / cg"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2982
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2983
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2984
postBuildWith: aBuilder
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2985
    "sets the root of the tree view as first selection;
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  2986
     sets the grid parameters, if defined"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  2987
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  2988
    |painter settings gridPara hspace vspace cls sel|
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  2989
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2990
    super postBuildWith:aBuilder.
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  2991
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  2992
    cls := specClass.
966
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  2993
    cls isString ifTrue:[
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  2994
        cls := Smalltalk at:(cls string asSymbol)
966
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  2995
    ].
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  2996
    sel := specSelector.
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  2997
    specSelector := nil.
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  2998
    specClass    := nil.
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  2999
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  3000
    painter  := self painter.
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  3001
    settings := self class settings.
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  3002
    gridPara := painter gridParameters copy.
1059
ecb59576e1e6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1058
diff changeset
  3003
    hspace   := settings at: #HGridSpace ifAbsent:10.
ecb59576e1e6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1058
diff changeset
  3004
    vspace   := settings at: #VGridSpace ifAbsent:10.
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  3005
    gridPara at:1 put:hspace; at:2 put:vspace; at:5 put:hspace; at:6 put:vspace.
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  3006
    painter gridParameters:gridPara.
1059
ecb59576e1e6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1058
diff changeset
  3007
    painter gridShown: (settings at: #GridShown ifAbsent:false).
ecb59576e1e6 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1058
diff changeset
  3008
    painter gridAlign: (settings at: #GridAlign ifAbsent:false).
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3009
    painter shown ifTrue:[painter clear].
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3010
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  3011
    cls notNil ifTrue:[
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3012
        self setClass:cls selector:sel.
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3013
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3014
        (cls respondsTo:sel) ifTrue:[  
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3015
            painter setupFromSpec:(cls perform:sel).
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3016
        ]
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  3017
    ].
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3018
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3019
    "Modified: / 22.8.1998 / 17:41:34 / cg"
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3020
!
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3021
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3022
postOpenWith: aBuilder
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3023
    "sets the initial selection"
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3024
1194
651885033545 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1193
diff changeset
  3025
    |myWindow canvasWindow canvasOrg galleryWindow 
651885033545 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1193
diff changeset
  3026
     galleryOrg myOrg myCorner|
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3027
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3028
    super postOpenWith: aBuilder.
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  3029
    treeView selection: #(1).
1247
6fb170b75302 clear menuBar in keyProcessor
ca
parents: 1230
diff changeset
  3030
    aBuilder keyboardProcessor menuBar:nil.
798
c1116ba57e66 set window specification after realization of the window
ca
parents: 794
diff changeset
  3031
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3032
    myWindow := self window.
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3033
    canvasWindow := self painter topView.
1456
7435d111bb09 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1453
diff changeset
  3034
    [selectionPanel isNil] whileTrue:[
7435d111bb09 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1453
diff changeset
  3035
        Delay waitForSeconds:0.1.
7435d111bb09 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1453
diff changeset
  3036
    ].
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3037
    galleryWindow := selectionPanel window.
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3038
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3039
    myOrg := myWindow origin.
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3040
    myCorner := myWindow corner.
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3041
1197
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3042
    "/ try to lay out things non-overlapping
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3043
    "/ but only, if the window manager placed all windows
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3044
    "/ on top of each other
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3045
    myOrg = canvasWindow origin ifTrue:[
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3046
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3047
        canvasOrg := 10@20.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3048
"/        myOrg := (device width - myWindow width - 20) @ 20.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3049
        galleryOrg := (device width - galleryWindow width - 20) 
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3050
                      @ 
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3051
                      ((myWindow height + 20) min:(device height - galleryWindow height - 20)).
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3052
        myWindow origin:myOrg.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3053
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3054
        canvasWindow origin:canvasOrg.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3055
        galleryWindow origin:galleryOrg.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3056
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3057
        galleryWindow raise.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3058
        canvasWindow raise.
ef91ed58b7d4 only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents: 1195
diff changeset
  3059
    ].
1192
f3f5c92930c9 do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents: 1188
diff changeset
  3060
1195
64f3537ca061 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1194
diff changeset
  3061
    "Modified: / 13.7.1999 / 21:26:52 / cg"
1461
b061747908b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  3062
!
b061747908b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  3063
b061747908b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  3064
selectionPanelClass
b061747908b5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1457
diff changeset
  3065
    ^ UISelectionPanel
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3066
! !
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  3067
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3068
!UIPainter methodsFor:'user actions'!
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3069
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3070
accept
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3071
    "accepts all modifications done to the attributes of the current section"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3072
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  3073
    |painter layout spec layoutTool layoutView t|
1068
dcb2cba5787f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1063
diff changeset
  3074
dcb2cba5787f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1063
diff changeset
  3075
    self acceptChannel value:true; value:false.  "/ force editFields to accept
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3076
    self clearModifiedFlag.
788
8f9f3c3fcf60 avoid modified problems
tz
parents: 787
diff changeset
  3077
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3078
    painter := self painter.
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  3079
    spec := self specTool specification.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3080
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3081
    self isLayoutToolSelected ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3082
        layoutTool := self layoutTool.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3083
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3084
        (layout := layoutTool layout) notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3085
            layoutTool layoutType == #Extent ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3086
                layoutView := layoutTool layoutView.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3087
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3088
                layoutView == painter topView ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3089
                    layoutView extent:layout
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3090
                ] ifFalse:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3091
                    spec useDefaultExtent:(layoutTool aspectFor:#useDefaultExtent) value.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3092
                    spec useDefaultExtent ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3093
                        "/ temporarily unfreeze the widgets size
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3094
                        "/ (but remember, the old setting, which is actually
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3095
                        "/ controlled by the resizeForLabel attribute)
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3096
                        t := layoutView sizeFixed.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3097
                        layoutView sizeFixed:false.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3098
                        layout := layoutView preferredExtent.    
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3099
                        layoutView sizeFixed:t.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3100
                    ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3101
                    painter setExtent:layout.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3102
                    painter updateFromSpec:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3103
                ]
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3104
            ] ifFalse:[
1444
fec7424dccda clear the useDefaultExtent flag, if the layout is NOT an extent
martin
parents: 1442
diff changeset
  3105
                spec useDefaultExtent:false.
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3106
                painter setLayout:layout
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3107
            ]
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3108
        ]
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3109
    ] ifFalse:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3110
        self isHelpToolSelected ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3111
            self helpTool accept.      
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3112
            spec activeHelpKey:self helpTool helpKey.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3113
        ].      
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3114
        painter updateFromSpec:spec
1071
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  3115
    ].
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  3116
560a9eb1a5d8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1068
diff changeset
  3117
    modified := false.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3118
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3119
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3120
addWidget: aSpecClass
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3121
    "adds a widget from aSpecClass to the current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3122
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3123
    self addWidgetOfSpec: (Array with: (Smalltalk at: aSpecClass) new)
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3124
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3125
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3126
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3127
addWidgetOfSpec: aSpec
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3128
    "adds a widget from aSpec to the current widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3129
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3130
    |newSel|  
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3131
    (newSel := self pasteSpecifications:aSpec keepLayout:false at:0@0) notNil
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3132
    ifTrue:
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3133
    [
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3134
	self select: newSel
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3135
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3136
    ifFalse:
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3137
    [   
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3138
	((treeView selection size = 0) or: [treeView selectedNode isNil])
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3139
	ifTrue:
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3140
	[                          
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3141
	    treeView selection: #(1).
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3142
	]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3143
	ifFalse:
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3144
	[  
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3145
	    treeView selectNode: (treeView detectNode: [:n| n = treeView selectedNode parent])
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3146
	].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3147
	self addWidgetOfSpec: aSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3148
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3149
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3150
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3151
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3152
cancel
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3153
    "cancels all modifications done to the attributes of the current section; 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3154
     reread the old attributes"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3155
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3156
    |spec key view|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3157
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3158
    self isModified ifTrue:[
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3159
        (spec := self painter specForSelection) notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3160
            key := spec activeHelpKey.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3161
        ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3162
        self helpTool helpKey:key.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3163
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3164
        treeView isCanvasSelected ifTrue: [
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3165
            spec := treeView canvasSpec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3166
        ].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3167
        self specTool specification:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3168
        view := self layoutTool layoutView.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3169
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3170
        self setViewInLayoutTool:view spec:spec.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3171
        spec class == DataSetSpec ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3172
            view notNil ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3173
                view columnDescriptors:(spec columns)
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3174
            ]
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3175
        ].        
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3176
        self clearModifiedFlag.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3177
        modified := false
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3178
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3179
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3180
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3181
doBrowseAspectMethods
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3182
    "opens a browser on the aspect methods"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3183
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3184
    |methods|
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3185
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3186
    self painter isModified ifTrue:[
1392
f6f7a70c5d41 browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  3187
        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
  3188
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3189
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3190
    (methods := self painter aspectMethods) isEmpty ifTrue:[
1392
f6f7a70c5d41 browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  3191
        self warn:'No aspect methods found!!'.
f6f7a70c5d41 browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  3192
        ^ self.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3193
    ].
1392
f6f7a70c5d41 browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  3194
    UserPreferences current systemBrowserClass browseMethods:methods title:'Aspect methods'.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3195
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3196
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3197
doBrowseClass
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3198
    "opens a System Browser on the specClass"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3199
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3200
    self painter isModified ifTrue:[
1392
f6f7a70c5d41 browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  3201
        self warn:'The current window spec has not yet been saved!!\\The System Browser will show the code of the old window spec.' withCRs.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3202
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3203
1392
f6f7a70c5d41 browserClass from preferences
Claus Gittinger <cg@exept.de>
parents: 1391
diff changeset
  3204
    UserPreferences current systemBrowserClass openInClass:(self resolveName:specClass)
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3205
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3206
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3207
doDefineClassAndSelector
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3208
    "launches a dialog for defining class, superclass, and selector of the application"
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3209
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3210
    |again tmp helpDict helpKey helpTool|
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3211
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3212
    [
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3213
        again := false.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3214
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3215
        (tmp := specClass) isNil ifTrue:[tmp := 'NewApplication'].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3216
        aspects at:#classNameChannel put:tmp asValue.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3217
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3218
        (tmp := specSelector) isNil ifTrue:[tmp := 'windowSpec'].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3219
        aspects at:#methodNameChannel put:tmp asValue.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3220
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3221
        (tmp := specSuperclass) isNil ifTrue:[tmp := 'ApplicationModel'].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3222
        aspects at:#superclassNameChannel put:tmp asValue.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3223
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3224
        (self openDialogInterface:#dialogSpecForDefiningClassAndSelector) ifTrue:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3225
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3226
            specClass    := (self aspectFor:#classNameChannel) value.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3227
            specSelector := (self aspectFor:#methodNameChannel) value.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3228
            specSelector notNil ifTrue:[specSelector := specSelector asSymbol].
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3229
            specSuperclass := (self aspectFor:#superclassNameChannel) value.
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3230
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3231
            (again := self checkClassAndSelector not) ifFalse:[
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3232
                self painter className:specClass
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3233
                        superclassName:specSuperclass
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3234
                              selector:specSelector.
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3235
            ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3236
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3237
            again ifFalse:[
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3238
                ((Smalltalk at:specClass asSymbol) notNil
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3239
                and:[ (Smalltalk at:specClass asSymbol) class implements:specSelector ])
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3240
                ifTrue:[
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3241
                    (self confirm:('%1 already implements %2. Overwrite ?' bindWith:specClass with:specSelector))
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3242
                    ifFalse:[
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3243
                        again := true.
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3244
                    ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3245
                ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3246
            ].
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3247
        ] ifFalse: [
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3248
            ^nil
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3249
        ]
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3250
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3251
    ] doWhile:[again].
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3252
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3253
    specClass := specClass isBehavior ifTrue:[specClass name]
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3254
                                      ifFalse:[specClass].
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3255
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3256
    helpTool := self helpTool.
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3257
    helpDict := helpTool dictionary.
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3258
    helpKey  := helpTool helpKey.
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3259
    helpTool buildFromClass:specClass.    
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3260
    helpTool dictionary declareAllFrom: helpDict.
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3261
    helpTool updateList.
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3262
    helpTool helpKey: helpKey.
1188
4805027d9d33 code cleanup
Claus Gittinger <cg@exept.de>
parents: 1186
diff changeset
  3263
    self clearModifiedFlag.
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3264
    helpTool modified: true.
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3265
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3266
    self updateInfoLabel
892
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3267
b200d2d9bf5e avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents: 890
diff changeset
  3268
    "Modified: / 16.7.1998 / 18:26:33 / cg"
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3269
!
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3270
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3271
doDefineGrid
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3272
    "opens a dialog for the grid parameters"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3273
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3274
    |hspace vspace bindings painter gridPara settings|
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3275
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3276
    painter  := self painter.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3277
    bindings := IdentityDictionary new.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3278
    gridPara := painter gridParameters copy.
1021
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  3279
    settings := self class settings.
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  3280
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  3281
    bindings at:#showGrid    put:((settings at: #GridShown ifAbsent: [painter gridShown]) asValue).
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  3282
    bindings at:#alignToGrid put:((settings at: #GridAlign ifAbsent: [painter gridAlign]) asValue).
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3283
    bindings at:#hspace      put:((gridPara at:1) asValue).
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3284
    bindings at:#vspace      put:((gridPara at:2) asValue).
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3285
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3286
    (self openDialogInterface:#dialogSpecForDefiningGridParameters withBindings:bindings) ifFalse:[
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  3287
	^ self
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3288
    ].
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3289
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3290
    hspace := (bindings at:#hspace) value ? 5.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3291
    vspace := (bindings at:#vspace) value ? 5.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3292
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3293
    gridPara at:1 put:hspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3294
    gridPara at:2 put:vspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3295
    gridPara at:5 put:hspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3296
    gridPara at:6 put:vspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3297
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3298
    painter gridShown:false. 
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3299
    painter gridAlign:false. 
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3300
    painter gridParameters:gridPara.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3301
    painter gridAlign:(bindings at:#alignToGrid) value.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3302
    painter gridShown:(bindings at:#showGrid) value.
1021
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  3303
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3304
    settings at: #GridShown  put: (bindings at:#showGrid) value.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3305
    settings at: #GridAlign  put: (bindings at:#alignToGrid) value.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3306
    settings at: #HGridSpace put: hspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3307
    settings at: #VGridSpace put: vspace.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3308
    painter clear.
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3309
1021
8c1deb0281c7 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 984
diff changeset
  3310
    "Modified: / 4.2.1999 / 15:36:34 / cg"
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3311
!
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3312
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3313
doGenerateAspectMethods
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3314
    "generates aspect and action methods for the application class"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3315
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3316
    self askForSectionModification.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3317
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3318
    (ReadStream on:self painter generateAspectMethods) fileIn.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3319
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3320
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3321
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3322
doGenerateAspectSelectorsMethod
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3323
    "generates aspectSelectors method for the exported aspects"
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3324
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3325
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3326
    self askForSectionModification.
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3327
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3328
    (ReadStream on:self painter generateAspectSelectorsMethod) fileIn.
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3329
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3330
!
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3331
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3332
doGenerateHookMethods
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3333
    "generates hook methods for the application class"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3334
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3335
    self askForSectionModification.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3336
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3337
    (ReadStream on:self painter generateHookMethods) fileIn.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3338
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3339
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3340
966
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  3341
doGenerateMenuMethods
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  3342
    "generates menu stub methods for the application class"
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  3343
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  3344
    self askForSectionModification.
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  3345
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  3346
    (ReadStream on:self painter generateMenuMethods) fileIn.
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  3347
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  3348
    "Created: / 23.8.1998 / 16:10:04 / cg"
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  3349
!
bbea01c1de98 added menu-action code generation
Claus Gittinger <cg@exept.de>
parents: 964
diff changeset
  3350
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3351
doInspectSpec
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3352
    "opens an inspector on the spec of the selected widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3353
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3354
    |spec|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3355
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3356
    (spec := self specForSelection) isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3357
	treeView isCanvasSelected ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3358
	    spec := treeView canvasSpec.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3359
	]
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3360
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3361
    spec notNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3362
	spec inspect
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3363
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3364
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3365
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3366
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3367
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3368
doInspectView
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3369
    "opens an inspector on the view of the selected widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3370
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3371
    |selection|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3372
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3373
    ((selection := self painter selection) isCollection and: [selection size >= 1]) ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3374
	selection first inspect
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3375
    ] ifFalse: [
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3376
	selection inspect
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3377
    ]
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3378
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3379
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3380
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3381
doLoad
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3382
    "opens a ResourceSelectionBrowser for loading a window spec from a class"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3383
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3384
    self askForModification ifFalse: [^nil].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3385
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3386
    self loadFromMessage: 
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3387
	(ResourceSelectionBrowser
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3388
	    request: 'Load Window Spec From Class'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3389
	    onSuperclass: nil
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3390
	    andClass: specClass
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3391
	    andSelector: specSelector ? #windowSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3392
	    withResourceTypes: #(canvas))
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3393
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3394
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3395
doLoadSubspec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3396
    "opens a ResourceSelectionBrowser for loading a sub spec from a class"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3397
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3398
    |subSpecMessage|
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3399
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3400
    self askForSectionModification.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3401
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3402
    (subSpecMessage := ResourceSelectionBrowser
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3403
	    request: 'Load Subspec From Class'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3404
	    onSuperclass: nil
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3405
	    andClass: specClass
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3406
	    andSelector: specSelector
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3407
	    withResourceTypes: #(canvas)) notNil
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3408
    ifTrue:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3409
    [
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3410
	|readStream aClass aSelector|
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3411
	readStream := subSpecMessage readStream.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3412
	(aClass := Smalltalk at: (readStream upTo: $ ) asSymbol) notNil
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3413
	ifTrue:
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3414
	[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3415
	    aSelector :=  readStream upToEnd asSymbol.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3416
	    (aClass name == specClass and: [aSelector == specSelector]) ifTrue: [^self warn: 'Current interface as subspec not allowed!!'].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3417
	    (aClass respondsTo:aSelector) 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3418
	    ifTrue:
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3419
	    [
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3420
		self addWidgetOfSpec: (Array with: (UISubSpecification new majorKey: aClass name; minorKey: aSelector))
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3421
	    ]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3422
	]
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3423
    ]
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3424
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3425
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3426
doNew
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3427
    "removes all widgets, specClass, and specSelector"
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3428
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3429
    self askForModification ifFalse: [^nil].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3430
    specClass := specSelector := nil.
572
ac2a1dd83d28 open tutorial added
tz
parents: 565
diff changeset
  3431
    self painter removeAll.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3432
    treeView canvas topView name:  UIPainter defaultNameOfCanvas.
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3433
    treeView canvas topView label: UIPainter defaultNameOfCanvas.
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3434
    self helpTool doNew.
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  3435
    self treeSelection.
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  3436
    treeView selectedNode changed.
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  3437
    self tabModel value: self tabList value first.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3438
    self updateInfoLabel.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3439
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3440
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3441
doOpenWidgetDocumentation
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3442
    "opens documentation for the selected widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3443
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3444
    |spec document|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3445
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3446
    (spec := self specForSelection) isNil ifTrue:[
1204
faff065c78fd replace userFriendlyName by
Claus Gittinger <cg@exept.de>
parents: 1197
diff changeset
  3447
        treeView isCanvasSelected ifTrue:[
faff065c78fd replace userFriendlyName by
Claus Gittinger <cg@exept.de>
parents: 1197
diff changeset
  3448
            spec := nil
faff065c78fd replace userFriendlyName by
Claus Gittinger <cg@exept.de>
parents: 1197
diff changeset
  3449
        ]
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3450
    ].
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3451
    spec notNil ifTrue:[
1204
faff065c78fd replace userFriendlyName by
Claus Gittinger <cg@exept.de>
parents: 1197
diff changeset
  3452
        document := 'tools/uipainter/', spec documentFileName,'.html'
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3453
    ] ifFalse: [
1204
faff065c78fd replace userFriendlyName by
Claus Gittinger <cg@exept.de>
parents: 1197
diff changeset
  3454
        document := 'tools/uipainter/WindowSpec.html'
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3455
    ].
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3456
    HTMLDocumentView openFullOnDocumentationFile: document 
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3457
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3458
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3459
!
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3460
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3461
doPickAView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3462
    "changes the cursor for picking a view and builds a window spec from it"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3463
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3464
    |view|
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3465
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3466
    self askForModification ifFalse: [^nil].
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3467
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3468
    (view := Screen current viewFromUser) notNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3469
	view == Screen current rootView ifFalse:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3470
	    self painter setupFromSpec:(UISpecification fromView:view topView).
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3471
	]
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3472
    ].
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3473
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3474
    self updateInfoLabel
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3475
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3476
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3477
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3478
doSave
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3479
    "saves the window spec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3480
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  3481
    |code painter cls ns|
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3482
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3483
    self askForSectionModification.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3484
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3485
    self hasSpecClassAndSelector ifFalse:[
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3486
        self doDefineClassAndSelector isNil ifTrue: [^nil]
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3487
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3488
1180
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3489
    (specClass notNil and: [(cls := Smalltalk at: specClass asSymbol) isClass]) ifFalse:[   
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3490
        self warn:('Oops - cannot save - class not found: ' , specClass).
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3491
        ^nil
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  3492
    ].
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  3493
1180
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3494
"/    specClass notNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3495
"/        (specClass includes:$:) ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3496
"/            (ns := Smalltalk defaultNameSpace) notNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3497
"/                cls := ns at:specClass asSymbol
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3498
"/            ].
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3499
"/        ].
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3500
"/        cls isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3501
"/            (specClass startsWith:'Smalltalk::') ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3502
"/                cls := Smalltalk at: (specClass copyFrom:12) asSymbol.
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3503
"/            ] ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3504
"/                cls := Smalltalk at: specClass asSymbol.
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3505
"/            ]
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3506
"/        ].
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3507
"/        ns := cls nameSpace.
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3508
"/    ].
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3509
"/    cls isClass ifFalse:[   
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3510
"/        self warn:('Oops - cannot save - class not found: ' , specClass).
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3511
"/        ^nil
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3512
"/    ].
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3513
"/
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3514
"/    ns ~~ Smalltalk defaultNameSpace ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3515
"/        specClass := ns name , '::' , cls nameWithoutNameSpacePrefix.
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3516
"/    ] ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3517
"/        specClass := cls name.
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
  3518
"/    ].
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3519
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3520
    painter := self painter.
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  3521
    painter 
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3522
        className:specClass
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3523
        superclassName:specSuperclass
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3524
        selector:specSelector.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3525
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3526
    Transcript showCR:'generating windowSpec code...'.
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3527
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3528
    code := painter generateWindowSpecMethodSource withCRs.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3529
    (ReadStream on:code) fileIn.
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3530
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3531
    self doGenerateAspectSelectorsMethod.
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3532
724
7c7fb3f3a927 docu calls added
tz
parents: 721
diff changeset
  3533
    self helpTool installHelpSpecsOnClass:specClass.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3534
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3535
    self updateInfoLabel.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3536
    modified := false.
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  3537
    painter resetModification.
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  3538
    (cls class implements: specSelector) ifTrue:[
1341
83fe4fae7c10 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1338
diff changeset
  3539
        self addToHistory: (specClass, ' ', specSelector) -> #loadFromMessage:.
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3540
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3541
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3542
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3543
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3544
doSaveAs
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3545
    "opens a ResourceSelectionBrowser for saving the window spec on a class"
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3546
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3547
    |resourceMessage|
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3548
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3549
    self askForSectionModification.
729
12f157d5e017 askings for modifications completed (?)
tz
parents: 724
diff changeset
  3550
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3551
    (resourceMessage := ResourceSelectionBrowser
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3552
	    request: 'Save Window Spec In Class'
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3553
	    onSuperclass: #Object
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3554
	    andClass: (specClass ? #ApplicationModel) asSymbol
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3555
	    andSelector: specSelector ? #windowSpec
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3556
	    withResourceTypes: #(canvas)) notNil
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3557
    ifTrue:
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3558
    [
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3559
	modified := false.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3560
	self painter resetModification.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3561
	(self resourceMessage: resourceMessage)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3562
	ifTrue:
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3563
	[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3564
	    self doSave.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3565
	    ^true
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3566
	]
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3567
    ]
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3568
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3569
!
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3570
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3571
doStartApplication
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3572
    "starts the application on the editing window spec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3573
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  3574
    |cls application|
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3575
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3576
    self hasSpecClassAndSelector ifFalse:[
1442
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3577
        self doSave isNil ifTrue: [^nil].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3578
    ] ifTrue: [
1442
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3579
        self askForSectionModification.    
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3580
        (modified or: [self painter isModified or: [self helpTool modified]])
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3581
        ifTrue:
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3582
        [
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3583
            ((YesNoBox title:'Window Spec was modified!!')        
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3584
                noText:'Cancel';
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3585
                yesText:'Save it and start';
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3586
                showAtPointer;
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3587
                accepted) ifFalse: [^nil].
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3588
            self doSave isNil ifTrue: [^nil]
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3589
        ]
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3590
    ].
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3591
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  3592
    cls := self resolveName:specClass.
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  3593
    cls isNil ifTrue:[
1442
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3594
        self warn:'Oops cannot start application - no class:' , specClass.
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3595
        ^ nil
1177
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  3596
    ].
57a2a0edeb79 namespace resolving
Claus Gittinger <cg@exept.de>
parents: 1174
diff changeset
  3597
    ((application := cls new) respondsTo:#openInterface:) ifFalse:[
1442
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3598
        (self confirm:('The application does not respond to the ''openInterface:'' message.\(maybe the spec is supposed to be used as subApplication/subCanvas)\\Shall I try to open this as a standAlone dialog ?') withCRs)
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3599
        ifTrue:[
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3600
            SimpleDialog new openSpec:(cls perform:specSelector) withBindings:nil.
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3601
        ].
ed108e53c783 allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents: 1439
diff changeset
  3602
        ^ self.
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3603
    ].        
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3604
    application openInterface:specSelector
446
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3605
!
b513a621a7a4 new toolbar + other features added
tz
parents: 440
diff changeset
  3606
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3607
doStepDown
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3608
    "moves the selected widget one step down in the hierarchy"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3609
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3610
    treeView doStepOver:1
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3611
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3612
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3613
doStepIn
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3614
    "moves the selected widget into the next widget as child"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3615
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3616
    treeView doStepIn
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3617
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3618
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3619
doStepOut
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3620
    "moves the selected widget out of the parent widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3621
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3622
    treeView doStepOut
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3623
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3624
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3625
doStepUp
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3626
    "moves the selected widget one step up in the hierarchy"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3627
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3628
    treeView doStepOver:-1
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3629
!
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3630
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3631
doWindowSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3632
    "opens a code view with the contents of the window spec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3633
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3634
    self askForSectionModification.
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3635
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3636
    CodeView 
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3637
	openWith: self painter generateWindowSpecMethodSource 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3638
	title: 'Window Spec'
743
d58a3e7e39d5 support user defined font styles
tz
parents: 735
diff changeset
  3639
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3640
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3641
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3642
!UIPainter::TreeView class methodsFor:'documentation'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3643
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3644
documentation
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3645
"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3646
    selection in tree view; only used by the UIPainter
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3647
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3648
    [see also:]
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3649
	SelectionInTreeView
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3650
	SelectionInTree
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3651
	TreeItem
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3652
	UIPainter
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3653
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3654
    [author:]
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3655
	Claus Atzkern
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3656
"
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3657
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3658
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3659
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3660
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3661
!UIPainter::TreeView methodsFor:'accessing'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3662
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3663
canvas
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3664
    "returns the canvas (UIPainterView)"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3665
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3666
    ^ model root contents view
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3667
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3668
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3669
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3670
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3671
canvas:aCanvas
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3672
    "install canvas (UIPainterView)"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3673
1396
58c4d1027a5e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1395
diff changeset
  3674
    self canvas:aCanvas specName:nil
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3675
!
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3676
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3677
canvas:aCanvas specName:nameOfSpec
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3678
    "install canvas (UIPainterView)"
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3679
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3680
    |props|
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3681
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3682
    props := UIPainterView::ViewProperty new.
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3683
    props view:aCanvas.
1396
58c4d1027a5e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1395
diff changeset
  3684
    model root:(TreeItem name:(nameOfSpec ? UIPainter defaultNameOfCanvas) asBoldText contents:props).
1394
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3685
    model root expand.
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3686
    self enableChannel:(aCanvas enableChannel).
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3687
!
97a7eeabae40 overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents: 1392
diff changeset
  3688
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3689
canvasSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3690
    "returns spec assigned to canvas"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3691
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3692
    |spec list key block cls canvas modelBlock|
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3693
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3694
    spec := self windowSpecClass new.
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3695
    canvas := self canvas.
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3696
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3697
    spec fromView:(canvas topView) callBack:nil.
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3698
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3699
    windowSpec notNil ifTrue:[
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3700
        spec copyValuesFromSpec:windowSpec.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3701
    ].
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3702
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3703
    spec exportedAspects isNil ifTrue:[
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3704
        (     (cls  := canvas className) notNil
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3705
         and:[(cls  := canvas resolveName:cls) notNil]
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3706
        ) ifTrue:[
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3707
            list := cls perform:#aspectSelectors ifNotUnderstood:nil.
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3708
        ].
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3709
        spec setExportedAspectsFrom:list.
1360
555429506474 care for nil window
Claus Gittinger <cg@exept.de>
parents: 1357
diff changeset
  3710
        windowSpec notNil ifTrue:[
555429506474 care for nil window
Claus Gittinger <cg@exept.de>
parents: 1357
diff changeset
  3711
            windowSpec exportedAspects:(spec exportedAspects).
555429506474 care for nil window
Claus Gittinger <cg@exept.de>
parents: 1357
diff changeset
  3712
        ]
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3713
    ].
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3714
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3715
    self propertiesDo:[:aProp| 
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3716
        |propsSpec|
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3717
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3718
        spec exportedAspectsAddKey:(aProp model) type:nil.
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3719
        propsSpec := aProp spec.
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3720
        propsSpec aspectSelectors do:[:aKey|spec exportedAspectsAddKey:aKey type:nil].
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3721
        propsSpec actionSelectors do:[:aKey|spec exportedAspectsAddKey:aKey type:#action].
1356
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3722
    ].
189c9cec8ce6 exported channels.
ca
parents: 1341
diff changeset
  3723
  ^ spec
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3724
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3725
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3726
canvasSpec:aSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3727
    "update canvas from spec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3728
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3729
    |spec|
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3730
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3731
    self setAttributesFromWindowSpec:aSpec.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3732
    spec := aSpec copy.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3733
    spec  menu:nil.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3734
    spec flags:nil.
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3735
394
1933896da0c3 sett UIBuilder isEditing to true
ca
parents: 375
diff changeset
  3736
    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
  3737
!
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3738
1357
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3739
exportedAspects
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3740
    "returns spec assigned to canvas"
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3741
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3742
    windowSpec isNil ifTrue:[^ #()].
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3743
    ^ windowSpec exportedAspects ? #()
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3744
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3745
!
ba372586f899 checkin from browser
ca
parents: 1356
diff changeset
  3746
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3747
itemOfView:aView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3748
    "returns item assigned to view or nil"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3749
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3750
    aView notNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3751
	self allItemsDo:[:anItem|
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3752
	    (anItem contents view == aView) ifTrue:[^ anItem]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3753
	]
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3754
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3755
    ^ nil
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3756
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3757
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3758
!
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3759
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3760
lastDrawnMaster
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3761
    "returns the lastDrawnMaster"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3762
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3763
    ^ lastDrawnMaster
755
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3764
cfbbec0a33c6 some cleans for grid, etc.
tz
parents: 743
diff changeset
  3765
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3766
!
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3767
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3768
windowSpecClass
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3769
    "returns the default  windowSpecClass (WindowSpec)"
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3770
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3771
    ^ windowSpecClass ? WindowSpec
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3772
!
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3773
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3774
windowSpecClass:aClass
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3775
    "set the default windowSpecClass"
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3776
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3777
    ^ windowSpecClass := aClass
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3778
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3779
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3780
!UIPainter::TreeView methodsFor:'accessing property'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3781
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3782
propertiesDo:aOneArgBlock
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3783
    "evaluates the argument a block on each property"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3784
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3785
    self allItemsDo:[:anItem| aOneArgBlock value:(anItem contents)]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3786
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3787
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3788
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3789
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3790
propertyDetect:aOneArgBlock
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3791
    "evaluates the block on each property"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3792
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3793
    self allItemsDo:[:anItem|
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3794
	(aOneArgBlock value:(anItem contents)) ifTrue:[^ anItem contents]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3795
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3796
    ^ nil
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3797
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3798
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3799
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3800
propertySelected
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3801
    "returns current selected property or nil in case of multi selection
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3802
     or empty selection "
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3803
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3804
    |idx|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3805
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3806
    selection size == 1 ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3807
	(idx := selection first) ~~ 1 ifTrue:[          "canvas: not yet supported"
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3808
	    ^ (listOfNodes at:idx) contents
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3809
	]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3810
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3811
    ^ nil
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3812
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3813
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3814
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3815
!UIPainter::TreeView methodsFor:'adding & removing'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3816
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3817
addProperty:aProperty
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3818
    "adds a new item"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3819
533
dde823aeca4c supports loading of subspecs
tz
parents: 527
diff changeset
  3820
    |parent| 
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
  3821
114befd1c369 add some help text
ca
parents: 287
diff changeset
  3822
    parent := self detectItemRespondsToView:(aProperty view superView).
114befd1c369 add some help text
ca
parents: 287
diff changeset
  3823
114befd1c369 add some help text
ca
parents: 287
diff changeset
  3824
    parent notNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3825
	model add:(TreeItem new contents:aProperty) below:parent
295
114befd1c369 add some help text
ca
parents: 287
diff changeset
  3826
    ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3827
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3828
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3829
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3830
removeAll
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3831
    "removes all items other than canvas"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3832
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3833
    lastDrawnMaster := nil.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3834
    windowSpec := nil.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3835
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3836
    self canvas subViews copy do:[:aView|
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  3837
	"/ care to not destroy the transparent input view
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  3838
	(aView isInputOnly) ifFalse:[aView destroy]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3839
    ].
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  3840
    model root name: UIPainter defaultNameOfCanvas asBoldText.
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  3841
    model removeAllOtherThanRoot.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3842
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3843
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3844
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3845
removeView:aView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3846
    "removes a view"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3847
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3848
    |item prnt|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3849
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  3850
    ((item := self itemOfView:aView) notNil and:[(prnt := item parent) notNil]) ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3851
	aView destroy.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3852
	prnt contents view sizeChanged:nil.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3853
	model remove:item
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3854
    ]
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
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3859
!UIPainter::TreeView methodsFor:'building'!
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3860
1058
243d945b1daf name the (full-)spec
tm
parents: 1046
diff changeset
  3861
generateFullSpecForComponents:aSpecArray named:specNameSymbol
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3862
    "generates a full spec from aSpecArray"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3863
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  3864
    |fullSpec winSpec|
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3865
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3866
    fullSpec := FullSpec new.
1058
243d945b1daf name the (full-)spec
tm
parents: 1046
diff changeset
  3867
    fullSpec name:specNameSymbol.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3868
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3869
    fullSpec fromBuilder:(self canvas topView)
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  3870
	      components:(SpecCollection new collection:aSpecArray).
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3871
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3872
    windowSpec notNil ifTrue:[
1186
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  3873
	winSpec := fullSpec window.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  3874
	winSpec copyValuesFromSpec:windowSpec.
4cea2d4e9dbc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1185
diff changeset
  3875
	winSpec name: winSpec label.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3876
    ].    
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3877
    ^ fullSpec literalArrayEncoding.
351
7cb9f9c9a872 more checks
Claus Gittinger <cg@exept.de>
parents: 348
diff changeset
  3878
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3879
!
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3880
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3881
setAttributesFromWindowSpec:aWindowSpec
1172
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  3882
    "sets a window spec from aWindowSpec and applies some attributes
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  3883
     to the canvas."
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  3884
1391
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
  3885
    |name canvasView builder|
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  3886
1466
6fecdd5341dc allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents: 1461
diff changeset
  3887
    windowSpec := (self windowSpecClass) new copyValuesFromSpec:aWindowSpec.
1172
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  3888
    canvasView := self canvas.
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  3889
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  3890
    builder := UIBuilder new isEditing:true.
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  3891
    aWindowSpec setAttributesIn:canvasView with:builder.
e22253cb348f set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents: 1167
diff changeset
  3892
1391
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
  3893
    name := aWindowSpec label.
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
  3894
    canvasView topView name:name.
be99f3e9260e set changed label in tree-view for canvas
ca
parents: 1360
diff changeset
  3895
    self canvasNameChanged:name.
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  3896
    self application treeSelection.
311
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3897
! !
52f954630dca support of menu and srollers for the canvas
ca
parents: 305
diff changeset
  3898
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3899
!UIPainter::TreeView methodsFor:'canvas selection'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3900
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3901
cvsSelection:aSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3902
    "canvas changed its selection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3903
    "
805
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  3904
    |sel list size|
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  3905
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  3906
    ((sel := aSelection) isNil or:[sel isCollection]) ifFalse:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3907
	sel := Array with:sel
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  3908
    ].
805
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  3909
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  3910
    (size := sel size) ~~ 0 ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3911
	list := OrderedCollection new:size.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3912
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3913
	sel do:[:aView||item|
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3914
	    (item := self itemOfView:aView) notNil ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3915
		list add:item.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3916
		model doMakeVisible:item.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3917
	    ]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3918
	].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3919
	sel := list collect:[:anItem| self indexOfNode:anItem ].
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  3920
    ].
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3921
    self cvsEventsDisabledDo:[ self selection:sel ].            
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
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3927
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3928
cvsSelectionAdd:aView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3929
    "canvas adds a view to current selection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3930
    "
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  3931
    |item index oldSel|
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3932
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3933
    item := self itemOfView:aView.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3934
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3935
    item notNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3936
	model doMakeVisible:item.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3937
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3938
	(index := self indexOfNode:item) ~~ 0 ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3939
	    oldSel := selection copy.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3940
	    self addToSelection:index.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3941
	    self selectionChangedFrom:oldSel
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3942
	]        
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  3943
    ]            
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3944
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3945
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3946
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3947
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3948
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3949
cvsSelectionRemove:aView
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3950
    "canvas removes a view from current selection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3951
    "
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  3952
    |item index oldSel|
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  3953
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  3954
    (     (item := self itemOfView:aView) notNil
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  3955
     and:[(index := self indexOfNode:item) ~~ 0
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  3956
     and:[self isInSelection:index]]
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  3957
    ) ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3958
	oldSel := selection copy.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3959
	self removeFromSelection:index.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3960
	self selectionChangedFrom:oldSel.
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  3961
    ].
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3962
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3963
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3964
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3965
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3966
!UIPainter::TreeView methodsFor:'change & update'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3967
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3968
canvasNameChanged:aName
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3969
    "called if identification name assigned to window (canvas) changed
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3970
    "
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3971
    |name node|
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3972
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3973
    node := listOfNodes at:1.
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3974
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3975
    (    aName size ~~ 0
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3976
     and:[(name := aName string withoutSeparators) size ~~ 0
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3977
     and:[(self propertyDetect:[:p| p name = name]) isNil
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3978
     and:[node name ~= name]]]
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3979
    ) ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3980
	node name: name asBoldText.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3981
	node changed.   
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3982
    ].
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3983
!
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  3984
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3985
layoutChanged
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3986
    "layout of any component changed; in case of single selection, the
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3987
     application will be informed to update its layout
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3988
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3989
    selection size == 1 ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  3990
	self application layoutChanged
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3991
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3992
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3993
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3994
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3995
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3996
propertyChanged:aProperty
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3997
    "property of view derived from argument a property changed
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3998
    "
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  3999
    |item idx end|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4000
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4001
    item := self itemOfView:(aProperty view).
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4002
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4003
    item notNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4004
	item contents:aProperty.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4005
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4006
	item name = aProperty name ifFalse:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4007
	    idx := self firstLineShown.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4008
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4009
	    (end := self lastLineShown) > listOfNodes size ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4010
		end := listOfNodes size
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4011
	    ].                          
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4012
	    item changed.   
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4013
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4014
	    [idx <= end] whileTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4015
		(listOfNodes at:idx) == item ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4016
		    self redrawLine:idx.                "/ is visible; redraw line
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4017
		    end := 0
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4018
		] ifFalse:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4019
		    idx := idx + 1
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4020
		]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4021
	    ]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4022
	].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4023
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4024
	self selectedNode == item ifTrue:[              "/ inform application
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4025
	    self application propertyChanged
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4026
	]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4027
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4028
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4029
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4030
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4031
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4032
!UIPainter::TreeView methodsFor:'drag & drop'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4033
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4034
canDrop:anObjectOrCollection
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4035
    "can drop ? delegate to canvas"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4036
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4037
    ^ self canvas canDrop:anObjectOrCollection
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4038
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4039
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4040
drop:anObjectOrCollection at:aPoint
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4041
    "drop objects ? delegate to canvas"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4042
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4043
    self canvas drop:anObjectOrCollection at:aPoint
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4044
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4045
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4046
!UIPainter::TreeView methodsFor:'enumerating'!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4047
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4048
allItemsDo:aOneArgBlock
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4049
    "evaluates the argument a block on each item other than the canvas"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4050
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4051
    model root allChildrenDo:aOneArgBlock
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4052
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4053
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4054
! !
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4055
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4056
!UIPainter::TreeView methodsFor:'event processing'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4057
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4058
cvsEventsDisabledDo:aBlock
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4059
    "evaluates the block without raising selection changed notifications
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4060
     to canvas"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4061
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4062
    |restoreCvsEvents|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4063
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4064
    restoreCvsEvents  := cvsEventsDisabled.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4065
    cvsEventsDisabled := true.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4066
    aBlock value.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4067
    cvsEventsDisabled := restoreCvsEvents.
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4068
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4069
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4070
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4071
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4072
doubleClicked
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4073
    "disables collapsing of the root item"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4074
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4075
    self selectedNode == model root ifFalse:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4076
	super doubleClicked
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4077
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4078
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4079
805
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  4080
!
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  4081
852
c24c7584abe4 replace reimplememented method:
ca
parents: 851
diff changeset
  4082
redrawLabelAt:x y:yTop index:anIndex
805
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  4083
    "draws a tiny rectangle for indicating the master node (first selected node)"
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  4084
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  4085
    |dX|
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  4086
852
c24c7584abe4 replace reimplememented method:
ca
parents: 851
diff changeset
  4087
    super redrawLabelAt:x y:yTop index:anIndex.
805
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  4088
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  4089
    ((selection size > 1) and: [selection first == anIndex]) ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4090
	dX := textInset - 1.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4091
	self paint:(Color red). "/ self application painter handleMasterColor.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4092
	self fillRectangleX:(x - dX - 2)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4093
			  y:yTop + ((fontHeight - dX) // 2)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4094
		      width:dX
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4095
		     height:dX
805
99e70b6c02e5 new indication of the master widget
tz
parents: 798
diff changeset
  4096
    ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4097
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4098
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4099
!UIPainter::TreeView methodsFor:'initialization'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4100
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4101
initialize
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4102
    "initialize the tree view; multiple select and tree item actions"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4103
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4104
    super initialize.
564
df1f1e84d94a add menu added
tz
parents: 547
diff changeset
  4105
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4106
    self multipleSelectOk:true.
368
9e588f397bc9 support of lineFeed character \ in the help text
ca
parents: 366
diff changeset
  4107
    cvsEventsDisabled := false.
440
1198f19712ff spec items have got individual icons
tz
parents: 437
diff changeset
  4108
    self showDirectoryIndicator: true.
656
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  4109
    self showDirectoryIndicatorForRoot: false.
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  4110
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  4111
    self model iconAction: 
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  4112
    [:aNode|
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4113
	|specClass|       
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4114
	(specClass := aNode contents spec) isNil 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4115
	    ifTrue: [WindowSpec icon]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4116
	    ifFalse:[specClass class icon]
656
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  4117
    ].
21fe350cfa06 tree item labels changed to a more convenient style
tz
parents: 630
diff changeset
  4118
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4119
    self model labelAction: 
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4120
    [:aNode|
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4121
	|spec|
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4122
	(spec := aNode contents spec) notNil
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4123
	    ifTrue: [self nameForSpecInList:spec] 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4124
	    ifFalse:[aNode name]
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4125
    ]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4126
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4127
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4128
!UIPainter::TreeView methodsFor:'private'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4129
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4130
nameForSpecInList:aSpec
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4131
    "returns the tree item label for aSpec"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4132
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4133
     ^ aSpec name asBoldText, ': [', aSpec viewClass name , ']' 
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4134
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4135
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4136
selectionChangedFrom:oldSelection
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4137
    "selection has changed. update master selection and raise notification
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4138
     to canvas in case of enabled cvs events
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4139
    "
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4140
    |sel size|
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4141
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4142
    super selectionChangedFrom:oldSelection.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4143
    size := selection size.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4144
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4145
    cvsEventsDisabled ifFalse:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4146
	(size ~~ 0 and:[size ~~ 1 or:[selection first ~~ 1]]) ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4147
	    sel := OrderedCollection new.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4148
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4149
	    selection do:[:i|
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4150
		i ~~ 1 ifTrue:[sel add:(listOfNodes at:i) contents view]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4151
	    ]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4152
	].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4153
	self canvas updateSelectionFromModel:sel
778
a4b931b2aff6 master widget highlighting changed in the tree list
tz
parents: 774
diff changeset
  4154
    ].             
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4155
    size = 1 ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4156
	oldSelection size > 1 ifTrue: [
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4157
	    (listOfNodes at:lastDrawnMaster) retrieveLabel.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4158
	    self redrawLine: lastDrawnMaster. 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4159
	    lastDrawnMaster := selection first
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4160
	]
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4161
    ].
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4162
    size > 1 ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4163
	selection first ~~ lastDrawnMaster ifTrue: [
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4164
	    (listOfNodes at:selection first) retrieveLabel.
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4165
	    lastDrawnMaster notNil ifTrue: [(listOfNodes at:lastDrawnMaster) retrieveLabel].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4166
	    self redrawLine: lastDrawnMaster. 
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4167
	    self redrawLine: (lastDrawnMaster := selection first)
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4168
	]
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  4169
    ]         
713
f94e58bb44ac some changes for the docu
tz
parents: 697
diff changeset
  4170
    ifFalse: [
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4171
	lastDrawnMaster := nil
785
35ad7901368c avoid selection problems
tz
parents: 778
diff changeset
  4172
    ] 
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4173
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4174
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4175
!UIPainter::TreeView methodsFor:'queries'!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4176
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4177
canChangeOrderInContainer
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4178
    "returns true if any selection exists and all widgets in the selection
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4179
     can change their layout through to a move or align operation"
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4180
889
39d326722589 up/down channel updating
tz
parents: 884
diff changeset
  4181
    ^(selection size == 1)  and: 
39d326722589 up/down channel updating
tz
parents: 884
diff changeset
  4182
    [(selection at: 1) ~~ 1 and:   
39d326722589 up/down channel updating
tz
parents: 884
diff changeset
  4183
    [self selectedNode parent children size > 1]] 
39d326722589 up/down channel updating
tz
parents: 884
diff changeset
  4184
39d326722589 up/down channel updating
tz
parents: 884
diff changeset
  4185
565
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4186
!
8fdeb11c72fd items move enabling
tz
parents: 564
diff changeset
  4187
1230
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  4188
canExchangeSelectionLayouts 
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  4189
    "returns true if the selections size is exactly 2
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  4190
     and all widgets in the selection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  4191
     can change their layout through to a move or align operation"
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  4192
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  4193
    selection size == 2 ifFalse:[
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  4194
        ^ false
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  4195
    ].
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  4196
    ^ self canMoveOrAlignSelection
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  4197
!
23e5d0c133e8 added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents: 1211
diff changeset
  4198
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4199
canMoveOrAlignSelection
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4200
    "returns true if any selection exists and all widgets in the selection
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4201
     can change their layout through to a move or align operation"
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4202
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4203
    selection size == 0 ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4204
	^ false
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4205
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4206
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4207
    selection do:[:i|
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4208
	i == 1 ifTrue:[^ false].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4209
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4210
	(self canvas canChangeLayoutOfView:((listOfNodes at:i) contents view)) ifFalse:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4211
	    ^ false
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4212
	]
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4213
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4214
    ^ true
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4215
!
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4216
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4217
canMoveSelectionIntoContainer
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4218
    "returns true in case that one widget is selected and can change its container
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4219
     widget to the next element in the list which will have the same container"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4220
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4221
    |item prnt|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4223
    (     (item := self selectedNode) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4224
      or:[(prnt := item parent) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4225
      or:[(prnt := prnt childAt:((prnt indexOfChild:item) + 1)) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4226
      or:[prnt contents spec class supportsSubComponents not]]]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4227
    ) ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4228
	^ false
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4229
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4230
    ^ true
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4231
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4232
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4233
canMoveSelectionOutOfContainer
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4234
    "returns true in case that one widget is selected which is contained within
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4235
     another widget"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4236
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4237
    |item prnt|
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4238
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4239
    (     (item := self selectedNode) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4240
      or:[(prnt := item parent) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4241
      or:[prnt parent isNil]]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4242
    ) ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4243
	^ false
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4244
    ].
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4245
    ^ true
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4246
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4247
301
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4248
canResizeSelectedWidget
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4249
    "returns true in case of one widget selected and is contained
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4250
     within a widget which allows to resize sub components"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4251
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4252
    |selectedNode|
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4253
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4254
    (selectedNode := self selectedNode) notNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4255
	(selectedNode := selectedNode parent) notNil ifTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4256
	    ^ (selectedNode parent isNil or:[selectedNode contents spec class canResizeSubComponents])
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4257
	]
301
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4258
    ].
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4259
    ^ false
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4260
!
131f874fc2a2 support of hierarchical list editor
ca
parents: 297
diff changeset
  4261
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4262
hasOneSelectionOtherThanCanvas
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4263
    "returns true in case that one selection exists other than the canvas"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4264
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4265
    ^ selection size == 1 and:[selection first ~~ 1]
281
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  4266
!
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  4267
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  4268
isCanvasSelected
aabb4037f6a3 window spec
ca
parents: 280
diff changeset
  4269
    "returns true in case of a single selection and the
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4270
     selection is the canvas (index 1)"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4271
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4272
    ^ selection size == 1 and:[self isInSelection:1]
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4273
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4274
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4275
!UIPainter::TreeView methodsFor:'searching'!
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4276
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4277
detectItemRespondsToView:aView
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4278
    "detects the item responding to the view. The item of the view or the first
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4279
     subview providing the item is returned. If no property is detected nil is
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4280
     returned"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4281
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4282
    |view item|
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4283
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4284
    (view := aView) notNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4285
	[(item := self itemOfView:view) isNil] whileTrue:[
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4286
	    (view := view superView) isNil ifTrue:[^ listOfNodes at:1]
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4287
	].
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4288
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4289
    ^ item
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4290
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4291
! !
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4292
1439
540781421bbf category change
Claus Gittinger <cg@exept.de>
parents: 1432
diff changeset
  4293
!UIPainter::TreeView methodsFor:'user interaction'!
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4294
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4295
doChangeHierarchyOf:anItem
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4296
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4297
    |canvas|
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4298
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4299
    anItem isNil ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4300
	^ self
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4301
    ].
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4302
    self setSelection:nil.
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4303
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4304
    canvas := self canvas.
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4305
    canvas deleteSelection.
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4306
    canvas setSelection:(anItem contents view) withRedraw:false.
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4307
    canvas pasteWithLayout.
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4308
!
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4309
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4310
doStepIn
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4311
    |item prnt|
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4312
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4313
    (     (item := self selectedNode) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4314
      or:[(prnt := item parent) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4315
      or:[(prnt := prnt childAt:((prnt indexOfChild:item) + 1)) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4316
      or:[prnt contents spec class supportsSubComponents not]]]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4317
    ) ifFalse:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4318
	self doChangeHierarchyOf:prnt
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4319
    ]
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4320
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4321
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4322
doStepOut
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4323
    |item|
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4324
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4325
    ((item := self selectedNode) notNil and:[(item := item parent) notNil]) ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4326
	self doChangeHierarchyOf:(item parent)
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4327
    ].
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4328
!
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4329
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4330
doStepOver:anIndex
765
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4331
    "moves child 'anOffset' forward or backward in list of children"
27936ff059d3 obselete methods removed + comments revised
tz
parents: 755
diff changeset
  4332
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4333
    |item idx size prnt spVw view canvas|
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4334
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4335
    (    (item := self selectedNode) isNil
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4336
     or:[(prnt := item parent) isNil
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4337
     or:[(size := prnt children size) < 2
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4338
     or:[(idx  := prnt indexOfChild:item) == 0]]]
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4339
    ) ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4340
	^ self
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4341
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4342
    idx := idx + anIndex.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4343
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4344
    idx < 1 ifTrue:[idx := size]
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4345
	   ifFalse:[idx > size ifTrue:[idx := 1]].
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4346
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4347
    self setSelection:nil.
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4348
    model remove:item.
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4349
    model add:item beforeIndex:idx below:prnt.
774
5ca0853de0bc reuse methods provided by the model
ca
parents: 765
diff changeset
  4350
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4351
    idx    := prnt indexOfChild:item.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4352
    view   := item contents view.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4353
    spVw   := prnt contents view.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4354
    canvas := self canvas.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4355
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4356
    canvas hideSelection.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4357
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4358
 "/ input view might by contained in sequence
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4359
    ((size := canvas findInputViewIn:spVw) ~~ 0 and:[idx >= size]) ifTrue:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4360
	idx := idx + 1
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4361
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4362
    spVw changeSequenceOrderFor:view to:idx.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4363
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4364
    spVw specClass isLayoutContainer ifFalse:[
984
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4365
	spVw subViews do:[:v| v raise ].
f1b6d6b68510 dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
  4366
	canvas inputView raise
282
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4367
    ].
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4368
    canvas showSelection.
bb88d92ae887 checkin from browser
ca
parents: 281
diff changeset
  4369
    self selectNode:item.
222
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4370
! !
dd2688307d90 added treeView; change specs
ca
parents: 217
diff changeset
  4371
60
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4372
!UIPainter class methodsFor:'documentation'!
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4373
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4374
version
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4375
    ^ '$Header$'
7542ab7fbbfe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 59
diff changeset
  4376
! !