summaryrefslogtreecommitdiff
path: root/linuxstatus/draw.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-15 19:00:41 -0600
committerJeff Carr <[email protected]>2024-01-15 19:00:41 -0600
commit94aa368cff322e667156571638a45bd3117a2739 (patch)
tree2fdeaf202d9a6f367306d790bc97b610e99c7cc0 /linuxstatus/draw.go
parentd0fe8be3709f170bdc2858708d6eaa6b7e4bf9de (diff)
garbage collect after cleaning to retain history
Diffstat (limited to 'linuxstatus/draw.go')
-rw-r--r--linuxstatus/draw.go37
1 files changed, 0 insertions, 37 deletions
diff --git a/linuxstatus/draw.go b/linuxstatus/draw.go
deleted file mode 100644
index 1d5e591..0000000
--- a/linuxstatus/draw.go
+++ /dev/null
@@ -1,37 +0,0 @@
-// This creates a simple hello world window
-package linuxstatus
-
-import (
- "go.wit.com/gui/gadgets"
-)
-
-// creates the actual widgets.
-// it's assumed you are always passing in a box
-func draw(ls *LinuxStatus) {
- if ! ls.Ready() {return}
- ls.group = ls.window.Box().NewGroup("What Linux Knows It Is")
-
- ls.grid = ls.group.NewGrid("gridnuts", 2, 2)
-
- ls.hostnameStatus = gadgets.NewOneLiner(ls.grid, "status")
- ls.hostname = gadgets.NewOneLiner(ls.grid, "hostname -f")
- ls.hostshort = gadgets.NewOneLiner(ls.grid, "hostname -s")
- ls.domainname = gadgets.NewOneLiner(ls.grid, "domain name")
- ls.resolver = gadgets.NewOneLiner(ls.grid, "nameservers =")
- ls.resolver.Set("TODO")
- ls.uid = gadgets.NewOneLiner(ls.grid, "UID =")
- ls.IPv4 = gadgets.NewOneLiner(ls.grid, "Current IPv4 =")
- ls.IPv6 = gadgets.NewOneLiner(ls.grid, "Current IPv6 =")
- ls.workingIPv4 = gadgets.NewOneLiner(ls.grid, "Real IPv4 =")
- ls.workingIPv6 = gadgets.NewOneLiner(ls.grid, "Real IPv6 =")
- // ls.nics = gadgets.NewOneLiner(ls.grid, "network intefaces =")
-
- ls.grid.NewLabel("interfaces =")
- ls.Interfaces = ls.grid.NewCombobox("Interfaces")
-
- ls.speed = gadgets.NewOneLiner(ls.grid, "refresh speed =")
- ls.speedActual = gadgets.NewOneLiner(ls.grid, "refresh speed =")
-
- ls.grid.Margin()
- ls.grid.Pad()
-}