2024-01-15 15:17:51 -06:00
|
|
|
package logsettings
|
|
|
|
|
2024-01-18 01:34:00 -06:00
|
|
|
import (
|
2024-01-18 19:00:03 -06:00
|
|
|
"go.wit.com/gui"
|
2024-01-18 01:34:00 -06:00
|
|
|
"go.wit.com/lib/gadgets"
|
2024-01-15 15:17:51 -06:00
|
|
|
)
|
|
|
|
|
2024-01-20 20:04:05 -06:00
|
|
|
// there can be only one per application
|
2024-01-15 15:17:51 -06:00
|
|
|
var myLogGui *LogSettings
|
|
|
|
|
|
|
|
type LogSettings struct {
|
2024-01-18 01:34:00 -06:00
|
|
|
ready bool
|
|
|
|
hidden bool
|
|
|
|
err error
|
2024-01-15 15:17:51 -06:00
|
|
|
|
|
|
|
groups map[string]*flagGroup
|
|
|
|
|
2024-01-18 01:34:00 -06:00
|
|
|
parent *gui.Node // where to draw our window
|
|
|
|
win *gadgets.BasicWindow // our window for displaying the log package settings
|
2024-01-15 15:17:51 -06:00
|
|
|
|
2024-01-18 01:34:00 -06:00
|
|
|
buttonG *gui.Node // the group of buttons
|
|
|
|
flagG *gui.Node // the group of all the flag checkbox widgets
|
2024-01-15 15:17:51 -06:00
|
|
|
}
|