testing gui commit

This commit is contained in:
Jeff Carr 2024-11-05 01:42:35 -06:00
parent eefd7729a9
commit 9a1cc5839f
1 changed files with 9 additions and 12 deletions

View File

@ -18,13 +18,12 @@ func TempWindowView(parent *gui.Node) *RepoList {
tmp.reposgrid = tmp.reposgroup.NewGrid("mergegrid", 0, 0)
tmp.reposgrid.NewLabel("") // path goes here
tmp.reposgrid.NewLabel("last tag").SetProgName("last tag")
tmp.reposgrid.NewLabel("master version")
tmp.reposgrid.NewLabel("devel version")
tmp.reposgrid.NewLabel("user version")
tmp.reposgrid.NewLabel("Status")
tmp.reposgrid.NewLabel("Current").SetProgName("CurrentName")
tmp.reposgrid.NewLabel("Version").SetProgName("CurrentVersion")
tmp.reposgrid.NewLabel("Current Branch")
tmp.reposgrid.NewLabel("last tag")
tmp.reposgrid.NewLabel("master")
tmp.reposgrid.NewLabel("devel")
tmp.reposgrid.NewLabel("user")
tmp.reposgrid.NewLabel("?")
tmp.reposgrid.NextRow()
@ -43,17 +42,15 @@ func (r *RepoList) ShowRepo(repo *RepoRow) error {
newRow.Status = repo.Status
newRow.pLabel = grid.NewLabel(repo.Status.Path())
newRow.targetV = grid.NewLabel(repo.Status.GetTargetVersion())
newRow.lastTag = grid.NewLabel(repo.Status.LastTag())
newRow.currentName = grid.NewLabel(repo.Status.GetCurrentBranchName())
newRow.currentVersion = grid.NewLabel(repo.Status.GetCurrentVersion())
newRow.gitState = grid.NewLabel(repo.Status.GitState())
newRow.lastTag = grid.NewLabel(repo.Status.LastTag())
newRow.masterVersion = grid.NewLabel(repo.Status.GetMasterVersion())
newRow.develVersion = grid.NewLabel(repo.Status.GetDevelVersion())
newRow.userVersion = grid.NewLabel(repo.Status.GetUserVersion())
newRow.gitState = grid.NewLabel(repo.Status.GitState())
newRow.endBox = grid.NewHorizontalBox("HBOX")
newRow.endBox.NewButton("Repo Window", func() {
newRow.Status.Toggle()