summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go46
1 files changed, 46 insertions, 0 deletions
diff --git a/plugin.go b/plugin.go
new file mode 100644
index 0000000..7923d60
--- /dev/null
+++ b/plugin.go
@@ -0,0 +1,46 @@
+package main
+
+import (
+ "go.wit.com/log"
+ "go.wit.com/widget"
+)
+
+func (tk *guiWidget) Show() {
+}
+
+func (tk *guiWidget) Hide() {
+}
+
+func (tk *guiWidget) Disable() {
+ if tk == nil {
+ log.Info("widget is nil")
+ return
+ }
+
+ switch tk.WidgetType() {
+ case widget.Box:
+ return
+ case widget.Button:
+ return
+ default:
+ log.Log(NOW, "fixme")
+ }
+}
+
+func (tk *guiWidget) Enable() {
+ if tk == nil {
+ log.Info("widget is nil")
+ return
+ }
+
+ switch tk.WidgetType() {
+ case widget.Box:
+ // hideDisable()
+ return
+ case widget.Button:
+ // tk.restoreEnableColor()
+ return
+ default:
+ log.Log(NOW, "fixme")
+ }
+}