repolist/viewAutotypist.go

33 lines
931 B
Go
Raw Normal View History

2024-02-17 14:22:24 -06:00
package repolist
import "go.wit.com/gui"
// This creates a view of the repos
// you can only have one at this point
func AutotypistView(parent *gui.Node) *RepoList {
if me != nil {
return me
}
me = new(RepoList)
me.allrepos = make(map[string]*Repo)
2024-02-18 10:49:52 -06:00
me.viewName = "autotypist"
2024-02-17 14:22:24 -06:00
// me.reposbox = gui.RawBox()
me.reposbox = parent
me.reposgroup = me.reposbox.NewGroup("git repositories (configure in ~/.config/myrepolist)")
me.reposgrid = me.reposgroup.NewGrid("test", 0, 0)
me.reposgrid.NewLabel("") // path goes here
me.reposgrid.NewLabel("last tag").SetProgName("last tag")
me.reposgrid.NewLabel("master version")
me.reposgrid.NewLabel("devel version")
me.reposgrid.NewLabel("user version")
me.reposgrid.NewLabel("Status")
me.reposgrid.NewLabel("Current").SetProgName("CurrentName")
me.reposgrid.NewLabel("Version").SetProgName("CurrentVersion")
2024-02-17 14:22:24 -06:00
me.reposgrid.NextRow()
2024-02-18 10:49:52 -06:00
me.blind = gui.RawBox()
2024-02-17 14:22:24 -06:00
return me
}