2024-12-05 12:29:47 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
// An app to submit patches for the 30 GO GUI repos
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.wit.com/gui"
|
|
|
|
"go.wit.com/lib/gadgets"
|
|
|
|
"go.wit.com/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
func doGui() {
|
|
|
|
me.myGui = gui.New()
|
|
|
|
me.myGui.Default()
|
|
|
|
|
2024-12-23 02:37:48 -06:00
|
|
|
me.mainWindow = gadgets.RawBasicWindow("Forge: use this to submit patches")
|
2024-12-05 12:29:47 -06:00
|
|
|
me.mainWindow.Make()
|
|
|
|
me.mainWindow.Show()
|
|
|
|
me.mainbox = me.mainWindow.Box()
|
|
|
|
|
|
|
|
// disable the interface while everything is scanned
|
|
|
|
me.Disable()
|
|
|
|
|
|
|
|
vbox2 := me.mainbox.NewVerticalBox("BOX2")
|
|
|
|
globalBuildOptions(vbox2)
|
|
|
|
me.summary = submitPatchesBox(vbox2)
|
|
|
|
|
|
|
|
me.repos = makeRepoView()
|
|
|
|
|
|
|
|
// processing is done. update the repo summary box
|
|
|
|
me.summary.Update()
|
2024-12-23 02:37:48 -06:00
|
|
|
me.summary.submitB.Disable()
|
2024-12-05 12:29:47 -06:00
|
|
|
|
|
|
|
me.Enable()
|
|
|
|
|
|
|
|
// intermittently scans the status indefinitly
|
|
|
|
me.repos.View.Watchdog(func() {
|
2024-12-23 02:37:48 -06:00
|
|
|
log.Info("Watchdog in doGui()")
|
2024-12-05 12:29:47 -06:00
|
|
|
// processing is done. update the repo summary box
|
|
|
|
me.summary.Update()
|
|
|
|
})
|
|
|
|
}
|