From 01b512ddb32486af82894e98b3733cb00c59b3f2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 15 Jan 2024 16:59:13 -0600 Subject: move to separate repo Signed-off-by: Jeff Carr --- logsettings/settings.go | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 logsettings/settings.go (limited to 'logsettings/settings.go') diff --git a/logsettings/settings.go b/logsettings/settings.go deleted file mode 100644 index 2bc252a..0000000 --- a/logsettings/settings.go +++ /dev/null @@ -1,43 +0,0 @@ -package logsettings - -import ( - "go.wit.com/log" - "go.wit.com/gui/gui" -) - -// This initializes the main object -// You can only have one of these -func New(p *gui.Node) *LogSettings { - if myLogGui != nil {return myLogGui} - myLogGui = new(LogSettings) - myLogGui.parent = p - myLogGui.groups = make(map[string]*flagGroup) - myLogGui.ready = true - myLogGui.hidden = true - return myLogGui -} - -// Returns true if the status is valid -func (d *LogSettings) Ready() bool { - if d == nil {return false} - if ! d.parent.Ready() {return false} - if (d.win == nil) { - d.draw() - } - return d.ready -} - -func (d *LogSettings) Update() bool { - if ! d.Ready() {return false} - return true -} - -func (d *LogSettings) ShowFlags() { - log.ShowFlags() - return -} - -func (d *LogSettings) SetAll(b bool) { - log.SetAll(b) - return -} -- cgit v1.2.3