hammering on the GUI
This commit is contained in:
parent
2fafc0bd13
commit
7fb79a4736
|
@ -87,17 +87,17 @@ func (r *patchesWindow) initWindow() {
|
||||||
}
|
}
|
||||||
|
|
||||||
type patchSummary struct {
|
type patchSummary struct {
|
||||||
grid *gui.Node
|
grid *gui.Node
|
||||||
updateB *gui.Node
|
updateB *gui.Node
|
||||||
docsB *gui.Node
|
docsB *gui.Node
|
||||||
gitPushB *gui.Node
|
gitPushB *gui.Node
|
||||||
gitPullB *gui.Node
|
gitPullB *gui.Node
|
||||||
checkB *gui.Node
|
checkB *gui.Node
|
||||||
totalOL *gadgets.OneLiner
|
totalOL *gadgets.OneLiner
|
||||||
dirtyOL *gadgets.OneLiner
|
dirtyOL *gadgets.OneLiner
|
||||||
readonlyOL *gadgets.OneLiner
|
readonlyOL *gadgets.OneLiner
|
||||||
rw *gadgets.OneLiner
|
rw *gadgets.OneLiner
|
||||||
totalPatchesOL *gadgets.OneLiner
|
// totalPatchesOL *gadgets.OneLiner
|
||||||
// totalUserRepos *gui.Node
|
// totalUserRepos *gui.Node
|
||||||
// totalDevelRepos *gui.Node
|
// totalDevelRepos *gui.Node
|
||||||
// totalMasterRepos *gui.Node
|
// totalMasterRepos *gui.Node
|
||||||
|
@ -105,10 +105,10 @@ type patchSummary struct {
|
||||||
// totalDevelPatches *gui.Node
|
// totalDevelPatches *gui.Node
|
||||||
// totalMasterPatches *gui.Node
|
// totalMasterPatches *gui.Node
|
||||||
// fileCount *gui.Node
|
// fileCount *gui.Node
|
||||||
unknownOL *gadgets.BasicEntry
|
// unknownOL *gadgets.BasicEntry
|
||||||
unknownSubmitB *gui.Node
|
// unknownSubmitB *gui.Node
|
||||||
reason *gadgets.BasicEntry
|
reason *gadgets.BasicEntry
|
||||||
submitB *gui.Node
|
submitB *gui.Node
|
||||||
// allp []*repolist.Patch
|
// allp []*repolist.Patch
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,22 +117,17 @@ func (r *patchesWindow) submitPatchesBox(box *gui.Node) *patchSummary {
|
||||||
group1 := box.NewGroup("Repo Summary")
|
group1 := box.NewGroup("Repo Summary")
|
||||||
s.grid = group1.RawGrid()
|
s.grid = group1.RawGrid()
|
||||||
|
|
||||||
|
// make the header table for repo stats
|
||||||
s.totalOL = gadgets.NewOneLiner(s.grid, "Total")
|
s.totalOL = gadgets.NewOneLiner(s.grid, "Total")
|
||||||
s.grid.NextRow()
|
s.grid.NextRow()
|
||||||
|
|
||||||
s.dirtyOL = gadgets.NewOneLiner(s.grid, "dirty")
|
s.dirtyOL = gadgets.NewOneLiner(s.grid, "dirty")
|
||||||
// _ = s.grid.NewLabel("") // skip a column
|
|
||||||
// s.totalUserRepos = s.grid.NewLabel("x go repos")
|
|
||||||
s.grid.NextRow()
|
s.grid.NextRow()
|
||||||
|
|
||||||
s.readonlyOL = gadgets.NewOneLiner(s.grid, "read-only")
|
s.readonlyOL = gadgets.NewOneLiner(s.grid, "read-only")
|
||||||
// _ = s.grid.NewLabel("") // skip a column
|
|
||||||
s.grid.NextRow()
|
s.grid.NextRow()
|
||||||
|
|
||||||
s.rw = gadgets.NewOneLiner(s.grid, "r/w")
|
s.rw = gadgets.NewOneLiner(s.grid, "r/w")
|
||||||
// _ = s.grid.NewLabel("") // skip a column
|
|
||||||
s.grid.NextRow()
|
s.grid.NextRow()
|
||||||
|
|
||||||
|
// make the 'widget group' for the buttons at the bottom of the window
|
||||||
group1 = box.NewGroup("Patchset Create")
|
group1 = box.NewGroup("Patchset Create")
|
||||||
s.grid = group1.RawGrid()
|
s.grid = group1.RawGrid()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue