2024-11-05 01:44:24 -06:00
|
|
|
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()
|
2024-11-05 03:17:40 -06:00
|
|
|
box2.NewButton("merge user to devel", func() {
|
|
|
|
mergeAllUserToDevel()
|
|
|
|
})
|
|
|
|
box2.NewButton("merge devel to master", func() {
|
|
|
|
mergeAllDevelToMain()
|
|
|
|
})
|
|
|
|
box2.NewButton("rescan values", func() {
|
|
|
|
log.Warn("figure this out")
|
|
|
|
r.View.ListRows()
|
|
|
|
/*
|
|
|
|
for _, repo := range r.View.AllRepos() {
|
|
|
|
log.Warn("repo:", repo.Name())
|
|
|
|
}
|
|
|
|
*/
|
2024-11-05 01:44:24 -06:00
|
|
|
})
|
|
|
|
|
|
|
|
r.View = repolist.TempWindowView(r.box)
|
|
|
|
r.Show()
|
|
|
|
return r
|
|
|
|
}
|