guireleaser/tempView.go

47 lines
1012 B
Go
Raw Normal View History

package main
import (
"go.wit.com/lib/gadgets"
"go.wit.com/lib/gui/repolist"
"go.wit.com/log"
)
func makeTempView() *repoWindow {
r := new(repoWindow)
r.win = gadgets.RawBasicWindow("unmerged repositories")
r.win.Make()
r.box = r.win.Box().NewBox("bw vbox", false)
r.win.Custom = func() {
log.Warn("GOT HERE: makeTempView() close")
log.Warn("GOT HERE: makeTempView() close")
log.Warn("Should I do something special here?")
}
// reposbox.SetExpand(false)
group1 := r.box.NewGroup("Run on all repos:")
hbox := group1.Box()
// hbox.Horizontal()
hbox.Vertical()
box2 := hbox.Box().Vertical()
box2.NewButton("merge user to devel", func() {
2024-11-13 18:24:58 -06:00
log.Warn("todo")
})
box2.NewButton("merge devel to master", func() {
2024-11-13 18:24:58 -06:00
log.Warn("todo")
})
box2.NewButton("rescan values", func() {
log.Warn("figure this out")
r.View.ListRows()
2024-11-13 18:24:58 -06:00
// for _, repo := range r.View.AllRepos() {
// log.Warn("repo:", repo.Name())
// }
})
r.View = repolist.TempWindowView(r.box)
r.Show()
return r
}