diff options
| author | Jeff Carr <[email protected]> | 2024-01-17 23:39:03 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-17 23:39:03 -0600 |
| commit | a0baba0821441d9cf38f0b33fe12fb96925c6236 (patch) | |
| tree | 2aece2a890c66c36b08524e117753817078ee58c /tree/json.go | |
| parent | bee272651ad38453aef27f098513f7be652c39bf (diff) | |
new paths
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tree/json.go')
| -rw-r--r-- | tree/json.go | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/tree/json.go b/tree/json.go deleted file mode 100644 index 2863408..0000000 --- a/tree/json.go +++ /dev/null @@ -1,60 +0,0 @@ -package tree - -import ( - "fmt" - - "go.wit.com/log" - "go.wit.com/gui/widget" -) - -// makes a JSON version to pass to the toolkits ? -// probably this should be in gui/toolkits/tree -/* -{"widget": { - "debug": "on", - "window": { - "title": "Sample Konfabulator Widget", - "name": "main_window", - "width": 500, - "height": 500 - }, - "image": { - "src": "Images/Sun.png", - "name": "sun1", - "hOffset": 250, - "vOffset": 250, - "alignment": "center" - }, - "text": { - "data": "Click Here", - "size": 36, - "style": "bold", - "name": "text1", - "hOffset": 250, - "vOffset": 100, - "alignment": "center", - "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;" - } -}} -*/ - -func (n *Node) Json() []string { - var all []string - switch n.WidgetType { - case widget.Checkbox: - case widget.Button: - case widget.Combobox: - case widget.Dropdown: - case widget.Textbox: - case widget.Spinner: - case widget.Slider: - case widget.Window: - tmp := fmt.Sprint("{ WidgetType :", n.WidgetType, "}") - all = append(all, tmp) - log.Warn(tmp) - return all - default: - log.Info("doUserEvent() type =", n.WidgetType) - } - return all -} |
