author | ca |
Wed, 06 Nov 1996 12:50:14 +0100 | |
changeset 261 | 9a25b39f5320 |
parent 234 | da6bb07255b2 |
child 631 | 563405a2cb93 |
permissions | -rw-r--r-- |
12 | 1 |
" |
2 |
COPYRIGHT (c) 1994 by Claus Gittinger |
|
24 | 3 |
All Rights Reserved |
12 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
13 |
"Created: 20.11.1995 / 13:21:17 / cg" |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
14 |
|
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
15 |
SyncedMultiColumnTextView subclass:#TwoColumnTextView |
158 | 16 |
instanceVariableNames:'' |
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Views-Text' |
|
12 | 20 |
! |
21 |
||
261 | 22 |
!TwoColumnTextView class methodsFor:'documentation'! |
12 | 23 |
|
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
24 |
copyright |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
25 |
" |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
26 |
COPYRIGHT (c) 1994 by Claus Gittinger |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
27 |
All Rights Reserved |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
28 |
|
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
29 |
This software is furnished under a license and may be used |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
30 |
only in accordance with the terms of that license and with the |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
31 |
inclusion of the above copyright notice. This software may not |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
32 |
be provided or otherwise made available to, or used by, any |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
33 |
other person. No title to or ownership of the software is |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
34 |
hereby transferred. |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
35 |
" |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
36 |
|
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
37 |
"Created: 20.11.1995 / 13:21:17 / cg" |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
38 |
! |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
39 |
|
12 | 40 |
documentation |
41 |
" |
|
42 |
a view showing two texts side-by-side. |
|
43 |
Scrolling is synced, by always scrolling both views. |
|
44 |
This type of view is especially useful to show diff-lists, |
|
91
ef89e1292812
fixes for different text sizes
Claus Gittinger <cg@exept.de>
parents:
86
diff
changeset
|
45 |
code-versions, or other one-by-one viewable texts. |
12 | 46 |
|
47 |
Usually, it does not make much sense, to put totally different |
|
24 | 48 |
or unrelated texts into this kind of view. |
49 |
||
50 |
See subclass DiffTextView for a real class; |
|
51 |
see ChangesBrowsers compare operation for a real application |
|
52 |
of this kind of views. |
|
162 | 53 |
|
54 |
[see also:] |
|
55 |
DiffTextView |
|
56 |
TextView EditTextView |
|
57 |
||
58 |
[author:] |
|
59 |
Claus Gittinger |
|
12 | 60 |
" |
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
61 |
|
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
62 |
"Created: 20.11.1995 / 13:21:17 / cg" |
34 | 63 |
! |
64 |
||
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
65 |
examples |
34 | 66 |
" |
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
67 |
TwoColumnTextView are currently not directly used by the system. |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
68 |
However, it is used as an abstract superclass for DiffTextView. |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
69 |
See more examples there. |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
70 |
(you may find nice uses for it anyway ...) |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
71 |
|
161 | 72 |
[exBegin] |
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
73 |
TwoColumnTextView |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
74 |
openOn:('smalltalk.rc' asFilename contentsOfEntireFile) |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
75 |
and:('display.rc' asFilename contentsOfEntireFile) |
161 | 76 |
[exEnd] |
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
77 |
|
34 | 78 |
|
161 | 79 |
[exBegin] |
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
80 |
TwoColumnTextView |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
81 |
openOn:('display.rc' asFilename contentsOfEntireFile) |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
82 |
and:('smalltalk.rc' asFilename contentsOfEntireFile) |
161 | 83 |
[exEnd] |
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
84 |
|
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
85 |
|
161 | 86 |
[exBegin] |
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
87 |
TwoColumnTextView |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
88 |
openOn:('smalltalk.rc' asFilename contentsOfEntireFile) |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
89 |
label:'smalltalk.rc' |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
90 |
and:('display.rc' asFilename contentsOfEntireFile) |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
91 |
label:'display.rc' |
161 | 92 |
[exEnd] |
34 | 93 |
" |
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
94 |
|
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
95 |
"Created: 20.11.1995 / 13:21:42 / cg" |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
96 |
"Modified: 20.11.1995 / 13:23:12 / cg" |
158 | 97 |
! ! |
12 | 98 |
|
261 | 99 |
!TwoColumnTextView class methodsFor:'instance creation'! |
12 | 100 |
|
101 |
openOn:firstText and:secondText |
|
162 | 102 |
"open up a view showing firstText and secondText side-by-side. |
103 |
This does not make much sense for unrelated texts - of course." |
|
12 | 104 |
|
91
ef89e1292812
fixes for different text sizes
Claus Gittinger <cg@exept.de>
parents:
86
diff
changeset
|
105 |
|top v| |
ef89e1292812
fixes for different text sizes
Claus Gittinger <cg@exept.de>
parents:
86
diff
changeset
|
106 |
|
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
107 |
top := StandardSystemView label:'two texts'. |
261 | 108 |
self openOn:firstText and:secondText in:top. |
91
ef89e1292812
fixes for different text sizes
Claus Gittinger <cg@exept.de>
parents:
86
diff
changeset
|
109 |
^ top open |
12 | 110 |
|
91
ef89e1292812
fixes for different text sizes
Claus Gittinger <cg@exept.de>
parents:
86
diff
changeset
|
111 |
" |
ef89e1292812
fixes for different text sizes
Claus Gittinger <cg@exept.de>
parents:
86
diff
changeset
|
112 |
TwoColumnTextView |
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
113 |
openOn:('smalltalk.rc' asFilename contentsOfEntireFile) |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
114 |
and:('display.rc' asFilename contentsOfEntireFile) |
91
ef89e1292812
fixes for different text sizes
Claus Gittinger <cg@exept.de>
parents:
86
diff
changeset
|
115 |
|
ef89e1292812
fixes for different text sizes
Claus Gittinger <cg@exept.de>
parents:
86
diff
changeset
|
116 |
|
ef89e1292812
fixes for different text sizes
Claus Gittinger <cg@exept.de>
parents:
86
diff
changeset
|
117 |
TwoColumnTextView |
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
118 |
openOn:('display.rc' asFilename contentsOfEntireFile) |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
119 |
and:('smalltalk.rc' asFilename contentsOfEntireFile) |
91
ef89e1292812
fixes for different text sizes
Claus Gittinger <cg@exept.de>
parents:
86
diff
changeset
|
120 |
" |
ef89e1292812
fixes for different text sizes
Claus Gittinger <cg@exept.de>
parents:
86
diff
changeset
|
121 |
|
162 | 122 |
"Modified: 25.4.1996 / 13:31:03 / cg" |
12 | 123 |
! |
124 |
||
261 | 125 |
openOn:firstText and:secondText in:aView |
126 |
"open up a view showing firstText and secondText side-by-side. |
|
127 |
This does not make much sense for unrelated texts - of course." |
|
128 |
||
129 |
self openOn:firstText |
|
130 |
label:nil |
|
131 |
and:secondText |
|
132 |
label:nil |
|
133 |
in:aView. |
|
134 |
! |
|
135 |
||
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
136 |
openOn:firstText label:firstLabel and:secondText label:secondLabel |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
137 |
"open up a view showing firstText and secondText side-by-side, |
162 | 138 |
and labels for both views. |
139 |
This does not make much sense for unrelated texts - of course." |
|
12 | 140 |
|
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
141 |
|top v l1 l2| |
12 | 142 |
|
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
143 |
top := StandardSystemView label:'two texts'. |
12 | 144 |
|
261 | 145 |
self openOn:firstText |
146 |
label:firstLabel |
|
147 |
and:secondText |
|
148 |
label:secondLabel |
|
149 |
in:top. |
|
150 |
||
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
151 |
^ top open |
12 | 152 |
|
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
153 |
" |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
154 |
TwoColumnTextView |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
155 |
openOn:('smalltalk.rc' asFilename contentsOfEntireFile) |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
156 |
label:'smalltalk.rc' |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
157 |
and:('display.rc' asFilename contentsOfEntireFile) |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
158 |
label:'display.rc' |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
159 |
" |
12 | 160 |
|
234
da6bb07255b2
no borders in labels (2D style)
Claus Gittinger <cg@exept.de>
parents:
162
diff
changeset
|
161 |
"Modified: 15.8.1996 / 19:46:38 / cg" |
261 | 162 |
! |
163 |
||
164 |
openOn:firstText label:firstLabel and:secondText label:secondLabel in:aView |
|
165 |
"open up a view showing firstText and secondText side-by-side, |
|
166 |
and labels for both views. |
|
167 |
This does not make much sense for unrelated texts - of course." |
|
168 |
||
169 |
|hvs scr l1 l2 buttonPrev buttonNext panel| |
|
170 |
||
171 |
hvs := HVScrollableView |
|
172 |
for:self |
|
173 |
miniScrollerH:true miniScrollerV:false |
|
174 |
in:aView. |
|
175 |
||
176 |
scr := hvs scrolledView. |
|
177 |
||
178 |
(firstLabel notNil and:[secondLabel notNil]) ifTrue:[ |
|
179 |
l1 := Label label:firstLabel in:aView. |
|
180 |
l1 origin:0.0@0.0 corner:0.5@(l1 height). |
|
181 |
l1 borderWidth:0. |
|
182 |
l2 := Label label:secondLabel in:aView. |
|
183 |
l2 origin:0.5@0.0 corner:1.0@(l1 height). |
|
184 |
l2 borderWidth:0. |
|
185 |
||
186 |
hvs origin:0.0 @ (l1 height + ViewSpacing) corner:1.0 @ 1.0. |
|
187 |
] ifFalse:[ |
|
188 |
hvs origin:0.0 @ 0.0 corner:1.0 @ 1.0 |
|
189 |
]. |
|
190 |
scr text1:firstText text2:secondText. |
|
191 |
||
192 |
"set up-down buttons" |
|
193 |
||
194 |
panel := VerticalPanelView in:scr. |
|
195 |
||
196 |
buttonPrev := Button label:'-' in:panel. |
|
197 |
buttonNext := Button label:'+' in:panel. |
|
198 |
buttonPrev extent:15@22. |
|
199 |
buttonNext extent:15@22. |
|
200 |
panel origin:0.0 @ 1.0 corner:(15 + SimpleView viewSpacing) @ 1.0. |
|
201 |
panel topInset:(2 * (buttonPrev preferredExtent y)) negated. |
|
202 |
||
203 |
"set actions" |
|
204 |
||
205 |
buttonPrev pressAction:[ |
|
206 |
buttonPrev turnOff. |
|
207 |
scr moveToPreviousChanged |
|
208 |
]. |
|
209 |
||
210 |
buttonNext pressAction:[ |
|
211 |
buttonNext turnOff. |
|
212 |
scr moveToNextChanged |
|
213 |
]. |
|
214 |
scr moveToNextChanged. |
|
12 | 215 |
! ! |
216 |
||
261 | 217 |
!TwoColumnTextView class methodsFor:'specification'! |
12 | 218 |
|
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
219 |
numberOfViews |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
220 |
^ 2 |
12 | 221 |
|
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
222 |
"Created: 20.11.1995 / 13:17:00 / cg" |
12 | 223 |
! ! |
224 |
||
225 |
!TwoColumnTextView methodsFor:'accessing'! |
|
226 |
||
227 |
text1:t1 text2:t2 |
|
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
228 |
(textViews at:1) list:t1 asText. |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
229 |
(textViews at:2) list:t2 asText. |
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
230 |
|
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
231 |
"Created: 20.11.1995 / 13:20:39 / cg" |
12 | 232 |
! ! |
92
ca6389321c2a
new (abstract) class for multiple sync-scrolled textviews
Claus Gittinger <cg@exept.de>
parents:
91
diff
changeset
|
233 |
|
261 | 234 |
!TwoColumnTextView methodsFor:'actions'! |
235 |
||
236 |
moveToLine:aLineNr |
|
237 |
|lnNr view nLinesShown| |
|
238 |
||
239 |
view := textViews at:1. |
|
240 |
||
241 |
view shown ifTrue:[ |
|
242 |
lnNr := (view lastLineShown - view firstLineShown) // 3. |
|
243 |
] ifFalse:[ |
|
244 |
lnNr := 5. |
|
245 |
]. |
|
246 |
||
247 |
(lnNr := aLineNr - lnNr) < 1 ifTrue:[ |
|
248 |
lnNr := 1 |
|
249 |
]. |
|
250 |
self scrollToLine:lnNr. |
|
251 |
! |
|
252 |
||
253 |
moveToNextChanged |
|
254 |
|start end| |
|
255 |
||
256 |
start := ((textViews at:1) lastLineShown) + 1. |
|
257 |
||
258 |
textViews do:[:v||list max lnNr| |
|
259 |
list := v list. |
|
260 |
max := list size. |
|
261 |
lnNr := start. |
|
262 |
||
263 |
[(lnNr > max or:[(list at:lnNr) isText]) |
|
264 |
] whileFalse:[ |
|
265 |
lnNr := lnNr + 1 |
|
266 |
]. |
|
267 |
||
268 |
(lnNr <= max) ifTrue:[ |
|
269 |
(end isNil or:[lnNr < end]) ifTrue:[ |
|
270 |
end := lnNr. |
|
271 |
] |
|
272 |
]. |
|
273 |
]. |
|
274 |
||
275 |
end notNil ifTrue:[ |
|
276 |
self moveToLine:end |
|
277 |
]. |
|
278 |
! |
|
279 |
||
280 |
moveToPreviousChanged |
|
281 |
|start end found| |
|
282 |
||
283 |
start := ((textViews at:1) firstLineShown) - 1. |
|
284 |
end := 1. |
|
285 |
found := false. |
|
286 |
||
287 |
start > 1 ifTrue:[ |
|
288 |
textViews do:[:v||lnNr list| |
|
289 |
list := v list. |
|
290 |
lnNr := list size. |
|
291 |
||
292 |
lnNr >= start ifTrue:[ |
|
293 |
lnNr := start |
|
294 |
]. |
|
295 |
||
296 |
[(lnNr == end or:[(list at:lnNr) isText]) |
|
297 |
] whileFalse:[ |
|
298 |
lnNr := lnNr - 1 |
|
299 |
]. |
|
300 |
(list at:lnNr) isText ifTrue:[ |
|
301 |
end := lnNr. |
|
302 |
found := true |
|
303 |
] |
|
304 |
] |
|
305 |
]. |
|
306 |
found ifTrue:[ |
|
307 |
self moveToLine:end |
|
308 |
]. |
|
309 |
! ! |
|
310 |
||
311 |
!TwoColumnTextView class methodsFor:'documentation'! |
|
158 | 312 |
|
313 |
version |
|
261 | 314 |
^ '$Header: /cvs/stx/stx/libwidg2/TwoColumnTextView.st,v 1.15 1996-11-06 11:50:14 ca Exp $'! ! |