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)
|
2024-02-23 09:02:51 -06:00
|
|
|
me.allrepos = make(map[string]*RepoRow)
|
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
|
|
|
|
|
2024-02-20 10:59:42 -06:00
|
|
|
me.reposgroup = me.reposbox.NewGroup("my git repositories (configure in ~/.config/autotypist)")
|
2024-02-29 17:39:52 -06:00
|
|
|
// me.reposgroup.Menu = repolistMenu() // how to do a menu? what should the code look like?
|
2024-02-17 14:22:24 -06:00
|
|
|
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")
|
2024-02-19 16:28:24 -06:00
|
|
|
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-19 19:43:21 -06:00
|
|
|
|
2024-02-18 10:49:52 -06:00
|
|
|
me.blind = gui.RawBox()
|
2024-02-19 19:43:21 -06:00
|
|
|
me.shownCount = me.blind.NewLabel("showCount")
|
2024-02-20 14:45:09 -06:00
|
|
|
me.duration = me.blind.NewLabel("duration")
|
2024-02-17 14:22:24 -06:00
|
|
|
return me
|
|
|
|
}
|