more hammering

This commit is contained in:
Jeff Carr 2025-01-30 09:04:45 -06:00
parent 7fb79a4736
commit 965d6cb6a9
1 changed files with 22 additions and 43 deletions

View File

@ -13,15 +13,28 @@ import (
)
type patchesWindow struct {
once sync.Once // only init() the window once
win *gadgets.BasicWindow // the patches window
stack *gui.Node // the top box set as vertical
shelf *gui.Node // the first box in the stack, set as horizontal
grid *gui.Node // the list of available patches
summary *patchSummary // summary of current patches
setgrid *gui.Node // the list of each patchset
// setlist map[string]*forgepb.Patchset // a map of the patch names to the protobuf
// setwin map[string]*patchWindow // a map of the patch names to the protobuf
once sync.Once // only init() the window once
win *gadgets.BasicWindow // the patches window
stack *gui.Node // the top box set as vertical
// shelf *gui.Node // the first box in the stack, set as horizontal
grid *gui.Node // the list of available patches
summary *patchSummary // summary of current patches
setgrid *gui.Node // the list of each patchset
}
type patchSummary struct {
grid *gui.Node
// updateB *gui.Node
// docsB *gui.Node
// gitPushB *gui.Node
// gitPullB *gui.Node
checkB *gui.Node
totalOL *gadgets.OneLiner
dirtyOL *gadgets.OneLiner
readonlyOL *gadgets.OneLiner
rw *gadgets.OneLiner
reason *gadgets.BasicEntry
submitB *gui.Node
}
func (r *patchesWindow) Hidden() bool {
@ -67,14 +80,6 @@ func (r *patchesWindow) initWindow() {
}
r.grid = r.stack.NewGrid("", 0, 0)
/*
r.shelf = r.initGroup()
group1 := r.stack.NewGroup("stuff")
vbox := group1.Box()
vbox.Vertical()
*/
r.summary = r.submitPatchesBox(r.stack)
// update the stats about the repos and patches
@ -86,32 +91,6 @@ func (r *patchesWindow) initWindow() {
r.setgrid = g.NewGrid("", 0, 0)
}
type patchSummary struct {
grid *gui.Node
updateB *gui.Node
docsB *gui.Node
gitPushB *gui.Node
gitPullB *gui.Node
checkB *gui.Node
totalOL *gadgets.OneLiner
dirtyOL *gadgets.OneLiner
readonlyOL *gadgets.OneLiner
rw *gadgets.OneLiner
// totalPatchesOL *gadgets.OneLiner
// totalUserRepos *gui.Node
// totalDevelRepos *gui.Node
// totalMasterRepos *gui.Node
// totalUserPatches *gui.Node
// totalDevelPatches *gui.Node
// totalMasterPatches *gui.Node
// fileCount *gui.Node
// unknownOL *gadgets.BasicEntry
// unknownSubmitB *gui.Node
reason *gadgets.BasicEntry
submitB *gui.Node
// allp []*repolist.Patch
}
func (r *patchesWindow) submitPatchesBox(box *gui.Node) *patchSummary {
s := new(patchSummary)
group1 := box.NewGroup("Repo Summary")