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