summaryrefslogtreecommitdiff
path: root/viewAutotypist.go
diff options
context:
space:
mode:
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
+}