about to clear out old 'order' logic
This commit is contained in:
parent
9a93384ee3
commit
046d084222
|
@ -201,12 +201,6 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) {
|
|||
fmt.Fprintln(w, " return sf")
|
||||
fmt.Fprintln(w, "}")
|
||||
fmt.Fprintln(w, "")
|
||||
fmt.Fprintln(w, "func (sf *"+FRUIT+"StringFunc) SetTitle(title string) {")
|
||||
fmt.Fprintln(w, " sf.title = title")
|
||||
fmt.Fprintln(w, "}")
|
||||
fmt.Fprintln(w, "func (sf *"+FRUIT+"IntFunc) SetTitle(title string) {")
|
||||
fmt.Fprintln(w, " sf.title = title")
|
||||
fmt.Fprintln(w, "}")
|
||||
fmt.Fprintln(w, "func (sf *"+FRUIT+"AnyFunc) SetTitle(title string) {")
|
||||
fmt.Fprintln(w, " sf.title = title")
|
||||
fmt.Fprintln(w, "}")
|
||||
|
@ -227,33 +221,6 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) {
|
|||
fmt.Fprintln(w, " mt.parent.ShowTable(mt.pb)")
|
||||
fmt.Fprintln(w, "}")
|
||||
fmt.Fprintln(w, "")
|
||||
fmt.Fprintln(w, "type "+FRUIT+"StringFunc struct {")
|
||||
fmt.Fprintln(w, " title string")
|
||||
fmt.Fprintln(w, " f func(*"+FRUIT+") string")
|
||||
fmt.Fprintln(w, " Custom func(*"+FRUIT+")")
|
||||
fmt.Fprintln(w, " order int")
|
||||
fmt.Fprintln(w, " Width int")
|
||||
fmt.Fprintln(w, " attr *guipb.ColAttr")
|
||||
fmt.Fprintln(w, "}")
|
||||
fmt.Fprintln(w, "")
|
||||
fmt.Fprintln(w, "type "+FRUIT+"ButtonFunc struct {")
|
||||
fmt.Fprintln(w, " title string")
|
||||
fmt.Fprintln(w, " f func(*"+FRUIT+") string")
|
||||
fmt.Fprintln(w, " Custom func(*"+FRUIT+")")
|
||||
fmt.Fprintln(w, " order int")
|
||||
fmt.Fprintln(w, " Width int")
|
||||
fmt.Fprintln(w, " attr *guipb.ColAttr")
|
||||
fmt.Fprintln(w, "}")
|
||||
fmt.Fprintln(w, "")
|
||||
fmt.Fprintln(w, "type "+FRUIT+"IntFunc struct {")
|
||||
fmt.Fprintln(w, " title string")
|
||||
fmt.Fprintln(w, " f func(*"+FRUIT+") int")
|
||||
fmt.Fprintln(w, " Custom func(*"+FRUIT+")")
|
||||
fmt.Fprintln(w, " order int")
|
||||
fmt.Fprintln(w, " Width int")
|
||||
fmt.Fprintln(w, " attr *guipb.ColAttr")
|
||||
fmt.Fprintln(w, "}")
|
||||
fmt.Fprintln(w, "")
|
||||
fmt.Fprintln(w, "type "+FRUIT+"AnyFunc struct {")
|
||||
fmt.Fprintln(w, " title string")
|
||||
fmt.Fprintln(w, " f func(*"+FRUIT+") any")
|
||||
|
@ -269,9 +236,6 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) {
|
|||
fmt.Fprintln(w, " x *"+FRUITS+"")
|
||||
fmt.Fprintln(w, " hostnames []string")
|
||||
fmt.Fprintln(w, "")
|
||||
fmt.Fprintln(w, " // stringFuncs []*"+FRUIT+"StringFunc")
|
||||
fmt.Fprintln(w, " // intFuncs []*"+FRUIT+"IntFunc")
|
||||
fmt.Fprintln(w, " // buttonFuncs []*"+FRUIT+"ButtonFunc")
|
||||
fmt.Fprintln(w, " anyFuncs []*"+FRUIT+"AnyFunc")
|
||||
fmt.Fprintln(w, "")
|
||||
fmt.Fprintln(w, " CustomFunc func(*"+FRUIT+")")
|
||||
|
@ -331,15 +295,6 @@ func guiStringFuncs(w io.Writer, ZOOPB string, FRUITS string, FRUIT string) {
|
|||
fmt.Fprintln(w, "")
|
||||
fmt.Fprintln(w, "func (mt *"+FRUITS+"Table) MakeTable() {")
|
||||
fmt.Fprintln(w, " for _, name := range mt.pb.Order {")
|
||||
fmt.Fprintln(w, " // if mt.doStringFunc(name) {")
|
||||
fmt.Fprintln(w, " // continue")
|
||||
fmt.Fprintln(w, " // }")
|
||||
fmt.Fprintln(w, " // if mt.doIntFunc(name) {")
|
||||
fmt.Fprintln(w, " // continue")
|
||||
fmt.Fprintln(w, " // }")
|
||||
fmt.Fprintln(w, " // if mt.doButtonFunc(name) {")
|
||||
fmt.Fprintln(w, " // continue")
|
||||
fmt.Fprintln(w, " // }")
|
||||
fmt.Fprintln(w, " if mt.doAnyFunc(name) {")
|
||||
fmt.Fprintln(w, " continue")
|
||||
fmt.Fprintln(w, " }")
|
||||
|
@ -373,7 +328,7 @@ func guiUpdate(w io.Writer, FRUITS string, FRUIT string) {
|
|||
fmt.Fprintln(w, "}")
|
||||
fmt.Fprintln(w, "")
|
||||
|
||||
fmt.Fprintln(w, "// START TABLE UPDATE")
|
||||
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 {")
|
||||
|
|
Loading…
Reference in New Issue