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