FileTree holds the UI objects and data models for populating the right pane. Specifically the pane that shows selected layer or aggregate file ASCII tree.
| 22 | // FileTree holds the UI objects and data models for populating the right pane. Specifically the pane that |
| 23 | // shows selected layer or aggregate file ASCII tree. |
| 24 | type FileTree struct { |
| 25 | name string |
| 26 | gui *gocui.Gui |
| 27 | view *gocui.View |
| 28 | header *gocui.View |
| 29 | vm *viewmodel.FileTreeViewModel |
| 30 | title string |
| 31 | |
| 32 | filterRegex *regexp.Regexp |
| 33 | listeners []ViewOptionChangeListener |
| 34 | extractListeners []ViewExtractListener |
| 35 | helpKeys []*key.Binding |
| 36 | requestedWidthRatio float64 |
| 37 | } |
| 38 | |
| 39 | // newFileTreeView creates a new view object attached the global [gocui] screen object. |
| 40 | func newFileTreeView(gui *gocui.Gui, tree *filetree.FileTree, refTrees []*filetree.FileTree, cache filetree.Comparer) (controller *FileTree, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected