summaryrefslogtreecommitdiff
path: root/viewAutotypist.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-17 14:22:24 -0600
committerJeff Carr <[email protected]>2024-02-17 14:22:24 -0600
commitb298958bcd460763e44348467c1c5bd4591b11e7 (patch)
tree395e4be5e31b3939fc1ca596642be2b0d634db7c /viewAutotypist.go
parent1b103f2a1c9beb87e61ebbd04fe7cdbf605988ed (diff)
early successes. autotypist works
Diffstat (limited to 'viewAutotypist.go')
-rw-r--r--viewAutotypist.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/viewAutotypist.go b/viewAutotypist.go
new file mode 100644
index 0000000..9753bce
--- /dev/null
+++ b/viewAutotypist.go
@@ -0,0 +1,29 @@
+package repolist
+
+import "go.wit.com/gui"
+
+// This creates a view of the repos
+// you can only have one at this point
+func AutotypistView(parent *gui.Node) *RepoList {
+ if me != nil {
+ return me
+ }
+ me = new(RepoList)
+ me.allrepos = make(map[string]*Repo)
+
+ // me.reposbox = gui.RawBox()
+ me.reposbox = parent
+
+ me.reposgroup = me.reposbox.NewGroup("git repositories (configure in ~/.config/myrepolist)")
+ me.reposgrid = me.reposgroup.NewGrid("test", 0, 0)
+
+ me.reposgrid.NewLabel("") // path goes here
+ me.reposgrid.NewLabel("last tag").SetProgName("last tag")
+ me.reposgrid.NewLabel("master version")
+ me.reposgrid.NewLabel("devel version")
+ me.reposgrid.NewLabel("user version")
+ me.reposgrid.NewLabel("Status")
+ me.reposgrid.NewLabel("Current Version").SetProgName("Current Version")
+ me.reposgrid.NextRow()
+ return me
+}