summaryrefslogtreecommitdiff
path: root/windowControlBox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 16:07:19 -0500
committerJeff Carr <[email protected]>2025-09-11 16:07:19 -0500
commit887811f7885564fb489e7b333ec1281be4d01836 (patch)
treefafd4c3b95281885a287f81c3a956a139543a9a7 /windowControlBox.go
parentfecb3ed9c1eab256458013acebd1e66d40f791ba (diff)
try to refector to work against git.Repo
Diffstat (limited to 'windowControlBox.go')
-rw-r--r--windowControlBox.go80
1 files changed, 0 insertions, 80 deletions
diff --git a/windowControlBox.go b/windowControlBox.go
deleted file mode 100644
index 467a846..0000000
--- a/windowControlBox.go
+++ /dev/null
@@ -1,80 +0,0 @@
-package main
-
-import (
- "go.wit.com/gui"
- "go.wit.com/lib/gadgets"
-)
-
-// This initializes the control box
-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)
-
- c.Package = gadgets.NewOneLiner(c.grid, "Package")
- c.grid.NextRow()
-
- c.Source = gadgets.NewOneLiner(c.grid, "Source")
- c.grid.NextRow()
-
- c.Version = gadgets.NewOneLiner(c.grid, "Version")
- c.grid.NextRow()
-
- c.Architecture = gadgets.NewBasicDropdown(c.grid, "Architecture")
- c.Architecture.AddText("all")
- c.Architecture.AddText("riscv64")
- c.Architecture.AddText("amd64")
- c.Architecture.AddText("arm64")
- c.Architecture.AddText("ppc64")
- c.Architecture.AddText("i386")
- c.Architecture.AddText("sparc64")
- c.Architecture.AddText("alpha")
- c.Architecture.SetText("riscv64")
- c.grid.NextRow()
-
- c.InstallPath = gadgets.NewBasicCombobox(c.grid, "Install Path")
- c.InstallPath.AddText("/usr/bin")
- c.InstallPath.AddText("/usr/local/bin")
- c.InstallPath.AddText("/bin")
- c.InstallPath.AddText("/opt/<pkg>/bin")
- c.InstallPath.SetText("/usr/bin")
- c.grid.NextRow()
-
- c.Maintainer = gadgets.NewOneLiner(c.grid, "Maintainer")
- c.grid.NextRow()
-
- c.Packager = gadgets.NewBasicEntry(c.grid, "Packager")
- c.grid.NextRow()
-
- c.GoPath = gadgets.NewBasicEntry(c.grid, "GoPath")
- c.grid.NextRow()
-
- c.Namespace = gadgets.NewBasicEntry(c.grid, "Namespace")
- c.grid.NextRow()
-
- c.URL = gadgets.NewBasicEntry(c.grid, "URL")
- c.grid.NextRow()
-
- c.Depends = gadgets.NewOneLiner(c.grid, "Depends")
- c.grid.NextRow()
-
- c.BuildDepends = gadgets.NewOneLiner(c.grid, "Build-Depends")
- c.grid.NextRow()
-
- c.Recommends = gadgets.NewOneLiner(c.grid, "Recommends")
- c.grid.NextRow()
-
- c.Conflicts = gadgets.NewBasicEntry(c.grid, "Conflicts")
- c.grid.NextRow()
-
- c.Description = gadgets.NewOneLiner(c.grid, "Description")
- c.grid.NextRow()
-
- return c
-}
-
-func updateControl(c *controlBox) {
- c.Namespace.SetText(me.repo.Namespace)
- c.URL.SetText(me.repo.URL)
-}