summaryrefslogtreecommitdiff
path: root/viewAutotypist.go
blob: 9753bceb57dc3de20d1b9fab69826658d9252c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
}