more hammering
This commit is contained in:
parent
7fb79a4736
commit
965d6cb6a9
|
@ -13,15 +13,28 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type patchesWindow struct {
|
type patchesWindow struct {
|
||||||
once sync.Once // only init() the window once
|
once sync.Once // only init() the window once
|
||||||
win *gadgets.BasicWindow // the patches window
|
win *gadgets.BasicWindow // the patches window
|
||||||
stack *gui.Node // the top box set as vertical
|
stack *gui.Node // the top box set as vertical
|
||||||
shelf *gui.Node // the first box in the stack, set as horizontal
|
// shelf *gui.Node // the first box in the stack, set as horizontal
|
||||||
grid *gui.Node // the list of available patches
|
grid *gui.Node // the list of available patches
|
||||||
summary *patchSummary // summary of current patches
|
summary *patchSummary // summary of current patches
|
||||||
setgrid *gui.Node // the list of each patchset
|
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
|
|
||||||
|
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 {
|
func (r *patchesWindow) Hidden() bool {
|
||||||
|
@ -67,14 +80,6 @@ func (r *patchesWindow) initWindow() {
|
||||||
}
|
}
|
||||||
|
|
||||||
r.grid = r.stack.NewGrid("", 0, 0)
|
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)
|
r.summary = r.submitPatchesBox(r.stack)
|
||||||
|
|
||||||
// update the stats about the repos and patches
|
// update the stats about the repos and patches
|
||||||
|
@ -86,32 +91,6 @@ func (r *patchesWindow) initWindow() {
|
||||||
r.setgrid = g.NewGrid("", 0, 0)
|
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 {
|
func (r *patchesWindow) submitPatchesBox(box *gui.Node) *patchSummary {
|
||||||
s := new(patchSummary)
|
s := new(patchSummary)
|
||||||
group1 := box.NewGroup("Repo Summary")
|
group1 := box.NewGroup("Repo Summary")
|
||||||
|
|
Loading…
Reference in New Issue