diff options
| -rw-r--r-- | generateGui.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/generateGui.go b/generateGui.go index 42cbdb9..4dd65d0 100644 --- a/generateGui.go +++ b/generateGui.go @@ -136,8 +136,6 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, "") fmt.Fprintln(w, "// force the application to choose the type of data. this allows the GUI plugin to be smarter") fmt.Fprintln(w, "func (t *"+FRUITS+"Table) AddStringFunc(title string, f func(*"+FRUIT+") string) *"+FRUIT+"AnyFunc {") - fmt.Fprintln(w, " t.pb.Order = append(t.pb.Order, title)") - fmt.Fprintln(w, "") fmt.Fprintln(w, " sf := new("+FRUIT+"AnyFunc)") fmt.Fprintln(w, " sf.f = func(x *"+FRUIT+") any {") fmt.Fprintln(w, " return f(x)") @@ -154,8 +152,6 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, "") fmt.Fprintln(w, "// force the application to choose the type of data. this allows the GUI plugin to be smarter") fmt.Fprintln(w, "func (t *"+FRUITS+"Table) AddButtonFunc(title string, f func(*"+FRUIT+") string) *"+FRUIT+"AnyFunc {") - fmt.Fprintln(w, " t.pb.Order = append(t.pb.Order, title)") - fmt.Fprintln(w, "") fmt.Fprintln(w, " sf := new("+FRUIT+"AnyFunc)") fmt.Fprintln(w, " sf.f = func(x *"+FRUIT+") any {") fmt.Fprintln(w, " return f(x)") @@ -173,8 +169,6 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, "") fmt.Fprintln(w, "// force the application to choose the type of data. this allows the GUI plugin to be smarter") fmt.Fprintln(w, "func (t *"+FRUITS+"Table) AddIntFunc(title string, f func(*"+FRUIT+") int) *"+FRUIT+"AnyFunc {") - fmt.Fprintln(w, " t.pb.Order = append(t.pb.Order, title)") - fmt.Fprintln(w, "") fmt.Fprintln(w, " sf := new("+FRUIT+"AnyFunc)") fmt.Fprintln(w, " sf.f = func(x *"+FRUIT+") any {") fmt.Fprintln(w, " return f(x)") @@ -191,8 +185,6 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, "") fmt.Fprintln(w, "// force the application to choose the type of data. this allows the GUI plugin to be smarter") fmt.Fprintln(w, "func (t *"+FRUITS+"Table) AddTimeFunc(title string, f func(*"+FRUIT+") time.Time) *"+FRUIT+"AnyFunc {") - fmt.Fprintln(w, " t.pb.Order = append(t.pb.Order, title)") - fmt.Fprintln(w, "") fmt.Fprintln(w, " sf := new("+FRUIT+"AnyFunc)") fmt.Fprintln(w, " sf.f = func(x *"+FRUIT+") any {") fmt.Fprintln(w, " return f(x)") @@ -325,19 +317,8 @@ func guiUpdate(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, " mt.pb.Uuid = uuid.New().String()") fmt.Fprintln(w, "}") fmt.Fprintln(w, "") - fmt.Fprintln(w, "// START TABLE UPDATE (doesn't work yet)") fmt.Fprintln(w, "") - fmt.Fprintln(w, "func (mt *"+FRUITS+"Table) dumpStringFunc(name string) {") - fmt.Fprintln(w, " for i, r := range mt.pb.StringCols {") - fmt.Fprintln(w, " // log.Info(\"could use\", i, r.Header.Name, \"for name =\", name)") - fmt.Fprintln(w, " if r.Header.Name == name {") - fmt.Fprintln(w, " log.Info(\"dump Strings row\", i, r.Header.Name, r.Vals)") - fmt.Fprintln(w, " break") - fmt.Fprintln(w, " }") - fmt.Fprintln(w, " }") - fmt.Fprintln(w, "}") - fmt.Fprintln(w, "") } func guiTableDelete(w io.Writer, FRUITS string, FRUIT string) { |
