submit-patchset/structs.go

63 lines
1.2 KiB
Go
Raw Normal View History

package main
import (
"go.wit.com/gui"
"go.wit.com/lib/gadgets"
)
var me *mainType
func (b *mainType) Disable() {
2024-02-13 16:18:37 -06:00
b.mainbox.Disable()
}
func (b *mainType) Enable() {
2024-02-13 16:18:37 -06:00
b.mainbox.Enable()
}
// this app's variables
type mainType struct {
2024-02-17 08:38:44 -06:00
myGui *gui.Node
mainWindow *gadgets.BasicWindow
2024-02-17 08:38:44 -06:00
2024-02-13 16:18:37 -06:00
// the main box. enable/disable this
mainbox *gui.Node
// the window from the /lib/gui/gowit package
lw *gadgets.BasicWindow
2024-02-17 08:38:44 -06:00
// our view of the repositories
2024-02-17 14:20:37 -06:00
repos *repoWindow
// #### Sorting options for the repolist
autoHidePerfect *gui.Node
autoHideReadOnly *gui.Node
// checkbox for --dry-run
autoDryRun *gui.Node
2024-02-16 17:55:53 -06:00
// checkbox to enable intermittent scanning
// if checked, it will check all your repos for changes
autoScanReposCB *gui.Node
// what is being used as your home dir
userHomePwd *gadgets.OneLiner
// what is being used as ~/go/src
goSrcPwd *gadgets.OneLiner
// displays a summary of all the repos
// has total dirty, total read-only
// total patches, etc
summary *patchSummary
2024-02-16 17:55:53 -06:00
// when switch to user or devel branches, autocreate them
autoCreateBranches *gui.Node
// these hold the branches that the user can switch all
// the repositories to them
2024-02-16 20:37:23 -06:00
newBranch *gui.Node
2024-02-16 17:55:53 -06:00
setBranchB *gui.Node
}