Grafoscopio document tree preview.
This commit is contained in:
parent
4d4a3f6697
commit
128f5b8d7c
@ -119,3 +119,40 @@ GrafoscopioNode >> tags [
|
|||||||
GrafoscopioNode >> tags: anObject [
|
GrafoscopioNode >> tags: anObject [
|
||||||
tags := anObject
|
tags := anObject
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
GrafoscopioNode >> viewBody [
|
||||||
|
|
||||||
|
| aText |
|
||||||
|
aText := self header asRopedText.
|
||||||
|
|
||||||
|
self children do: [ :child |
|
||||||
|
aText append: ' ' asRopedText.
|
||||||
|
aText append: (child header asRopedText foreground:
|
||||||
|
BrGlamorousColors disabledButtonTextColor).
|
||||||
|
aText append: ('= "' asRopedText foreground:
|
||||||
|
BrGlamorousColors disabledButtonTextColor).
|
||||||
|
aText append: (child body asRopedText foreground:
|
||||||
|
BrGlamorousColors disabledButtonTextColor).
|
||||||
|
aText append:
|
||||||
|
('"' asRopedText foreground:
|
||||||
|
BrGlamorousColors disabledButtonTextColor) ].
|
||||||
|
|
||||||
|
|
||||||
|
^ aText
|
||||||
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
GrafoscopioNode >> viewChildrenFor: aView [
|
||||||
|
<gtView>
|
||||||
|
|
||||||
|
children ifNil: [ ^ aView empty ].
|
||||||
|
|
||||||
|
^ aView columnedTree
|
||||||
|
title: 'Children';
|
||||||
|
priority: 1;
|
||||||
|
items: [ { self } ];
|
||||||
|
children: #children;
|
||||||
|
column: 'Name' text: #viewBody;
|
||||||
|
expandUpTo: 2
|
||||||
|
]
|
||||||
|
@ -44,6 +44,12 @@ MiniDocs class >> appFolder [
|
|||||||
^ tempFolder
|
^ tempFolder
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
MiniDocs class >> importGrafoscopioFile: aFileReference [
|
||||||
|
|
||||||
|
^ (STON fromString: aFileReference) first parent
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
MiniDocs class >> initialize [
|
MiniDocs class >> initialize [
|
||||||
self keyboardShortcutsRemapping
|
self keyboardShortcutsRemapping
|
||||||
|
Loading…
Reference in New Issue
Block a user