summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-02 15:49:52 -0700
committerJeff Carr <[email protected]>2019-06-02 15:49:52 -0700
commit8967c1494c9611330782915dbf4d54f29887d135 (patch)
tree93fb34b5c3ce73567172dc55ee273da977e9aa03 /structs.go
parentd6cc47ab94bf294b69116f9479b49f0302bfc7b5 (diff)
more deletions of old stuff
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go31
1 files changed, 8 insertions, 23 deletions
diff --git a/structs.go b/structs.go
index 982b6a0..d57e8a0 100644
--- a/structs.go
+++ b/structs.go
@@ -14,6 +14,14 @@ import pb "git.wit.com/wit/witProtobuf"
// be the safe way to interact with the GUI
//
var Data GuiData
+var Config GuiConfig
+
+type GuiConfig struct {
+ Width int
+ Height int
+ Debug bool
+ DebugTable bool
+}
type GuiData struct {
State string // used like a state machine
@@ -22,24 +30,6 @@ type GuiData struct {
// if nothing else is defined to handle them
MouseClick func(*GuiButton)
- // passes in all the User accounts from the cloud-control-panel config file
- Config *pb.Config
-
- // general information on the App
- // move all this to Config (?)
- Version string
- GitCommit string
- GoVersion string
- Buildtime string
- HomeDir string
- Debug bool
- DebugTable bool
-
- // official hostname and IPv6 address for this box
- // also move all this to Config (?)
- Hostname string
- IPv6 string
-
// A map of all the entry boxes
AllEntries []*GuiEntry
Windows []*GuiWindow
@@ -51,10 +41,6 @@ type GuiData struct {
// This has to work this way because of how
// andlabs/ui & andlabs/libui work
AllButtons []*GuiButton
-
- EntryNick *ui.Entry
- EntryUser *ui.Entry
- EntryPass *ui.Entry
}
//
@@ -111,7 +97,6 @@ type GuiButton struct {
Name string // field for human readable name
Action string // what type of button
Box *GuiBox // what box the button click was in
-// GW *GuiWindow // what window the button click was in (redundant?)
Account *pb.Account // associated with what account?
VM *pb.Event_VM // associated with which VM?