summaryrefslogtreecommitdiff
path: root/controlBox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-11 06:32:48 -0600
committerJeff Carr <[email protected]>2024-02-11 06:32:48 -0600
commite4e12ae90dd2f9775b1d45c1d083a4e44817a655 (patch)
tree8e368c2e9fad9a6f0d2e7543fc7bf2f208a85bf0 /controlBox.go
parente78fd84d74158731e5cb2ae32ffc1699e5e1cfba (diff)
specify repo on command line works
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'controlBox.go')
-rw-r--r--controlBox.go17
1 files changed, 13 insertions, 4 deletions
diff --git a/controlBox.go b/controlBox.go
index b25e91e..fc4fc36 100644
--- a/controlBox.go
+++ b/controlBox.go
@@ -4,9 +4,10 @@ package main
import (
"go.wit.com/gui"
"go.wit.com/lib/gadgets"
+ "go.wit.com/lib/gui/repostatus"
)
-type controlFile struct {
+type controlBox struct {
group *gui.Node // the group
grid *gui.Node // the grid
@@ -20,12 +21,19 @@ type controlFile struct {
BuildDepends *gadgets.OneLiner
Recommends *gadgets.OneLiner
Description *gadgets.OneLiner
+
+ // repostatus things
+ pathL *gadgets.OneLiner
+ lastTag *gadgets.OneLiner
+ dirtyL *gadgets.OneLiner
+ currentL *gadgets.OneLiner
+ status *repostatus.RepoStatus
}
// This initializes the control box
-func newControl(parent *gui.Node) *controlFile {
- var c *controlFile
- c = new(controlFile)
+func newControl(parent *gui.Node) *controlBox {
+ var c *controlBox
+ c = new(controlBox)
c.group = parent.NewGroup("choices")
c.grid = c.group.NewGrid("gridiron", 8, 1)
@@ -68,6 +76,7 @@ func newControl(parent *gui.Node) *controlFile {
c.grid.NextRow()
c.Description = gadgets.NewOneLiner(c.grid, "Description")
+ c.grid.NextRow()
return c
}