guireleaser/globalDisplayOptions.go

44 lines
826 B
Go
Raw Normal View History

package main
import (
"go.wit.com/gui"
2024-11-13 18:15:38 -06:00
"go.wit.com/lib/debugger"
"go.wit.com/lib/gui/logsettings"
"go.wit.com/log"
)
func globalDisplayOptions(box *gui.Node) {
vbox := box.NewVerticalBox("DISPLAYVBOX")
group1 := vbox.NewGroup("Global Display Options")
2024-02-19 19:42:14 -06:00
hidegrid := group1.NewGrid("hidecfg", 0, 0)
hidegrid.NewButton("Show Repository Window", func() {
2024-02-18 15:09:04 -06:00
if me.repos.Hidden() {
me.repos.Show()
} else {
2024-02-18 15:09:04 -06:00
me.repos.Hide()
}
2024-02-18 15:09:04 -06:00
log.Info("showing reposwin")
})
2024-02-19 19:42:14 -06:00
hidegrid.NextRow()
group1 = vbox.NewGroup("prep for release")
2024-02-23 01:22:46 -06:00
grid := group1.RawGrid()
2024-11-13 17:23:33 -06:00
grid.NewButton("make prepare-release", func() {
2024-12-02 05:13:17 -06:00
makePrepareRelease()
2024-11-13 17:23:33 -06:00
})
grid.NextRow()
2024-02-23 01:22:46 -06:00
2024-11-13 18:15:38 -06:00
grid.NewButton("logging Window", func() {
logsettings.LogWindow()
})
2024-02-19 19:42:14 -06:00
grid.NextRow()
2024-11-13 18:15:38 -06:00
grid.NewButton("Debugger Window", func() {
debugger.DebugWindow()
})
}