17 itemClass lineColor computeResources showRoot |
17 itemClass lineColor computeResources showRoot |
18 showDirectoryIndicator closeIndicator openIndicator |
18 showDirectoryIndicator closeIndicator openIndicator |
19 showDirectoryIndicatorForRoot imageOpened imageClosed imageItem |
19 showDirectoryIndicatorForRoot imageOpened imageClosed imageItem |
20 discardMotionEvents registeredImages supportsExpandAll |
20 discardMotionEvents registeredImages supportsExpandAll |
21 buildInArray drawVLinesFromLevel highlightMode editorWidget |
21 buildInArray drawVLinesFromLevel highlightMode editorWidget |
22 editorIndex' |
22 editorIndex editValueFgColor' |
23 classVariableNames:'DefaultHilightMode SelectionInset' |
23 classVariableNames:'DefaultHilightMode SelectionInset' |
24 poolDictionaries:'' |
24 poolDictionaries:'' |
25 category:'Views-Text' |
25 category:'Views-Text' |
26 ! |
26 ! |
27 |
27 |
1554 buildInArray := Array new:50. "/ used for temporary calculation |
1559 buildInArray := Array new:50. "/ used for temporary calculation |
1555 "/ suppress garbage collection |
1560 "/ suppress garbage collection |
1556 |
1561 |
1557 self model:nil. "/ creates a default model. |
1562 self model:nil. "/ creates a default model. |
1558 highlightMode := #label. |
1563 highlightMode := #label. |
|
1564 editValueFgColor := Color blue. |
1559 ! |
1565 ! |
1560 |
1566 |
1561 realize |
1567 realize |
1562 super realize. |
1568 super realize. |
1563 self refetchDeviceResources. |
1569 self refetchDeviceResources. |
1793 or:[(y0 := self listLineToVisibleLine:editorIndex) isNil |
1799 or:[(y0 := self listLineToVisibleLine:editorIndex) isNil |
1794 or:[(editorWidget := node editor) isNil]] |
1800 or:[(editorWidget := node editor) isNil]] |
1795 ) ifTrue:[ |
1801 ) ifTrue:[ |
1796 ^ self |
1802 ^ self |
1797 ]. |
1803 ]. |
1798 focusView := nil. |
1804 editorWidget withAllSubViewsDo:[:v| v font:font ]. |
1799 editorWidget withAllSubViewsDo:[:v| |
1805 |
1800 focusView := v. |
|
1801 v font:font |
|
1802 ]. |
|
1803 y0 := self yOfVisibleLine:y0. |
1806 y0 := self yOfVisibleLine:y0. |
1804 x0 := self xOfValueNode:node. |
1807 x0 := self xOfValueNode:node. |
1805 x1 := (editorWidget preferredExtent x) max:50. |
1808 x1 := (editorWidget preferredExtent x) max:50. |
1806 x1 := (x0 + x1) min:(self width - 5). |
1809 x1 := (x0 + x1) min:(self width - 5). |
1807 |
1810 |
1808 "/ editorWidget geometryLayout:(Rectangle left:x0 right:x1 top:y0 + 1 bottom:y0 - 2 + fontHeight). |
|
1809 editorWidget geometryLayout:(Rectangle left:x0 right:x1 top:y0 bottom:y0 + fontHeight). |
1811 editorWidget geometryLayout:(Rectangle left:x0 right:x1 top:y0 bottom:y0 + fontHeight). |
1810 |
1812 |
1811 self addComponent:editorWidget. |
1813 self addComponent:editorWidget. |
1812 editorWidget realize. |
1814 editorWidget realize. |
1813 self windowGroup focusView:focusView. |
|
1814 self paint:bgColor. |
1815 self paint:bgColor. |
1815 |
1816 |
1816 self fillRectangleX:(x0 - SelectionInset) |
1817 self fillRectangleX:(x0 - SelectionInset) |
1817 y:y0 |
1818 y:y0 |
1818 width:SelectionInset + SelectionInset + (x1 - x0) |
1819 width:SelectionInset + SelectionInset + (x1 - x0) |