repolist/viewAutotypist.go

32 lines
1.0 KiB
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
2024-11-28 19:57:03 -06:00
func (rl *RepoList) AutotypistView(parent *gui.Node) {
rl.allrepos = make(map[string]*RepoRow)
rl.viewName = "autotypist"
2024-02-17 14:22:24 -06:00
2024-11-28 19:57:03 -06:00
// rl.reposbox = gui.RawBox()
rl.reposbox = parent
2024-02-17 14:22:24 -06:00
2024-11-28 19:57:03 -06:00
rl.reposgroup = rl.reposbox.NewGroup("my git repositories (configure in ~/.config/autotypist)")
// rl.reposgroup.Menu = repolistMenu() // how to do a menu? what should the code look like?
rl.reposgrid = rl.reposgroup.NewGrid("test", 0, 0)
2024-02-17 14:22:24 -06:00
2024-11-28 19:57:03 -06:00
rl.reposgrid.NewLabel("") // path goes here
rl.reposgrid.NewLabel("last tag").SetProgName("last tag")
rl.reposgrid.NewLabel("master version")
rl.reposgrid.NewLabel("devel version")
rl.reposgrid.NewLabel("user version")
rl.reposgrid.NewLabel("Status")
rl.reposgrid.NewLabel("Current").SetProgName("CurrentName")
rl.reposgrid.NewLabel("Version").SetProgName("CurrentVersion")
rl.reposgrid.NextRow()
2024-02-19 19:43:21 -06:00
2024-11-28 19:57:03 -06:00
rl.blind = gui.RawBox()
rl.shownCount = rl.blind.NewLabel("showCount")
rl.duration = rl.blind.NewLabel("duration")
2024-02-17 14:22:24 -06:00
}