repowindow/structs.go

47 lines
822 B
Go
Raw Permalink Normal View History

package repowindow
import (
"go.wit.com/gui"
"go.wit.com/lib/gadgets"
)
var me *repoWin
func (b *repoWin) Disable() {
b.mainbox.Disable()
}
func (b *repoWin) Enable() {
b.mainbox.Enable()
}
func init () {
me = new(repoWin)
}
// this app's variables
type repoWin struct {
// our view of the repositories
repos *repoWindow
// box to disable/enable the window from the user
mainbox *gui.Node
// #### Sorting options for the repolist
autoHidePerfect *gui.Node
autoHideReadOnly *gui.Node
// checkbox for --dry-run
autoDryRun *gui.Node
// 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
}