2024-01-09 15:34:53 -06:00
|
|
|
package repostatus
|
|
|
|
|
2024-01-18 00:57:43 -06:00
|
|
|
import (
|
2024-02-15 22:50:50 -06:00
|
|
|
"go.wit.com/gui"
|
2024-01-18 00:57:43 -06:00
|
|
|
"go.wit.com/lib/gadgets"
|
2024-01-09 15:34:53 -06:00
|
|
|
)
|
|
|
|
|
2024-02-15 22:50:50 -06:00
|
|
|
func (rs *RepoStatus) drawGitStatus(box *gui.Node) {
|
|
|
|
rs.gitStatusGroup = box.NewGroup("What GIT Knows It Has")
|
2024-01-11 15:56:50 -06:00
|
|
|
newgrid := rs.gitStatusGroup.NewGrid("gridnuts", 2, 2)
|
|
|
|
newgrid.Margin()
|
|
|
|
newgrid.Pad()
|
|
|
|
|
2024-01-18 00:57:43 -06:00
|
|
|
rs.path = gadgets.NewOneLiner(newgrid, "path")
|
2024-01-23 22:47:39 -06:00
|
|
|
rs.goSrcPath = gadgets.NewOneLiner(newgrid, "~/go/src")
|
2024-02-19 14:42:59 -06:00
|
|
|
rs.goPath = gadgets.NewOneLiner(newgrid, "go path")
|
2024-01-23 22:47:39 -06:00
|
|
|
rs.realPath = gadgets.NewOneLiner(newgrid, "full path")
|
2024-02-16 11:41:29 -06:00
|
|
|
rs.isGoLang = gadgets.NewOneLiner(newgrid, "Is GO Lang?")
|
|
|
|
rs.isGoLang.SetText("false")
|
2024-01-23 10:52:17 -06:00
|
|
|
rs.mainWorkingName = gadgets.NewOneLiner(newgrid, "main working branch")
|
|
|
|
rs.mainWorkingName.SetValue("???")
|
|
|
|
rs.develWorkingName = gadgets.NewOneLiner(newgrid, "devel working branch")
|
|
|
|
rs.develWorkingName.SetValue("devel")
|
|
|
|
rs.userWorkingName = gadgets.NewOneLiner(newgrid, "user working branch")
|
|
|
|
rs.userWorkingName.SetValue("uid")
|
2024-01-20 21:18:03 -06:00
|
|
|
|
2024-01-18 00:57:43 -06:00
|
|
|
rs.dirtyLabel = gadgets.NewOneLiner(newgrid, "dirty")
|
2024-02-19 16:29:10 -06:00
|
|
|
rs.gitState = gadgets.NewOneLiner(newgrid, "git state")
|
2024-01-23 22:47:39 -06:00
|
|
|
rs.readOnly = gadgets.NewOneLiner(newgrid, "read only")
|
2024-02-20 06:54:11 -06:00
|
|
|
rs.primitive = gadgets.NewOneLiner(newgrid, "primitive")
|
2024-02-23 11:00:33 -06:00
|
|
|
rs.private = gadgets.NewOneLiner(newgrid, "private")
|
2024-01-27 13:06:57 -06:00
|
|
|
rs.targetReleaseVersion = gadgets.NewOneLiner(newgrid, "target release version")
|
2024-01-11 15:56:50 -06:00
|
|
|
|
2024-01-18 00:57:43 -06:00
|
|
|
rs.speed = gadgets.NewOneLiner(newgrid, "refresh speed =")
|
|
|
|
rs.speedActual = gadgets.NewOneLiner(newgrid, "speed actual =")
|
2024-01-11 15:56:50 -06:00
|
|
|
}
|